From f26bb6138c22294035b57fcb639147fb0ecfe70b Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Mar 2026 10:53:17 +0000 Subject: [PATCH] Generate observability --- services/observability/api_default.go | 1170 +- services/observability/client.go | 7 + services/observability/configuration.go | 2 + services/observability/go.mod | 2 +- services/observability/go.sum | 4 +- services/observability/model_alert.go | 56 + .../model_alert_config_receivers_response.go | 33 + .../model_alert_config_route_response.go | 33 + services/observability/model_alert_group.go | 43 + .../model_alert_group_response.go | 33 + .../model_alert_groups_response.go | 33 + services/observability/model_alert_record.go | 43 + .../model_alert_record_response.go | 33 + .../model_alert_records_response.go | 33 + services/observability/model_alert_rule.go | 64 + .../observability/model_alert_rule_record.go | 75 + .../model_alert_rule_response.go | 33 + .../model_alert_rules_response.go | 33 + .../observability/model_backup_response.go | 63 + .../model_backup_retention_response.go | 59 + .../observability/model_backup_schedule.go | 32 + .../model_backup_schedule_post_response.go | 32 + .../model_backup_schedule_response.go | 67 + services/observability/model_basic_auth.go | 32 + .../model_cert_check_child_response.go | 32 + .../model_cert_check_response.go | 44 + ...el_create_alert_config_receiver_payload.go | 56 + ...ig_receiver_payload_email_configs_inner.go | 84 + ...receiver_payload_opsgenie_configs_inner.go | 64 + ...receiver_payload_web_hook_configs_inner.go | 56 + ...model_create_alert_config_route_payload.go | 125 +- ...alert_config_route_payload_routes_inner.go | 125 +- .../model_create_alert_record_payload.go | 43 + .../model_create_alertgroups_payload.go | 43 + .../model_create_alertrules_payload.go | 64 + .../model_create_backup_schedule_payload.go | 23 + .../model_create_cert_check_400_response.go | 15 + .../model_create_cert_check_payload.go | 23 + .../model_create_credentials_payload.go | 23 + .../model_create_credentials_response.go | 33 + ...odel_create_elasticsearch_check_payload.go | 43 + .../model_create_http_check_payload.go | 23 + .../model_create_instance_payload.go | 55 + .../model_create_instance_response.go | 41 + .../model_create_logs_alertgroups_payload.go | 43 + ...te_logs_alertgroups_payload_rules_inner.go | 75 + .../model_create_mongodb_check_payload.go | 23 + .../model_create_mysql_check_payload.go | 23 + .../model_create_network_check_payload.go | 23 + .../model_create_ping_check_payload.go | 23 + .../model_create_postgresql_check_payload.go | 23 + .../model_create_rabbitmq_check_payload.go | 43 + .../model_create_redis_check_payload.go | 43 + .../model_create_scrape_config_payload.go | 198 +- services/observability/model_credentials.go | 42 + .../model_credentials_remote_write_config.go | 43 + ...redentials_remote_write_delete_response.go | 33 + .../model_delete_scrape_config_response.go | 33 + ...odel_elasticsearch_check_child_response.go | 52 + .../model_elasticsearch_check_response.go | 44 + services/observability/model_email_config.go | 84 + services/observability/model_error.go | 34 + .../model_get_alert_configs_response.go | 33 + .../model_get_credentials_response.go | 52 + .../model_get_instance_response.go | 177 +- ..._get_metrics_storage_retention_response.go | 50 + .../model_get_scrape_config_response.go | 33 + services/observability/model_global.go | 93 + .../observability/model_grafana_configs.go | 56 + services/observability/model_grafana_oauth.go | 131 + .../model_http_check_child_response.go | 32 + .../model_http_check_response.go | 44 + .../observability/model_http_service_sd.go | 66 + services/observability/model_inhibit_rules.go | 90 + services/observability/model_instance.go | 164 +- .../observability/model_instance_response.go | 23 + .../model_instance_sensitive_data.go | 293 +- services/observability/model_job.go | 199 +- .../observability/model_list_acl_response.go | 33 + .../model_list_credentials_response.go | 33 + .../model_list_instances_response.go | 33 + .../model_list_scrape_configs_response.go | 33 + services/observability/model_logs_config.go | 23 + .../model_logs_config_response.go | 33 + services/observability/model_message.go | 23 + .../model_metrics_relabel_config.go | 117 +- .../model_mongodb_check_child_response.go | 32 + .../model_mongodb_check_response.go | 44 + .../model_mysql_check_child_response.go | 32 + .../model_mysql_check_response.go | 44 + .../model_network_check_child_response.go | 32 + .../model_network_check_response.go | 44 + services/observability/model_o_auth2.go | 63 + services/observability/model_offerings.go | 70 + .../observability/model_opsgenie_config.go | 64 + ...tial_update_alert_records_request_inner.go | 43 + ...partial_update_alertrules_request_inner.go | 64 + ...ial_update_scrape_configs_request_inner.go | 198 +- ...scrape_configs_request_inner_basic_auth.go | 33 + ...igs_request_inner_http_sd_configs_inner.go | 66 + ...uest_inner_http_sd_configs_inner_oauth2.go | 63 + ...http_sd_configs_inner_oauth2_tls_config.go | 24 + ...est_inner_metrics_relabel_configs_inner.go | 117 +- ...figs_request_inner_static_configs_inner.go | 35 + .../observability/model_permission_denied.go | 23 + .../model_ping_check_child_response.go | 32 + .../model_ping_check_response.go | 44 + services/observability/model_plan.go | 235 + services/observability/model_plan_model.go | 203 + .../observability/model_plans_response.go | 33 + .../model_postgresql_check_child_response.go | 32 + .../model_postgresql_check_response.go | 44 + .../model_project_instance_full.go | 117 +- .../model_rabbit_mq_check_child_response.go | 52 + .../model_rabbitmq_check_response.go | 44 + services/observability/model_receiver.go | 33 + services/observability/model_receivers.go | 56 + .../model_redis_check_child_response.go | 52 + .../model_redis_check_response.go | 44 + services/observability/model_route.go | 119 + .../observability/model_route_serializer.go | 119 + .../model_scrape_configs_response.go | 33 + .../observability/model_service_keys_list.go | 53 + .../observability/model_static_configs.go | 35 + services/observability/model_tls_config.go | 24 + services/observability/model_trace_config.go | 23 + .../model_traces_config_response.go | 33 + .../observability/model_update_acl_payload.go | 24 + ...el_update_alert_config_receiver_payload.go | 56 + ...model_update_alert_config_route_payload.go | 125 +- .../model_update_alert_configs_payload.go | 56 + ...del_update_alert_configs_payload_global.go | 93 + ...ate_alert_configs_payload_inhibit_rules.go | 68 + ...e_alert_configs_payload_receivers_inner.go | 56 + ...odel_update_alert_configs_payload_route.go | 114 +- ...lert_configs_payload_route_routes_inner.go | 125 +- .../model_update_alert_configs_response.go | 33 + .../model_update_alert_record_payload.go | 34 + .../model_update_alertgroup_payload.go | 34 + .../model_update_alertgroups_request_inner.go | 43 + ...e_alertgroups_request_inner_rules_inner.go | 75 + .../model_update_alertrule_payload.go | 55 + ...credentials_remote_write_config_payload.go | 24 + .../model_update_grafana_configs_payload.go | 46 + ...e_grafana_configs_payload_generic_oauth.go | 131 + .../model_update_instance_payload.go | 55 + .../model_update_logs_alertgroup_payload.go | 34 + .../model_update_logs_configs_payload.go | 23 + ...pdate_metrics_storage_retention_payload.go | 41 + .../model_update_scrape_config_payload.go | 166 +- ...ape_config_payload_static_configs_inner.go | 35 + .../model_update_traces_configs_payload.go | 23 + services/observability/model_web_hook.go | 56 + services/observability/oas_commit | 2 +- services/observability/utils.go | 81 + services/observability/v1api/api_default.go | 17469 ++++++++++++++++ .../observability/v1api/api_default_mock.go | 2297 ++ services/observability/v1api/client.go | 659 + services/observability/v1api/configuration.go | 41 + services/observability/v1api/model_alert.go | 257 + .../model_alert_config_receivers_response.go | 185 + .../model_alert_config_route_response.go | 185 + .../observability/v1api/model_alert_group.go | 225 + .../v1api/model_alert_group_response.go | 185 + .../v1api/model_alert_groups_response.go | 185 + .../observability/v1api/model_alert_record.go | 221 + .../v1api/model_alert_record_response.go | 185 + .../v1api/model_alert_records_response.go | 185 + .../observability/v1api/model_alert_rule.go | 297 + .../v1api/model_alert_rule_record.go | 337 + .../v1api/model_alert_rule_response.go | 185 + .../v1api/model_alert_rules_response.go | 185 + .../v1api/model_backup_response.go | 269 + .../v1api/model_backup_retention_response.go | 269 + .../v1api/model_backup_schedule.go | 185 + .../model_backup_schedule_post_response.go | 185 + .../v1api/model_backup_schedule_response.go | 301 + .../observability/v1api/model_basic_auth.go | 185 + .../v1api/model_cert_check_child_response.go | 185 + .../v1api/model_cert_check_response.go | 221 + ...el_create_alert_config_receiver_payload.go | 268 + ...ig_receiver_payload_email_configs_inner.go | 352 + ...receiver_payload_opsgenie_configs_inner.go | 278 + ...receiver_payload_web_hook_configs_inner.go | 249 + ...model_create_alert_config_route_payload.go | 515 + ...alert_config_route_payload_routes_inner.go | 470 + .../model_create_alert_record_payload.go | 224 + .../v1api/model_create_alertgroups_payload.go | 228 + ..._create_alertgroups_payload_rules_inner.go | 347 + .../v1api/model_create_alertrules_payload.go | 302 + .../model_create_backup_schedule_payload.go | 158 + .../model_create_cert_check_400_response.go | 160 + .../v1api/model_create_cert_check_payload.go | 158 + .../v1api/model_create_credentials_payload.go | 126 + .../model_create_credentials_response.go | 185 + ...create_elasticsearch_check_400_response.go | 160 + ...odel_create_elasticsearch_check_payload.go | 232 + .../model_create_http_check_400_response.go | 160 + .../v1api/model_create_http_check_payload.go | 158 + .../v1api/model_create_instance_payload.go | 273 + .../v1api/model_create_instance_response.go | 213 + .../model_create_logs_alertgroups_payload.go | 228 + ...te_logs_alertgroups_payload_rules_inner.go | 347 + ...model_create_mongodb_check_400_response.go | 160 + .../model_create_mongodb_check_payload.go | 158 + .../model_create_mysql_check_400_response.go | 160 + .../v1api/model_create_mysql_check_payload.go | 158 + ...model_create_network_check_400_response.go | 160 + .../model_create_network_check_payload.go | 158 + .../model_create_ping_check_400_response.go | 160 + .../v1api/model_create_ping_check_payload.go | 158 + ...el_create_postgresql_check_400_response.go | 160 + .../model_create_postgresql_check_payload.go | 158 + ...odel_create_rabbitmq_check_400_response.go | 160 + .../model_create_rabbitmq_check_payload.go | 232 + .../model_create_redis_check_400_response.go | 160 + .../v1api/model_create_redis_check_payload.go | 232 + .../model_create_scrape_config_payload.go | 690 + ...create_scrape_config_payload_basic_auth.go | 163 + ...pe_config_payload_http_sd_configs_inner.go | 307 + ...ayload_http_sd_configs_inner_basic_auth.go | 163 + ...ig_payload_http_sd_configs_inner_oauth2.go | 289 + ...http_sd_configs_inner_oauth2_tls_config.go | 130 + ...ayload_http_sd_configs_inner_tls_config.go | 130 + ...g_payload_metrics_relabel_configs_inner.go | 364 + ...del_create_scrape_config_payload_oauth2.go | 289 + ...scrape_config_payload_oauth2_tls_config.go | 130 + ...ape_config_payload_static_configs_inner.go | 195 + ...create_scrape_config_payload_tls_config.go | 130 + .../observability/v1api/model_credentials.go | 221 + .../model_credentials_remote_write_config.go | 213 + ...redentials_remote_write_delete_response.go | 185 + .../model_delete_scrape_config_response.go | 185 + ...odel_elasticsearch_check_child_response.go | 257 + .../model_elasticsearch_check_response.go | 221 + .../observability/v1api/model_email_config.go | 377 + services/observability/v1api/model_error.go | 193 + .../v1api/model_get_alert_configs_response.go | 185 + .../v1api/model_get_credentials_response.go | 249 + .../v1api/model_get_instance_response.go | 552 + ..._get_metrics_storage_retention_response.go | 241 + .../v1api/model_get_scrape_config_response.go | 185 + services/observability/v1api/model_global.go | 381 + .../v1api/model_grafana_configs.go | 265 + .../v1api/model_grafana_oauth.go | 517 + .../v1api/model_http_check_child_response.go | 185 + .../v1api/model_http_check_response.go | 221 + .../v1api/model_http_service_sd.go | 305 + .../v1api/model_inhibit_rules.go | 341 + .../observability/v1api/model_instance.go | 425 + .../v1api/model_instance_response.go | 157 + .../v1api/model_instance_sensitive_data.go | 975 + services/observability/v1api/model_job.go | 689 + .../v1api/model_list_acl_response.go | 185 + .../v1api/model_list_credentials_response.go | 185 + .../v1api/model_list_instances_response.go | 185 + .../model_list_scrape_configs_response.go | 185 + .../observability/v1api/model_logs_config.go | 157 + .../v1api/model_logs_config_response.go | 185 + services/observability/v1api/model_message.go | 157 + .../v1api/model_metrics_relabel_config.go | 389 + .../model_mongodb_check_child_response.go | 185 + .../v1api/model_mongodb_check_response.go | 221 + .../v1api/model_mysql_check_child_response.go | 185 + .../v1api/model_mysql_check_response.go | 221 + .../model_network_check_child_response.go | 185 + .../v1api/model_network_check_response.go | 221 + services/observability/v1api/model_o_auth2.go | 285 + .../observability/v1api/model_offerings.go | 297 + .../v1api/model_opsgenie_config.go | 273 + ...tial_update_alert_records_request_inner.go | 224 + ...artial_update_alertgroups_request_inner.go | 228 + ...e_alertgroups_request_inner_rules_inner.go | 347 + ...partial_update_alertrules_request_inner.go | 302 + ...ial_update_scrape_configs_request_inner.go | 690 + ...scrape_configs_request_inner_basic_auth.go | 163 + ...igs_request_inner_http_sd_configs_inner.go | 307 + ..._inner_http_sd_configs_inner_basic_auth.go | 163 + ...uest_inner_http_sd_configs_inner_oauth2.go | 289 + ...http_sd_configs_inner_oauth2_tls_config.go | 130 + ..._inner_http_sd_configs_inner_tls_config.go | 130 + ...est_inner_metrics_relabel_configs_inner.go | 364 + ...ate_scrape_configs_request_inner_oauth2.go | 289 + ...configs_request_inner_oauth2_tls_config.go | 130 + ...figs_request_inner_static_configs_inner.go | 195 + ...scrape_configs_request_inner_tls_config.go | 130 + .../v1api/model_permission_denied.go | 157 + .../v1api/model_ping_check_child_response.go | 185 + .../v1api/model_ping_check_response.go | 221 + services/observability/v1api/model_plan.go | 805 + .../observability/v1api/model_plan_model.go | 685 + .../v1api/model_plans_response.go | 185 + .../model_postgresql_check_child_response.go | 185 + .../v1api/model_postgresql_check_response.go | 221 + .../v1api/model_project_instance_full.go | 352 + .../model_rabbit_mq_check_child_response.go | 257 + .../v1api/model_rabbitmq_check_response.go | 221 + .../observability/v1api/model_receiver.go | 185 + .../observability/v1api/model_receivers.go | 265 + .../v1api/model_redis_check_child_response.go | 257 + .../v1api/model_redis_check_response.go | 221 + services/observability/v1api/model_route.go | 497 + .../v1api/model_route_serializer.go | 497 + .../v1api/model_scrape_configs_response.go | 185 + .../v1api/model_service_keys_list.go | 257 + .../v1api/model_static_configs.go | 193 + .../observability/v1api/model_tls_config.go | 129 + .../observability/v1api/model_trace_config.go | 157 + .../v1api/model_traces_config_response.go | 185 + .../v1api/model_update_acl_payload.go | 158 + ...el_update_alert_config_receiver_payload.go | 268 + ...ig_receiver_payload_email_configs_inner.go | 352 + ...receiver_payload_opsgenie_configs_inner.go | 278 + ...receiver_payload_web_hook_configs_inner.go | 249 + ...model_update_alert_config_route_payload.go | 515 + ...alert_config_route_payload_routes_inner.go | 470 + .../model_update_alert_configs_payload.go | 258 + ...del_update_alert_configs_payload_global.go | 389 + ...ate_alert_configs_payload_inhibit_rules.go | 274 + ...e_alert_configs_payload_receivers_inner.go | 268 + ...oad_receivers_inner_email_configs_inner.go | 352 + ..._receivers_inner_opsgenie_configs_inner.go | 278 + ..._receivers_inner_web_hook_configs_inner.go | 249 + ...odel_update_alert_configs_payload_route.go | 478 + ...lert_configs_payload_route_routes_inner.go | 470 + .../model_update_alert_configs_response.go | 185 + .../model_update_alert_record_payload.go | 195 + .../v1api/model_update_alertgroup_payload.go | 199 + ...l_update_alertgroup_payload_rules_inner.go | 347 + .../model_update_alertgroups_request_inner.go | 228 + ...e_alertgroups_request_inner_rules_inner.go | 347 + .../v1api/model_update_alertrule_payload.go | 273 + ...credentials_remote_write_config_payload.go | 126 + .../model_update_grafana_configs_payload.go | 199 + ...e_grafana_configs_payload_generic_oauth.go | 529 + .../v1api/model_update_instance_payload.go | 241 + .../model_update_logs_alertgroup_payload.go | 199 + ...ate_logs_alertgroup_payload_rules_inner.go | 347 + .../model_update_logs_configs_payload.go | 158 + ...pdate_metrics_storage_retention_payload.go | 216 + .../model_update_scrape_config_payload.go | 578 + ...update_scrape_config_payload_basic_auth.go | 163 + ...g_payload_metrics_relabel_configs_inner.go | 364 + ...ape_config_payload_static_configs_inner.go | 195 + ...update_scrape_config_payload_tls_config.go | 130 + .../model_update_traces_configs_payload.go | 158 + .../observability/v1api/model_web_hook.go | 277 + services/observability/v1api/response.go | 48 + services/observability/v1api/utils.go | 362 + services/observability/wait/deprecation.go | 2 + 350 files changed, 79448 insertions(+), 196 deletions(-) create mode 100644 services/observability/v1api/api_default.go create mode 100644 services/observability/v1api/api_default_mock.go create mode 100644 services/observability/v1api/client.go create mode 100644 services/observability/v1api/configuration.go create mode 100644 services/observability/v1api/model_alert.go create mode 100644 services/observability/v1api/model_alert_config_receivers_response.go create mode 100644 services/observability/v1api/model_alert_config_route_response.go create mode 100644 services/observability/v1api/model_alert_group.go create mode 100644 services/observability/v1api/model_alert_group_response.go create mode 100644 services/observability/v1api/model_alert_groups_response.go create mode 100644 services/observability/v1api/model_alert_record.go create mode 100644 services/observability/v1api/model_alert_record_response.go create mode 100644 services/observability/v1api/model_alert_records_response.go create mode 100644 services/observability/v1api/model_alert_rule.go create mode 100644 services/observability/v1api/model_alert_rule_record.go create mode 100644 services/observability/v1api/model_alert_rule_response.go create mode 100644 services/observability/v1api/model_alert_rules_response.go create mode 100644 services/observability/v1api/model_backup_response.go create mode 100644 services/observability/v1api/model_backup_retention_response.go create mode 100644 services/observability/v1api/model_backup_schedule.go create mode 100644 services/observability/v1api/model_backup_schedule_post_response.go create mode 100644 services/observability/v1api/model_backup_schedule_response.go create mode 100644 services/observability/v1api/model_basic_auth.go create mode 100644 services/observability/v1api/model_cert_check_child_response.go create mode 100644 services/observability/v1api/model_cert_check_response.go create mode 100644 services/observability/v1api/model_create_alert_config_receiver_payload.go create mode 100644 services/observability/v1api/model_create_alert_config_receiver_payload_email_configs_inner.go create mode 100644 services/observability/v1api/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go create mode 100644 services/observability/v1api/model_create_alert_config_receiver_payload_web_hook_configs_inner.go create mode 100644 services/observability/v1api/model_create_alert_config_route_payload.go create mode 100644 services/observability/v1api/model_create_alert_config_route_payload_routes_inner.go create mode 100644 services/observability/v1api/model_create_alert_record_payload.go create mode 100644 services/observability/v1api/model_create_alertgroups_payload.go create mode 100644 services/observability/v1api/model_create_alertgroups_payload_rules_inner.go create mode 100644 services/observability/v1api/model_create_alertrules_payload.go create mode 100644 services/observability/v1api/model_create_backup_schedule_payload.go create mode 100644 services/observability/v1api/model_create_cert_check_400_response.go create mode 100644 services/observability/v1api/model_create_cert_check_payload.go create mode 100644 services/observability/v1api/model_create_credentials_payload.go create mode 100644 services/observability/v1api/model_create_credentials_response.go create mode 100644 services/observability/v1api/model_create_elasticsearch_check_400_response.go create mode 100644 services/observability/v1api/model_create_elasticsearch_check_payload.go create mode 100644 services/observability/v1api/model_create_http_check_400_response.go create mode 100644 services/observability/v1api/model_create_http_check_payload.go create mode 100644 services/observability/v1api/model_create_instance_payload.go create mode 100644 services/observability/v1api/model_create_instance_response.go create mode 100644 services/observability/v1api/model_create_logs_alertgroups_payload.go create mode 100644 services/observability/v1api/model_create_logs_alertgroups_payload_rules_inner.go create mode 100644 services/observability/v1api/model_create_mongodb_check_400_response.go create mode 100644 services/observability/v1api/model_create_mongodb_check_payload.go create mode 100644 services/observability/v1api/model_create_mysql_check_400_response.go create mode 100644 services/observability/v1api/model_create_mysql_check_payload.go create mode 100644 services/observability/v1api/model_create_network_check_400_response.go create mode 100644 services/observability/v1api/model_create_network_check_payload.go create mode 100644 services/observability/v1api/model_create_ping_check_400_response.go create mode 100644 services/observability/v1api/model_create_ping_check_payload.go create mode 100644 services/observability/v1api/model_create_postgresql_check_400_response.go create mode 100644 services/observability/v1api/model_create_postgresql_check_payload.go create mode 100644 services/observability/v1api/model_create_rabbitmq_check_400_response.go create mode 100644 services/observability/v1api/model_create_rabbitmq_check_payload.go create mode 100644 services/observability/v1api/model_create_redis_check_400_response.go create mode 100644 services/observability/v1api/model_create_redis_check_payload.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_basic_auth.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_basic_auth.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_tls_config.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_metrics_relabel_configs_inner.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_oauth2.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_oauth2_tls_config.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_static_configs_inner.go create mode 100644 services/observability/v1api/model_create_scrape_config_payload_tls_config.go create mode 100644 services/observability/v1api/model_credentials.go create mode 100644 services/observability/v1api/model_credentials_remote_write_config.go create mode 100644 services/observability/v1api/model_credentials_remote_write_delete_response.go create mode 100644 services/observability/v1api/model_delete_scrape_config_response.go create mode 100644 services/observability/v1api/model_elasticsearch_check_child_response.go create mode 100644 services/observability/v1api/model_elasticsearch_check_response.go create mode 100644 services/observability/v1api/model_email_config.go create mode 100644 services/observability/v1api/model_error.go create mode 100644 services/observability/v1api/model_get_alert_configs_response.go create mode 100644 services/observability/v1api/model_get_credentials_response.go create mode 100644 services/observability/v1api/model_get_instance_response.go create mode 100644 services/observability/v1api/model_get_metrics_storage_retention_response.go create mode 100644 services/observability/v1api/model_get_scrape_config_response.go create mode 100644 services/observability/v1api/model_global.go create mode 100644 services/observability/v1api/model_grafana_configs.go create mode 100644 services/observability/v1api/model_grafana_oauth.go create mode 100644 services/observability/v1api/model_http_check_child_response.go create mode 100644 services/observability/v1api/model_http_check_response.go create mode 100644 services/observability/v1api/model_http_service_sd.go create mode 100644 services/observability/v1api/model_inhibit_rules.go create mode 100644 services/observability/v1api/model_instance.go create mode 100644 services/observability/v1api/model_instance_response.go create mode 100644 services/observability/v1api/model_instance_sensitive_data.go create mode 100644 services/observability/v1api/model_job.go create mode 100644 services/observability/v1api/model_list_acl_response.go create mode 100644 services/observability/v1api/model_list_credentials_response.go create mode 100644 services/observability/v1api/model_list_instances_response.go create mode 100644 services/observability/v1api/model_list_scrape_configs_response.go create mode 100644 services/observability/v1api/model_logs_config.go create mode 100644 services/observability/v1api/model_logs_config_response.go create mode 100644 services/observability/v1api/model_message.go create mode 100644 services/observability/v1api/model_metrics_relabel_config.go create mode 100644 services/observability/v1api/model_mongodb_check_child_response.go create mode 100644 services/observability/v1api/model_mongodb_check_response.go create mode 100644 services/observability/v1api/model_mysql_check_child_response.go create mode 100644 services/observability/v1api/model_mysql_check_response.go create mode 100644 services/observability/v1api/model_network_check_child_response.go create mode 100644 services/observability/v1api/model_network_check_response.go create mode 100644 services/observability/v1api/model_o_auth2.go create mode 100644 services/observability/v1api/model_offerings.go create mode 100644 services/observability/v1api/model_opsgenie_config.go create mode 100644 services/observability/v1api/model_partial_update_alert_records_request_inner.go create mode 100644 services/observability/v1api/model_partial_update_alertgroups_request_inner.go create mode 100644 services/observability/v1api/model_partial_update_alertgroups_request_inner_rules_inner.go create mode 100644 services/observability/v1api/model_partial_update_alertrules_request_inner.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_basic_auth.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_basic_auth.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_tls_config.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2_tls_config.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_static_configs_inner.go create mode 100644 services/observability/v1api/model_partial_update_scrape_configs_request_inner_tls_config.go create mode 100644 services/observability/v1api/model_permission_denied.go create mode 100644 services/observability/v1api/model_ping_check_child_response.go create mode 100644 services/observability/v1api/model_ping_check_response.go create mode 100644 services/observability/v1api/model_plan.go create mode 100644 services/observability/v1api/model_plan_model.go create mode 100644 services/observability/v1api/model_plans_response.go create mode 100644 services/observability/v1api/model_postgresql_check_child_response.go create mode 100644 services/observability/v1api/model_postgresql_check_response.go create mode 100644 services/observability/v1api/model_project_instance_full.go create mode 100644 services/observability/v1api/model_rabbit_mq_check_child_response.go create mode 100644 services/observability/v1api/model_rabbitmq_check_response.go create mode 100644 services/observability/v1api/model_receiver.go create mode 100644 services/observability/v1api/model_receivers.go create mode 100644 services/observability/v1api/model_redis_check_child_response.go create mode 100644 services/observability/v1api/model_redis_check_response.go create mode 100644 services/observability/v1api/model_route.go create mode 100644 services/observability/v1api/model_route_serializer.go create mode 100644 services/observability/v1api/model_scrape_configs_response.go create mode 100644 services/observability/v1api/model_service_keys_list.go create mode 100644 services/observability/v1api/model_static_configs.go create mode 100644 services/observability/v1api/model_tls_config.go create mode 100644 services/observability/v1api/model_trace_config.go create mode 100644 services/observability/v1api/model_traces_config_response.go create mode 100644 services/observability/v1api/model_update_acl_payload.go create mode 100644 services/observability/v1api/model_update_alert_config_receiver_payload.go create mode 100644 services/observability/v1api/model_update_alert_config_receiver_payload_email_configs_inner.go create mode 100644 services/observability/v1api/model_update_alert_config_receiver_payload_opsgenie_configs_inner.go create mode 100644 services/observability/v1api/model_update_alert_config_receiver_payload_web_hook_configs_inner.go create mode 100644 services/observability/v1api/model_update_alert_config_route_payload.go create mode 100644 services/observability/v1api/model_update_alert_config_route_payload_routes_inner.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_global.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_inhibit_rules.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_receivers_inner.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_receivers_inner_email_configs_inner.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_receivers_inner_opsgenie_configs_inner.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_receivers_inner_web_hook_configs_inner.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_route.go create mode 100644 services/observability/v1api/model_update_alert_configs_payload_route_routes_inner.go create mode 100644 services/observability/v1api/model_update_alert_configs_response.go create mode 100644 services/observability/v1api/model_update_alert_record_payload.go create mode 100644 services/observability/v1api/model_update_alertgroup_payload.go create mode 100644 services/observability/v1api/model_update_alertgroup_payload_rules_inner.go create mode 100644 services/observability/v1api/model_update_alertgroups_request_inner.go create mode 100644 services/observability/v1api/model_update_alertgroups_request_inner_rules_inner.go create mode 100644 services/observability/v1api/model_update_alertrule_payload.go create mode 100644 services/observability/v1api/model_update_credentials_remote_write_config_payload.go create mode 100644 services/observability/v1api/model_update_grafana_configs_payload.go create mode 100644 services/observability/v1api/model_update_grafana_configs_payload_generic_oauth.go create mode 100644 services/observability/v1api/model_update_instance_payload.go create mode 100644 services/observability/v1api/model_update_logs_alertgroup_payload.go create mode 100644 services/observability/v1api/model_update_logs_alertgroup_payload_rules_inner.go create mode 100644 services/observability/v1api/model_update_logs_configs_payload.go create mode 100644 services/observability/v1api/model_update_metrics_storage_retention_payload.go create mode 100644 services/observability/v1api/model_update_scrape_config_payload.go create mode 100644 services/observability/v1api/model_update_scrape_config_payload_basic_auth.go create mode 100644 services/observability/v1api/model_update_scrape_config_payload_metrics_relabel_configs_inner.go create mode 100644 services/observability/v1api/model_update_scrape_config_payload_static_configs_inner.go create mode 100644 services/observability/v1api/model_update_scrape_config_payload_tls_config.go create mode 100644 services/observability/v1api/model_update_traces_configs_payload.go create mode 100644 services/observability/v1api/model_web_hook.go create mode 100644 services/observability/v1api/response.go create mode 100644 services/observability/v1api/utils.go create mode 100644 services/observability/wait/deprecation.go diff --git a/services/observability/api_default.go b/services/observability/api_default.go index 382a85f14..83d75385a 100644 --- a/services/observability/api_default.go +++ b/services/observability/api_default.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,6 +24,7 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApi interface { /* CreateAlertConfigReceiver Method for CreateAlertConfigReceiver @@ -32,6 +34,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateAlertConfigReceiverRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigReceiverRequest /* @@ -42,6 +46,7 @@ type DefaultApi interface { @param projectId @return AlertConfigReceiversResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigReceiversResponse, error) /* @@ -52,6 +57,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateAlertConfigRouteRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertConfigRoute(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigRouteRequest /* @@ -62,6 +69,7 @@ type DefaultApi interface { @param projectId @return AlertConfigRouteResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigRouteResponse, error) /* @@ -73,6 +81,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateAlertRecordRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertRecord(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertRecordRequest /* @@ -84,6 +94,7 @@ type DefaultApi interface { @param projectId @return AlertRecordsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertRecordExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) /* @@ -94,6 +105,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateAlertgroupsRequest /* @@ -104,6 +117,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -115,6 +129,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateAlertrulesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertrulesRequest /* @@ -126,6 +142,7 @@ type DefaultApi interface { @param projectId @return AlertRulesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) /* @@ -136,6 +153,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateBackupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest /* @@ -146,6 +165,7 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateBackupExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) /* @@ -156,6 +176,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateBackupScheduleRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateBackupSchedule(ctx context.Context, instanceId string, projectId string) ApiCreateBackupScheduleRequest /* @@ -166,6 +188,7 @@ type DefaultApi interface { @param projectId @return BackupSchedulePostResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateBackupScheduleExecute(ctx context.Context, instanceId string, projectId string) (*BackupSchedulePostResponse, error) /* @@ -176,6 +199,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateCertCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateCertCheck(ctx context.Context, instanceId string, projectId string) ApiCreateCertCheckRequest /* @@ -186,6 +211,7 @@ type DefaultApi interface { @param projectId @return CertCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateCertCheckExecute(ctx context.Context, instanceId string, projectId string) (*CertCheckResponse, error) /* @@ -196,6 +222,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateCredentialsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateCredentials(ctx context.Context, instanceId string, projectId string) ApiCreateCredentialsRequest /* @@ -206,6 +234,7 @@ type DefaultApi interface { @param projectId @return CreateCredentialsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateCredentialsExecute(ctx context.Context, instanceId string, projectId string) (*CreateCredentialsResponse, error) /* @@ -216,6 +245,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateElasticsearchCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateElasticsearchCheck(ctx context.Context, instanceId string, projectId string) ApiCreateElasticsearchCheckRequest /* @@ -226,6 +257,7 @@ type DefaultApi interface { @param projectId @return ElasticsearchCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateElasticsearchCheckExecute(ctx context.Context, instanceId string, projectId string) (*ElasticsearchCheckResponse, error) /* @@ -236,6 +268,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateHttpCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateHttpCheck(ctx context.Context, instanceId string, projectId string) ApiCreateHttpCheckRequest /* @@ -246,6 +280,7 @@ type DefaultApi interface { @param projectId @return HttpCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateHttpCheckExecute(ctx context.Context, instanceId string, projectId string) (*HttpCheckResponse, error) /* @@ -255,6 +290,8 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiCreateInstanceRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest /* @@ -264,6 +301,7 @@ type DefaultApi interface { @param projectId @return CreateInstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateInstanceExecute(ctx context.Context, projectId string) (*CreateInstanceResponse, error) /* @@ -274,6 +312,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateLogsAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateLogsAlertgroupsRequest /* @@ -284,6 +324,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateLogsAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -294,6 +335,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateMongodbCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateMongodbCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMongodbCheckRequest /* @@ -304,6 +347,7 @@ type DefaultApi interface { @param projectId @return MongodbCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateMongodbCheckExecute(ctx context.Context, instanceId string, projectId string) (*MongodbCheckResponse, error) /* @@ -314,6 +358,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateMysqlCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateMysqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMysqlCheckRequest /* @@ -324,6 +370,7 @@ type DefaultApi interface { @param projectId @return MysqlCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateMysqlCheckExecute(ctx context.Context, instanceId string, projectId string) (*MysqlCheckResponse, error) /* @@ -334,6 +381,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateNetworkCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateNetworkCheck(ctx context.Context, instanceId string, projectId string) ApiCreateNetworkCheckRequest /* @@ -344,6 +393,7 @@ type DefaultApi interface { @param projectId @return NetworkCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateNetworkCheckExecute(ctx context.Context, instanceId string, projectId string) (*NetworkCheckResponse, error) /* @@ -354,6 +404,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreatePingCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreatePingCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePingCheckRequest /* @@ -364,6 +416,7 @@ type DefaultApi interface { @param projectId @return PingCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreatePingCheckExecute(ctx context.Context, instanceId string, projectId string) (*PingCheckResponse, error) /* @@ -374,6 +427,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreatePostgresqlCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreatePostgresqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePostgresqlCheckRequest /* @@ -384,6 +439,7 @@ type DefaultApi interface { @param projectId @return PostgresqlCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreatePostgresqlCheckExecute(ctx context.Context, instanceId string, projectId string) (*PostgresqlCheckResponse, error) /* @@ -394,6 +450,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateRabbitmqCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateRabbitmqCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRabbitmqCheckRequest /* @@ -404,6 +462,7 @@ type DefaultApi interface { @param projectId @return RabbitmqCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateRabbitmqCheckExecute(ctx context.Context, instanceId string, projectId string) (*RabbitmqCheckResponse, error) /* @@ -414,6 +473,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateRedisCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateRedisCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRedisCheckRequest /* @@ -424,6 +485,7 @@ type DefaultApi interface { @param projectId @return RedisCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateRedisCheckExecute(ctx context.Context, instanceId string, projectId string) (*RedisCheckResponse, error) /* @@ -434,6 +496,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiCreateScrapeConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateScrapeConfig(ctx context.Context, instanceId string, projectId string) ApiCreateScrapeConfigRequest /* @@ -444,6 +508,7 @@ type DefaultApi interface { @param projectId @return ScrapeConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateScrapeConfigExecute(ctx context.Context, instanceId string, projectId string) (*ScrapeConfigsResponse, error) /* @@ -455,6 +520,8 @@ type DefaultApi interface { @param projectId @param receiver @return ApiDeleteAlertConfigReceiverRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigReceiverRequest /* @@ -466,6 +533,7 @@ type DefaultApi interface { @param receiver @return AlertConfigReceiversResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigReceiversResponse, error) /* @@ -477,6 +545,8 @@ type DefaultApi interface { @param projectId @param receiver @return ApiDeleteAlertConfigRouteRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigRouteRequest /* @@ -488,6 +558,7 @@ type DefaultApi interface { @param receiver @return AlertConfigRouteResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigRouteResponse, error) /* @@ -500,6 +571,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteAlertRecordRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordRequest /* @@ -512,6 +585,7 @@ type DefaultApi interface { @param projectId @return AlertRecordsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertRecordExecute(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) /* @@ -523,6 +597,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteAlertRecordsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordsRequest /* @@ -534,6 +610,7 @@ type DefaultApi interface { @param projectId @return AlertRecordsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertRecordsExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) /* @@ -545,6 +622,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteAlertgroupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertgroupRequest /* @@ -556,6 +635,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -566,6 +646,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertgroups(ctx context.Context, instanceId string, projectId string) ApiDeleteAlertgroupsRequest /* @@ -576,6 +658,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -588,6 +671,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteAlertruleRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiDeleteAlertruleRequest /* @@ -600,6 +685,7 @@ type DefaultApi interface { @param projectId @return AlertRulesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertruleExecute(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) /* @@ -611,6 +697,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteAlertrulesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertrulesRequest /* @@ -622,6 +710,7 @@ type DefaultApi interface { @param projectId @return AlertRulesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) /* @@ -633,6 +722,8 @@ type DefaultApi interface { @param projectId @param id @return ApiDeleteCertCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCertCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteCertCheckRequest /* @@ -644,6 +735,7 @@ type DefaultApi interface { @param id @return CertCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCertCheckExecute(ctx context.Context, instanceId string, projectId string, id string) (*CertCheckResponse, error) /* @@ -655,6 +747,8 @@ type DefaultApi interface { @param projectId @param username @return ApiDeleteCredentialsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRequest /* @@ -666,6 +760,7 @@ type DefaultApi interface { @param username @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCredentialsExecute(ctx context.Context, instanceId string, projectId string, username string) (*Message, error) /* @@ -677,6 +772,8 @@ type DefaultApi interface { @param projectId @param username @return ApiDeleteCredentialsRemoteWriteConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRemoteWriteConfigRequest /* @@ -688,6 +785,7 @@ type DefaultApi interface { @param username @return CredentialsRemoteWriteDeleteResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCredentialsRemoteWriteConfigExecute(ctx context.Context, instanceId string, projectId string, username string) (*CredentialsRemoteWriteDeleteResponse, error) /* @@ -699,6 +797,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteElasticsearchCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteElasticsearchCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteElasticsearchCheckRequest /* @@ -710,6 +810,7 @@ type DefaultApi interface { @param projectId @return ElasticsearchCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteElasticsearchCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*ElasticsearchCheckResponse, error) /* @@ -721,6 +822,8 @@ type DefaultApi interface { @param projectId @param id @return ApiDeleteHttpCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteHttpCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteHttpCheckRequest /* @@ -732,6 +835,7 @@ type DefaultApi interface { @param id @return HttpCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteHttpCheckExecute(ctx context.Context, instanceId string, projectId string, id string) (*HttpCheckResponse, error) /* @@ -742,6 +846,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteInstanceRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteInstance(ctx context.Context, instanceId string, projectId string) ApiDeleteInstanceRequest /* @@ -752,6 +858,7 @@ type DefaultApi interface { @param projectId @return InstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteInstanceExecute(ctx context.Context, instanceId string, projectId string) (*InstanceResponse, error) /* @@ -763,6 +870,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteLogsAlertgroupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteLogsAlertgroupRequest /* @@ -774,6 +883,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteLogsAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -785,6 +895,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteMongodbCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteMongodbCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMongodbCheckRequest /* @@ -796,6 +908,7 @@ type DefaultApi interface { @param projectId @return MongodbCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteMongodbCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*MongodbCheckResponse, error) /* @@ -807,6 +920,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteMysqlCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteMysqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMysqlCheckRequest /* @@ -818,6 +933,7 @@ type DefaultApi interface { @param projectId @return MysqlCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteMysqlCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*MysqlCheckResponse, error) /* @@ -829,6 +945,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteNetworkCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteNetworkCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteNetworkCheckRequest /* @@ -840,6 +958,7 @@ type DefaultApi interface { @param projectId @return NetworkCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteNetworkCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*NetworkCheckResponse, error) /* @@ -851,6 +970,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeletePingCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeletePingCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePingCheckRequest /* @@ -862,6 +983,7 @@ type DefaultApi interface { @param projectId @return PingCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeletePingCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*PingCheckResponse, error) /* @@ -873,6 +995,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeletePostgresqlCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeletePostgresqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePostgresqlCheckRequest /* @@ -884,6 +1008,7 @@ type DefaultApi interface { @param projectId @return PostgresqlCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeletePostgresqlCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*PostgresqlCheckResponse, error) /* @@ -895,6 +1020,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteRabbitmqCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteRabbitmqCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRabbitmqCheckRequest /* @@ -906,6 +1033,7 @@ type DefaultApi interface { @param projectId @return RabbitmqCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteRabbitmqCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*RabbitmqCheckResponse, error) /* @@ -917,6 +1045,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteRedisCheckRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteRedisCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRedisCheckRequest /* @@ -928,6 +1058,7 @@ type DefaultApi interface { @param projectId @return RedisCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteRedisCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*RedisCheckResponse, error) /* @@ -939,6 +1070,8 @@ type DefaultApi interface { @param jobName @param projectId @return ApiDeleteScrapeConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiDeleteScrapeConfigRequest /* @@ -950,6 +1083,7 @@ type DefaultApi interface { @param projectId @return DeleteScrapeConfigResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteScrapeConfigExecute(ctx context.Context, instanceId string, jobName string, projectId string) (*DeleteScrapeConfigResponse, error) /* @@ -960,6 +1094,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiDeleteScrapeConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiDeleteScrapeConfigsRequest /* @@ -970,6 +1106,7 @@ type DefaultApi interface { @param projectId @return ScrapeConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteScrapeConfigsExecute(ctx context.Context, instanceId string, projectId string) (*ScrapeConfigsResponse, error) /* @@ -981,6 +1118,8 @@ type DefaultApi interface { @param projectId @param receiver @return ApiGetAlertConfigReceiverRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigReceiverRequest /* @@ -992,6 +1131,7 @@ type DefaultApi interface { @param receiver @return Receiver + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*Receiver, error) /* @@ -1003,6 +1143,8 @@ type DefaultApi interface { @param projectId @param receiver @return ApiGetAlertConfigRouteRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigRouteRequest /* @@ -1014,6 +1156,7 @@ type DefaultApi interface { @param receiver @return AlertConfigRouteResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigRouteResponse, error) /* @@ -1024,6 +1167,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetAlertConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiGetAlertConfigsRequest /* @@ -1034,6 +1179,7 @@ type DefaultApi interface { @param projectId @return GetAlertConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertConfigsExecute(ctx context.Context, instanceId string, projectId string) (*GetAlertConfigsResponse, error) /* @@ -1046,6 +1192,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetAlertRecordRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiGetAlertRecordRequest /* @@ -1058,6 +1206,7 @@ type DefaultApi interface { @param projectId @return AlertRecordResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertRecordExecute(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) (*AlertRecordResponse, error) /* @@ -1069,6 +1218,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetAlertgroupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetAlertgroupRequest /* @@ -1080,6 +1231,7 @@ type DefaultApi interface { @param projectId @return AlertGroupResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupResponse, error) /* @@ -1092,6 +1244,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetAlertruleRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiGetAlertruleRequest /* @@ -1104,6 +1258,7 @@ type DefaultApi interface { @param projectId @return AlertRuleResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetAlertruleExecute(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) (*AlertRuleResponse, error) /* @@ -1115,6 +1270,8 @@ type DefaultApi interface { @param projectId @param username @return ApiGetCredentialsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRequest /* @@ -1126,6 +1283,7 @@ type DefaultApi interface { @param username @return GetCredentialsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetCredentialsExecute(ctx context.Context, instanceId string, projectId string, username string) (*GetCredentialsResponse, error) /* @@ -1137,6 +1295,8 @@ type DefaultApi interface { @param projectId @param username @return ApiGetCredentialsRemoteWriteConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRemoteWriteConfigRequest /* @@ -1148,6 +1308,7 @@ type DefaultApi interface { @param username @return CredentialsRemoteWriteConfig + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetCredentialsRemoteWriteConfigExecute(ctx context.Context, instanceId string, projectId string, username string) (*CredentialsRemoteWriteConfig, error) /* @@ -1158,6 +1319,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetGrafanaConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiGetGrafanaConfigsRequest /* @@ -1168,6 +1331,7 @@ type DefaultApi interface { @param projectId @return GrafanaConfigs + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetGrafanaConfigsExecute(ctx context.Context, instanceId string, projectId string) (*GrafanaConfigs, error) /* @@ -1178,6 +1342,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetInstanceRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetInstance(ctx context.Context, instanceId string, projectId string) ApiGetInstanceRequest /* @@ -1188,6 +1354,7 @@ type DefaultApi interface { @param projectId @return GetInstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetInstanceExecute(ctx context.Context, instanceId string, projectId string) (*GetInstanceResponse, error) /* @@ -1199,6 +1366,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetLogsAlertgroupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetLogsAlertgroupRequest /* @@ -1210,6 +1379,7 @@ type DefaultApi interface { @param projectId @return AlertGroupResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetLogsAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupResponse, error) /* @@ -1220,6 +1390,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetLogsConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiGetLogsConfigsRequest /* @@ -1230,6 +1402,7 @@ type DefaultApi interface { @param projectId @return LogsConfigResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetLogsConfigsExecute(ctx context.Context, instanceId string, projectId string) (*LogsConfigResponse, error) /* @@ -1240,6 +1413,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetMetricsStorageRetentionRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiGetMetricsStorageRetentionRequest /* @@ -1250,6 +1425,7 @@ type DefaultApi interface { @param projectId @return GetMetricsStorageRetentionResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetMetricsStorageRetentionExecute(ctx context.Context, instanceId string, projectId string) (*GetMetricsStorageRetentionResponse, error) /* @@ -1261,6 +1437,8 @@ type DefaultApi interface { @param jobName @param projectId @return ApiGetScrapeConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiGetScrapeConfigRequest /* @@ -1272,6 +1450,7 @@ type DefaultApi interface { @param projectId @return GetScrapeConfigResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetScrapeConfigExecute(ctx context.Context, instanceId string, jobName string, projectId string) (*GetScrapeConfigResponse, error) /* @@ -1282,6 +1461,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiGetTracesConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiGetTracesConfigsRequest /* @@ -1292,6 +1473,7 @@ type DefaultApi interface { @param projectId @return TracesConfigResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetTracesConfigsExecute(ctx context.Context, instanceId string, projectId string) (*TracesConfigResponse, error) /* @@ -1302,6 +1484,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListACLRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListACL(ctx context.Context, instanceId string, projectId string) ApiListACLRequest /* @@ -1312,6 +1496,7 @@ type DefaultApi interface { @param projectId @return ListACLResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListACLExecute(ctx context.Context, instanceId string, projectId string) (*ListACLResponse, error) /* @@ -1322,6 +1507,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListAlertConfigReceiversRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertConfigReceivers(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigReceiversRequest /* @@ -1332,6 +1519,7 @@ type DefaultApi interface { @param projectId @return AlertConfigReceiversResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertConfigReceiversExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigReceiversResponse, error) /* @@ -1342,6 +1530,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListAlertConfigRoutesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertConfigRoutes(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigRoutesRequest /* @@ -1352,6 +1542,7 @@ type DefaultApi interface { @param projectId @return AlertConfigRouteResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertConfigRoutesExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigRouteResponse, error) /* @@ -1363,6 +1554,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListAlertRecordsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertRecordsRequest /* @@ -1374,6 +1567,7 @@ type DefaultApi interface { @param projectId @return AlertRecordsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertRecordsExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) /* @@ -1384,6 +1578,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListAlertgroupsRequest /* @@ -1394,6 +1590,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -1405,6 +1602,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListAlertrulesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertrulesRequest /* @@ -1416,6 +1615,7 @@ type DefaultApi interface { @param projectId @return AlertRulesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) /* @@ -1426,6 +1626,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListBackupRetentionsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackupRetentions(ctx context.Context, instanceId string, projectId string) ApiListBackupRetentionsRequest /* @@ -1436,6 +1638,7 @@ type DefaultApi interface { @param projectId @return BackupRetentionResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackupRetentionsExecute(ctx context.Context, instanceId string, projectId string) (*BackupRetentionResponse, error) /* @@ -1446,6 +1649,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListBackupSchedulesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackupSchedules(ctx context.Context, instanceId string, projectId string) ApiListBackupSchedulesRequest /* @@ -1456,6 +1661,7 @@ type DefaultApi interface { @param projectId @return BackupScheduleResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackupSchedulesExecute(ctx context.Context, instanceId string, projectId string) (*BackupScheduleResponse, error) /* @@ -1466,6 +1672,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListBackupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest /* @@ -1476,6 +1684,7 @@ type DefaultApi interface { @param projectId @return BackupResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackupsExecute(ctx context.Context, instanceId string, projectId string) (*BackupResponse, error) /* @@ -1486,6 +1695,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListCertChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListCertChecks(ctx context.Context, instanceId string, projectId string) ApiListCertChecksRequest /* @@ -1496,6 +1707,7 @@ type DefaultApi interface { @param projectId @return CertCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListCertChecksExecute(ctx context.Context, instanceId string, projectId string) (*CertCheckResponse, error) /* @@ -1506,6 +1718,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListCredentialsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListCredentials(ctx context.Context, instanceId string, projectId string) ApiListCredentialsRequest /* @@ -1516,6 +1730,7 @@ type DefaultApi interface { @param projectId @return ListCredentialsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListCredentialsExecute(ctx context.Context, instanceId string, projectId string) (*ListCredentialsResponse, error) /* @@ -1526,6 +1741,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListElasticsearchChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListElasticsearchChecks(ctx context.Context, instanceId string, projectId string) ApiListElasticsearchChecksRequest /* @@ -1536,6 +1753,7 @@ type DefaultApi interface { @param projectId @return ElasticsearchCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListElasticsearchChecksExecute(ctx context.Context, instanceId string, projectId string) (*ElasticsearchCheckResponse, error) /* @@ -1546,6 +1764,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListHttpChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListHttpChecks(ctx context.Context, instanceId string, projectId string) ApiListHttpChecksRequest /* @@ -1556,6 +1776,7 @@ type DefaultApi interface { @param projectId @return HttpCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListHttpChecksExecute(ctx context.Context, instanceId string, projectId string) (*HttpCheckResponse, error) /* @@ -1565,6 +1786,8 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListInstancesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest /* @@ -1574,6 +1797,7 @@ type DefaultApi interface { @param projectId @return ListInstancesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListInstancesExecute(ctx context.Context, projectId string) (*ListInstancesResponse, error) /* @@ -1584,6 +1808,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListLogsAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListLogsAlertgroupsRequest /* @@ -1594,6 +1820,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListLogsAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -1604,6 +1831,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListMongodbChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListMongodbChecks(ctx context.Context, instanceId string, projectId string) ApiListMongodbChecksRequest /* @@ -1614,6 +1843,7 @@ type DefaultApi interface { @param projectId @return MongodbCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListMongodbChecksExecute(ctx context.Context, instanceId string, projectId string) (*MongodbCheckResponse, error) /* @@ -1624,6 +1854,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListMysqlChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListMysqlChecks(ctx context.Context, instanceId string, projectId string) ApiListMysqlChecksRequest /* @@ -1634,6 +1866,7 @@ type DefaultApi interface { @param projectId @return MysqlCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListMysqlChecksExecute(ctx context.Context, instanceId string, projectId string) (*MysqlCheckResponse, error) /* @@ -1644,6 +1877,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListNetworkChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListNetworkChecks(ctx context.Context, instanceId string, projectId string) ApiListNetworkChecksRequest /* @@ -1654,6 +1889,7 @@ type DefaultApi interface { @param projectId @return NetworkCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListNetworkChecksExecute(ctx context.Context, instanceId string, projectId string) (*NetworkCheckResponse, error) /* @@ -1663,6 +1899,8 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListOfferingsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest /* @@ -1672,6 +1910,7 @@ type DefaultApi interface { @param projectId @return Offerings + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListOfferingsExecute(ctx context.Context, projectId string) (*Offerings, error) /* @@ -1682,6 +1921,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListPingChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListPingChecks(ctx context.Context, instanceId string, projectId string) ApiListPingChecksRequest /* @@ -1692,6 +1933,7 @@ type DefaultApi interface { @param projectId @return PingCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListPingChecksExecute(ctx context.Context, instanceId string, projectId string) (*PingCheckResponse, error) /* @@ -1701,6 +1943,8 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListPlansRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListPlans(ctx context.Context, projectId string) ApiListPlansRequest /* @@ -1710,6 +1954,7 @@ type DefaultApi interface { @param projectId @return PlansResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListPlansExecute(ctx context.Context, projectId string) (*PlansResponse, error) /* @@ -1720,6 +1965,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListPostgresqlChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListPostgresqlChecks(ctx context.Context, instanceId string, projectId string) ApiListPostgresqlChecksRequest /* @@ -1730,6 +1977,7 @@ type DefaultApi interface { @param projectId @return PostgresqlCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListPostgresqlChecksExecute(ctx context.Context, instanceId string, projectId string) (*PostgresqlCheckResponse, error) /* @@ -1740,6 +1988,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListRabbitmqChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListRabbitmqChecks(ctx context.Context, instanceId string, projectId string) ApiListRabbitmqChecksRequest /* @@ -1750,6 +2000,7 @@ type DefaultApi interface { @param projectId @return RabbitmqCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListRabbitmqChecksExecute(ctx context.Context, instanceId string, projectId string) (*RabbitmqCheckResponse, error) /* @@ -1760,6 +2011,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListRedisChecksRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListRedisChecks(ctx context.Context, instanceId string, projectId string) ApiListRedisChecksRequest /* @@ -1770,6 +2023,7 @@ type DefaultApi interface { @param projectId @return RedisCheckResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListRedisChecksExecute(ctx context.Context, instanceId string, projectId string) (*RedisCheckResponse, error) /* @@ -1780,6 +2034,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiListScrapeConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiListScrapeConfigsRequest /* @@ -1790,6 +2046,7 @@ type DefaultApi interface { @param projectId @return ListScrapeConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListScrapeConfigsExecute(ctx context.Context, instanceId string, projectId string) (*ListScrapeConfigsResponse, error) /* @@ -1801,6 +2058,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiPartialUpdateAlertRecordsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertRecordsRequest /* @@ -1812,6 +2071,7 @@ type DefaultApi interface { @param projectId @return AlertRecordsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateAlertRecordsExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) /* @@ -1822,6 +2082,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiPartialUpdateAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateAlertgroupsRequest /* @@ -1832,6 +2094,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -1843,6 +2106,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiPartialUpdateAlertrulesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertrulesRequest /* @@ -1854,6 +2119,7 @@ type DefaultApi interface { @param projectId @return AlertRulesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) /* @@ -1864,6 +2130,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiPartialUpdateScrapeConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateScrapeConfigsRequest /* @@ -1874,6 +2142,7 @@ type DefaultApi interface { @param projectId @return ScrapeConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateScrapeConfigsExecute(ctx context.Context, instanceId string, projectId string) (*ScrapeConfigsResponse, error) /* @@ -1885,6 +2154,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiRestoreBackupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ RestoreBackup(ctx context.Context, backupDate string, instanceId string, projectId string) ApiRestoreBackupRequest /* @@ -1896,6 +2167,7 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ RestoreBackupExecute(ctx context.Context, backupDate string, instanceId string, projectId string) (*Message, error) /* @@ -1906,6 +2178,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateACLRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateACL(ctx context.Context, instanceId string, projectId string) ApiUpdateACLRequest /* @@ -1916,6 +2190,7 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateACLExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) /* @@ -1927,6 +2202,8 @@ type DefaultApi interface { @param projectId @param receiver @return ApiUpdateAlertConfigReceiverRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigReceiverRequest /* @@ -1938,6 +2215,7 @@ type DefaultApi interface { @param receiver @return AlertConfigReceiversResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigReceiversResponse, error) /* @@ -1949,6 +2227,8 @@ type DefaultApi interface { @param projectId @param receiver @return ApiUpdateAlertConfigRouteRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigRouteRequest /* @@ -1960,6 +2240,7 @@ type DefaultApi interface { @param receiver @return AlertConfigRouteResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigRouteResponse, error) /* @@ -1970,6 +2251,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateAlertConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertConfigsRequest /* @@ -1980,6 +2263,7 @@ type DefaultApi interface { @param projectId @return UpdateAlertConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertConfigsExecute(ctx context.Context, instanceId string, projectId string) (*UpdateAlertConfigsResponse, error) /* @@ -1992,6 +2276,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateAlertRecordRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiUpdateAlertRecordRequest /* @@ -2004,6 +2290,7 @@ type DefaultApi interface { @param projectId @return AlertRecordsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertRecordExecute(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) /* @@ -2015,6 +2302,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateAlertgroupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateAlertgroupRequest /* @@ -2026,6 +2315,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -2036,6 +2326,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateAlertgroupsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertgroupsRequest /* @@ -2046,6 +2338,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -2058,6 +2351,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateAlertruleRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiUpdateAlertruleRequest /* @@ -2070,6 +2365,7 @@ type DefaultApi interface { @param projectId @return AlertRulesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateAlertruleExecute(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) /* @@ -2081,6 +2377,8 @@ type DefaultApi interface { @param projectId @param username @return ApiUpdateCredentialsRemoteWriteConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiUpdateCredentialsRemoteWriteConfigRequest /* @@ -2092,6 +2390,7 @@ type DefaultApi interface { @param username @return CredentialsRemoteWriteConfig + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateCredentialsRemoteWriteConfigExecute(ctx context.Context, instanceId string, projectId string, username string) (*CredentialsRemoteWriteConfig, error) /* @@ -2102,6 +2401,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateGrafanaConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateGrafanaConfigsRequest /* @@ -2112,6 +2413,7 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateGrafanaConfigsExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) /* @@ -2122,6 +2424,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateInstanceRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateInstance(ctx context.Context, instanceId string, projectId string) ApiUpdateInstanceRequest /* @@ -2132,6 +2436,7 @@ type DefaultApi interface { @param projectId @return InstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateInstanceExecute(ctx context.Context, instanceId string, projectId string) (*InstanceResponse, error) /* @@ -2143,6 +2448,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateLogsAlertgroupRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateLogsAlertgroupRequest /* @@ -2154,6 +2461,7 @@ type DefaultApi interface { @param projectId @return AlertGroupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateLogsAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) /* @@ -2164,6 +2472,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateLogsConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateLogsConfigsRequest /* @@ -2174,6 +2484,7 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateLogsConfigsExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) /* @@ -2184,6 +2495,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateMetricsStorageRetentionRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiUpdateMetricsStorageRetentionRequest /* @@ -2194,6 +2507,7 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateMetricsStorageRetentionExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) /* @@ -2205,6 +2519,8 @@ type DefaultApi interface { @param jobName @param projectId @return ApiUpdateScrapeConfigRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiUpdateScrapeConfigRequest /* @@ -2216,6 +2532,7 @@ type DefaultApi interface { @param projectId @return ScrapeConfigsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateScrapeConfigExecute(ctx context.Context, instanceId string, jobName string, projectId string) (*ScrapeConfigsResponse, error) /* @@ -2226,6 +2543,8 @@ type DefaultApi interface { @param instanceId @param projectId @return ApiUpdateTracesConfigsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateTracesConfigsRequest /* @@ -2236,495 +2555,759 @@ type DefaultApi interface { @param projectId @return Message + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateTracesConfigsExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateAlertConfigReceiverRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateAlertConfigReceiverPayload(createAlertConfigReceiverPayload CreateAlertConfigReceiverPayload) ApiCreateAlertConfigReceiverRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigReceiversResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateAlertConfigRouteRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateAlertConfigRoutePayload(createAlertConfigRoutePayload CreateAlertConfigRoutePayload) ApiCreateAlertConfigRouteRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigRouteResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateAlertRecordRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateAlertRecordPayload(createAlertRecordPayload CreateAlertRecordPayload) ApiCreateAlertRecordRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateAlertgroupsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateAlertgroupsPayload(createAlertgroupsPayload CreateAlertgroupsPayload) ApiCreateAlertgroupsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateAlertrulesRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateAlertrulesPayload(createAlertrulesPayload CreateAlertrulesPayload) ApiCreateAlertrulesRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRulesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateBackupRequest interface { // List of backup targets + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead BackupTarget(backupTarget []string) ApiCreateBackupRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateBackupScheduleRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateBackupSchedulePayload(createBackupSchedulePayload CreateBackupSchedulePayload) ApiCreateBackupScheduleRequest // List of backup targets + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead BackupTarget(backupTarget []string) ApiCreateBackupScheduleRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*BackupSchedulePostResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateCertCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateCertCheckPayload(createCertCheckPayload CreateCertCheckPayload) ApiCreateCertCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CertCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateCredentialsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CreateCredentialsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateElasticsearchCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateElasticsearchCheckPayload(createElasticsearchCheckPayload CreateElasticsearchCheckPayload) ApiCreateElasticsearchCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ElasticsearchCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateHttpCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateHttpCheckPayload(createHttpCheckPayload CreateHttpCheckPayload) ApiCreateHttpCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*HttpCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateInstanceRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CreateInstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateLogsAlertgroupsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateLogsAlertgroupsPayload(createLogsAlertgroupsPayload CreateLogsAlertgroupsPayload) ApiCreateLogsAlertgroupsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateMongodbCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateMongodbCheckPayload(createMongodbCheckPayload CreateMongodbCheckPayload) ApiCreateMongodbCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MongodbCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateMysqlCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateMysqlCheckPayload(createMysqlCheckPayload CreateMysqlCheckPayload) ApiCreateMysqlCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MysqlCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateNetworkCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateNetworkCheckPayload(createNetworkCheckPayload CreateNetworkCheckPayload) ApiCreateNetworkCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*NetworkCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreatePingCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreatePingCheckPayload(createPingCheckPayload CreatePingCheckPayload) ApiCreatePingCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PingCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreatePostgresqlCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreatePostgresqlCheckPayload(createPostgresqlCheckPayload CreatePostgresqlCheckPayload) ApiCreatePostgresqlCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PostgresqlCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateRabbitmqCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateRabbitmqCheckPayload(createRabbitmqCheckPayload CreateRabbitmqCheckPayload) ApiCreateRabbitmqCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*RabbitmqCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateRedisCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateRedisCheckPayload(createRedisCheckPayload CreateRedisCheckPayload) ApiCreateRedisCheckRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*RedisCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateScrapeConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateScrapeConfigPayload(createScrapeConfigPayload CreateScrapeConfigPayload) ApiCreateScrapeConfigRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ScrapeConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertConfigReceiverRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigReceiversResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertConfigRouteRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigRouteResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertRecordRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertRecordsRequest interface { // Name of the records that should be deleted + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead AlertRecord(alertRecord []string) ApiDeleteAlertRecordsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertgroupRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertgroupsRequest interface { // Name of the groups that should be deleted + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead GroupName(groupName []string) ApiDeleteAlertgroupsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertruleRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRulesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteAlertrulesRequest interface { // Name of the alert rules that should be deleted + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead AlertName(alertName []string) ApiDeleteAlertrulesRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRulesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteCertCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CertCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteCredentialsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteCredentialsRemoteWriteConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CredentialsRemoteWriteDeleteResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteElasticsearchCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ElasticsearchCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteHttpCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*HttpCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteInstanceRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*InstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteLogsAlertgroupRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteMongodbCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MongodbCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteMysqlCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MysqlCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteNetworkCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*NetworkCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeletePingCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PingCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeletePostgresqlCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PostgresqlCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteRabbitmqCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*RabbitmqCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteRedisCheckRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*RedisCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteScrapeConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*DeleteScrapeConfigResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteScrapeConfigsRequest interface { // Name of the jobs that should be deleted + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead JobName(jobName []string) ApiDeleteScrapeConfigsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ScrapeConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetAlertConfigReceiverRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Receiver, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetAlertConfigRouteRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigRouteResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetAlertConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetAlertConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetAlertRecordRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetAlertgroupRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetAlertruleRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRuleResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetCredentialsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetCredentialsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetCredentialsRemoteWriteConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CredentialsRemoteWriteConfig, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetGrafanaConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GrafanaConfigs, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetInstanceRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetInstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetLogsAlertgroupRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetLogsConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*LogsConfigResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetMetricsStorageRetentionRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetMetricsStorageRetentionResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetScrapeConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetScrapeConfigResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetTracesConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*TracesConfigResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListACLRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListACLResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListAlertConfigReceiversRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigReceiversResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListAlertConfigRoutesRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigRouteResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListAlertRecordsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListAlertgroupsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListAlertrulesRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRulesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListBackupRetentionsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*BackupRetentionResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListBackupSchedulesRequest interface { // List of backup targets + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead BackupTarget(backupTarget []string) ApiListBackupSchedulesRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*BackupScheduleResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListBackupsRequest interface { // List of backup targets + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead BackupTarget(backupTarget []string) ApiListBackupsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*BackupResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListCertChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CertCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListCredentialsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListCredentialsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListElasticsearchChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ElasticsearchCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListHttpChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*HttpCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListInstancesRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListInstancesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListLogsAlertgroupsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListMongodbChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MongodbCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListMysqlChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MysqlCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListNetworkChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*NetworkCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListOfferingsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Offerings, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListPingChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PingCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListPlansRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PlansResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListPostgresqlChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*PostgresqlCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListRabbitmqChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*RabbitmqCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListRedisChecksRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*RedisCheckResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListScrapeConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListScrapeConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiPartialUpdateAlertRecordsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PartialUpdateAlertRecordsRequestInner(partialUpdateAlertRecordsRequestInner []PartialUpdateAlertRecordsRequestInner) ApiPartialUpdateAlertRecordsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiPartialUpdateAlertgroupsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertgroupsRequestInner(updateAlertgroupsRequestInner []UpdateAlertgroupsRequestInner) ApiPartialUpdateAlertgroupsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiPartialUpdateAlertrulesRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PartialUpdateAlertrulesRequestInner(partialUpdateAlertrulesRequestInner []PartialUpdateAlertrulesRequestInner) ApiPartialUpdateAlertrulesRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRulesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiPartialUpdateScrapeConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PartialUpdateScrapeConfigsRequestInner(partialUpdateScrapeConfigsRequestInner []PartialUpdateScrapeConfigsRequestInner) ApiPartialUpdateScrapeConfigsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ScrapeConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiRestoreBackupRequest interface { // List of restore targets + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead RestoreTarget(restoreTarget string) ApiRestoreBackupRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateACLRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateACLPayload(updateACLPayload UpdateACLPayload) ApiUpdateACLRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertConfigReceiverRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertConfigReceiverPayload(updateAlertConfigReceiverPayload UpdateAlertConfigReceiverPayload) ApiUpdateAlertConfigReceiverRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigReceiversResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertConfigRouteRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertConfigRoutePayload(updateAlertConfigRoutePayload UpdateAlertConfigRoutePayload) ApiUpdateAlertConfigRouteRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertConfigRouteResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertConfigsPayload(updateAlertConfigsPayload UpdateAlertConfigsPayload) ApiUpdateAlertConfigsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*UpdateAlertConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertRecordRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertRecordPayload(updateAlertRecordPayload UpdateAlertRecordPayload) ApiUpdateAlertRecordRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRecordsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertgroupRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertgroupPayload(updateAlertgroupPayload UpdateAlertgroupPayload) ApiUpdateAlertgroupRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertgroupsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertgroupsRequestInner(updateAlertgroupsRequestInner []UpdateAlertgroupsRequestInner) ApiUpdateAlertgroupsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateAlertruleRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateAlertrulePayload(updateAlertrulePayload UpdateAlertrulePayload) ApiUpdateAlertruleRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertRulesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateCredentialsRemoteWriteConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateCredentialsRemoteWriteConfigPayload(updateCredentialsRemoteWriteConfigPayload UpdateCredentialsRemoteWriteConfigPayload) ApiUpdateCredentialsRemoteWriteConfigRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CredentialsRemoteWriteConfig, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateGrafanaConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateGrafanaConfigsPayload(updateGrafanaConfigsPayload UpdateGrafanaConfigsPayload) ApiUpdateGrafanaConfigsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateInstanceRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*InstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateLogsAlertgroupRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateLogsAlertgroupPayload(updateLogsAlertgroupPayload UpdateLogsAlertgroupPayload) ApiUpdateLogsAlertgroupRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*AlertGroupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateLogsConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateLogsConfigsPayload(updateLogsConfigsPayload UpdateLogsConfigsPayload) ApiUpdateLogsConfigsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateMetricsStorageRetentionRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateMetricsStorageRetentionPayload(updateMetricsStorageRetentionPayload UpdateMetricsStorageRetentionPayload) ApiUpdateMetricsStorageRetentionRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateScrapeConfigRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateScrapeConfigPayload(updateScrapeConfigPayload UpdateScrapeConfigPayload) ApiUpdateScrapeConfigRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ScrapeConfigsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateTracesConfigsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateTracesConfigsPayload(updateTracesConfigsPayload UpdateTracesConfigsPayload) ApiUpdateTracesConfigsRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*Message, error) } // DefaultApiService DefaultApi service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApiService service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverRequest struct { ctx context.Context apiService *DefaultApiService @@ -2733,11 +3316,13 @@ type CreateAlertConfigReceiverRequest struct { createAlertConfigReceiverPayload *CreateAlertConfigReceiverPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertConfigReceiverRequest) CreateAlertConfigReceiverPayload(createAlertConfigReceiverPayload CreateAlertConfigReceiverPayload) ApiCreateAlertConfigReceiverRequest { r.createAlertConfigReceiverPayload = &createAlertConfigReceiverPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2857,7 +3442,7 @@ func (r CreateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRespon /* CreateAlertConfigReceiver: Method for CreateAlertConfigReceiver -Create alert config receiver. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -2873,6 +3458,7 @@ func (a *APIClient) CreateAlertConfigReceiver(ctx context.Context, instanceId st } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigReceiversResponse, error) { r := CreateAlertConfigReceiverRequest{ apiService: a.defaultApi, @@ -2883,6 +3469,7 @@ func (a *APIClient) CreateAlertConfigReceiverExecute(ctx context.Context, instan return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRouteRequest struct { ctx context.Context apiService *DefaultApiService @@ -2891,11 +3478,13 @@ type CreateAlertConfigRouteRequest struct { createAlertConfigRoutePayload *CreateAlertConfigRoutePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertConfigRouteRequest) CreateAlertConfigRoutePayload(createAlertConfigRoutePayload CreateAlertConfigRoutePayload) ApiCreateAlertConfigRouteRequest { r.createAlertConfigRoutePayload = &createAlertConfigRoutePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3015,7 +3604,7 @@ func (r CreateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, err /* CreateAlertConfigRoute: Method for CreateAlertConfigRoute -Create alert config route in routes of route. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -3031,6 +3620,7 @@ func (a *APIClient) CreateAlertConfigRoute(ctx context.Context, instanceId strin } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigRouteResponse, error) { r := CreateAlertConfigRouteRequest{ apiService: a.defaultApi, @@ -3041,6 +3631,7 @@ func (a *APIClient) CreateAlertConfigRouteExecute(ctx context.Context, instanceI return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordRequest struct { ctx context.Context apiService *DefaultApiService @@ -3050,11 +3641,13 @@ type CreateAlertRecordRequest struct { createAlertRecordPayload *CreateAlertRecordPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertRecordRequest) CreateAlertRecordPayload(createAlertRecordPayload CreateAlertRecordPayload) ApiCreateAlertRecordRequest { r.createAlertRecordPayload = &createAlertRecordPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3175,7 +3768,7 @@ func (r CreateAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { /* CreateAlertRecord: Method for CreateAlertRecord -Create alert record. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -3193,6 +3786,7 @@ func (a *APIClient) CreateAlertRecord(ctx context.Context, groupName string, ins } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateAlertRecordExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) { r := CreateAlertRecordRequest{ apiService: a.defaultApi, @@ -3204,6 +3798,7 @@ func (a *APIClient) CreateAlertRecordExecute(ctx context.Context, groupName stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -3212,11 +3807,13 @@ type CreateAlertgroupsRequest struct { createAlertgroupsPayload *CreateAlertgroupsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertgroupsRequest) CreateAlertgroupsPayload(createAlertgroupsPayload CreateAlertgroupsPayload) ApiCreateAlertgroupsRequest { r.createAlertgroupsPayload = &createAlertgroupsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3336,7 +3933,7 @@ func (r CreateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { /* CreateAlertgroups: Method for CreateAlertgroups -Create alert group. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -3352,6 +3949,7 @@ func (a *APIClient) CreateAlertgroups(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := CreateAlertgroupsRequest{ apiService: a.defaultApi, @@ -3362,6 +3960,7 @@ func (a *APIClient) CreateAlertgroupsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesRequest struct { ctx context.Context apiService *DefaultApiService @@ -3371,11 +3970,13 @@ type CreateAlertrulesRequest struct { createAlertrulesPayload *CreateAlertrulesPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertrulesRequest) CreateAlertrulesPayload(createAlertrulesPayload CreateAlertrulesPayload) ApiCreateAlertrulesRequest { r.createAlertrulesPayload = &createAlertrulesPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateAlertrulesRequest) Execute() (*AlertRulesResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3496,7 +4097,7 @@ func (r CreateAlertrulesRequest) Execute() (*AlertRulesResponse, error) { /* CreateAlertrules: Method for CreateAlertrules -Create alert rule. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -3514,6 +4115,7 @@ func (a *APIClient) CreateAlertrules(ctx context.Context, groupName string, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) { r := CreateAlertrulesRequest{ apiService: a.defaultApi, @@ -3525,6 +4127,7 @@ func (a *APIClient) CreateAlertrulesExecute(ctx context.Context, groupName strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupRequest struct { ctx context.Context apiService *DefaultApiService @@ -3534,12 +4137,13 @@ type CreateBackupRequest struct { } // List of backup targets - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateBackupRequest) BackupTarget(backupTarget []string) ApiCreateBackupRequest { r.backupTarget = &backupTarget return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateBackupRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3657,7 +4261,7 @@ func (r CreateBackupRequest) Execute() (*Message, error) { /* CreateBackup: Method for CreateBackup -Create a backup. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -3673,6 +4277,7 @@ func (a *APIClient) CreateBackup(ctx context.Context, instanceId string, project } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateBackupExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) { r := CreateBackupRequest{ apiService: a.defaultApi, @@ -3683,6 +4288,7 @@ func (a *APIClient) CreateBackupExecute(ctx context.Context, instanceId string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupScheduleRequest struct { ctx context.Context apiService *DefaultApiService @@ -3692,18 +4298,20 @@ type CreateBackupScheduleRequest struct { backupTarget *[]string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateBackupScheduleRequest) CreateBackupSchedulePayload(createBackupSchedulePayload CreateBackupSchedulePayload) ApiCreateBackupScheduleRequest { r.createBackupSchedulePayload = &createBackupSchedulePayload return r } // List of backup targets - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateBackupScheduleRequest) BackupTarget(backupTarget []string) ApiCreateBackupScheduleRequest { r.backupTarget = &backupTarget return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateBackupScheduleRequest) Execute() (*BackupSchedulePostResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3826,7 +4434,7 @@ func (r CreateBackupScheduleRequest) Execute() (*BackupSchedulePostResponse, err /* CreateBackupSchedule: Method for CreateBackupSchedule -Create backup schedule. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -3842,6 +4450,7 @@ func (a *APIClient) CreateBackupSchedule(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateBackupScheduleExecute(ctx context.Context, instanceId string, projectId string) (*BackupSchedulePostResponse, error) { r := CreateBackupScheduleRequest{ apiService: a.defaultApi, @@ -3852,6 +4461,7 @@ func (a *APIClient) CreateBackupScheduleExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCertCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -3860,11 +4470,13 @@ type CreateCertCheckRequest struct { createCertCheckPayload *CreateCertCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateCertCheckRequest) CreateCertCheckPayload(createCertCheckPayload CreateCertCheckPayload) ApiCreateCertCheckRequest { r.createCertCheckPayload = &createCertCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateCertCheckRequest) Execute() (*CertCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3984,7 +4596,7 @@ func (r CreateCertCheckRequest) Execute() (*CertCheckResponse, error) { /* CreateCertCheck: Method for CreateCertCheck -Create cert check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -4000,6 +4612,7 @@ func (a *APIClient) CreateCertCheck(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateCertCheckExecute(ctx context.Context, instanceId string, projectId string) (*CertCheckResponse, error) { r := CreateCertCheckRequest{ apiService: a.defaultApi, @@ -4010,6 +4623,7 @@ func (a *APIClient) CreateCertCheckExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -4018,11 +4632,13 @@ type CreateCredentialsRequest struct { createCredentialsPayload *CreateCredentialsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateCredentialsRequest) CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest { r.createCredentialsPayload = &createCredentialsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -4139,7 +4755,7 @@ func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) /* CreateCredentials: Method for CreateCredentials -Create technical user credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -4155,6 +4771,7 @@ func (a *APIClient) CreateCredentials(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateCredentialsExecute(ctx context.Context, instanceId string, projectId string) (*CreateCredentialsResponse, error) { r := CreateCredentialsRequest{ apiService: a.defaultApi, @@ -4165,6 +4782,7 @@ func (a *APIClient) CreateCredentialsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -4173,11 +4791,13 @@ type CreateElasticsearchCheckRequest struct { createElasticsearchCheckPayload *CreateElasticsearchCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateElasticsearchCheckRequest) CreateElasticsearchCheckPayload(createElasticsearchCheckPayload CreateElasticsearchCheckPayload) ApiCreateElasticsearchCheckRequest { r.createElasticsearchCheckPayload = &createElasticsearchCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateElasticsearchCheckRequest) Execute() (*ElasticsearchCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -4297,7 +4917,7 @@ func (r CreateElasticsearchCheckRequest) Execute() (*ElasticsearchCheckResponse, /* CreateElasticsearchCheck: Method for CreateElasticsearchCheck -Create elasticsearch check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -4313,6 +4933,7 @@ func (a *APIClient) CreateElasticsearchCheck(ctx context.Context, instanceId str } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateElasticsearchCheckExecute(ctx context.Context, instanceId string, projectId string) (*ElasticsearchCheckResponse, error) { r := CreateElasticsearchCheckRequest{ apiService: a.defaultApi, @@ -4323,6 +4944,7 @@ func (a *APIClient) CreateElasticsearchCheckExecute(ctx context.Context, instanc return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateHttpCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -4331,11 +4953,13 @@ type CreateHttpCheckRequest struct { createHttpCheckPayload *CreateHttpCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateHttpCheckRequest) CreateHttpCheckPayload(createHttpCheckPayload CreateHttpCheckPayload) ApiCreateHttpCheckRequest { r.createHttpCheckPayload = &createHttpCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateHttpCheckRequest) Execute() (*HttpCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -4455,7 +5079,7 @@ func (r CreateHttpCheckRequest) Execute() (*HttpCheckResponse, error) { /* CreateHttpCheck: Method for CreateHttpCheck -Create http check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -4471,6 +5095,7 @@ func (a *APIClient) CreateHttpCheck(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateHttpCheckExecute(ctx context.Context, instanceId string, projectId string) (*HttpCheckResponse, error) { r := CreateHttpCheckRequest{ apiService: a.defaultApi, @@ -4481,6 +5106,7 @@ func (a *APIClient) CreateHttpCheckExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -4488,11 +5114,13 @@ type CreateInstanceRequest struct { createInstancePayload *CreateInstancePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest { r.createInstancePayload = &createInstancePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -4611,7 +5239,7 @@ func (r CreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { /* CreateInstance: Method for CreateInstance -Create new instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -4625,6 +5253,7 @@ func (a *APIClient) CreateInstance(ctx context.Context, projectId string) ApiCre } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string) (*CreateInstanceResponse, error) { r := CreateInstanceRequest{ apiService: a.defaultApi, @@ -4634,6 +5263,7 @@ func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string) return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -4642,11 +5272,13 @@ type CreateLogsAlertgroupsRequest struct { createLogsAlertgroupsPayload *CreateLogsAlertgroupsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateLogsAlertgroupsRequest) CreateLogsAlertgroupsPayload(createLogsAlertgroupsPayload CreateLogsAlertgroupsPayload) ApiCreateLogsAlertgroupsRequest { r.createLogsAlertgroupsPayload = &createLogsAlertgroupsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateLogsAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -4766,7 +5398,7 @@ func (r CreateLogsAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { /* CreateLogsAlertgroups: Method for CreateLogsAlertgroups -Create logs alert group config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -4782,6 +5414,7 @@ func (a *APIClient) CreateLogsAlertgroups(ctx context.Context, instanceId string } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateLogsAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := CreateLogsAlertgroupsRequest{ apiService: a.defaultApi, @@ -4792,6 +5425,7 @@ func (a *APIClient) CreateLogsAlertgroupsExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMongodbCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -4800,11 +5434,13 @@ type CreateMongodbCheckRequest struct { createMongodbCheckPayload *CreateMongodbCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateMongodbCheckRequest) CreateMongodbCheckPayload(createMongodbCheckPayload CreateMongodbCheckPayload) ApiCreateMongodbCheckRequest { r.createMongodbCheckPayload = &createMongodbCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateMongodbCheckRequest) Execute() (*MongodbCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -4924,7 +5560,7 @@ func (r CreateMongodbCheckRequest) Execute() (*MongodbCheckResponse, error) { /* CreateMongodbCheck: Method for CreateMongodbCheck -Create mongodb check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -4940,6 +5576,7 @@ func (a *APIClient) CreateMongodbCheck(ctx context.Context, instanceId string, p } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateMongodbCheckExecute(ctx context.Context, instanceId string, projectId string) (*MongodbCheckResponse, error) { r := CreateMongodbCheckRequest{ apiService: a.defaultApi, @@ -4950,6 +5587,7 @@ func (a *APIClient) CreateMongodbCheckExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMysqlCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -4958,11 +5596,13 @@ type CreateMysqlCheckRequest struct { createMysqlCheckPayload *CreateMysqlCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateMysqlCheckRequest) CreateMysqlCheckPayload(createMysqlCheckPayload CreateMysqlCheckPayload) ApiCreateMysqlCheckRequest { r.createMysqlCheckPayload = &createMysqlCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateMysqlCheckRequest) Execute() (*MysqlCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -5082,7 +5722,7 @@ func (r CreateMysqlCheckRequest) Execute() (*MysqlCheckResponse, error) { /* CreateMysqlCheck: Method for CreateMysqlCheck -Create mysql check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -5098,6 +5738,7 @@ func (a *APIClient) CreateMysqlCheck(ctx context.Context, instanceId string, pro } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateMysqlCheckExecute(ctx context.Context, instanceId string, projectId string) (*MysqlCheckResponse, error) { r := CreateMysqlCheckRequest{ apiService: a.defaultApi, @@ -5108,6 +5749,7 @@ func (a *APIClient) CreateMysqlCheckExecute(ctx context.Context, instanceId stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateNetworkCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -5116,11 +5758,13 @@ type CreateNetworkCheckRequest struct { createNetworkCheckPayload *CreateNetworkCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateNetworkCheckRequest) CreateNetworkCheckPayload(createNetworkCheckPayload CreateNetworkCheckPayload) ApiCreateNetworkCheckRequest { r.createNetworkCheckPayload = &createNetworkCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateNetworkCheckRequest) Execute() (*NetworkCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -5240,7 +5884,7 @@ func (r CreateNetworkCheckRequest) Execute() (*NetworkCheckResponse, error) { /* CreateNetworkCheck: Method for CreateNetworkCheck -Create network check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -5256,6 +5900,7 @@ func (a *APIClient) CreateNetworkCheck(ctx context.Context, instanceId string, p } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateNetworkCheckExecute(ctx context.Context, instanceId string, projectId string) (*NetworkCheckResponse, error) { r := CreateNetworkCheckRequest{ apiService: a.defaultApi, @@ -5266,6 +5911,7 @@ func (a *APIClient) CreateNetworkCheckExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePingCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -5274,11 +5920,13 @@ type CreatePingCheckRequest struct { createPingCheckPayload *CreatePingCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreatePingCheckRequest) CreatePingCheckPayload(createPingCheckPayload CreatePingCheckPayload) ApiCreatePingCheckRequest { r.createPingCheckPayload = &createPingCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreatePingCheckRequest) Execute() (*PingCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -5398,7 +6046,7 @@ func (r CreatePingCheckRequest) Execute() (*PingCheckResponse, error) { /* CreatePingCheck: Method for CreatePingCheck -Create ping check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -5414,6 +6062,7 @@ func (a *APIClient) CreatePingCheck(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreatePingCheckExecute(ctx context.Context, instanceId string, projectId string) (*PingCheckResponse, error) { r := CreatePingCheckRequest{ apiService: a.defaultApi, @@ -5424,6 +6073,7 @@ func (a *APIClient) CreatePingCheckExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePostgresqlCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -5432,11 +6082,13 @@ type CreatePostgresqlCheckRequest struct { createPostgresqlCheckPayload *CreatePostgresqlCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreatePostgresqlCheckRequest) CreatePostgresqlCheckPayload(createPostgresqlCheckPayload CreatePostgresqlCheckPayload) ApiCreatePostgresqlCheckRequest { r.createPostgresqlCheckPayload = &createPostgresqlCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreatePostgresqlCheckRequest) Execute() (*PostgresqlCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -5556,7 +6208,7 @@ func (r CreatePostgresqlCheckRequest) Execute() (*PostgresqlCheckResponse, error /* CreatePostgresqlCheck: Method for CreatePostgresqlCheck -Create postgresql check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -5572,6 +6224,7 @@ func (a *APIClient) CreatePostgresqlCheck(ctx context.Context, instanceId string } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreatePostgresqlCheckExecute(ctx context.Context, instanceId string, projectId string) (*PostgresqlCheckResponse, error) { r := CreatePostgresqlCheckRequest{ apiService: a.defaultApi, @@ -5582,6 +6235,7 @@ func (a *APIClient) CreatePostgresqlCheckExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -5590,11 +6244,13 @@ type CreateRabbitmqCheckRequest struct { createRabbitmqCheckPayload *CreateRabbitmqCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateRabbitmqCheckRequest) CreateRabbitmqCheckPayload(createRabbitmqCheckPayload CreateRabbitmqCheckPayload) ApiCreateRabbitmqCheckRequest { r.createRabbitmqCheckPayload = &createRabbitmqCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateRabbitmqCheckRequest) Execute() (*RabbitmqCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -5714,7 +6370,7 @@ func (r CreateRabbitmqCheckRequest) Execute() (*RabbitmqCheckResponse, error) { /* CreateRabbitmqCheck: Method for CreateRabbitmqCheck -Create rabbitmq check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -5730,6 +6386,7 @@ func (a *APIClient) CreateRabbitmqCheck(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateRabbitmqCheckExecute(ctx context.Context, instanceId string, projectId string) (*RabbitmqCheckResponse, error) { r := CreateRabbitmqCheckRequest{ apiService: a.defaultApi, @@ -5740,6 +6397,7 @@ func (a *APIClient) CreateRabbitmqCheckExecute(ctx context.Context, instanceId s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -5748,11 +6406,13 @@ type CreateRedisCheckRequest struct { createRedisCheckPayload *CreateRedisCheckPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateRedisCheckRequest) CreateRedisCheckPayload(createRedisCheckPayload CreateRedisCheckPayload) ApiCreateRedisCheckRequest { r.createRedisCheckPayload = &createRedisCheckPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateRedisCheckRequest) Execute() (*RedisCheckResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -5872,7 +6532,7 @@ func (r CreateRedisCheckRequest) Execute() (*RedisCheckResponse, error) { /* CreateRedisCheck: Method for CreateRedisCheck -Create redis check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -5888,6 +6548,7 @@ func (a *APIClient) CreateRedisCheck(ctx context.Context, instanceId string, pro } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateRedisCheckExecute(ctx context.Context, instanceId string, projectId string) (*RedisCheckResponse, error) { r := CreateRedisCheckRequest{ apiService: a.defaultApi, @@ -5898,6 +6559,7 @@ func (a *APIClient) CreateRedisCheckExecute(ctx context.Context, instanceId stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -5906,11 +6568,13 @@ type CreateScrapeConfigRequest struct { createScrapeConfigPayload *CreateScrapeConfigPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateScrapeConfigRequest) CreateScrapeConfigPayload(createScrapeConfigPayload CreateScrapeConfigPayload) ApiCreateScrapeConfigRequest { r.createScrapeConfigPayload = &createScrapeConfigPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -6030,7 +6694,7 @@ func (r CreateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) { /* CreateScrapeConfig: Method for CreateScrapeConfig -Create scrape config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -6046,6 +6710,7 @@ func (a *APIClient) CreateScrapeConfig(ctx context.Context, instanceId string, p } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateScrapeConfigExecute(ctx context.Context, instanceId string, projectId string) (*ScrapeConfigsResponse, error) { r := CreateScrapeConfigRequest{ apiService: a.defaultApi, @@ -6056,6 +6721,7 @@ func (a *APIClient) CreateScrapeConfigExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertConfigReceiverRequest struct { ctx context.Context apiService *DefaultApiService @@ -6064,6 +6730,7 @@ type DeleteAlertConfigReceiverRequest struct { receiver string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -6179,7 +6846,7 @@ func (r DeleteAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRespon /* DeleteAlertConfigReceiver: Method for DeleteAlertConfigReceiver -Delete alert config receiver. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -6197,6 +6864,7 @@ func (a *APIClient) DeleteAlertConfigReceiver(ctx context.Context, instanceId st } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigReceiversResponse, error) { r := DeleteAlertConfigReceiverRequest{ apiService: a.defaultApi, @@ -6208,6 +6876,7 @@ func (a *APIClient) DeleteAlertConfigReceiverExecute(ctx context.Context, instan return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertConfigRouteRequest struct { ctx context.Context apiService *DefaultApiService @@ -6216,6 +6885,7 @@ type DeleteAlertConfigRouteRequest struct { receiver string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -6331,7 +7001,7 @@ func (r DeleteAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, err /* DeleteAlertConfigRoute: Method for DeleteAlertConfigRoute -Delete alert receiver for route. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -6349,6 +7019,7 @@ func (a *APIClient) DeleteAlertConfigRoute(ctx context.Context, instanceId strin } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigRouteResponse, error) { r := DeleteAlertConfigRouteRequest{ apiService: a.defaultApi, @@ -6360,6 +7031,7 @@ func (a *APIClient) DeleteAlertConfigRouteExecute(ctx context.Context, instanceI return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertRecordRequest struct { ctx context.Context apiService *DefaultApiService @@ -6369,6 +7041,7 @@ type DeleteAlertRecordRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -6485,7 +7158,7 @@ func (r DeleteAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { /* DeleteAlertRecord: Method for DeleteAlertRecord -Delete alert record. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param alertRecord @@ -6505,6 +7178,7 @@ func (a *APIClient) DeleteAlertRecord(ctx context.Context, alertRecord string, g } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertRecordExecute(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) { r := DeleteAlertRecordRequest{ apiService: a.defaultApi, @@ -6517,6 +7191,7 @@ func (a *APIClient) DeleteAlertRecordExecute(ctx context.Context, alertRecord st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertRecordsRequest struct { ctx context.Context apiService *DefaultApiService @@ -6527,12 +7202,13 @@ type DeleteAlertRecordsRequest struct { } // Name of the records that should be deleted - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertRecordsRequest) AlertRecord(alertRecord []string) ApiDeleteAlertRecordsRequest { r.alertRecord = &alertRecord return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -6641,7 +7317,7 @@ func (r DeleteAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { /* DeleteAlertRecords: Method for DeleteAlertRecords -Delete alert records. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -6659,6 +7335,7 @@ func (a *APIClient) DeleteAlertRecords(ctx context.Context, groupName string, in } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertRecordsExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) { r := DeleteAlertRecordsRequest{ apiService: a.defaultApi, @@ -6670,6 +7347,7 @@ func (a *APIClient) DeleteAlertRecordsExecute(ctx context.Context, groupName str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertgroupRequest struct { ctx context.Context apiService *DefaultApiService @@ -6678,6 +7356,7 @@ type DeleteAlertgroupRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -6804,7 +7483,7 @@ func (r DeleteAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { /* DeleteAlertgroup: Method for DeleteAlertgroup -Delete alert group config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -6822,6 +7501,7 @@ func (a *APIClient) DeleteAlertgroup(ctx context.Context, groupName string, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := DeleteAlertgroupRequest{ apiService: a.defaultApi, @@ -6833,6 +7513,7 @@ func (a *APIClient) DeleteAlertgroupExecute(ctx context.Context, groupName strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -6842,12 +7523,13 @@ type DeleteAlertgroupsRequest struct { } // Name of the groups that should be deleted - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertgroupsRequest) GroupName(groupName []string) ApiDeleteAlertgroupsRequest { r.groupName = &groupName return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -6955,7 +7637,7 @@ func (r DeleteAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { /* DeleteAlertgroups: Method for DeleteAlertgroups -Delete alert groups. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -6971,6 +7653,7 @@ func (a *APIClient) DeleteAlertgroups(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := DeleteAlertgroupsRequest{ apiService: a.defaultApi, @@ -6981,6 +7664,7 @@ func (a *APIClient) DeleteAlertgroupsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertruleRequest struct { ctx context.Context apiService *DefaultApiService @@ -6990,6 +7674,7 @@ type DeleteAlertruleRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertruleRequest) Execute() (*AlertRulesResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -7117,7 +7802,7 @@ func (r DeleteAlertruleRequest) Execute() (*AlertRulesResponse, error) { /* DeleteAlertrule: Method for DeleteAlertrule -Delete alert rule. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param alertName @@ -7137,6 +7822,7 @@ func (a *APIClient) DeleteAlertrule(ctx context.Context, alertName string, group } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertruleExecute(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) { r := DeleteAlertruleRequest{ apiService: a.defaultApi, @@ -7149,6 +7835,7 @@ func (a *APIClient) DeleteAlertruleExecute(ctx context.Context, alertName string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteAlertrulesRequest struct { ctx context.Context apiService *DefaultApiService @@ -7159,12 +7846,13 @@ type DeleteAlertrulesRequest struct { } // Name of the alert rules that should be deleted - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertrulesRequest) AlertName(alertName []string) ApiDeleteAlertrulesRequest { r.alertName = &alertName return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteAlertrulesRequest) Execute() (*AlertRulesResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -7273,7 +7961,7 @@ func (r DeleteAlertrulesRequest) Execute() (*AlertRulesResponse, error) { /* DeleteAlertrules: Method for DeleteAlertrules -Delete alert rules. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -7291,6 +7979,7 @@ func (a *APIClient) DeleteAlertrules(ctx context.Context, groupName string, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) { r := DeleteAlertrulesRequest{ apiService: a.defaultApi, @@ -7302,6 +7991,7 @@ func (a *APIClient) DeleteAlertrulesExecute(ctx context.Context, groupName strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteCertCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -7310,6 +8000,7 @@ type DeleteCertCheckRequest struct { id string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteCertCheckRequest) Execute() (*CertCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -7425,7 +8116,7 @@ func (r DeleteCertCheckRequest) Execute() (*CertCheckResponse, error) { /* DeleteCertCheck: Method for DeleteCertCheck -Delete cert check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -7443,6 +8134,7 @@ func (a *APIClient) DeleteCertCheck(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteCertCheckExecute(ctx context.Context, instanceId string, projectId string, id string) (*CertCheckResponse, error) { r := DeleteCertCheckRequest{ apiService: a.defaultApi, @@ -7454,6 +8146,7 @@ func (a *APIClient) DeleteCertCheckExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -7462,6 +8155,7 @@ type DeleteCredentialsRequest struct { username string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteCredentialsRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -7588,7 +8282,7 @@ func (r DeleteCredentialsRequest) Execute() (*Message, error) { /* DeleteCredentials: Method for DeleteCredentials -Delete technical credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -7606,6 +8300,7 @@ func (a *APIClient) DeleteCredentials(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteCredentialsExecute(ctx context.Context, instanceId string, projectId string, username string) (*Message, error) { r := DeleteCredentialsRequest{ apiService: a.defaultApi, @@ -7617,6 +8312,7 @@ func (a *APIClient) DeleteCredentialsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteCredentialsRemoteWriteConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -7625,6 +8321,7 @@ type DeleteCredentialsRemoteWriteConfigRequest struct { username string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWriteDeleteResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -7762,7 +8459,7 @@ func (r DeleteCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemote /* DeleteCredentialsRemoteWriteConfig: Method for DeleteCredentialsRemoteWriteConfig -Delete remote write config for credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -7780,6 +8477,7 @@ func (a *APIClient) DeleteCredentialsRemoteWriteConfig(ctx context.Context, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteCredentialsRemoteWriteConfigExecute(ctx context.Context, instanceId string, projectId string, username string) (*CredentialsRemoteWriteDeleteResponse, error) { r := DeleteCredentialsRemoteWriteConfigRequest{ apiService: a.defaultApi, @@ -7791,6 +8489,7 @@ func (a *APIClient) DeleteCredentialsRemoteWriteConfigExecute(ctx context.Contex return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteElasticsearchCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -7799,6 +8498,7 @@ type DeleteElasticsearchCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteElasticsearchCheckRequest) Execute() (*ElasticsearchCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -7914,7 +8614,7 @@ func (r DeleteElasticsearchCheckRequest) Execute() (*ElasticsearchCheckResponse, /* DeleteElasticsearchCheck: Method for DeleteElasticsearchCheck -Delete elasticsearch check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -7932,6 +8632,7 @@ func (a *APIClient) DeleteElasticsearchCheck(ctx context.Context, id string, ins } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteElasticsearchCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*ElasticsearchCheckResponse, error) { r := DeleteElasticsearchCheckRequest{ apiService: a.defaultApi, @@ -7943,6 +8644,7 @@ func (a *APIClient) DeleteElasticsearchCheckExecute(ctx context.Context, id stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteHttpCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -7951,6 +8653,7 @@ type DeleteHttpCheckRequest struct { id string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteHttpCheckRequest) Execute() (*HttpCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8066,7 +8769,7 @@ func (r DeleteHttpCheckRequest) Execute() (*HttpCheckResponse, error) { /* DeleteHttpCheck: Method for DeleteHttpCheck -Delete http check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -8084,6 +8787,7 @@ func (a *APIClient) DeleteHttpCheck(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteHttpCheckExecute(ctx context.Context, instanceId string, projectId string, id string) (*HttpCheckResponse, error) { r := DeleteHttpCheckRequest{ apiService: a.defaultApi, @@ -8095,6 +8799,7 @@ func (a *APIClient) DeleteHttpCheckExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -8102,6 +8807,7 @@ type DeleteInstanceRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteInstanceRequest) Execute() (*InstanceResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8205,7 +8911,7 @@ func (r DeleteInstanceRequest) Execute() (*InstanceResponse, error) { /* DeleteInstance: Method for DeleteInstance -Delete instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -8221,6 +8927,7 @@ func (a *APIClient) DeleteInstance(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteInstanceExecute(ctx context.Context, instanceId string, projectId string) (*InstanceResponse, error) { r := DeleteInstanceRequest{ apiService: a.defaultApi, @@ -8231,6 +8938,7 @@ func (a *APIClient) DeleteInstanceExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteLogsAlertgroupRequest struct { ctx context.Context apiService *DefaultApiService @@ -8239,6 +8947,7 @@ type DeleteLogsAlertgroupRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteLogsAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8365,7 +9074,7 @@ func (r DeleteLogsAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { /* DeleteLogsAlertgroup: Method for DeleteLogsAlertgroup -Delete logs alert group config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -8383,6 +9092,7 @@ func (a *APIClient) DeleteLogsAlertgroup(ctx context.Context, groupName string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteLogsAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := DeleteLogsAlertgroupRequest{ apiService: a.defaultApi, @@ -8394,6 +9104,7 @@ func (a *APIClient) DeleteLogsAlertgroupExecute(ctx context.Context, groupName s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteMongodbCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -8402,6 +9113,7 @@ type DeleteMongodbCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteMongodbCheckRequest) Execute() (*MongodbCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8517,7 +9229,7 @@ func (r DeleteMongodbCheckRequest) Execute() (*MongodbCheckResponse, error) { /* DeleteMongodbCheck: Method for DeleteMongodbCheck -Delete mongodb check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -8535,6 +9247,7 @@ func (a *APIClient) DeleteMongodbCheck(ctx context.Context, id string, instanceI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteMongodbCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*MongodbCheckResponse, error) { r := DeleteMongodbCheckRequest{ apiService: a.defaultApi, @@ -8546,6 +9259,7 @@ func (a *APIClient) DeleteMongodbCheckExecute(ctx context.Context, id string, in return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteMysqlCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -8554,6 +9268,7 @@ type DeleteMysqlCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteMysqlCheckRequest) Execute() (*MysqlCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8669,7 +9384,7 @@ func (r DeleteMysqlCheckRequest) Execute() (*MysqlCheckResponse, error) { /* DeleteMysqlCheck: Method for DeleteMysqlCheck -Delete mysql check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -8687,6 +9402,7 @@ func (a *APIClient) DeleteMysqlCheck(ctx context.Context, id string, instanceId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteMysqlCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*MysqlCheckResponse, error) { r := DeleteMysqlCheckRequest{ apiService: a.defaultApi, @@ -8698,6 +9414,7 @@ func (a *APIClient) DeleteMysqlCheckExecute(ctx context.Context, id string, inst return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteNetworkCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -8706,6 +9423,7 @@ type DeleteNetworkCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteNetworkCheckRequest) Execute() (*NetworkCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8821,7 +9539,7 @@ func (r DeleteNetworkCheckRequest) Execute() (*NetworkCheckResponse, error) { /* DeleteNetworkCheck: Method for DeleteNetworkCheck -Delete network check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -8839,6 +9557,7 @@ func (a *APIClient) DeleteNetworkCheck(ctx context.Context, id string, instanceI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteNetworkCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*NetworkCheckResponse, error) { r := DeleteNetworkCheckRequest{ apiService: a.defaultApi, @@ -8850,6 +9569,7 @@ func (a *APIClient) DeleteNetworkCheckExecute(ctx context.Context, id string, in return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeletePingCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -8858,6 +9578,7 @@ type DeletePingCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeletePingCheckRequest) Execute() (*PingCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -8973,7 +9694,7 @@ func (r DeletePingCheckRequest) Execute() (*PingCheckResponse, error) { /* DeletePingCheck: Method for DeletePingCheck -Delete ping check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -8991,6 +9712,7 @@ func (a *APIClient) DeletePingCheck(ctx context.Context, id string, instanceId s } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeletePingCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*PingCheckResponse, error) { r := DeletePingCheckRequest{ apiService: a.defaultApi, @@ -9002,6 +9724,7 @@ func (a *APIClient) DeletePingCheckExecute(ctx context.Context, id string, insta return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeletePostgresqlCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -9010,6 +9733,7 @@ type DeletePostgresqlCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeletePostgresqlCheckRequest) Execute() (*PostgresqlCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -9125,7 +9849,7 @@ func (r DeletePostgresqlCheckRequest) Execute() (*PostgresqlCheckResponse, error /* DeletePostgresqlCheck: Method for DeletePostgresqlCheck -Delete postgresql check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -9143,6 +9867,7 @@ func (a *APIClient) DeletePostgresqlCheck(ctx context.Context, id string, instan } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeletePostgresqlCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*PostgresqlCheckResponse, error) { r := DeletePostgresqlCheckRequest{ apiService: a.defaultApi, @@ -9154,6 +9879,7 @@ func (a *APIClient) DeletePostgresqlCheckExecute(ctx context.Context, id string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteRabbitmqCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -9162,6 +9888,7 @@ type DeleteRabbitmqCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteRabbitmqCheckRequest) Execute() (*RabbitmqCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -9277,7 +10004,7 @@ func (r DeleteRabbitmqCheckRequest) Execute() (*RabbitmqCheckResponse, error) { /* DeleteRabbitmqCheck: Method for DeleteRabbitmqCheck -Delete rabbitmq check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -9295,6 +10022,7 @@ func (a *APIClient) DeleteRabbitmqCheck(ctx context.Context, id string, instance } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteRabbitmqCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*RabbitmqCheckResponse, error) { r := DeleteRabbitmqCheckRequest{ apiService: a.defaultApi, @@ -9306,6 +10034,7 @@ func (a *APIClient) DeleteRabbitmqCheckExecute(ctx context.Context, id string, i return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteRedisCheckRequest struct { ctx context.Context apiService *DefaultApiService @@ -9314,6 +10043,7 @@ type DeleteRedisCheckRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteRedisCheckRequest) Execute() (*RedisCheckResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -9429,7 +10159,7 @@ func (r DeleteRedisCheckRequest) Execute() (*RedisCheckResponse, error) { /* DeleteRedisCheck: Method for DeleteRedisCheck -Delete redis check. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @@ -9447,6 +10177,7 @@ func (a *APIClient) DeleteRedisCheck(ctx context.Context, id string, instanceId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteRedisCheckExecute(ctx context.Context, id string, instanceId string, projectId string) (*RedisCheckResponse, error) { r := DeleteRedisCheckRequest{ apiService: a.defaultApi, @@ -9458,6 +10189,7 @@ func (a *APIClient) DeleteRedisCheckExecute(ctx context.Context, id string, inst return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -9466,6 +10198,7 @@ type DeleteScrapeConfigRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteScrapeConfigRequest) Execute() (*DeleteScrapeConfigResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -9581,7 +10314,7 @@ func (r DeleteScrapeConfigRequest) Execute() (*DeleteScrapeConfigResponse, error /* DeleteScrapeConfig: Method for DeleteScrapeConfig -Delete scrape config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -9599,6 +10332,7 @@ func (a *APIClient) DeleteScrapeConfig(ctx context.Context, instanceId string, j } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteScrapeConfigExecute(ctx context.Context, instanceId string, jobName string, projectId string) (*DeleteScrapeConfigResponse, error) { r := DeleteScrapeConfigRequest{ apiService: a.defaultApi, @@ -9610,6 +10344,7 @@ func (a *APIClient) DeleteScrapeConfigExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -9619,12 +10354,13 @@ type DeleteScrapeConfigsRequest struct { } // Name of the jobs that should be deleted - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteScrapeConfigsRequest) JobName(jobName []string) ApiDeleteScrapeConfigsRequest { r.jobName = &jobName return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -9732,7 +10468,7 @@ func (r DeleteScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, error) { /* DeleteScrapeConfigs: Method for DeleteScrapeConfigs -Delete scrape configs. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -9748,6 +10484,7 @@ func (a *APIClient) DeleteScrapeConfigs(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteScrapeConfigsExecute(ctx context.Context, instanceId string, projectId string) (*ScrapeConfigsResponse, error) { r := DeleteScrapeConfigsRequest{ apiService: a.defaultApi, @@ -9758,6 +10495,7 @@ func (a *APIClient) DeleteScrapeConfigsExecute(ctx context.Context, instanceId s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigReceiverRequest struct { ctx context.Context apiService *DefaultApiService @@ -9766,6 +10504,7 @@ type GetAlertConfigReceiverRequest struct { receiver string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetAlertConfigReceiverRequest) Execute() (*Receiver, error) { var ( localVarHTTPMethod = http.MethodGet @@ -9881,7 +10620,7 @@ func (r GetAlertConfigReceiverRequest) Execute() (*Receiver, error) { /* GetAlertConfigReceiver: Method for GetAlertConfigReceiver -Get alert config receivers. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -9899,6 +10638,7 @@ func (a *APIClient) GetAlertConfigReceiver(ctx context.Context, instanceId strin } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*Receiver, error) { r := GetAlertConfigReceiverRequest{ apiService: a.defaultApi, @@ -9910,6 +10650,7 @@ func (a *APIClient) GetAlertConfigReceiverExecute(ctx context.Context, instanceI return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigRouteRequest struct { ctx context.Context apiService *DefaultApiService @@ -9918,6 +10659,7 @@ type GetAlertConfigRouteRequest struct { receiver string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10022,7 +10764,7 @@ func (r GetAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) /* GetAlertConfigRoute: Method for GetAlertConfigRoute -Get alert receiver for route. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -10040,6 +10782,7 @@ func (a *APIClient) GetAlertConfigRoute(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigRouteResponse, error) { r := GetAlertConfigRouteRequest{ apiService: a.defaultApi, @@ -10051,6 +10794,7 @@ func (a *APIClient) GetAlertConfigRouteExecute(ctx context.Context, instanceId s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -10058,6 +10802,7 @@ type GetAlertConfigsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetAlertConfigsRequest) Execute() (*GetAlertConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10161,7 +10906,7 @@ func (r GetAlertConfigsRequest) Execute() (*GetAlertConfigsResponse, error) { /* GetAlertConfigs: Method for GetAlertConfigs -Get alert config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -10177,6 +10922,7 @@ func (a *APIClient) GetAlertConfigs(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetAlertConfigsExecute(ctx context.Context, instanceId string, projectId string) (*GetAlertConfigsResponse, error) { r := GetAlertConfigsRequest{ apiService: a.defaultApi, @@ -10187,6 +10933,7 @@ func (a *APIClient) GetAlertConfigsExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertRecordRequest struct { ctx context.Context apiService *DefaultApiService @@ -10196,6 +10943,7 @@ type GetAlertRecordRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetAlertRecordRequest) Execute() (*AlertRecordResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10323,7 +11071,7 @@ func (r GetAlertRecordRequest) Execute() (*AlertRecordResponse, error) { /* GetAlertRecord: Method for GetAlertRecord -Get alert record. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param alertRecord @@ -10343,6 +11091,7 @@ func (a *APIClient) GetAlertRecord(ctx context.Context, alertRecord string, grou } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetAlertRecordExecute(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) (*AlertRecordResponse, error) { r := GetAlertRecordRequest{ apiService: a.defaultApi, @@ -10355,6 +11104,7 @@ func (a *APIClient) GetAlertRecordExecute(ctx context.Context, alertRecord strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertgroupRequest struct { ctx context.Context apiService *DefaultApiService @@ -10363,6 +11113,7 @@ type GetAlertgroupRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetAlertgroupRequest) Execute() (*AlertGroupResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10489,7 +11240,7 @@ func (r GetAlertgroupRequest) Execute() (*AlertGroupResponse, error) { /* GetAlertgroup: Method for GetAlertgroup -Get alert group. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -10507,6 +11258,7 @@ func (a *APIClient) GetAlertgroup(ctx context.Context, groupName string, instanc } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupResponse, error) { r := GetAlertgroupRequest{ apiService: a.defaultApi, @@ -10518,6 +11270,7 @@ func (a *APIClient) GetAlertgroupExecute(ctx context.Context, groupName string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertruleRequest struct { ctx context.Context apiService *DefaultApiService @@ -10527,6 +11280,7 @@ type GetAlertruleRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetAlertruleRequest) Execute() (*AlertRuleResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10643,7 +11397,7 @@ func (r GetAlertruleRequest) Execute() (*AlertRuleResponse, error) { /* GetAlertrule: Method for GetAlertrule -Get alert rule. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param alertName @@ -10663,6 +11417,7 @@ func (a *APIClient) GetAlertrule(ctx context.Context, alertName string, groupNam } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetAlertruleExecute(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) (*AlertRuleResponse, error) { r := GetAlertruleRequest{ apiService: a.defaultApi, @@ -10675,6 +11430,7 @@ func (a *APIClient) GetAlertruleExecute(ctx context.Context, alertName string, g return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -10683,6 +11439,7 @@ type GetCredentialsRequest struct { username string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10798,7 +11555,7 @@ func (r GetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { /* GetCredentials: Method for GetCredentials -Get single technical credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -10816,6 +11573,7 @@ func (a *APIClient) GetCredentials(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetCredentialsExecute(ctx context.Context, instanceId string, projectId string, username string) (*GetCredentialsResponse, error) { r := GetCredentialsRequest{ apiService: a.defaultApi, @@ -10827,6 +11585,7 @@ func (a *APIClient) GetCredentialsExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsRemoteWriteConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -10835,6 +11594,7 @@ type GetCredentialsRemoteWriteConfigRequest struct { username string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWriteConfig, error) { var ( localVarHTTPMethod = http.MethodGet @@ -10961,7 +11721,7 @@ func (r GetCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWri /* GetCredentialsRemoteWriteConfig: Method for GetCredentialsRemoteWriteConfig -Get remote write config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -10979,6 +11739,7 @@ func (a *APIClient) GetCredentialsRemoteWriteConfig(ctx context.Context, instanc } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetCredentialsRemoteWriteConfigExecute(ctx context.Context, instanceId string, projectId string, username string) (*CredentialsRemoteWriteConfig, error) { r := GetCredentialsRemoteWriteConfigRequest{ apiService: a.defaultApi, @@ -10990,6 +11751,7 @@ func (a *APIClient) GetCredentialsRemoteWriteConfigExecute(ctx context.Context, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetGrafanaConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -10997,6 +11759,7 @@ type GetGrafanaConfigsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetGrafanaConfigsRequest) Execute() (*GrafanaConfigs, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11100,7 +11863,7 @@ func (r GetGrafanaConfigsRequest) Execute() (*GrafanaConfigs, error) { /* GetGrafanaConfigs: Method for GetGrafanaConfigs -Get grafana config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -11116,6 +11879,7 @@ func (a *APIClient) GetGrafanaConfigs(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetGrafanaConfigsExecute(ctx context.Context, instanceId string, projectId string) (*GrafanaConfigs, error) { r := GetGrafanaConfigsRequest{ apiService: a.defaultApi, @@ -11126,6 +11890,7 @@ func (a *APIClient) GetGrafanaConfigsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -11133,6 +11898,7 @@ type GetInstanceRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetInstanceRequest) Execute() (*GetInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11236,7 +12002,7 @@ func (r GetInstanceRequest) Execute() (*GetInstanceResponse, error) { /* GetInstance: Method for GetInstance -Get instance information. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -11252,6 +12018,7 @@ func (a *APIClient) GetInstance(ctx context.Context, instanceId string, projectI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetInstanceExecute(ctx context.Context, instanceId string, projectId string) (*GetInstanceResponse, error) { r := GetInstanceRequest{ apiService: a.defaultApi, @@ -11262,6 +12029,7 @@ func (a *APIClient) GetInstanceExecute(ctx context.Context, instanceId string, p return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetLogsAlertgroupRequest struct { ctx context.Context apiService *DefaultApiService @@ -11270,6 +12038,7 @@ type GetLogsAlertgroupRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetLogsAlertgroupRequest) Execute() (*AlertGroupResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11396,7 +12165,7 @@ func (r GetLogsAlertgroupRequest) Execute() (*AlertGroupResponse, error) { /* GetLogsAlertgroup: Method for GetLogsAlertgroup -Get logs alert group config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -11414,6 +12183,7 @@ func (a *APIClient) GetLogsAlertgroup(ctx context.Context, groupName string, ins } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetLogsAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupResponse, error) { r := GetLogsAlertgroupRequest{ apiService: a.defaultApi, @@ -11425,6 +12195,7 @@ func (a *APIClient) GetLogsAlertgroupExecute(ctx context.Context, groupName stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetLogsConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -11432,6 +12203,7 @@ type GetLogsConfigsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetLogsConfigsRequest) Execute() (*LogsConfigResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11535,7 +12307,7 @@ func (r GetLogsConfigsRequest) Execute() (*LogsConfigResponse, error) { /* GetLogsConfigs: Method for GetLogsConfigs -Get logs configuration. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -11551,6 +12323,7 @@ func (a *APIClient) GetLogsConfigs(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetLogsConfigsExecute(ctx context.Context, instanceId string, projectId string) (*LogsConfigResponse, error) { r := GetLogsConfigsRequest{ apiService: a.defaultApi, @@ -11561,6 +12334,7 @@ func (a *APIClient) GetLogsConfigsExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionRequest struct { ctx context.Context apiService *DefaultApiService @@ -11568,6 +12342,7 @@ type GetMetricsStorageRetentionRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetMetricsStorageRetentionRequest) Execute() (*GetMetricsStorageRetentionResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11671,7 +12446,7 @@ func (r GetMetricsStorageRetentionRequest) Execute() (*GetMetricsStorageRetentio /* GetMetricsStorageRetention: Method for GetMetricsStorageRetention -Get metric storage retention time. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -11687,6 +12462,7 @@ func (a *APIClient) GetMetricsStorageRetention(ctx context.Context, instanceId s } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetMetricsStorageRetentionExecute(ctx context.Context, instanceId string, projectId string) (*GetMetricsStorageRetentionResponse, error) { r := GetMetricsStorageRetentionRequest{ apiService: a.defaultApi, @@ -11697,6 +12473,7 @@ func (a *APIClient) GetMetricsStorageRetentionExecute(ctx context.Context, insta return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -11705,6 +12482,7 @@ type GetScrapeConfigRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetScrapeConfigRequest) Execute() (*GetScrapeConfigResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11809,7 +12587,7 @@ func (r GetScrapeConfigRequest) Execute() (*GetScrapeConfigResponse, error) { /* GetScrapeConfig: Method for GetScrapeConfig -Get scrape config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -11827,6 +12605,7 @@ func (a *APIClient) GetScrapeConfig(ctx context.Context, instanceId string, jobN } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetScrapeConfigExecute(ctx context.Context, instanceId string, jobName string, projectId string) (*GetScrapeConfigResponse, error) { r := GetScrapeConfigRequest{ apiService: a.defaultApi, @@ -11838,6 +12617,7 @@ func (a *APIClient) GetScrapeConfigExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTracesConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -11845,6 +12625,7 @@ type GetTracesConfigsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetTracesConfigsRequest) Execute() (*TracesConfigResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -11948,7 +12729,7 @@ func (r GetTracesConfigsRequest) Execute() (*TracesConfigResponse, error) { /* GetTracesConfigs: Method for GetTracesConfigs -Get traces config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -11964,6 +12745,7 @@ func (a *APIClient) GetTracesConfigs(ctx context.Context, instanceId string, pro } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetTracesConfigsExecute(ctx context.Context, instanceId string, projectId string) (*TracesConfigResponse, error) { r := GetTracesConfigsRequest{ apiService: a.defaultApi, @@ -11974,6 +12756,7 @@ func (a *APIClient) GetTracesConfigsExecute(ctx context.Context, instanceId stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLRequest struct { ctx context.Context apiService *DefaultApiService @@ -11981,6 +12764,7 @@ type ListACLRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListACLRequest) Execute() (*ListACLResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12084,7 +12868,7 @@ func (r ListACLRequest) Execute() (*ListACLResponse, error) { /* ListACL: Method for ListACL -Get acl for instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -12100,6 +12884,7 @@ func (a *APIClient) ListACL(ctx context.Context, instanceId string, projectId st } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListACLExecute(ctx context.Context, instanceId string, projectId string) (*ListACLResponse, error) { r := ListACLRequest{ apiService: a.defaultApi, @@ -12110,6 +12895,7 @@ func (a *APIClient) ListACLExecute(ctx context.Context, instanceId string, proje return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListAlertConfigReceiversRequest struct { ctx context.Context apiService *DefaultApiService @@ -12117,6 +12903,7 @@ type ListAlertConfigReceiversRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListAlertConfigReceiversRequest) Execute() (*AlertConfigReceiversResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12220,7 +13007,7 @@ func (r ListAlertConfigReceiversRequest) Execute() (*AlertConfigReceiversRespons /* ListAlertConfigReceivers: Method for ListAlertConfigReceivers -Get alert config receivers. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -12236,6 +13023,7 @@ func (a *APIClient) ListAlertConfigReceivers(ctx context.Context, instanceId str } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListAlertConfigReceiversExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigReceiversResponse, error) { r := ListAlertConfigReceiversRequest{ apiService: a.defaultApi, @@ -12246,6 +13034,7 @@ func (a *APIClient) ListAlertConfigReceiversExecute(ctx context.Context, instanc return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListAlertConfigRoutesRequest struct { ctx context.Context apiService *DefaultApiService @@ -12253,6 +13042,7 @@ type ListAlertConfigRoutesRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListAlertConfigRoutesRequest) Execute() (*AlertConfigRouteResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12356,7 +13146,7 @@ func (r ListAlertConfigRoutesRequest) Execute() (*AlertConfigRouteResponse, erro /* ListAlertConfigRoutes: Method for ListAlertConfigRoutes -Get alert config route. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -12372,6 +13162,7 @@ func (a *APIClient) ListAlertConfigRoutes(ctx context.Context, instanceId string } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListAlertConfigRoutesExecute(ctx context.Context, instanceId string, projectId string) (*AlertConfigRouteResponse, error) { r := ListAlertConfigRoutesRequest{ apiService: a.defaultApi, @@ -12382,6 +13173,7 @@ func (a *APIClient) ListAlertConfigRoutesExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListAlertRecordsRequest struct { ctx context.Context apiService *DefaultApiService @@ -12390,6 +13182,7 @@ type ListAlertRecordsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12494,7 +13287,7 @@ func (r ListAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { /* ListAlertRecords: Method for ListAlertRecords -Get alert records. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -12512,6 +13305,7 @@ func (a *APIClient) ListAlertRecords(ctx context.Context, groupName string, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListAlertRecordsExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) { r := ListAlertRecordsRequest{ apiService: a.defaultApi, @@ -12523,6 +13317,7 @@ func (a *APIClient) ListAlertRecordsExecute(ctx context.Context, groupName strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -12530,6 +13325,7 @@ type ListAlertgroupsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12644,7 +13440,7 @@ func (r ListAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { /* ListAlertgroups: Method for ListAlertgroups -Get alert groups. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -12660,6 +13456,7 @@ func (a *APIClient) ListAlertgroups(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := ListAlertgroupsRequest{ apiService: a.defaultApi, @@ -12670,6 +13467,7 @@ func (a *APIClient) ListAlertgroupsExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListAlertrulesRequest struct { ctx context.Context apiService *DefaultApiService @@ -12678,6 +13476,7 @@ type ListAlertrulesRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListAlertrulesRequest) Execute() (*AlertRulesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12782,7 +13581,7 @@ func (r ListAlertrulesRequest) Execute() (*AlertRulesResponse, error) { /* ListAlertrules: Method for ListAlertrules -Get alert rules. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -12800,6 +13599,7 @@ func (a *APIClient) ListAlertrules(ctx context.Context, groupName string, instan } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) { r := ListAlertrulesRequest{ apiService: a.defaultApi, @@ -12811,6 +13611,7 @@ func (a *APIClient) ListAlertrulesExecute(ctx context.Context, groupName string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupRetentionsRequest struct { ctx context.Context apiService *DefaultApiService @@ -12818,6 +13619,7 @@ type ListBackupRetentionsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListBackupRetentionsRequest) Execute() (*BackupRetentionResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -12921,7 +13723,7 @@ func (r ListBackupRetentionsRequest) Execute() (*BackupRetentionResponse, error) /* ListBackupRetentions: Method for ListBackupRetentions -Get backup retention. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -12937,6 +13739,7 @@ func (a *APIClient) ListBackupRetentions(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListBackupRetentionsExecute(ctx context.Context, instanceId string, projectId string) (*BackupRetentionResponse, error) { r := ListBackupRetentionsRequest{ apiService: a.defaultApi, @@ -12947,6 +13750,7 @@ func (a *APIClient) ListBackupRetentionsExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupSchedulesRequest struct { ctx context.Context apiService *DefaultApiService @@ -12956,12 +13760,13 @@ type ListBackupSchedulesRequest struct { } // List of backup targets - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListBackupSchedulesRequest) BackupTarget(backupTarget []string) ApiListBackupSchedulesRequest { r.backupTarget = &backupTarget return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListBackupSchedulesRequest) Execute() (*BackupScheduleResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13068,7 +13873,7 @@ func (r ListBackupSchedulesRequest) Execute() (*BackupScheduleResponse, error) { /* ListBackupSchedules: Method for ListBackupSchedules -Get backup schedules. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -13084,6 +13889,7 @@ func (a *APIClient) ListBackupSchedules(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListBackupSchedulesExecute(ctx context.Context, instanceId string, projectId string) (*BackupScheduleResponse, error) { r := ListBackupSchedulesRequest{ apiService: a.defaultApi, @@ -13094,6 +13900,7 @@ func (a *APIClient) ListBackupSchedulesExecute(ctx context.Context, instanceId s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -13103,12 +13910,13 @@ type ListBackupsRequest struct { } // List of backup targets - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListBackupsRequest) BackupTarget(backupTarget []string) ApiListBackupsRequest { r.backupTarget = &backupTarget return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListBackupsRequest) Execute() (*BackupResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13226,7 +14034,7 @@ func (r ListBackupsRequest) Execute() (*BackupResponse, error) { /* ListBackups: Method for ListBackups -Get backups. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -13242,6 +14050,7 @@ func (a *APIClient) ListBackups(ctx context.Context, instanceId string, projectI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListBackupsExecute(ctx context.Context, instanceId string, projectId string) (*BackupResponse, error) { r := ListBackupsRequest{ apiService: a.defaultApi, @@ -13252,6 +14061,7 @@ func (a *APIClient) ListBackupsExecute(ctx context.Context, instanceId string, p return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCertChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -13259,6 +14069,7 @@ type ListCertChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListCertChecksRequest) Execute() (*CertCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13373,7 +14184,7 @@ func (r ListCertChecksRequest) Execute() (*CertCheckResponse, error) { /* ListCertChecks: Method for ListCertChecks -Get all cert checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -13389,6 +14200,7 @@ func (a *APIClient) ListCertChecks(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListCertChecksExecute(ctx context.Context, instanceId string, projectId string) (*CertCheckResponse, error) { r := ListCertChecksRequest{ apiService: a.defaultApi, @@ -13399,6 +14211,7 @@ func (a *APIClient) ListCertChecksExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -13406,6 +14219,7 @@ type ListCredentialsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13509,7 +14323,7 @@ func (r ListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { /* ListCredentials: Method for ListCredentials -Get all technical user credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -13525,6 +14339,7 @@ func (a *APIClient) ListCredentials(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListCredentialsExecute(ctx context.Context, instanceId string, projectId string) (*ListCredentialsResponse, error) { r := ListCredentialsRequest{ apiService: a.defaultApi, @@ -13535,6 +14350,7 @@ func (a *APIClient) ListCredentialsExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListElasticsearchChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -13542,6 +14358,7 @@ type ListElasticsearchChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListElasticsearchChecksRequest) Execute() (*ElasticsearchCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13656,7 +14473,7 @@ func (r ListElasticsearchChecksRequest) Execute() (*ElasticsearchCheckResponse, /* ListElasticsearchChecks: Method for ListElasticsearchChecks -Get all elasticsearch checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -13672,6 +14489,7 @@ func (a *APIClient) ListElasticsearchChecks(ctx context.Context, instanceId stri } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListElasticsearchChecksExecute(ctx context.Context, instanceId string, projectId string) (*ElasticsearchCheckResponse, error) { r := ListElasticsearchChecksRequest{ apiService: a.defaultApi, @@ -13682,6 +14500,7 @@ func (a *APIClient) ListElasticsearchChecksExecute(ctx context.Context, instance return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListHttpChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -13689,6 +14508,7 @@ type ListHttpChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListHttpChecksRequest) Execute() (*HttpCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13803,7 +14623,7 @@ func (r ListHttpChecksRequest) Execute() (*HttpCheckResponse, error) { /* ListHttpChecks: Method for ListHttpChecks -Get all http checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -13819,6 +14639,7 @@ func (a *APIClient) ListHttpChecks(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListHttpChecksExecute(ctx context.Context, instanceId string, projectId string) (*HttpCheckResponse, error) { r := ListHttpChecksRequest{ apiService: a.defaultApi, @@ -13829,12 +14650,14 @@ func (a *APIClient) ListHttpChecksExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesRequest struct { ctx context.Context apiService *DefaultApiService projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListInstancesRequest) Execute() (*ListInstancesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -13937,7 +14760,7 @@ func (r ListInstancesRequest) Execute() (*ListInstancesResponse, error) { /* ListInstances: Method for ListInstances -Get all instances for a project. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -13951,6 +14774,7 @@ func (a *APIClient) ListInstances(ctx context.Context, projectId string) ApiList } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) (*ListInstancesResponse, error) { r := ListInstancesRequest{ apiService: a.defaultApi, @@ -13960,6 +14784,7 @@ func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListLogsAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -13967,6 +14792,7 @@ type ListLogsAlertgroupsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListLogsAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14081,7 +14907,7 @@ func (r ListLogsAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { /* ListLogsAlertgroups: Method for ListLogsAlertgroups -Get logs alert groups config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -14097,6 +14923,7 @@ func (a *APIClient) ListLogsAlertgroups(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListLogsAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := ListLogsAlertgroupsRequest{ apiService: a.defaultApi, @@ -14107,6 +14934,7 @@ func (a *APIClient) ListLogsAlertgroupsExecute(ctx context.Context, instanceId s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListMongodbChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -14114,6 +14942,7 @@ type ListMongodbChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListMongodbChecksRequest) Execute() (*MongodbCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14228,7 +15057,7 @@ func (r ListMongodbChecksRequest) Execute() (*MongodbCheckResponse, error) { /* ListMongodbChecks: Method for ListMongodbChecks -Get all mongodb checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -14244,6 +15073,7 @@ func (a *APIClient) ListMongodbChecks(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListMongodbChecksExecute(ctx context.Context, instanceId string, projectId string) (*MongodbCheckResponse, error) { r := ListMongodbChecksRequest{ apiService: a.defaultApi, @@ -14254,6 +15084,7 @@ func (a *APIClient) ListMongodbChecksExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListMysqlChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -14261,6 +15092,7 @@ type ListMysqlChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListMysqlChecksRequest) Execute() (*MysqlCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14375,7 +15207,7 @@ func (r ListMysqlChecksRequest) Execute() (*MysqlCheckResponse, error) { /* ListMysqlChecks: Method for ListMysqlChecks -Get all mysql checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -14391,6 +15223,7 @@ func (a *APIClient) ListMysqlChecks(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListMysqlChecksExecute(ctx context.Context, instanceId string, projectId string) (*MysqlCheckResponse, error) { r := ListMysqlChecksRequest{ apiService: a.defaultApi, @@ -14401,6 +15234,7 @@ func (a *APIClient) ListMysqlChecksExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListNetworkChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -14408,6 +15242,7 @@ type ListNetworkChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListNetworkChecksRequest) Execute() (*NetworkCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14522,7 +15357,7 @@ func (r ListNetworkChecksRequest) Execute() (*NetworkCheckResponse, error) { /* ListNetworkChecks: Method for ListNetworkChecks -Get all network checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -14538,6 +15373,7 @@ func (a *APIClient) ListNetworkChecks(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListNetworkChecksExecute(ctx context.Context, instanceId string, projectId string) (*NetworkCheckResponse, error) { r := ListNetworkChecksRequest{ apiService: a.defaultApi, @@ -14548,12 +15384,14 @@ func (a *APIClient) ListNetworkChecksExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListOfferingsRequest struct { ctx context.Context apiService *DefaultApiService projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListOfferingsRequest) Execute() (*Offerings, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14656,7 +15494,7 @@ func (r ListOfferingsRequest) Execute() (*Offerings, error) { /* ListOfferings: Method for ListOfferings -Get all plans. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -14670,6 +15508,7 @@ func (a *APIClient) ListOfferings(ctx context.Context, projectId string) ApiList } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListOfferingsExecute(ctx context.Context, projectId string) (*Offerings, error) { r := ListOfferingsRequest{ apiService: a.defaultApi, @@ -14679,6 +15518,7 @@ func (a *APIClient) ListOfferingsExecute(ctx context.Context, projectId string) return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListPingChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -14686,6 +15526,7 @@ type ListPingChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListPingChecksRequest) Execute() (*PingCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14800,7 +15641,7 @@ func (r ListPingChecksRequest) Execute() (*PingCheckResponse, error) { /* ListPingChecks: Method for ListPingChecks -Get all ping checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -14816,6 +15657,7 @@ func (a *APIClient) ListPingChecks(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListPingChecksExecute(ctx context.Context, instanceId string, projectId string) (*PingCheckResponse, error) { r := ListPingChecksRequest{ apiService: a.defaultApi, @@ -14826,12 +15668,14 @@ func (a *APIClient) ListPingChecksExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListPlansRequest struct { ctx context.Context apiService *DefaultApiService projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListPlansRequest) Execute() (*PlansResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -14934,7 +15778,7 @@ func (r ListPlansRequest) Execute() (*PlansResponse, error) { /* ListPlans: Method for ListPlans -Get all plans. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -14948,6 +15792,7 @@ func (a *APIClient) ListPlans(ctx context.Context, projectId string) ApiListPlan } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListPlansExecute(ctx context.Context, projectId string) (*PlansResponse, error) { r := ListPlansRequest{ apiService: a.defaultApi, @@ -14957,6 +15802,7 @@ func (a *APIClient) ListPlansExecute(ctx context.Context, projectId string) (*Pl return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListPostgresqlChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -14964,6 +15810,7 @@ type ListPostgresqlChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListPostgresqlChecksRequest) Execute() (*PostgresqlCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -15078,7 +15925,7 @@ func (r ListPostgresqlChecksRequest) Execute() (*PostgresqlCheckResponse, error) /* ListPostgresqlChecks: Method for ListPostgresqlChecks -Get all postgresql checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -15094,6 +15941,7 @@ func (a *APIClient) ListPostgresqlChecks(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListPostgresqlChecksExecute(ctx context.Context, instanceId string, projectId string) (*PostgresqlCheckResponse, error) { r := ListPostgresqlChecksRequest{ apiService: a.defaultApi, @@ -15104,6 +15952,7 @@ func (a *APIClient) ListPostgresqlChecksExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRabbitmqChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -15111,6 +15960,7 @@ type ListRabbitmqChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListRabbitmqChecksRequest) Execute() (*RabbitmqCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -15225,7 +16075,7 @@ func (r ListRabbitmqChecksRequest) Execute() (*RabbitmqCheckResponse, error) { /* ListRabbitmqChecks: Method for ListRabbitmqChecks -Get all rabbitmq checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -15241,6 +16091,7 @@ func (a *APIClient) ListRabbitmqChecks(ctx context.Context, instanceId string, p } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListRabbitmqChecksExecute(ctx context.Context, instanceId string, projectId string) (*RabbitmqCheckResponse, error) { r := ListRabbitmqChecksRequest{ apiService: a.defaultApi, @@ -15251,6 +16102,7 @@ func (a *APIClient) ListRabbitmqChecksExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRedisChecksRequest struct { ctx context.Context apiService *DefaultApiService @@ -15258,6 +16110,7 @@ type ListRedisChecksRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListRedisChecksRequest) Execute() (*RedisCheckResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -15372,7 +16225,7 @@ func (r ListRedisChecksRequest) Execute() (*RedisCheckResponse, error) { /* ListRedisChecks: Method for ListRedisChecks -Get all redis checks configured. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -15388,6 +16241,7 @@ func (a *APIClient) ListRedisChecks(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListRedisChecksExecute(ctx context.Context, instanceId string, projectId string) (*RedisCheckResponse, error) { r := ListRedisChecksRequest{ apiService: a.defaultApi, @@ -15398,6 +16252,7 @@ func (a *APIClient) ListRedisChecksExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -15405,6 +16260,7 @@ type ListScrapeConfigsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListScrapeConfigsRequest) Execute() (*ListScrapeConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -15508,7 +16364,7 @@ func (r ListScrapeConfigsRequest) Execute() (*ListScrapeConfigsResponse, error) /* ListScrapeConfigs: Method for ListScrapeConfigs -Get scrape configs. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -15524,6 +16380,7 @@ func (a *APIClient) ListScrapeConfigs(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListScrapeConfigsExecute(ctx context.Context, instanceId string, projectId string) (*ListScrapeConfigsResponse, error) { r := ListScrapeConfigsRequest{ apiService: a.defaultApi, @@ -15534,6 +16391,7 @@ func (a *APIClient) ListScrapeConfigsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequest struct { ctx context.Context apiService *DefaultApiService @@ -15543,11 +16401,13 @@ type PartialUpdateAlertRecordsRequest struct { partialUpdateAlertRecordsRequestInner *[]PartialUpdateAlertRecordsRequestInner } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateAlertRecordsRequest) PartialUpdateAlertRecordsRequestInner(partialUpdateAlertRecordsRequestInner []PartialUpdateAlertRecordsRequestInner) ApiPartialUpdateAlertRecordsRequest { r.partialUpdateAlertRecordsRequestInner = &partialUpdateAlertRecordsRequestInner return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -15668,7 +16528,7 @@ func (r PartialUpdateAlertRecordsRequest) Execute() (*AlertRecordsResponse, erro /* PartialUpdateAlertRecords: Method for PartialUpdateAlertRecords -Patch alert records. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -15686,6 +16546,7 @@ func (a *APIClient) PartialUpdateAlertRecords(ctx context.Context, groupName str } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) PartialUpdateAlertRecordsExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) { r := PartialUpdateAlertRecordsRequest{ apiService: a.defaultApi, @@ -15697,6 +16558,7 @@ func (a *APIClient) PartialUpdateAlertRecordsExecute(ctx context.Context, groupN return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -15705,11 +16567,13 @@ type PartialUpdateAlertgroupsRequest struct { updateAlertgroupsRequestInner *[]UpdateAlertgroupsRequestInner } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateAlertgroupsRequest) UpdateAlertgroupsRequestInner(updateAlertgroupsRequestInner []UpdateAlertgroupsRequestInner) ApiPartialUpdateAlertgroupsRequest { r.updateAlertgroupsRequestInner = &updateAlertgroupsRequestInner return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -15829,7 +16693,7 @@ func (r PartialUpdateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) /* PartialUpdateAlertgroups: Method for PartialUpdateAlertgroups -Patch alert groups. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -15845,6 +16709,7 @@ func (a *APIClient) PartialUpdateAlertgroups(ctx context.Context, instanceId str } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) PartialUpdateAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := PartialUpdateAlertgroupsRequest{ apiService: a.defaultApi, @@ -15855,6 +16720,7 @@ func (a *APIClient) PartialUpdateAlertgroupsExecute(ctx context.Context, instanc return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequest struct { ctx context.Context apiService *DefaultApiService @@ -15864,11 +16730,13 @@ type PartialUpdateAlertrulesRequest struct { partialUpdateAlertrulesRequestInner *[]PartialUpdateAlertrulesRequestInner } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateAlertrulesRequest) PartialUpdateAlertrulesRequestInner(partialUpdateAlertrulesRequestInner []PartialUpdateAlertrulesRequestInner) ApiPartialUpdateAlertrulesRequest { r.partialUpdateAlertrulesRequestInner = &partialUpdateAlertrulesRequestInner return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateAlertrulesRequest) Execute() (*AlertRulesResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -15989,7 +16857,7 @@ func (r PartialUpdateAlertrulesRequest) Execute() (*AlertRulesResponse, error) { /* PartialUpdateAlertrules: Method for PartialUpdateAlertrules -Patch alert rules. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -16007,6 +16875,7 @@ func (a *APIClient) PartialUpdateAlertrules(ctx context.Context, groupName strin } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) PartialUpdateAlertrulesExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) { r := PartialUpdateAlertrulesRequest{ apiService: a.defaultApi, @@ -16018,6 +16887,7 @@ func (a *APIClient) PartialUpdateAlertrulesExecute(ctx context.Context, groupNam return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -16026,11 +16896,13 @@ type PartialUpdateScrapeConfigsRequest struct { partialUpdateScrapeConfigsRequestInner *[]PartialUpdateScrapeConfigsRequestInner } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateScrapeConfigsRequest) PartialUpdateScrapeConfigsRequestInner(partialUpdateScrapeConfigsRequestInner []PartialUpdateScrapeConfigsRequestInner) ApiPartialUpdateScrapeConfigsRequest { r.partialUpdateScrapeConfigsRequestInner = &partialUpdateScrapeConfigsRequestInner return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -16150,7 +17022,7 @@ func (r PartialUpdateScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, er /* PartialUpdateScrapeConfigs: Method for PartialUpdateScrapeConfigs -Update scrape configs. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -16166,6 +17038,7 @@ func (a *APIClient) PartialUpdateScrapeConfigs(ctx context.Context, instanceId s } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) PartialUpdateScrapeConfigsExecute(ctx context.Context, instanceId string, projectId string) (*ScrapeConfigsResponse, error) { r := PartialUpdateScrapeConfigsRequest{ apiService: a.defaultApi, @@ -16176,6 +17049,7 @@ func (a *APIClient) PartialUpdateScrapeConfigsExecute(ctx context.Context, insta return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreBackupRequest struct { ctx context.Context apiService *DefaultApiService @@ -16186,12 +17060,13 @@ type RestoreBackupRequest struct { } // List of restore targets - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r RestoreBackupRequest) RestoreTarget(restoreTarget string) ApiRestoreBackupRequest { r.restoreTarget = &restoreTarget return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r RestoreBackupRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPost @@ -16311,7 +17186,7 @@ func (r RestoreBackupRequest) Execute() (*Message, error) { /* RestoreBackup: Method for RestoreBackup -Restore backup. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param backupDate @@ -16329,6 +17204,7 @@ func (a *APIClient) RestoreBackup(ctx context.Context, backupDate string, instan } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) RestoreBackupExecute(ctx context.Context, backupDate string, instanceId string, projectId string) (*Message, error) { r := RestoreBackupRequest{ apiService: a.defaultApi, @@ -16340,6 +17216,7 @@ func (a *APIClient) RestoreBackupExecute(ctx context.Context, backupDate string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateACLRequest struct { ctx context.Context apiService *DefaultApiService @@ -16348,11 +17225,13 @@ type UpdateACLRequest struct { updateACLPayload *UpdateACLPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateACLRequest) UpdateACLPayload(updateACLPayload UpdateACLPayload) ApiUpdateACLRequest { r.updateACLPayload = &updateACLPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateACLRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPut @@ -16469,7 +17348,7 @@ func (r UpdateACLRequest) Execute() (*Message, error) { /* UpdateACL: Method for UpdateACL -Update acl config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -16485,6 +17364,7 @@ func (a *APIClient) UpdateACL(ctx context.Context, instanceId string, projectId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateACLExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) { r := UpdateACLRequest{ apiService: a.defaultApi, @@ -16495,6 +17375,7 @@ func (a *APIClient) UpdateACLExecute(ctx context.Context, instanceId string, pro return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverRequest struct { ctx context.Context apiService *DefaultApiService @@ -16504,11 +17385,13 @@ type UpdateAlertConfigReceiverRequest struct { updateAlertConfigReceiverPayload *UpdateAlertConfigReceiverPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertConfigReceiverRequest) UpdateAlertConfigReceiverPayload(updateAlertConfigReceiverPayload UpdateAlertConfigReceiverPayload) ApiUpdateAlertConfigReceiverRequest { r.updateAlertConfigReceiverPayload = &updateAlertConfigReceiverPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -16640,7 +17523,7 @@ func (r UpdateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRespon /* UpdateAlertConfigReceiver: Method for UpdateAlertConfigReceiver -Update alert config receiver. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -16658,6 +17541,7 @@ func (a *APIClient) UpdateAlertConfigReceiver(ctx context.Context, instanceId st } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertConfigReceiverExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigReceiversResponse, error) { r := UpdateAlertConfigReceiverRequest{ apiService: a.defaultApi, @@ -16669,6 +17553,7 @@ func (a *APIClient) UpdateAlertConfigReceiverExecute(ctx context.Context, instan return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRouteRequest struct { ctx context.Context apiService *DefaultApiService @@ -16678,11 +17563,13 @@ type UpdateAlertConfigRouteRequest struct { updateAlertConfigRoutePayload *UpdateAlertConfigRoutePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertConfigRouteRequest) UpdateAlertConfigRoutePayload(updateAlertConfigRoutePayload UpdateAlertConfigRoutePayload) ApiUpdateAlertConfigRouteRequest { r.updateAlertConfigRoutePayload = &updateAlertConfigRoutePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -16814,7 +17701,7 @@ func (r UpdateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, err /* UpdateAlertConfigRoute: Method for UpdateAlertConfigRoute -Update alert receiver for route. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -16832,6 +17719,7 @@ func (a *APIClient) UpdateAlertConfigRoute(ctx context.Context, instanceId strin } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertConfigRouteExecute(ctx context.Context, instanceId string, projectId string, receiver string) (*AlertConfigRouteResponse, error) { r := UpdateAlertConfigRouteRequest{ apiService: a.defaultApi, @@ -16843,6 +17731,7 @@ func (a *APIClient) UpdateAlertConfigRouteExecute(ctx context.Context, instanceI return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -16851,11 +17740,13 @@ type UpdateAlertConfigsRequest struct { updateAlertConfigsPayload *UpdateAlertConfigsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertConfigsRequest) UpdateAlertConfigsPayload(updateAlertConfigsPayload UpdateAlertConfigsPayload) ApiUpdateAlertConfigsRequest { r.updateAlertConfigsPayload = &updateAlertConfigsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertConfigsRequest) Execute() (*UpdateAlertConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -16975,7 +17866,7 @@ func (r UpdateAlertConfigsRequest) Execute() (*UpdateAlertConfigsResponse, error /* UpdateAlertConfigs: Method for UpdateAlertConfigs -Update alert config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -16991,6 +17882,7 @@ func (a *APIClient) UpdateAlertConfigs(ctx context.Context, instanceId string, p } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertConfigsExecute(ctx context.Context, instanceId string, projectId string) (*UpdateAlertConfigsResponse, error) { r := UpdateAlertConfigsRequest{ apiService: a.defaultApi, @@ -17001,6 +17893,7 @@ func (a *APIClient) UpdateAlertConfigsExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordRequest struct { ctx context.Context apiService *DefaultApiService @@ -17011,11 +17904,13 @@ type UpdateAlertRecordRequest struct { updateAlertRecordPayload *UpdateAlertRecordPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertRecordRequest) UpdateAlertRecordPayload(updateAlertRecordPayload UpdateAlertRecordPayload) ApiUpdateAlertRecordRequest { r.updateAlertRecordPayload = &updateAlertRecordPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -17148,7 +18043,7 @@ func (r UpdateAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { /* UpdateAlertRecord: Method for UpdateAlertRecord -Update alert record. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param alertRecord @@ -17168,6 +18063,7 @@ func (a *APIClient) UpdateAlertRecord(ctx context.Context, alertRecord string, g } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertRecordExecute(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) (*AlertRecordsResponse, error) { r := UpdateAlertRecordRequest{ apiService: a.defaultApi, @@ -17180,6 +18076,7 @@ func (a *APIClient) UpdateAlertRecordExecute(ctx context.Context, alertRecord st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupRequest struct { ctx context.Context apiService *DefaultApiService @@ -17189,11 +18086,13 @@ type UpdateAlertgroupRequest struct { updateAlertgroupPayload *UpdateAlertgroupPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertgroupRequest) UpdateAlertgroupPayload(updateAlertgroupPayload UpdateAlertgroupPayload) ApiUpdateAlertgroupRequest { r.updateAlertgroupPayload = &updateAlertgroupPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -17325,7 +18224,7 @@ func (r UpdateAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { /* UpdateAlertgroup: Method for UpdateAlertgroup -Update alert group config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -17343,6 +18242,7 @@ func (a *APIClient) UpdateAlertgroup(ctx context.Context, groupName string, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := UpdateAlertgroupRequest{ apiService: a.defaultApi, @@ -17354,6 +18254,7 @@ func (a *APIClient) UpdateAlertgroupExecute(ctx context.Context, groupName strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -17362,11 +18263,13 @@ type UpdateAlertgroupsRequest struct { updateAlertgroupsRequestInner *[]UpdateAlertgroupsRequestInner } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertgroupsRequest) UpdateAlertgroupsRequestInner(updateAlertgroupsRequestInner []UpdateAlertgroupsRequestInner) ApiUpdateAlertgroupsRequest { r.updateAlertgroupsRequestInner = &updateAlertgroupsRequestInner return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -17486,7 +18389,7 @@ func (r UpdateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { /* UpdateAlertgroups: Method for UpdateAlertgroups -Update alert groups. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -17502,6 +18405,7 @@ func (a *APIClient) UpdateAlertgroups(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertgroupsExecute(ctx context.Context, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := UpdateAlertgroupsRequest{ apiService: a.defaultApi, @@ -17512,6 +18416,7 @@ func (a *APIClient) UpdateAlertgroupsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertruleRequest struct { ctx context.Context apiService *DefaultApiService @@ -17522,11 +18427,13 @@ type UpdateAlertruleRequest struct { updateAlertrulePayload *UpdateAlertrulePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertruleRequest) UpdateAlertrulePayload(updateAlertrulePayload UpdateAlertrulePayload) ApiUpdateAlertruleRequest { r.updateAlertrulePayload = &updateAlertrulePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateAlertruleRequest) Execute() (*AlertRulesResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -17659,7 +18566,7 @@ func (r UpdateAlertruleRequest) Execute() (*AlertRulesResponse, error) { /* UpdateAlertrule: Method for UpdateAlertrule -Update alert rule. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param alertName @@ -17679,6 +18586,7 @@ func (a *APIClient) UpdateAlertrule(ctx context.Context, alertName string, group } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateAlertruleExecute(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) (*AlertRulesResponse, error) { r := UpdateAlertruleRequest{ apiService: a.defaultApi, @@ -17691,6 +18599,7 @@ func (a *APIClient) UpdateAlertruleExecute(ctx context.Context, alertName string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateCredentialsRemoteWriteConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -17700,11 +18609,13 @@ type UpdateCredentialsRemoteWriteConfigRequest struct { updateCredentialsRemoteWriteConfigPayload *UpdateCredentialsRemoteWriteConfigPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateCredentialsRemoteWriteConfigRequest) UpdateCredentialsRemoteWriteConfigPayload(updateCredentialsRemoteWriteConfigPayload UpdateCredentialsRemoteWriteConfigPayload) ApiUpdateCredentialsRemoteWriteConfigRequest { r.updateCredentialsRemoteWriteConfigPayload = &updateCredentialsRemoteWriteConfigPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWriteConfig, error) { var ( localVarHTTPMethod = http.MethodPut @@ -17847,7 +18758,7 @@ func (r UpdateCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemote /* UpdateCredentialsRemoteWriteConfig: Method for UpdateCredentialsRemoteWriteConfig -Update remote write config for credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -17865,6 +18776,7 @@ func (a *APIClient) UpdateCredentialsRemoteWriteConfig(ctx context.Context, inst } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateCredentialsRemoteWriteConfigExecute(ctx context.Context, instanceId string, projectId string, username string) (*CredentialsRemoteWriteConfig, error) { r := UpdateCredentialsRemoteWriteConfigRequest{ apiService: a.defaultApi, @@ -17876,6 +18788,7 @@ func (a *APIClient) UpdateCredentialsRemoteWriteConfigExecute(ctx context.Contex return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -17884,11 +18797,13 @@ type UpdateGrafanaConfigsRequest struct { updateGrafanaConfigsPayload *UpdateGrafanaConfigsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateGrafanaConfigsRequest) UpdateGrafanaConfigsPayload(updateGrafanaConfigsPayload UpdateGrafanaConfigsPayload) ApiUpdateGrafanaConfigsRequest { r.updateGrafanaConfigsPayload = &updateGrafanaConfigsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateGrafanaConfigsRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18008,7 +18923,7 @@ func (r UpdateGrafanaConfigsRequest) Execute() (*Message, error) { /* UpdateGrafanaConfigs: Method for UpdateGrafanaConfigs -Update grafana config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -18024,6 +18939,7 @@ func (a *APIClient) UpdateGrafanaConfigs(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateGrafanaConfigsExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) { r := UpdateGrafanaConfigsRequest{ apiService: a.defaultApi, @@ -18034,6 +18950,7 @@ func (a *APIClient) UpdateGrafanaConfigsExecute(ctx context.Context, instanceId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -18042,11 +18959,13 @@ type UpdateInstanceRequest struct { updateInstancePayload *UpdateInstancePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateInstanceRequest) UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest { r.updateInstancePayload = &updateInstancePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateInstanceRequest) Execute() (*InstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18166,7 +19085,7 @@ func (r UpdateInstanceRequest) Execute() (*InstanceResponse, error) { /* UpdateInstance: Method for UpdateInstance -Update instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -18182,6 +19101,7 @@ func (a *APIClient) UpdateInstance(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateInstanceExecute(ctx context.Context, instanceId string, projectId string) (*InstanceResponse, error) { r := UpdateInstanceRequest{ apiService: a.defaultApi, @@ -18192,6 +19112,7 @@ func (a *APIClient) UpdateInstanceExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupRequest struct { ctx context.Context apiService *DefaultApiService @@ -18201,11 +19122,13 @@ type UpdateLogsAlertgroupRequest struct { updateLogsAlertgroupPayload *UpdateLogsAlertgroupPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateLogsAlertgroupRequest) UpdateLogsAlertgroupPayload(updateLogsAlertgroupPayload UpdateLogsAlertgroupPayload) ApiUpdateLogsAlertgroupRequest { r.updateLogsAlertgroupPayload = &updateLogsAlertgroupPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateLogsAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18337,7 +19260,7 @@ func (r UpdateLogsAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { /* UpdateLogsAlertgroup: Method for UpdateLogsAlertgroup -Update logs alert group config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupName @@ -18355,6 +19278,7 @@ func (a *APIClient) UpdateLogsAlertgroup(ctx context.Context, groupName string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateLogsAlertgroupExecute(ctx context.Context, groupName string, instanceId string, projectId string) (*AlertGroupsResponse, error) { r := UpdateLogsAlertgroupRequest{ apiService: a.defaultApi, @@ -18366,6 +19290,7 @@ func (a *APIClient) UpdateLogsAlertgroupExecute(ctx context.Context, groupName s return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -18374,11 +19299,13 @@ type UpdateLogsConfigsRequest struct { updateLogsConfigsPayload *UpdateLogsConfigsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateLogsConfigsRequest) UpdateLogsConfigsPayload(updateLogsConfigsPayload UpdateLogsConfigsPayload) ApiUpdateLogsConfigsRequest { r.updateLogsConfigsPayload = &updateLogsConfigsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateLogsConfigsRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18498,7 +19425,7 @@ func (r UpdateLogsConfigsRequest) Execute() (*Message, error) { /* UpdateLogsConfigs: Method for UpdateLogsConfigs -Update logs config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -18514,6 +19441,7 @@ func (a *APIClient) UpdateLogsConfigs(ctx context.Context, instanceId string, pr } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateLogsConfigsExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) { r := UpdateLogsConfigsRequest{ apiService: a.defaultApi, @@ -18524,6 +19452,7 @@ func (a *APIClient) UpdateLogsConfigsExecute(ctx context.Context, instanceId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionRequest struct { ctx context.Context apiService *DefaultApiService @@ -18532,11 +19461,13 @@ type UpdateMetricsStorageRetentionRequest struct { updateMetricsStorageRetentionPayload *UpdateMetricsStorageRetentionPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateMetricsStorageRetentionRequest) UpdateMetricsStorageRetentionPayload(updateMetricsStorageRetentionPayload UpdateMetricsStorageRetentionPayload) ApiUpdateMetricsStorageRetentionRequest { r.updateMetricsStorageRetentionPayload = &updateMetricsStorageRetentionPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateMetricsStorageRetentionRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18656,7 +19587,7 @@ func (r UpdateMetricsStorageRetentionRequest) Execute() (*Message, error) { /* UpdateMetricsStorageRetention: Method for UpdateMetricsStorageRetention -Update metric update retention time. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -18672,6 +19603,7 @@ func (a *APIClient) UpdateMetricsStorageRetention(ctx context.Context, instanceI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateMetricsStorageRetentionExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) { r := UpdateMetricsStorageRetentionRequest{ apiService: a.defaultApi, @@ -18682,6 +19614,7 @@ func (a *APIClient) UpdateMetricsStorageRetentionExecute(ctx context.Context, in return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -18691,11 +19624,13 @@ type UpdateScrapeConfigRequest struct { updateScrapeConfigPayload *UpdateScrapeConfigPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateScrapeConfigRequest) UpdateScrapeConfigPayload(updateScrapeConfigPayload UpdateScrapeConfigPayload) ApiUpdateScrapeConfigRequest { r.updateScrapeConfigPayload = &updateScrapeConfigPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18827,7 +19762,7 @@ func (r UpdateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) { /* UpdateScrapeConfig: Method for UpdateScrapeConfig -Update scrape config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -18845,6 +19780,7 @@ func (a *APIClient) UpdateScrapeConfig(ctx context.Context, instanceId string, j } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateScrapeConfigExecute(ctx context.Context, instanceId string, jobName string, projectId string) (*ScrapeConfigsResponse, error) { r := UpdateScrapeConfigRequest{ apiService: a.defaultApi, @@ -18856,6 +19792,7 @@ func (a *APIClient) UpdateScrapeConfigExecute(ctx context.Context, instanceId st return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTracesConfigsRequest struct { ctx context.Context apiService *DefaultApiService @@ -18864,11 +19801,13 @@ type UpdateTracesConfigsRequest struct { updateTracesConfigsPayload *UpdateTracesConfigsPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateTracesConfigsRequest) UpdateTracesConfigsPayload(updateTracesConfigsPayload UpdateTracesConfigsPayload) ApiUpdateTracesConfigsRequest { r.updateTracesConfigsPayload = &updateTracesConfigsPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateTracesConfigsRequest) Execute() (*Message, error) { var ( localVarHTTPMethod = http.MethodPut @@ -18988,7 +19927,7 @@ func (r UpdateTracesConfigsRequest) Execute() (*Message, error) { /* UpdateTracesConfigs: Method for UpdateTracesConfigs -Update traces config. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId @@ -19004,6 +19943,7 @@ func (a *APIClient) UpdateTracesConfigs(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateTracesConfigsExecute(ctx context.Context, instanceId string, projectId string) (*Message, error) { r := UpdateTracesConfigsRequest{ apiService: a.defaultApi, diff --git a/services/observability/client.go b/services/observability/client.go index cd1ca334a..52f11dfe7 100644 --- a/services/observability/client.go +++ b/services/observability/client.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -44,18 +45,21 @@ var ( // APIClient manages communication with the STACKIT Observability API API v1.1.1 // In most cases there should be only one, shared, APIClient. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type APIClient struct { cfg *config.Configuration common service // Reuse a single struct instead of allocating one for each service on the heap. defaultApi *DefaultApiService } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type service struct { client DefaultApi } // NewAPIClient creates a new API client. // Optionally receives configuration options +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { cfg := NewConfiguration() @@ -147,6 +151,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func ParameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { return fmt.Sprintf("%v", obj) @@ -285,6 +290,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { // Allow modification of underlying config for alternate implementations and testing // Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (c *APIClient) GetConfig() *config.Configuration { return c.cfg } @@ -595,6 +601,7 @@ func parseCacheControl(headers http.Header) cacheControl { } // CacheExpires helper function to determine remaining time before repeating a request. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func CacheExpires(r *http.Response) time.Time { // Figure out when the cache expires. var expires time.Time diff --git a/services/observability/configuration.go b/services/observability/configuration.go index 6a932cfbf..18f490aa2 100644 --- a/services/observability/configuration.go +++ b/services/observability/configuration.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -15,6 +16,7 @@ import ( ) // NewConfiguration returns a new Configuration object +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewConfiguration() *config.Configuration { cfg := &config.Configuration{ DefaultHeader: make(map[string]string), diff --git a/services/observability/go.mod b/services/observability/go.mod index 8366bfa1c..88f134889 100644 --- a/services/observability/go.mod +++ b/services/observability/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.21.1 + github.com/stackitcloud/stackit-sdk-go/core v0.22.0 ) require ( diff --git a/services/observability/go.sum b/services/observability/go.sum index ca103c909..195011dd5 100644 --- a/services/observability/go.sum +++ b/services/observability/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= diff --git a/services/observability/model_alert.go b/services/observability/model_alert.go index 8aad44b56..0b6c5ddfc 100644 --- a/services/observability/model_alert.go +++ b/services/observability/model_alert.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Alert{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetGlobalAttributeType = *Global + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetGlobalArgType = Global + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetGlobalRetType = Global +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGetGlobalAttributeTypeOk(arg AlertGetGlobalAttributeType) (ret AlertGetGlobalRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertGetGlobalAttributeTypeOk(arg AlertGetGlobalAttributeType) (ret Aler return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGetGlobalAttributeType(arg *AlertGetGlobalAttributeType, val AlertGetGlobalRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setAlertGetGlobalAttributeType(arg *AlertGetGlobalAttributeType, val AlertG */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetInhibitRulesAttributeType = *[]InhibitRules + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetInhibitRulesArgType = []InhibitRules + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetInhibitRulesRetType = []InhibitRules +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGetInhibitRulesAttributeTypeOk(arg AlertGetInhibitRulesAttributeType) (ret AlertGetInhibitRulesRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getAlertGetInhibitRulesAttributeTypeOk(arg AlertGetInhibitRulesAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGetInhibitRulesAttributeType(arg *AlertGetInhibitRulesAttributeType, val AlertGetInhibitRulesRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setAlertGetInhibitRulesAttributeType(arg *AlertGetInhibitRulesAttributeType */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetReceiversAttributeType = *[]Receivers + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetReceiversArgType = []Receivers + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetReceiversRetType = []Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGetReceiversAttributeTypeOk(arg AlertGetReceiversAttributeType) (ret AlertGetReceiversRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getAlertGetReceiversAttributeTypeOk(arg AlertGetReceiversAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGetReceiversAttributeType(arg *AlertGetReceiversAttributeType, val AlertGetReceiversRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setAlertGetReceiversAttributeType(arg *AlertGetReceiversAttributeType, val */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetRouteAttributeType = *Route + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetRouteArgType = Route + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGetRouteRetType = Route +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGetRouteAttributeTypeOk(arg AlertGetRouteAttributeType) (ret AlertGetRouteRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +121,13 @@ func getAlertGetRouteAttributeTypeOk(arg AlertGetRouteAttributeType) (ret AlertG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGetRouteAttributeType(arg *AlertGetRouteAttributeType, val AlertGetRouteRetType) { *arg = &val } // Alert struct for Alert +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Alert struct { Global AlertGetGlobalAttributeType `json:"global,omitempty"` InhibitRules AlertGetInhibitRulesAttributeType `json:"inhibitRules,omitempty"` @@ -107,12 +137,14 @@ type Alert struct { Route AlertGetRouteAttributeType `json:"route" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Alert Alert // NewAlert instantiates a new Alert object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlert(receivers AlertGetReceiversArgType, route AlertGetRouteArgType) *Alert { this := Alert{} setAlertGetReceiversAttributeType(&this.Receivers, receivers) @@ -123,12 +155,14 @@ func NewAlert(receivers AlertGetReceiversArgType, route AlertGetRouteArgType) *A // NewAlertWithDefaults instantiates a new Alert object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertWithDefaults() *Alert { this := Alert{} return &this } // GetGlobal returns the Global field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetGlobal() (res AlertGetGlobalRetType) { res, _ = o.GetGlobalOk() return @@ -136,22 +170,26 @@ func (o *Alert) GetGlobal() (res AlertGetGlobalRetType) { // GetGlobalOk returns a tuple with the Global field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetGlobalOk() (ret AlertGetGlobalRetType, ok bool) { return getAlertGetGlobalAttributeTypeOk(o.Global) } // HasGlobal returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) HasGlobal() bool { _, ok := o.GetGlobalOk() return ok } // SetGlobal gets a reference to the given Global and assigns it to the Global field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) SetGlobal(v AlertGetGlobalRetType) { setAlertGetGlobalAttributeType(&o.Global, v) } // GetInhibitRules returns the InhibitRules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetInhibitRules() (res AlertGetInhibitRulesRetType) { res, _ = o.GetInhibitRulesOk() return @@ -159,22 +197,26 @@ func (o *Alert) GetInhibitRules() (res AlertGetInhibitRulesRetType) { // GetInhibitRulesOk returns a tuple with the InhibitRules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetInhibitRulesOk() (ret AlertGetInhibitRulesRetType, ok bool) { return getAlertGetInhibitRulesAttributeTypeOk(o.InhibitRules) } // HasInhibitRules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) HasInhibitRules() bool { _, ok := o.GetInhibitRulesOk() return ok } // SetInhibitRules gets a reference to the given []InhibitRules and assigns it to the InhibitRules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) SetInhibitRules(v AlertGetInhibitRulesRetType) { setAlertGetInhibitRulesAttributeType(&o.InhibitRules, v) } // GetReceivers returns the Receivers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetReceivers() (ret AlertGetReceiversRetType) { ret, _ = o.GetReceiversOk() return ret @@ -182,16 +224,19 @@ func (o *Alert) GetReceivers() (ret AlertGetReceiversRetType) { // GetReceiversOk returns a tuple with the Receivers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetReceiversOk() (ret AlertGetReceiversRetType, ok bool) { return getAlertGetReceiversAttributeTypeOk(o.Receivers) } // SetReceivers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) SetReceivers(v AlertGetReceiversRetType) { setAlertGetReceiversAttributeType(&o.Receivers, v) } // GetRoute returns the Route field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetRoute() (ret AlertGetRouteRetType) { ret, _ = o.GetRouteOk() return ret @@ -199,15 +244,18 @@ func (o *Alert) GetRoute() (ret AlertGetRouteRetType) { // GetRouteOk returns a tuple with the Route field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) GetRouteOk() (ret AlertGetRouteRetType, ok bool) { return getAlertGetRouteAttributeTypeOk(o.Route) } // SetRoute sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Alert) SetRoute(v AlertGetRouteRetType) { setAlertGetRouteAttributeType(&o.Route, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Alert) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertGetGlobalAttributeTypeOk(o.Global); ok { @@ -225,37 +273,45 @@ func (o Alert) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlert struct { value *Alert isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlert) Get() *Alert { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlert) Set(val *Alert) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlert) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlert) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlert(val *Alert) *NullableAlert { return &NullableAlert{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlert) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlert) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_config_receivers_response.go b/services/observability/model_alert_config_receivers_response.go index a32a15cae..e1bd30065 100644 --- a/services/observability/model_alert_config_receivers_response.go +++ b/services/observability/model_alert_config_receivers_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertConfigReceiversResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponseGetDataAttributeType = *[]Receivers + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponseGetDataArgType = []Receivers + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponseGetDataRetType = []Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertConfigReceiversResponseGetDataAttributeTypeOk(arg AlertConfigReceiversResponseGetDataAttributeType) (ret AlertConfigReceiversResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertConfigReceiversResponseGetDataAttributeTypeOk(arg AlertConfigReceiv return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertConfigReceiversResponseGetDataAttributeType(arg *AlertConfigReceiversResponseGetDataAttributeType, val AlertConfigReceiversResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertConfigReceiversResponseGetDataAttributeType(arg *AlertConfigReceive */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertConfigReceiversResponseGetMessageAttributeTypeOk(arg AlertConfigReceiversResponseGetMessageAttributeType) (ret AlertConfigReceiversResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertConfigReceiversResponseGetMessageAttributeTypeOk(arg AlertConfigRec return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertConfigReceiversResponseGetMessageAttributeType(arg *AlertConfigReceiversResponseGetMessageAttributeType, val AlertConfigReceiversResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponseGetMessageRetType = string // AlertConfigReceiversResponse struct for AlertConfigReceiversResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigReceiversResponse struct { // REQUIRED Data AlertConfigReceiversResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertConfigReceiversResponse struct { Message AlertConfigReceiversResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertConfigReceiversResponse AlertConfigReceiversResponse // NewAlertConfigReceiversResponse instantiates a new AlertConfigReceiversResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertConfigReceiversResponse(data AlertConfigReceiversResponseGetDataArgType, message AlertConfigReceiversResponseGetMessageArgType) *AlertConfigReceiversResponse { this := AlertConfigReceiversResponse{} setAlertConfigReceiversResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertConfigReceiversResponse(data AlertConfigReceiversResponseGetDataArg // NewAlertConfigReceiversResponseWithDefaults instantiates a new AlertConfigReceiversResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertConfigReceiversResponseWithDefaults() *AlertConfigReceiversResponse { this := AlertConfigReceiversResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigReceiversResponse) GetData() (ret AlertConfigReceiversResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertConfigReceiversResponse) GetData() (ret AlertConfigReceiversRespon // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigReceiversResponse) GetDataOk() (ret AlertConfigReceiversResponseGetDataRetType, ok bool) { return getAlertConfigReceiversResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigReceiversResponse) SetData(v AlertConfigReceiversResponseGetDataRetType) { setAlertConfigReceiversResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigReceiversResponse) GetMessage() (ret AlertConfigReceiversResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertConfigReceiversResponse) GetMessage() (ret AlertConfigReceiversRes // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigReceiversResponse) GetMessageOk() (ret AlertConfigReceiversResponseGetMessageRetType, ok bool) { return getAlertConfigReceiversResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigReceiversResponse) SetMessage(v AlertConfigReceiversResponseGetMessageRetType) { setAlertConfigReceiversResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertConfigReceiversResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertConfigReceiversResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertConfigReceiversResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertConfigReceiversResponse struct { value *AlertConfigReceiversResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertConfigReceiversResponse) Get() *AlertConfigReceiversResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertConfigReceiversResponse) Set(val *AlertConfigReceiversResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertConfigReceiversResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertConfigReceiversResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertConfigReceiversResponse(val *AlertConfigReceiversResponse) *NullableAlertConfigReceiversResponse { return &NullableAlertConfigReceiversResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertConfigReceiversResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertConfigReceiversResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_config_route_response.go b/services/observability/model_alert_config_route_response.go index 4986ca3e3..7a78e095c 100644 --- a/services/observability/model_alert_config_route_response.go +++ b/services/observability/model_alert_config_route_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertConfigRouteResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponseGetDataAttributeType = *Route + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponseGetDataArgType = Route + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponseGetDataRetType = Route +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertConfigRouteResponseGetDataAttributeTypeOk(arg AlertConfigRouteResponseGetDataAttributeType) (ret AlertConfigRouteResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertConfigRouteResponseGetDataAttributeTypeOk(arg AlertConfigRouteRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertConfigRouteResponseGetDataAttributeType(arg *AlertConfigRouteResponseGetDataAttributeType, val AlertConfigRouteResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertConfigRouteResponseGetDataAttributeType(arg *AlertConfigRouteRespon */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertConfigRouteResponseGetMessageAttributeTypeOk(arg AlertConfigRouteResponseGetMessageAttributeType) (ret AlertConfigRouteResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertConfigRouteResponseGetMessageAttributeTypeOk(arg AlertConfigRouteRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertConfigRouteResponseGetMessageAttributeType(arg *AlertConfigRouteResponseGetMessageAttributeType, val AlertConfigRouteResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponseGetMessageRetType = string // AlertConfigRouteResponse struct for AlertConfigRouteResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertConfigRouteResponse struct { // REQUIRED Data AlertConfigRouteResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertConfigRouteResponse struct { Message AlertConfigRouteResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertConfigRouteResponse AlertConfigRouteResponse // NewAlertConfigRouteResponse instantiates a new AlertConfigRouteResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertConfigRouteResponse(data AlertConfigRouteResponseGetDataArgType, message AlertConfigRouteResponseGetMessageArgType) *AlertConfigRouteResponse { this := AlertConfigRouteResponse{} setAlertConfigRouteResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertConfigRouteResponse(data AlertConfigRouteResponseGetDataArgType, me // NewAlertConfigRouteResponseWithDefaults instantiates a new AlertConfigRouteResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertConfigRouteResponseWithDefaults() *AlertConfigRouteResponse { this := AlertConfigRouteResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigRouteResponse) GetData() (ret AlertConfigRouteResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertConfigRouteResponse) GetData() (ret AlertConfigRouteResponseGetDat // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigRouteResponse) GetDataOk() (ret AlertConfigRouteResponseGetDataRetType, ok bool) { return getAlertConfigRouteResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigRouteResponse) SetData(v AlertConfigRouteResponseGetDataRetType) { setAlertConfigRouteResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigRouteResponse) GetMessage() (ret AlertConfigRouteResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertConfigRouteResponse) GetMessage() (ret AlertConfigRouteResponseGet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigRouteResponse) GetMessageOk() (ret AlertConfigRouteResponseGetMessageRetType, ok bool) { return getAlertConfigRouteResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertConfigRouteResponse) SetMessage(v AlertConfigRouteResponseGetMessageRetType) { setAlertConfigRouteResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertConfigRouteResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertConfigRouteResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertConfigRouteResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertConfigRouteResponse struct { value *AlertConfigRouteResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertConfigRouteResponse) Get() *AlertConfigRouteResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertConfigRouteResponse) Set(val *AlertConfigRouteResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertConfigRouteResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertConfigRouteResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertConfigRouteResponse(val *AlertConfigRouteResponse) *NullableAlertConfigRouteResponse { return &NullableAlertConfigRouteResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertConfigRouteResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertConfigRouteResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_group.go b/services/observability/model_alert_group.go index 099b7ecf3..e6236fc42 100644 --- a/services/observability/model_alert_group.go +++ b/services/observability/model_alert_group.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &AlertGroup{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupGetIntervalAttributeTypeOk(arg AlertGroupGetIntervalAttributeType) (ret AlertGroupGetIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getAlertGroupGetIntervalAttributeTypeOk(arg AlertGroupGetIntervalAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupGetIntervalAttributeType(arg *AlertGroupGetIntervalAttributeType, val AlertGroupGetIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetIntervalRetType = string /* @@ -43,8 +50,10 @@ type AlertGroupGetIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupGetNameAttributeTypeOk(arg AlertGroupGetNameAttributeType) (ret AlertGroupGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getAlertGroupGetNameAttributeTypeOk(arg AlertGroupGetNameAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupGetNameAttributeType(arg *AlertGroupGetNameAttributeType, val AlertGroupGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetNameRetType = string /* @@ -64,10 +77,16 @@ type AlertGroupGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetRulesAttributeType = *[]AlertRuleRecord + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetRulesArgType = []AlertRuleRecord + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupGetRulesRetType = []AlertRuleRecord +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupGetRulesAttributeTypeOk(arg AlertGroupGetRulesAttributeType) (ret AlertGroupGetRulesRetType, ok bool) { if arg == nil { return ret, false @@ -75,11 +94,13 @@ func getAlertGroupGetRulesAttributeTypeOk(arg AlertGroupGetRulesAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupGetRulesAttributeType(arg *AlertGroupGetRulesAttributeType, val AlertGroupGetRulesRetType) { *arg = &val } // AlertGroup struct for AlertGroup +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroup struct { Interval AlertGroupGetIntervalAttributeType `json:"interval,omitempty"` // REQUIRED @@ -88,12 +109,14 @@ type AlertGroup struct { Rules AlertGroupGetRulesAttributeType `json:"rules" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertGroup AlertGroup // NewAlertGroup instantiates a new AlertGroup object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertGroup(name AlertGroupGetNameArgType, rules AlertGroupGetRulesArgType) *AlertGroup { this := AlertGroup{} setAlertGroupGetNameAttributeType(&this.Name, name) @@ -104,6 +127,7 @@ func NewAlertGroup(name AlertGroupGetNameArgType, rules AlertGroupGetRulesArgTyp // NewAlertGroupWithDefaults instantiates a new AlertGroup object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertGroupWithDefaults() *AlertGroup { this := AlertGroup{} var interval string = "60s" @@ -112,6 +136,7 @@ func NewAlertGroupWithDefaults() *AlertGroup { } // GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) GetInterval() (res AlertGroupGetIntervalRetType) { res, _ = o.GetIntervalOk() return @@ -119,22 +144,26 @@ func (o *AlertGroup) GetInterval() (res AlertGroupGetIntervalRetType) { // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) GetIntervalOk() (ret AlertGroupGetIntervalRetType, ok bool) { return getAlertGroupGetIntervalAttributeTypeOk(o.Interval) } // HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) HasInterval() bool { _, ok := o.GetIntervalOk() return ok } // SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) SetInterval(v AlertGroupGetIntervalRetType) { setAlertGroupGetIntervalAttributeType(&o.Interval, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) GetName() (ret AlertGroupGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -142,16 +171,19 @@ func (o *AlertGroup) GetName() (ret AlertGroupGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) GetNameOk() (ret AlertGroupGetNameRetType, ok bool) { return getAlertGroupGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) SetName(v AlertGroupGetNameRetType) { setAlertGroupGetNameAttributeType(&o.Name, v) } // GetRules returns the Rules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) GetRules() (ret AlertGroupGetRulesRetType) { ret, _ = o.GetRulesOk() return ret @@ -159,15 +191,18 @@ func (o *AlertGroup) GetRules() (ret AlertGroupGetRulesRetType) { // GetRulesOk returns a tuple with the Rules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) GetRulesOk() (ret AlertGroupGetRulesRetType, ok bool) { return getAlertGroupGetRulesAttributeTypeOk(o.Rules) } // SetRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroup) SetRules(v AlertGroupGetRulesRetType) { setAlertGroupGetRulesAttributeType(&o.Rules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertGroupGetIntervalAttributeTypeOk(o.Interval); ok { @@ -182,37 +217,45 @@ func (o AlertGroup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertGroup struct { value *AlertGroup isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroup) Get() *AlertGroup { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroup) Set(val *AlertGroup) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroup) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroup) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertGroup(val *AlertGroup) *NullableAlertGroup { return &NullableAlertGroup{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroup) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_group_response.go b/services/observability/model_alert_group_response.go index e3f5eaced..b6dcc2d2c 100644 --- a/services/observability/model_alert_group_response.go +++ b/services/observability/model_alert_group_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertGroupResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponseGetDataAttributeType = *AlertGroup + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponseGetDataArgType = AlertGroup + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponseGetDataRetType = AlertGroup +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupResponseGetDataAttributeTypeOk(arg AlertGroupResponseGetDataAttributeType) (ret AlertGroupResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertGroupResponseGetDataAttributeTypeOk(arg AlertGroupResponseGetDataAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupResponseGetDataAttributeType(arg *AlertGroupResponseGetDataAttributeType, val AlertGroupResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertGroupResponseGetDataAttributeType(arg *AlertGroupResponseGetDataAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupResponseGetMessageAttributeTypeOk(arg AlertGroupResponseGetMessageAttributeType) (ret AlertGroupResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertGroupResponseGetMessageAttributeTypeOk(arg AlertGroupResponseGetMes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupResponseGetMessageAttributeType(arg *AlertGroupResponseGetMessageAttributeType, val AlertGroupResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponseGetMessageRetType = string // AlertGroupResponse struct for AlertGroupResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupResponse struct { // REQUIRED Data AlertGroupResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertGroupResponse struct { Message AlertGroupResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertGroupResponse AlertGroupResponse // NewAlertGroupResponse instantiates a new AlertGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertGroupResponse(data AlertGroupResponseGetDataArgType, message AlertGroupResponseGetMessageArgType) *AlertGroupResponse { this := AlertGroupResponse{} setAlertGroupResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertGroupResponse(data AlertGroupResponseGetDataArgType, message AlertG // NewAlertGroupResponseWithDefaults instantiates a new AlertGroupResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertGroupResponseWithDefaults() *AlertGroupResponse { this := AlertGroupResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupResponse) GetData() (ret AlertGroupResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertGroupResponse) GetData() (ret AlertGroupResponseGetDataRetType) { // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupResponse) GetDataOk() (ret AlertGroupResponseGetDataRetType, ok bool) { return getAlertGroupResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupResponse) SetData(v AlertGroupResponseGetDataRetType) { setAlertGroupResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupResponse) GetMessage() (ret AlertGroupResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertGroupResponse) GetMessage() (ret AlertGroupResponseGetMessageRetTy // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupResponse) GetMessageOk() (ret AlertGroupResponseGetMessageRetType, ok bool) { return getAlertGroupResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupResponse) SetMessage(v AlertGroupResponseGetMessageRetType) { setAlertGroupResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertGroupResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertGroupResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertGroupResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertGroupResponse struct { value *AlertGroupResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroupResponse) Get() *AlertGroupResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroupResponse) Set(val *AlertGroupResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroupResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroupResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertGroupResponse(val *AlertGroupResponse) *NullableAlertGroupResponse { return &NullableAlertGroupResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroupResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_groups_response.go b/services/observability/model_alert_groups_response.go index b1022c16b..ec1d9708e 100644 --- a/services/observability/model_alert_groups_response.go +++ b/services/observability/model_alert_groups_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertGroupsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponseGetDataAttributeType = *[]AlertGroup + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponseGetDataArgType = []AlertGroup + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponseGetDataRetType = []AlertGroup +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupsResponseGetDataAttributeTypeOk(arg AlertGroupsResponseGetDataAttributeType) (ret AlertGroupsResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertGroupsResponseGetDataAttributeTypeOk(arg AlertGroupsResponseGetData return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupsResponseGetDataAttributeType(arg *AlertGroupsResponseGetDataAttributeType, val AlertGroupsResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertGroupsResponseGetDataAttributeType(arg *AlertGroupsResponseGetDataA */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertGroupsResponseGetMessageAttributeTypeOk(arg AlertGroupsResponseGetMessageAttributeType) (ret AlertGroupsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertGroupsResponseGetMessageAttributeTypeOk(arg AlertGroupsResponseGetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertGroupsResponseGetMessageAttributeType(arg *AlertGroupsResponseGetMessageAttributeType, val AlertGroupsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponseGetMessageRetType = string // AlertGroupsResponse struct for AlertGroupsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertGroupsResponse struct { // REQUIRED Data AlertGroupsResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertGroupsResponse struct { Message AlertGroupsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertGroupsResponse AlertGroupsResponse // NewAlertGroupsResponse instantiates a new AlertGroupsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertGroupsResponse(data AlertGroupsResponseGetDataArgType, message AlertGroupsResponseGetMessageArgType) *AlertGroupsResponse { this := AlertGroupsResponse{} setAlertGroupsResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertGroupsResponse(data AlertGroupsResponseGetDataArgType, message Aler // NewAlertGroupsResponseWithDefaults instantiates a new AlertGroupsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertGroupsResponseWithDefaults() *AlertGroupsResponse { this := AlertGroupsResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupsResponse) GetData() (ret AlertGroupsResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertGroupsResponse) GetData() (ret AlertGroupsResponseGetDataRetType) // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupsResponse) GetDataOk() (ret AlertGroupsResponseGetDataRetType, ok bool) { return getAlertGroupsResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupsResponse) SetData(v AlertGroupsResponseGetDataRetType) { setAlertGroupsResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupsResponse) GetMessage() (ret AlertGroupsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertGroupsResponse) GetMessage() (ret AlertGroupsResponseGetMessageRet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupsResponse) GetMessageOk() (ret AlertGroupsResponseGetMessageRetType, ok bool) { return getAlertGroupsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertGroupsResponse) SetMessage(v AlertGroupsResponseGetMessageRetType) { setAlertGroupsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertGroupsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertGroupsResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertGroupsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertGroupsResponse struct { value *AlertGroupsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroupsResponse) Get() *AlertGroupsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroupsResponse) Set(val *AlertGroupsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroupsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroupsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertGroupsResponse(val *AlertGroupsResponse) *NullableAlertGroupsResponse { return &NullableAlertGroupsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertGroupsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertGroupsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_record.go b/services/observability/model_alert_record.go index e184acf0c..0448cba27 100644 --- a/services/observability/model_alert_record.go +++ b/services/observability/model_alert_record.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &AlertRecord{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordGetExprAttributeTypeOk(arg AlertRecordGetExprAttributeType) (ret AlertRecordGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getAlertRecordGetExprAttributeTypeOk(arg AlertRecordGetExprAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordGetExprAttributeType(arg *AlertRecordGetExprAttributeType, val AlertRecordGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetExprRetType = string /* @@ -43,10 +50,16 @@ type AlertRecordGetExprRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetLabelsArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetLabelsRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordGetLabelsAttributeTypeOk(arg AlertRecordGetLabelsAttributeType) (ret AlertRecordGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getAlertRecordGetLabelsAttributeTypeOk(arg AlertRecordGetLabelsAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordGetLabelsAttributeType(arg *AlertRecordGetLabelsAttributeType, val AlertRecordGetLabelsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setAlertRecordGetLabelsAttributeType(arg *AlertRecordGetLabelsAttributeType */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetRecordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordGetRecordAttributeTypeOk(arg AlertRecordGetRecordAttributeType) (ret AlertRecordGetRecordRetType, ok bool) { if arg == nil { return ret, false @@ -72,14 +88,19 @@ func getAlertRecordGetRecordAttributeTypeOk(arg AlertRecordGetRecordAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordGetRecordAttributeType(arg *AlertRecordGetRecordAttributeType, val AlertRecordGetRecordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetRecordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordGetRecordRetType = string // AlertRecord struct for AlertRecord +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecord struct { // REQUIRED Expr AlertRecordGetExprAttributeType `json:"expr" required:"true"` @@ -88,12 +109,14 @@ type AlertRecord struct { Record AlertRecordGetRecordAttributeType `json:"record" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRecord AlertRecord // NewAlertRecord instantiates a new AlertRecord object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRecord(expr AlertRecordGetExprArgType, record AlertRecordGetRecordArgType) *AlertRecord { this := AlertRecord{} setAlertRecordGetExprAttributeType(&this.Expr, expr) @@ -104,12 +127,14 @@ func NewAlertRecord(expr AlertRecordGetExprArgType, record AlertRecordGetRecordA // NewAlertRecordWithDefaults instantiates a new AlertRecord object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRecordWithDefaults() *AlertRecord { this := AlertRecord{} return &this } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) GetExpr() (ret AlertRecordGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -117,16 +142,19 @@ func (o *AlertRecord) GetExpr() (ret AlertRecordGetExprRetType) { // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) GetExprOk() (ret AlertRecordGetExprRetType, ok bool) { return getAlertRecordGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) SetExpr(v AlertRecordGetExprRetType) { setAlertRecordGetExprAttributeType(&o.Expr, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) GetLabels() (res AlertRecordGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -134,22 +162,26 @@ func (o *AlertRecord) GetLabels() (res AlertRecordGetLabelsRetType) { // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) GetLabelsOk() (ret AlertRecordGetLabelsRetType, ok bool) { return getAlertRecordGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) SetLabels(v AlertRecordGetLabelsRetType) { setAlertRecordGetLabelsAttributeType(&o.Labels, v) } // GetRecord returns the Record field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) GetRecord() (ret AlertRecordGetRecordRetType) { ret, _ = o.GetRecordOk() return ret @@ -157,15 +189,18 @@ func (o *AlertRecord) GetRecord() (ret AlertRecordGetRecordRetType) { // GetRecordOk returns a tuple with the Record field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) GetRecordOk() (ret AlertRecordGetRecordRetType, ok bool) { return getAlertRecordGetRecordAttributeTypeOk(o.Record) } // SetRecord sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecord) SetRecord(v AlertRecordGetRecordRetType) { setAlertRecordGetRecordAttributeType(&o.Record, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRecord) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRecordGetExprAttributeTypeOk(o.Expr); ok { @@ -180,37 +215,45 @@ func (o AlertRecord) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRecord struct { value *AlertRecord isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecord) Get() *AlertRecord { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecord) Set(val *AlertRecord) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecord) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecord) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRecord(val *AlertRecord) *NullableAlertRecord { return &NullableAlertRecord{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecord) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecord) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_record_response.go b/services/observability/model_alert_record_response.go index 14dbe6910..f8580fd6b 100644 --- a/services/observability/model_alert_record_response.go +++ b/services/observability/model_alert_record_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertRecordResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponseGetDataAttributeType = *AlertRecord + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponseGetDataArgType = AlertRecord + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponseGetDataRetType = AlertRecord +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordResponseGetDataAttributeTypeOk(arg AlertRecordResponseGetDataAttributeType) (ret AlertRecordResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertRecordResponseGetDataAttributeTypeOk(arg AlertRecordResponseGetData return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordResponseGetDataAttributeType(arg *AlertRecordResponseGetDataAttributeType, val AlertRecordResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertRecordResponseGetDataAttributeType(arg *AlertRecordResponseGetDataA */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordResponseGetMessageAttributeTypeOk(arg AlertRecordResponseGetMessageAttributeType) (ret AlertRecordResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertRecordResponseGetMessageAttributeTypeOk(arg AlertRecordResponseGetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordResponseGetMessageAttributeType(arg *AlertRecordResponseGetMessageAttributeType, val AlertRecordResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponseGetMessageRetType = string // AlertRecordResponse struct for AlertRecordResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordResponse struct { // REQUIRED Data AlertRecordResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertRecordResponse struct { Message AlertRecordResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRecordResponse AlertRecordResponse // NewAlertRecordResponse instantiates a new AlertRecordResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRecordResponse(data AlertRecordResponseGetDataArgType, message AlertRecordResponseGetMessageArgType) *AlertRecordResponse { this := AlertRecordResponse{} setAlertRecordResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertRecordResponse(data AlertRecordResponseGetDataArgType, message Aler // NewAlertRecordResponseWithDefaults instantiates a new AlertRecordResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRecordResponseWithDefaults() *AlertRecordResponse { this := AlertRecordResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordResponse) GetData() (ret AlertRecordResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertRecordResponse) GetData() (ret AlertRecordResponseGetDataRetType) // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordResponse) GetDataOk() (ret AlertRecordResponseGetDataRetType, ok bool) { return getAlertRecordResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordResponse) SetData(v AlertRecordResponseGetDataRetType) { setAlertRecordResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordResponse) GetMessage() (ret AlertRecordResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertRecordResponse) GetMessage() (ret AlertRecordResponseGetMessageRet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordResponse) GetMessageOk() (ret AlertRecordResponseGetMessageRetType, ok bool) { return getAlertRecordResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordResponse) SetMessage(v AlertRecordResponseGetMessageRetType) { setAlertRecordResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRecordResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRecordResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertRecordResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRecordResponse struct { value *AlertRecordResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecordResponse) Get() *AlertRecordResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecordResponse) Set(val *AlertRecordResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecordResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecordResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRecordResponse(val *AlertRecordResponse) *NullableAlertRecordResponse { return &NullableAlertRecordResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecordResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_records_response.go b/services/observability/model_alert_records_response.go index 96cc4e6cf..40aa74f2f 100644 --- a/services/observability/model_alert_records_response.go +++ b/services/observability/model_alert_records_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertRecordsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponseGetDataAttributeType = *[]AlertRecord + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponseGetDataArgType = []AlertRecord + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponseGetDataRetType = []AlertRecord +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordsResponseGetDataAttributeTypeOk(arg AlertRecordsResponseGetDataAttributeType) (ret AlertRecordsResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertRecordsResponseGetDataAttributeTypeOk(arg AlertRecordsResponseGetDa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordsResponseGetDataAttributeType(arg *AlertRecordsResponseGetDataAttributeType, val AlertRecordsResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertRecordsResponseGetDataAttributeType(arg *AlertRecordsResponseGetDat */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRecordsResponseGetMessageAttributeTypeOk(arg AlertRecordsResponseGetMessageAttributeType) (ret AlertRecordsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertRecordsResponseGetMessageAttributeTypeOk(arg AlertRecordsResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRecordsResponseGetMessageAttributeType(arg *AlertRecordsResponseGetMessageAttributeType, val AlertRecordsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponseGetMessageRetType = string // AlertRecordsResponse struct for AlertRecordsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRecordsResponse struct { // REQUIRED Data AlertRecordsResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertRecordsResponse struct { Message AlertRecordsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRecordsResponse AlertRecordsResponse // NewAlertRecordsResponse instantiates a new AlertRecordsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRecordsResponse(data AlertRecordsResponseGetDataArgType, message AlertRecordsResponseGetMessageArgType) *AlertRecordsResponse { this := AlertRecordsResponse{} setAlertRecordsResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertRecordsResponse(data AlertRecordsResponseGetDataArgType, message Al // NewAlertRecordsResponseWithDefaults instantiates a new AlertRecordsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRecordsResponseWithDefaults() *AlertRecordsResponse { this := AlertRecordsResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordsResponse) GetData() (ret AlertRecordsResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertRecordsResponse) GetData() (ret AlertRecordsResponseGetDataRetType // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordsResponse) GetDataOk() (ret AlertRecordsResponseGetDataRetType, ok bool) { return getAlertRecordsResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordsResponse) SetData(v AlertRecordsResponseGetDataRetType) { setAlertRecordsResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordsResponse) GetMessage() (ret AlertRecordsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertRecordsResponse) GetMessage() (ret AlertRecordsResponseGetMessageR // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordsResponse) GetMessageOk() (ret AlertRecordsResponseGetMessageRetType, ok bool) { return getAlertRecordsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRecordsResponse) SetMessage(v AlertRecordsResponseGetMessageRetType) { setAlertRecordsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRecordsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRecordsResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertRecordsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRecordsResponse struct { value *AlertRecordsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecordsResponse) Get() *AlertRecordsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecordsResponse) Set(val *AlertRecordsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecordsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecordsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRecordsResponse(val *AlertRecordsResponse) *NullableAlertRecordsResponse { return &NullableAlertRecordsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRecordsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRecordsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_rule.go b/services/observability/model_alert_rule.go index 8f52c25cb..3649f3187 100644 --- a/services/observability/model_alert_rule.go +++ b/services/observability/model_alert_rule.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &AlertRule{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetAlertAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleGetAlertAttributeTypeOk(arg AlertRuleGetAlertAttributeType) (ret AlertRuleGetAlertRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getAlertRuleGetAlertAttributeTypeOk(arg AlertRuleGetAlertAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleGetAlertAttributeType(arg *AlertRuleGetAlertAttributeType, val AlertRuleGetAlertRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetAlertArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetAlertRetType = string /* @@ -43,10 +50,16 @@ type AlertRuleGetAlertRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetAnnotationsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetAnnotationsArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetAnnotationsRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleGetAnnotationsAttributeTypeOk(arg AlertRuleGetAnnotationsAttributeType) (ret AlertRuleGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getAlertRuleGetAnnotationsAttributeTypeOk(arg AlertRuleGetAnnotationsAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleGetAnnotationsAttributeType(arg *AlertRuleGetAnnotationsAttributeType, val AlertRuleGetAnnotationsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setAlertRuleGetAnnotationsAttributeType(arg *AlertRuleGetAnnotationsAttribu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleGetExprAttributeTypeOk(arg AlertRuleGetExprAttributeType) (ret AlertRuleGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getAlertRuleGetExprAttributeTypeOk(arg AlertRuleGetExprAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleGetExprAttributeType(arg *AlertRuleGetExprAttributeType, val AlertRuleGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetExprRetType = string /* @@ -84,8 +104,10 @@ type AlertRuleGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleGetForAttributeTypeOk(arg AlertRuleGetForAttributeType) (ret AlertRuleGetForRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getAlertRuleGetForAttributeTypeOk(arg AlertRuleGetForAttributeType) (ret Al return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleGetForAttributeType(arg *AlertRuleGetForAttributeType, val AlertRuleGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetForRetType = string /* @@ -105,10 +131,16 @@ type AlertRuleGetForRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetLabelsArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleGetLabelsRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleGetLabelsAttributeTypeOk(arg AlertRuleGetLabelsAttributeType) (ret AlertRuleGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -116,11 +148,13 @@ func getAlertRuleGetLabelsAttributeTypeOk(arg AlertRuleGetLabelsAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleGetLabelsAttributeType(arg *AlertRuleGetLabelsAttributeType, val AlertRuleGetLabelsRetType) { *arg = &val } // AlertRule struct for AlertRule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRule struct { // REQUIRED Alert AlertRuleGetAlertAttributeType `json:"alert" required:"true"` @@ -131,12 +165,14 @@ type AlertRule struct { Labels AlertRuleGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRule AlertRule // NewAlertRule instantiates a new AlertRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRule(alert AlertRuleGetAlertArgType, expr AlertRuleGetExprArgType) *AlertRule { this := AlertRule{} setAlertRuleGetAlertAttributeType(&this.Alert, alert) @@ -147,6 +183,7 @@ func NewAlertRule(alert AlertRuleGetAlertArgType, expr AlertRuleGetExprArgType) // NewAlertRuleWithDefaults instantiates a new AlertRule object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRuleWithDefaults() *AlertRule { this := AlertRule{} var for_ string = "0s" @@ -155,6 +192,7 @@ func NewAlertRuleWithDefaults() *AlertRule { } // GetAlert returns the Alert field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetAlert() (ret AlertRuleGetAlertRetType) { ret, _ = o.GetAlertOk() return ret @@ -162,16 +200,19 @@ func (o *AlertRule) GetAlert() (ret AlertRuleGetAlertRetType) { // GetAlertOk returns a tuple with the Alert field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetAlertOk() (ret AlertRuleGetAlertRetType, ok bool) { return getAlertRuleGetAlertAttributeTypeOk(o.Alert) } // SetAlert sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) SetAlert(v AlertRuleGetAlertRetType) { setAlertRuleGetAlertAttributeType(&o.Alert, v) } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetAnnotations() (res AlertRuleGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -179,22 +220,26 @@ func (o *AlertRule) GetAnnotations() (res AlertRuleGetAnnotationsRetType) { // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetAnnotationsOk() (ret AlertRuleGetAnnotationsRetType, ok bool) { return getAlertRuleGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) SetAnnotations(v AlertRuleGetAnnotationsRetType) { setAlertRuleGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetExpr() (ret AlertRuleGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -202,16 +247,19 @@ func (o *AlertRule) GetExpr() (ret AlertRuleGetExprRetType) { // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetExprOk() (ret AlertRuleGetExprRetType, ok bool) { return getAlertRuleGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) SetExpr(v AlertRuleGetExprRetType) { setAlertRuleGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetFor() (res AlertRuleGetForRetType) { res, _ = o.GetForOk() return @@ -219,22 +267,26 @@ func (o *AlertRule) GetFor() (res AlertRuleGetForRetType) { // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetForOk() (ret AlertRuleGetForRetType, ok bool) { return getAlertRuleGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) SetFor(v AlertRuleGetForRetType) { setAlertRuleGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetLabels() (res AlertRuleGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -242,21 +294,25 @@ func (o *AlertRule) GetLabels() (res AlertRuleGetLabelsRetType) { // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) GetLabelsOk() (ret AlertRuleGetLabelsRetType, ok bool) { return getAlertRuleGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRule) SetLabels(v AlertRuleGetLabelsRetType) { setAlertRuleGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRuleGetAlertAttributeTypeOk(o.Alert); ok { @@ -277,37 +333,45 @@ func (o AlertRule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRule struct { value *AlertRule isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRule) Get() *AlertRule { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRule) Set(val *AlertRule) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRule) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRule) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRule(val *AlertRule) *NullableAlertRule { return &NullableAlertRule{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRule) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_rule_record.go b/services/observability/model_alert_rule_record.go index b3fcd4d75..4ae49e047 100644 --- a/services/observability/model_alert_rule_record.go +++ b/services/observability/model_alert_rule_record.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &AlertRuleRecord{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetAlertAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleRecordGetAlertAttributeTypeOk(arg AlertRuleRecordGetAlertAttributeType) (ret AlertRuleRecordGetAlertRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getAlertRuleRecordGetAlertAttributeTypeOk(arg AlertRuleRecordGetAlertAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleRecordGetAlertAttributeType(arg *AlertRuleRecordGetAlertAttributeType, val AlertRuleRecordGetAlertRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetAlertArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetAlertRetType = string /* @@ -43,10 +50,16 @@ type AlertRuleRecordGetAlertRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetAnnotationsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetAnnotationsArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetAnnotationsRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleRecordGetAnnotationsAttributeTypeOk(arg AlertRuleRecordGetAnnotationsAttributeType) (ret AlertRuleRecordGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getAlertRuleRecordGetAnnotationsAttributeTypeOk(arg AlertRuleRecordGetAnnot return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleRecordGetAnnotationsAttributeType(arg *AlertRuleRecordGetAnnotationsAttributeType, val AlertRuleRecordGetAnnotationsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setAlertRuleRecordGetAnnotationsAttributeType(arg *AlertRuleRecordGetAnnota */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleRecordGetExprAttributeTypeOk(arg AlertRuleRecordGetExprAttributeType) (ret AlertRuleRecordGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getAlertRuleRecordGetExprAttributeTypeOk(arg AlertRuleRecordGetExprAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleRecordGetExprAttributeType(arg *AlertRuleRecordGetExprAttributeType, val AlertRuleRecordGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetExprRetType = string /* @@ -84,8 +104,10 @@ type AlertRuleRecordGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleRecordGetForAttributeTypeOk(arg AlertRuleRecordGetForAttributeType) (ret AlertRuleRecordGetForRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getAlertRuleRecordGetForAttributeTypeOk(arg AlertRuleRecordGetForAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleRecordGetForAttributeType(arg *AlertRuleRecordGetForAttributeType, val AlertRuleRecordGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetForRetType = string /* @@ -105,10 +131,16 @@ type AlertRuleRecordGetForRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetLabelsArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetLabelsRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleRecordGetLabelsAttributeTypeOk(arg AlertRuleRecordGetLabelsAttributeType) (ret AlertRuleRecordGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -116,6 +148,7 @@ func getAlertRuleRecordGetLabelsAttributeTypeOk(arg AlertRuleRecordGetLabelsAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleRecordGetLabelsAttributeType(arg *AlertRuleRecordGetLabelsAttributeType, val AlertRuleRecordGetLabelsRetType) { *arg = &val } @@ -125,8 +158,10 @@ func setAlertRuleRecordGetLabelsAttributeType(arg *AlertRuleRecordGetLabelsAttri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetRecordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleRecordGetRecordAttributeTypeOk(arg AlertRuleRecordGetRecordAttributeType) (ret AlertRuleRecordGetRecordRetType, ok bool) { if arg == nil { return ret, false @@ -134,14 +169,19 @@ func getAlertRuleRecordGetRecordAttributeTypeOk(arg AlertRuleRecordGetRecordAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleRecordGetRecordAttributeType(arg *AlertRuleRecordGetRecordAttributeType, val AlertRuleRecordGetRecordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetRecordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecordGetRecordRetType = string // AlertRuleRecord struct for AlertRuleRecord +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleRecord struct { Alert AlertRuleRecordGetAlertAttributeType `json:"alert,omitempty"` Annotations AlertRuleRecordGetAnnotationsAttributeType `json:"annotations,omitempty"` @@ -152,12 +192,14 @@ type AlertRuleRecord struct { Record AlertRuleRecordGetRecordAttributeType `json:"record,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRuleRecord AlertRuleRecord // NewAlertRuleRecord instantiates a new AlertRuleRecord object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRuleRecord(expr AlertRuleRecordGetExprArgType) *AlertRuleRecord { this := AlertRuleRecord{} setAlertRuleRecordGetExprAttributeType(&this.Expr, expr) @@ -167,12 +209,14 @@ func NewAlertRuleRecord(expr AlertRuleRecordGetExprArgType) *AlertRuleRecord { // NewAlertRuleRecordWithDefaults instantiates a new AlertRuleRecord object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRuleRecordWithDefaults() *AlertRuleRecord { this := AlertRuleRecord{} return &this } // GetAlert returns the Alert field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetAlert() (res AlertRuleRecordGetAlertRetType) { res, _ = o.GetAlertOk() return @@ -180,22 +224,26 @@ func (o *AlertRuleRecord) GetAlert() (res AlertRuleRecordGetAlertRetType) { // GetAlertOk returns a tuple with the Alert field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetAlertOk() (ret AlertRuleRecordGetAlertRetType, ok bool) { return getAlertRuleRecordGetAlertAttributeTypeOk(o.Alert) } // HasAlert returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) HasAlert() bool { _, ok := o.GetAlertOk() return ok } // SetAlert gets a reference to the given string and assigns it to the Alert field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) SetAlert(v AlertRuleRecordGetAlertRetType) { setAlertRuleRecordGetAlertAttributeType(&o.Alert, v) } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetAnnotations() (res AlertRuleRecordGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -203,22 +251,26 @@ func (o *AlertRuleRecord) GetAnnotations() (res AlertRuleRecordGetAnnotationsRet // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetAnnotationsOk() (ret AlertRuleRecordGetAnnotationsRetType, ok bool) { return getAlertRuleRecordGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) SetAnnotations(v AlertRuleRecordGetAnnotationsRetType) { setAlertRuleRecordGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetExpr() (ret AlertRuleRecordGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -226,16 +278,19 @@ func (o *AlertRuleRecord) GetExpr() (ret AlertRuleRecordGetExprRetType) { // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetExprOk() (ret AlertRuleRecordGetExprRetType, ok bool) { return getAlertRuleRecordGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) SetExpr(v AlertRuleRecordGetExprRetType) { setAlertRuleRecordGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetFor() (res AlertRuleRecordGetForRetType) { res, _ = o.GetForOk() return @@ -243,22 +298,26 @@ func (o *AlertRuleRecord) GetFor() (res AlertRuleRecordGetForRetType) { // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetForOk() (ret AlertRuleRecordGetForRetType, ok bool) { return getAlertRuleRecordGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) SetFor(v AlertRuleRecordGetForRetType) { setAlertRuleRecordGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetLabels() (res AlertRuleRecordGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -266,22 +325,26 @@ func (o *AlertRuleRecord) GetLabels() (res AlertRuleRecordGetLabelsRetType) { // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetLabelsOk() (ret AlertRuleRecordGetLabelsRetType, ok bool) { return getAlertRuleRecordGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) SetLabels(v AlertRuleRecordGetLabelsRetType) { setAlertRuleRecordGetLabelsAttributeType(&o.Labels, v) } // GetRecord returns the Record field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetRecord() (res AlertRuleRecordGetRecordRetType) { res, _ = o.GetRecordOk() return @@ -289,21 +352,25 @@ func (o *AlertRuleRecord) GetRecord() (res AlertRuleRecordGetRecordRetType) { // GetRecordOk returns a tuple with the Record field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) GetRecordOk() (ret AlertRuleRecordGetRecordRetType, ok bool) { return getAlertRuleRecordGetRecordAttributeTypeOk(o.Record) } // HasRecord returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) HasRecord() bool { _, ok := o.GetRecordOk() return ok } // SetRecord gets a reference to the given string and assigns it to the Record field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleRecord) SetRecord(v AlertRuleRecordGetRecordRetType) { setAlertRuleRecordGetRecordAttributeType(&o.Record, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRuleRecord) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRuleRecordGetAlertAttributeTypeOk(o.Alert); ok { @@ -327,37 +394,45 @@ func (o AlertRuleRecord) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRuleRecord struct { value *AlertRuleRecord isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRuleRecord) Get() *AlertRuleRecord { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRuleRecord) Set(val *AlertRuleRecord) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRuleRecord) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRuleRecord) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRuleRecord(val *AlertRuleRecord) *NullableAlertRuleRecord { return &NullableAlertRuleRecord{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRuleRecord) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRuleRecord) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_rule_response.go b/services/observability/model_alert_rule_response.go index d1350335f..45fbf382e 100644 --- a/services/observability/model_alert_rule_response.go +++ b/services/observability/model_alert_rule_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertRuleResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponseGetDataAttributeType = *AlertRule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponseGetDataArgType = AlertRule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponseGetDataRetType = AlertRule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleResponseGetDataAttributeTypeOk(arg AlertRuleResponseGetDataAttributeType) (ret AlertRuleResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertRuleResponseGetDataAttributeTypeOk(arg AlertRuleResponseGetDataAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleResponseGetDataAttributeType(arg *AlertRuleResponseGetDataAttributeType, val AlertRuleResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertRuleResponseGetDataAttributeType(arg *AlertRuleResponseGetDataAttri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRuleResponseGetMessageAttributeTypeOk(arg AlertRuleResponseGetMessageAttributeType) (ret AlertRuleResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertRuleResponseGetMessageAttributeTypeOk(arg AlertRuleResponseGetMessa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRuleResponseGetMessageAttributeType(arg *AlertRuleResponseGetMessageAttributeType, val AlertRuleResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponseGetMessageRetType = string // AlertRuleResponse struct for AlertRuleResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRuleResponse struct { // REQUIRED Data AlertRuleResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertRuleResponse struct { Message AlertRuleResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRuleResponse AlertRuleResponse // NewAlertRuleResponse instantiates a new AlertRuleResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRuleResponse(data AlertRuleResponseGetDataArgType, message AlertRuleResponseGetMessageArgType) *AlertRuleResponse { this := AlertRuleResponse{} setAlertRuleResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertRuleResponse(data AlertRuleResponseGetDataArgType, message AlertRul // NewAlertRuleResponseWithDefaults instantiates a new AlertRuleResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRuleResponseWithDefaults() *AlertRuleResponse { this := AlertRuleResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleResponse) GetData() (ret AlertRuleResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertRuleResponse) GetData() (ret AlertRuleResponseGetDataRetType) { // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleResponse) GetDataOk() (ret AlertRuleResponseGetDataRetType, ok bool) { return getAlertRuleResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleResponse) SetData(v AlertRuleResponseGetDataRetType) { setAlertRuleResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleResponse) GetMessage() (ret AlertRuleResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertRuleResponse) GetMessage() (ret AlertRuleResponseGetMessageRetType // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleResponse) GetMessageOk() (ret AlertRuleResponseGetMessageRetType, ok bool) { return getAlertRuleResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRuleResponse) SetMessage(v AlertRuleResponseGetMessageRetType) { setAlertRuleResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRuleResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRuleResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertRuleResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRuleResponse struct { value *AlertRuleResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRuleResponse) Get() *AlertRuleResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRuleResponse) Set(val *AlertRuleResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRuleResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRuleResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRuleResponse(val *AlertRuleResponse) *NullableAlertRuleResponse { return &NullableAlertRuleResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRuleResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRuleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_alert_rules_response.go b/services/observability/model_alert_rules_response.go index 00548cf68..341a912a5 100644 --- a/services/observability/model_alert_rules_response.go +++ b/services/observability/model_alert_rules_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &AlertRulesResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponseGetDataAttributeType = *[]AlertRule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponseGetDataArgType = []AlertRule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponseGetDataRetType = []AlertRule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRulesResponseGetDataAttributeTypeOk(arg AlertRulesResponseGetDataAttributeType) (ret AlertRulesResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getAlertRulesResponseGetDataAttributeTypeOk(arg AlertRulesResponseGetDataAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRulesResponseGetDataAttributeType(arg *AlertRulesResponseGetDataAttributeType, val AlertRulesResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setAlertRulesResponseGetDataAttributeType(arg *AlertRulesResponseGetDataAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getAlertRulesResponseGetMessageAttributeTypeOk(arg AlertRulesResponseGetMessageAttributeType) (ret AlertRulesResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getAlertRulesResponseGetMessageAttributeTypeOk(arg AlertRulesResponseGetMes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setAlertRulesResponseGetMessageAttributeType(arg *AlertRulesResponseGetMessageAttributeType, val AlertRulesResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponseGetMessageRetType = string // AlertRulesResponse struct for AlertRulesResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type AlertRulesResponse struct { // REQUIRED Data AlertRulesResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type AlertRulesResponse struct { Message AlertRulesResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _AlertRulesResponse AlertRulesResponse // NewAlertRulesResponse instantiates a new AlertRulesResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRulesResponse(data AlertRulesResponseGetDataArgType, message AlertRulesResponseGetMessageArgType) *AlertRulesResponse { this := AlertRulesResponse{} setAlertRulesResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewAlertRulesResponse(data AlertRulesResponseGetDataArgType, message AlertR // NewAlertRulesResponseWithDefaults instantiates a new AlertRulesResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAlertRulesResponseWithDefaults() *AlertRulesResponse { this := AlertRulesResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRulesResponse) GetData() (ret AlertRulesResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *AlertRulesResponse) GetData() (ret AlertRulesResponseGetDataRetType) { // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRulesResponse) GetDataOk() (ret AlertRulesResponseGetDataRetType, ok bool) { return getAlertRulesResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRulesResponse) SetData(v AlertRulesResponseGetDataRetType) { setAlertRulesResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRulesResponse) GetMessage() (ret AlertRulesResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *AlertRulesResponse) GetMessage() (ret AlertRulesResponseGetMessageRetTy // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRulesResponse) GetMessageOk() (ret AlertRulesResponseGetMessageRetType, ok bool) { return getAlertRulesResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *AlertRulesResponse) SetMessage(v AlertRulesResponseGetMessageRetType) { setAlertRulesResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o AlertRulesResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAlertRulesResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o AlertRulesResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableAlertRulesResponse struct { value *AlertRulesResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRulesResponse) Get() *AlertRulesResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRulesResponse) Set(val *AlertRulesResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRulesResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRulesResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableAlertRulesResponse(val *AlertRulesResponse) *NullableAlertRulesResponse { return &NullableAlertRulesResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableAlertRulesResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableAlertRulesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_backup_response.go b/services/observability/model_backup_response.go index 2f82322e9..cc9dc3a63 100644 --- a/services/observability/model_backup_response.go +++ b/services/observability/model_backup_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &BackupResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetAlertConfigBackupsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetAlertConfigBackupsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetAlertConfigBackupsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupResponseGetAlertConfigBackupsAttributeTypeOk(arg BackupResponseGetAlertConfigBackupsAttributeType) (ret BackupResponseGetAlertConfigBackupsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getBackupResponseGetAlertConfigBackupsAttributeTypeOk(arg BackupResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupResponseGetAlertConfigBackupsAttributeType(arg *BackupResponseGetAlertConfigBackupsAttributeType, val BackupResponseGetAlertConfigBackupsRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setBackupResponseGetAlertConfigBackupsAttributeType(arg *BackupResponseGetA */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetAlertRulesBackupsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetAlertRulesBackupsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetAlertRulesBackupsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupResponseGetAlertRulesBackupsAttributeTypeOk(arg BackupResponseGetAlertRulesBackupsAttributeType) (ret BackupResponseGetAlertRulesBackupsRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getBackupResponseGetAlertRulesBackupsAttributeTypeOk(arg BackupResponseGetA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupResponseGetAlertRulesBackupsAttributeType(arg *BackupResponseGetAlertRulesBackupsAttributeType, val BackupResponseGetAlertRulesBackupsRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setBackupResponseGetAlertRulesBackupsAttributeType(arg *BackupResponseGetAl */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetGrafanaBackupsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetGrafanaBackupsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetGrafanaBackupsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupResponseGetGrafanaBackupsAttributeTypeOk(arg BackupResponseGetGrafanaBackupsAttributeType) (ret BackupResponseGetGrafanaBackupsRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getBackupResponseGetGrafanaBackupsAttributeTypeOk(arg BackupResponseGetGraf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupResponseGetGrafanaBackupsAttributeType(arg *BackupResponseGetGrafanaBackupsAttributeType, val BackupResponseGetGrafanaBackupsRetType) { *arg = &val } @@ -82,8 +104,10 @@ func setBackupResponseGetGrafanaBackupsAttributeType(arg *BackupResponseGetGrafa */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupResponseGetMessageAttributeTypeOk(arg BackupResponseGetMessageAttributeType) (ret BackupResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -91,11 +115,15 @@ func getBackupResponseGetMessageAttributeTypeOk(arg BackupResponseGetMessageAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupResponseGetMessageAttributeType(arg *BackupResponseGetMessageAttributeType, val BackupResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetMessageRetType = string /* @@ -103,10 +131,16 @@ type BackupResponseGetMessageRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetScrapeConfigBackupsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetScrapeConfigBackupsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponseGetScrapeConfigBackupsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupResponseGetScrapeConfigBackupsAttributeTypeOk(arg BackupResponseGetScrapeConfigBackupsAttributeType) (ret BackupResponseGetScrapeConfigBackupsRetType, ok bool) { if arg == nil { return ret, false @@ -114,11 +148,13 @@ func getBackupResponseGetScrapeConfigBackupsAttributeTypeOk(arg BackupResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupResponseGetScrapeConfigBackupsAttributeType(arg *BackupResponseGetScrapeConfigBackupsAttributeType, val BackupResponseGetScrapeConfigBackupsRetType) { *arg = &val } // BackupResponse struct for BackupResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupResponse struct { // REQUIRED AlertConfigBackups BackupResponseGetAlertConfigBackupsAttributeType `json:"alertConfigBackups" required:"true"` @@ -132,12 +168,14 @@ type BackupResponse struct { ScrapeConfigBackups BackupResponseGetScrapeConfigBackupsAttributeType `json:"scrapeConfigBackups" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _BackupResponse BackupResponse // NewBackupResponse instantiates a new BackupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupResponse(alertConfigBackups BackupResponseGetAlertConfigBackupsArgType, alertRulesBackups BackupResponseGetAlertRulesBackupsArgType, grafanaBackups BackupResponseGetGrafanaBackupsArgType, message BackupResponseGetMessageArgType, scrapeConfigBackups BackupResponseGetScrapeConfigBackupsArgType) *BackupResponse { this := BackupResponse{} setBackupResponseGetAlertConfigBackupsAttributeType(&this.AlertConfigBackups, alertConfigBackups) @@ -151,12 +189,14 @@ func NewBackupResponse(alertConfigBackups BackupResponseGetAlertConfigBackupsArg // NewBackupResponseWithDefaults instantiates a new BackupResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupResponseWithDefaults() *BackupResponse { this := BackupResponse{} return &this } // GetAlertConfigBackups returns the AlertConfigBackups field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetAlertConfigBackups() (ret BackupResponseGetAlertConfigBackupsRetType) { ret, _ = o.GetAlertConfigBackupsOk() return ret @@ -164,16 +204,19 @@ func (o *BackupResponse) GetAlertConfigBackups() (ret BackupResponseGetAlertConf // GetAlertConfigBackupsOk returns a tuple with the AlertConfigBackups field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetAlertConfigBackupsOk() (ret BackupResponseGetAlertConfigBackupsRetType, ok bool) { return getBackupResponseGetAlertConfigBackupsAttributeTypeOk(o.AlertConfigBackups) } // SetAlertConfigBackups sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) SetAlertConfigBackups(v BackupResponseGetAlertConfigBackupsRetType) { setBackupResponseGetAlertConfigBackupsAttributeType(&o.AlertConfigBackups, v) } // GetAlertRulesBackups returns the AlertRulesBackups field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetAlertRulesBackups() (ret BackupResponseGetAlertRulesBackupsRetType) { ret, _ = o.GetAlertRulesBackupsOk() return ret @@ -181,16 +224,19 @@ func (o *BackupResponse) GetAlertRulesBackups() (ret BackupResponseGetAlertRules // GetAlertRulesBackupsOk returns a tuple with the AlertRulesBackups field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetAlertRulesBackupsOk() (ret BackupResponseGetAlertRulesBackupsRetType, ok bool) { return getBackupResponseGetAlertRulesBackupsAttributeTypeOk(o.AlertRulesBackups) } // SetAlertRulesBackups sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) SetAlertRulesBackups(v BackupResponseGetAlertRulesBackupsRetType) { setBackupResponseGetAlertRulesBackupsAttributeType(&o.AlertRulesBackups, v) } // GetGrafanaBackups returns the GrafanaBackups field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetGrafanaBackups() (ret BackupResponseGetGrafanaBackupsRetType) { ret, _ = o.GetGrafanaBackupsOk() return ret @@ -198,16 +244,19 @@ func (o *BackupResponse) GetGrafanaBackups() (ret BackupResponseGetGrafanaBackup // GetGrafanaBackupsOk returns a tuple with the GrafanaBackups field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetGrafanaBackupsOk() (ret BackupResponseGetGrafanaBackupsRetType, ok bool) { return getBackupResponseGetGrafanaBackupsAttributeTypeOk(o.GrafanaBackups) } // SetGrafanaBackups sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) SetGrafanaBackups(v BackupResponseGetGrafanaBackupsRetType) { setBackupResponseGetGrafanaBackupsAttributeType(&o.GrafanaBackups, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetMessage() (ret BackupResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -215,16 +264,19 @@ func (o *BackupResponse) GetMessage() (ret BackupResponseGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetMessageOk() (ret BackupResponseGetMessageRetType, ok bool) { return getBackupResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) SetMessage(v BackupResponseGetMessageRetType) { setBackupResponseGetMessageAttributeType(&o.Message, v) } // GetScrapeConfigBackups returns the ScrapeConfigBackups field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetScrapeConfigBackups() (ret BackupResponseGetScrapeConfigBackupsRetType) { ret, _ = o.GetScrapeConfigBackupsOk() return ret @@ -232,15 +284,18 @@ func (o *BackupResponse) GetScrapeConfigBackups() (ret BackupResponseGetScrapeCo // GetScrapeConfigBackupsOk returns a tuple with the ScrapeConfigBackups field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) GetScrapeConfigBackupsOk() (ret BackupResponseGetScrapeConfigBackupsRetType, ok bool) { return getBackupResponseGetScrapeConfigBackupsAttributeTypeOk(o.ScrapeConfigBackups) } // SetScrapeConfigBackups sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupResponse) SetScrapeConfigBackups(v BackupResponseGetScrapeConfigBackupsRetType) { setBackupResponseGetScrapeConfigBackupsAttributeType(&o.ScrapeConfigBackups, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o BackupResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBackupResponseGetAlertConfigBackupsAttributeTypeOk(o.AlertConfigBackups); ok { @@ -261,37 +316,45 @@ func (o BackupResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBackupResponse struct { value *BackupResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupResponse) Get() *BackupResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupResponse) Set(val *BackupResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBackupResponse(val *BackupResponse) *NullableBackupResponse { return &NullableBackupResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_backup_retention_response.go b/services/observability/model_backup_retention_response.go index 2a59d1401..2c66d62c4 100644 --- a/services/observability/model_backup_retention_response.go +++ b/services/observability/model_backup_retention_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &BackupRetentionResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetAlertConfigBackupRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupRetentionResponseGetAlertConfigBackupRetentionAttributeTypeOk(arg BackupRetentionResponseGetAlertConfigBackupRetentionAttributeType) (ret BackupRetentionResponseGetAlertConfigBackupRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getBackupRetentionResponseGetAlertConfigBackupRetentionAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupRetentionResponseGetAlertConfigBackupRetentionAttributeType(arg *BackupRetentionResponseGetAlertConfigBackupRetentionAttributeType, val BackupRetentionResponseGetAlertConfigBackupRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetAlertConfigBackupRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetAlertConfigBackupRetentionRetType = string /* @@ -43,8 +50,10 @@ type BackupRetentionResponseGetAlertConfigBackupRetentionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetAlertRulesBackupRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupRetentionResponseGetAlertRulesBackupRetentionAttributeTypeOk(arg BackupRetentionResponseGetAlertRulesBackupRetentionAttributeType) (ret BackupRetentionResponseGetAlertRulesBackupRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getBackupRetentionResponseGetAlertRulesBackupRetentionAttributeTypeOk(arg B return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupRetentionResponseGetAlertRulesBackupRetentionAttributeType(arg *BackupRetentionResponseGetAlertRulesBackupRetentionAttributeType, val BackupRetentionResponseGetAlertRulesBackupRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetAlertRulesBackupRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetAlertRulesBackupRetentionRetType = string /* @@ -64,8 +77,10 @@ type BackupRetentionResponseGetAlertRulesBackupRetentionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetGrafanaBackupRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupRetentionResponseGetGrafanaBackupRetentionAttributeTypeOk(arg BackupRetentionResponseGetGrafanaBackupRetentionAttributeType) (ret BackupRetentionResponseGetGrafanaBackupRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getBackupRetentionResponseGetGrafanaBackupRetentionAttributeTypeOk(arg Back return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupRetentionResponseGetGrafanaBackupRetentionAttributeType(arg *BackupRetentionResponseGetGrafanaBackupRetentionAttributeType, val BackupRetentionResponseGetGrafanaBackupRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetGrafanaBackupRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetGrafanaBackupRetentionRetType = string /* @@ -85,8 +104,10 @@ type BackupRetentionResponseGetGrafanaBackupRetentionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupRetentionResponseGetMessageAttributeTypeOk(arg BackupRetentionResponseGetMessageAttributeType) (ret BackupRetentionResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +115,15 @@ func getBackupRetentionResponseGetMessageAttributeTypeOk(arg BackupRetentionResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupRetentionResponseGetMessageAttributeType(arg *BackupRetentionResponseGetMessageAttributeType, val BackupRetentionResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetMessageRetType = string /* @@ -106,8 +131,10 @@ type BackupRetentionResponseGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetScrapeConfigBackupRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupRetentionResponseGetScrapeConfigBackupRetentionAttributeTypeOk(arg BackupRetentionResponseGetScrapeConfigBackupRetentionAttributeType) (ret BackupRetentionResponseGetScrapeConfigBackupRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -115,14 +142,19 @@ func getBackupRetentionResponseGetScrapeConfigBackupRetentionAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupRetentionResponseGetScrapeConfigBackupRetentionAttributeType(arg *BackupRetentionResponseGetScrapeConfigBackupRetentionAttributeType, val BackupRetentionResponseGetScrapeConfigBackupRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetScrapeConfigBackupRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponseGetScrapeConfigBackupRetentionRetType = string // BackupRetentionResponse struct for BackupRetentionResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupRetentionResponse struct { // REQUIRED AlertConfigBackupRetention BackupRetentionResponseGetAlertConfigBackupRetentionAttributeType `json:"alertConfigBackupRetention" required:"true"` @@ -136,12 +168,14 @@ type BackupRetentionResponse struct { ScrapeConfigBackupRetention BackupRetentionResponseGetScrapeConfigBackupRetentionAttributeType `json:"scrapeConfigBackupRetention" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _BackupRetentionResponse BackupRetentionResponse // NewBackupRetentionResponse instantiates a new BackupRetentionResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupRetentionResponse(alertConfigBackupRetention BackupRetentionResponseGetAlertConfigBackupRetentionArgType, alertRulesBackupRetention BackupRetentionResponseGetAlertRulesBackupRetentionArgType, grafanaBackupRetention BackupRetentionResponseGetGrafanaBackupRetentionArgType, message BackupRetentionResponseGetMessageArgType, scrapeConfigBackupRetention BackupRetentionResponseGetScrapeConfigBackupRetentionArgType) *BackupRetentionResponse { this := BackupRetentionResponse{} setBackupRetentionResponseGetAlertConfigBackupRetentionAttributeType(&this.AlertConfigBackupRetention, alertConfigBackupRetention) @@ -155,12 +189,14 @@ func NewBackupRetentionResponse(alertConfigBackupRetention BackupRetentionRespon // NewBackupRetentionResponseWithDefaults instantiates a new BackupRetentionResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupRetentionResponseWithDefaults() *BackupRetentionResponse { this := BackupRetentionResponse{} return &this } // GetAlertConfigBackupRetention returns the AlertConfigBackupRetention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetAlertConfigBackupRetention() (ret BackupRetentionResponseGetAlertConfigBackupRetentionRetType) { ret, _ = o.GetAlertConfigBackupRetentionOk() return ret @@ -168,16 +204,19 @@ func (o *BackupRetentionResponse) GetAlertConfigBackupRetention() (ret BackupRet // GetAlertConfigBackupRetentionOk returns a tuple with the AlertConfigBackupRetention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetAlertConfigBackupRetentionOk() (ret BackupRetentionResponseGetAlertConfigBackupRetentionRetType, ok bool) { return getBackupRetentionResponseGetAlertConfigBackupRetentionAttributeTypeOk(o.AlertConfigBackupRetention) } // SetAlertConfigBackupRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) SetAlertConfigBackupRetention(v BackupRetentionResponseGetAlertConfigBackupRetentionRetType) { setBackupRetentionResponseGetAlertConfigBackupRetentionAttributeType(&o.AlertConfigBackupRetention, v) } // GetAlertRulesBackupRetention returns the AlertRulesBackupRetention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetAlertRulesBackupRetention() (ret BackupRetentionResponseGetAlertRulesBackupRetentionRetType) { ret, _ = o.GetAlertRulesBackupRetentionOk() return ret @@ -185,16 +224,19 @@ func (o *BackupRetentionResponse) GetAlertRulesBackupRetention() (ret BackupRete // GetAlertRulesBackupRetentionOk returns a tuple with the AlertRulesBackupRetention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetAlertRulesBackupRetentionOk() (ret BackupRetentionResponseGetAlertRulesBackupRetentionRetType, ok bool) { return getBackupRetentionResponseGetAlertRulesBackupRetentionAttributeTypeOk(o.AlertRulesBackupRetention) } // SetAlertRulesBackupRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) SetAlertRulesBackupRetention(v BackupRetentionResponseGetAlertRulesBackupRetentionRetType) { setBackupRetentionResponseGetAlertRulesBackupRetentionAttributeType(&o.AlertRulesBackupRetention, v) } // GetGrafanaBackupRetention returns the GrafanaBackupRetention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetGrafanaBackupRetention() (ret BackupRetentionResponseGetGrafanaBackupRetentionRetType) { ret, _ = o.GetGrafanaBackupRetentionOk() return ret @@ -202,16 +244,19 @@ func (o *BackupRetentionResponse) GetGrafanaBackupRetention() (ret BackupRetenti // GetGrafanaBackupRetentionOk returns a tuple with the GrafanaBackupRetention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetGrafanaBackupRetentionOk() (ret BackupRetentionResponseGetGrafanaBackupRetentionRetType, ok bool) { return getBackupRetentionResponseGetGrafanaBackupRetentionAttributeTypeOk(o.GrafanaBackupRetention) } // SetGrafanaBackupRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) SetGrafanaBackupRetention(v BackupRetentionResponseGetGrafanaBackupRetentionRetType) { setBackupRetentionResponseGetGrafanaBackupRetentionAttributeType(&o.GrafanaBackupRetention, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetMessage() (ret BackupRetentionResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -219,16 +264,19 @@ func (o *BackupRetentionResponse) GetMessage() (ret BackupRetentionResponseGetMe // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetMessageOk() (ret BackupRetentionResponseGetMessageRetType, ok bool) { return getBackupRetentionResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) SetMessage(v BackupRetentionResponseGetMessageRetType) { setBackupRetentionResponseGetMessageAttributeType(&o.Message, v) } // GetScrapeConfigBackupRetention returns the ScrapeConfigBackupRetention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetScrapeConfigBackupRetention() (ret BackupRetentionResponseGetScrapeConfigBackupRetentionRetType) { ret, _ = o.GetScrapeConfigBackupRetentionOk() return ret @@ -236,15 +284,18 @@ func (o *BackupRetentionResponse) GetScrapeConfigBackupRetention() (ret BackupRe // GetScrapeConfigBackupRetentionOk returns a tuple with the ScrapeConfigBackupRetention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) GetScrapeConfigBackupRetentionOk() (ret BackupRetentionResponseGetScrapeConfigBackupRetentionRetType, ok bool) { return getBackupRetentionResponseGetScrapeConfigBackupRetentionAttributeTypeOk(o.ScrapeConfigBackupRetention) } // SetScrapeConfigBackupRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupRetentionResponse) SetScrapeConfigBackupRetention(v BackupRetentionResponseGetScrapeConfigBackupRetentionRetType) { setBackupRetentionResponseGetScrapeConfigBackupRetentionAttributeType(&o.ScrapeConfigBackupRetention, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o BackupRetentionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBackupRetentionResponseGetAlertConfigBackupRetentionAttributeTypeOk(o.AlertConfigBackupRetention); ok { @@ -265,37 +316,45 @@ func (o BackupRetentionResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBackupRetentionResponse struct { value *BackupRetentionResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupRetentionResponse) Get() *BackupRetentionResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupRetentionResponse) Set(val *BackupRetentionResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupRetentionResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupRetentionResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBackupRetentionResponse(val *BackupRetentionResponse) *NullableBackupRetentionResponse { return &NullableBackupRetentionResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupRetentionResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupRetentionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_backup_schedule.go b/services/observability/model_backup_schedule.go index 70f09d739..4daf32261 100644 --- a/services/observability/model_backup_schedule.go +++ b/services/observability/model_backup_schedule.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &BackupSchedule{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleGetScheduleAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleGetScheduleAttributeTypeOk(arg BackupScheduleGetScheduleAttributeType) (ret BackupScheduleGetScheduleRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getBackupScheduleGetScheduleAttributeTypeOk(arg BackupScheduleGetScheduleAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleGetScheduleAttributeType(arg *BackupScheduleGetScheduleAttributeType, val BackupScheduleGetScheduleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleGetScheduleArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleGetScheduleRetType = string /* @@ -43,8 +50,10 @@ type BackupScheduleGetScheduleRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleGetScheduleIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleGetScheduleIdAttributeTypeOk(arg BackupScheduleGetScheduleIdAttributeType) (ret BackupScheduleGetScheduleIdRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getBackupScheduleGetScheduleIdAttributeTypeOk(arg BackupScheduleGetSchedule return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleGetScheduleIdAttributeType(arg *BackupScheduleGetScheduleIdAttributeType, val BackupScheduleGetScheduleIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleGetScheduleIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleGetScheduleIdRetType = string // BackupSchedule struct for BackupSchedule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedule struct { // REQUIRED Schedule BackupScheduleGetScheduleAttributeType `json:"schedule" required:"true"` @@ -67,12 +81,14 @@ type BackupSchedule struct { ScheduleId BackupScheduleGetScheduleIdAttributeType `json:"scheduleId" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _BackupSchedule BackupSchedule // NewBackupSchedule instantiates a new BackupSchedule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupSchedule(schedule BackupScheduleGetScheduleArgType, scheduleId BackupScheduleGetScheduleIdArgType) *BackupSchedule { this := BackupSchedule{} setBackupScheduleGetScheduleAttributeType(&this.Schedule, schedule) @@ -83,12 +99,14 @@ func NewBackupSchedule(schedule BackupScheduleGetScheduleArgType, scheduleId Bac // NewBackupScheduleWithDefaults instantiates a new BackupSchedule object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupScheduleWithDefaults() *BackupSchedule { this := BackupSchedule{} return &this } // GetSchedule returns the Schedule field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedule) GetSchedule() (ret BackupScheduleGetScheduleRetType) { ret, _ = o.GetScheduleOk() return ret @@ -96,16 +114,19 @@ func (o *BackupSchedule) GetSchedule() (ret BackupScheduleGetScheduleRetType) { // GetScheduleOk returns a tuple with the Schedule field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedule) GetScheduleOk() (ret BackupScheduleGetScheduleRetType, ok bool) { return getBackupScheduleGetScheduleAttributeTypeOk(o.Schedule) } // SetSchedule sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedule) SetSchedule(v BackupScheduleGetScheduleRetType) { setBackupScheduleGetScheduleAttributeType(&o.Schedule, v) } // GetScheduleId returns the ScheduleId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedule) GetScheduleId() (ret BackupScheduleGetScheduleIdRetType) { ret, _ = o.GetScheduleIdOk() return ret @@ -113,15 +134,18 @@ func (o *BackupSchedule) GetScheduleId() (ret BackupScheduleGetScheduleIdRetType // GetScheduleIdOk returns a tuple with the ScheduleId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedule) GetScheduleIdOk() (ret BackupScheduleGetScheduleIdRetType, ok bool) { return getBackupScheduleGetScheduleIdAttributeTypeOk(o.ScheduleId) } // SetScheduleId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedule) SetScheduleId(v BackupScheduleGetScheduleIdRetType) { setBackupScheduleGetScheduleIdAttributeType(&o.ScheduleId, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o BackupSchedule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBackupScheduleGetScheduleAttributeTypeOk(o.Schedule); ok { @@ -133,37 +157,45 @@ func (o BackupSchedule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBackupSchedule struct { value *BackupSchedule isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupSchedule) Get() *BackupSchedule { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupSchedule) Set(val *BackupSchedule) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupSchedule) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupSchedule) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBackupSchedule(val *BackupSchedule) *NullableBackupSchedule { return &NullableBackupSchedule{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupSchedule) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupSchedule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_backup_schedule_post_response.go b/services/observability/model_backup_schedule_post_response.go index 94f4de8b1..e32811fae 100644 --- a/services/observability/model_backup_schedule_post_response.go +++ b/services/observability/model_backup_schedule_post_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &BackupSchedulePostResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupSchedulePostResponseGetMessageAttributeTypeOk(arg BackupSchedulePostResponseGetMessageAttributeType) (ret BackupSchedulePostResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getBackupSchedulePostResponseGetMessageAttributeTypeOk(arg BackupSchedulePo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupSchedulePostResponseGetMessageAttributeType(arg *BackupSchedulePostResponseGetMessageAttributeType, val BackupSchedulePostResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponseGetMessageRetType = string /* @@ -43,8 +50,10 @@ type BackupSchedulePostResponseGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponseGetScheduleAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupSchedulePostResponseGetScheduleAttributeTypeOk(arg BackupSchedulePostResponseGetScheduleAttributeType) (ret BackupSchedulePostResponseGetScheduleRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getBackupSchedulePostResponseGetScheduleAttributeTypeOk(arg BackupScheduleP return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupSchedulePostResponseGetScheduleAttributeType(arg *BackupSchedulePostResponseGetScheduleAttributeType, val BackupSchedulePostResponseGetScheduleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponseGetScheduleArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponseGetScheduleRetType = string // BackupSchedulePostResponse struct for BackupSchedulePostResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupSchedulePostResponse struct { // REQUIRED Message BackupSchedulePostResponseGetMessageAttributeType `json:"message" required:"true"` @@ -67,12 +81,14 @@ type BackupSchedulePostResponse struct { Schedule BackupSchedulePostResponseGetScheduleAttributeType `json:"schedule" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _BackupSchedulePostResponse BackupSchedulePostResponse // NewBackupSchedulePostResponse instantiates a new BackupSchedulePostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupSchedulePostResponse(message BackupSchedulePostResponseGetMessageArgType, schedule BackupSchedulePostResponseGetScheduleArgType) *BackupSchedulePostResponse { this := BackupSchedulePostResponse{} setBackupSchedulePostResponseGetMessageAttributeType(&this.Message, message) @@ -83,12 +99,14 @@ func NewBackupSchedulePostResponse(message BackupSchedulePostResponseGetMessageA // NewBackupSchedulePostResponseWithDefaults instantiates a new BackupSchedulePostResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupSchedulePostResponseWithDefaults() *BackupSchedulePostResponse { this := BackupSchedulePostResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedulePostResponse) GetMessage() (ret BackupSchedulePostResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -96,16 +114,19 @@ func (o *BackupSchedulePostResponse) GetMessage() (ret BackupSchedulePostRespons // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedulePostResponse) GetMessageOk() (ret BackupSchedulePostResponseGetMessageRetType, ok bool) { return getBackupSchedulePostResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedulePostResponse) SetMessage(v BackupSchedulePostResponseGetMessageRetType) { setBackupSchedulePostResponseGetMessageAttributeType(&o.Message, v) } // GetSchedule returns the Schedule field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedulePostResponse) GetSchedule() (ret BackupSchedulePostResponseGetScheduleRetType) { ret, _ = o.GetScheduleOk() return ret @@ -113,15 +134,18 @@ func (o *BackupSchedulePostResponse) GetSchedule() (ret BackupSchedulePostRespon // GetScheduleOk returns a tuple with the Schedule field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedulePostResponse) GetScheduleOk() (ret BackupSchedulePostResponseGetScheduleRetType, ok bool) { return getBackupSchedulePostResponseGetScheduleAttributeTypeOk(o.Schedule) } // SetSchedule sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupSchedulePostResponse) SetSchedule(v BackupSchedulePostResponseGetScheduleRetType) { setBackupSchedulePostResponseGetScheduleAttributeType(&o.Schedule, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o BackupSchedulePostResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBackupSchedulePostResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -133,37 +157,45 @@ func (o BackupSchedulePostResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBackupSchedulePostResponse struct { value *BackupSchedulePostResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupSchedulePostResponse) Get() *BackupSchedulePostResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupSchedulePostResponse) Set(val *BackupSchedulePostResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupSchedulePostResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupSchedulePostResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBackupSchedulePostResponse(val *BackupSchedulePostResponse) *NullableBackupSchedulePostResponse { return &NullableBackupSchedulePostResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupSchedulePostResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupSchedulePostResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_backup_schedule_response.go b/services/observability/model_backup_schedule_response.go index 6764e8db8..26f5c68dc 100644 --- a/services/observability/model_backup_schedule_response.go +++ b/services/observability/model_backup_schedule_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &BackupScheduleResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType = *[]BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetAlertConfigBackupSchedulesArgType = []BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetAlertConfigBackupSchedulesRetType = []BackupSchedule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeTypeOk(arg BackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType) (ret BackupScheduleResponseGetAlertConfigBackupSchedulesRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeTypeOk(arg B return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType(arg *BackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType, val BackupScheduleResponseGetAlertConfigBackupSchedulesRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType(arg *Ba */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType = *[]BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetAlertRulesBackupSchedulesArgType = []BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetAlertRulesBackupSchedulesRetType = []BackupSchedule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleResponseGetAlertRulesBackupSchedulesAttributeTypeOk(arg BackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType) (ret BackupScheduleResponseGetAlertRulesBackupSchedulesRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getBackupScheduleResponseGetAlertRulesBackupSchedulesAttributeTypeOk(arg Ba return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType(arg *BackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType, val BackupScheduleResponseGetAlertRulesBackupSchedulesRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setBackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType(arg *Bac */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetGrafanaBackupSchedulesAttributeType = *[]BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetGrafanaBackupSchedulesArgType = []BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetGrafanaBackupSchedulesRetType = []BackupSchedule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleResponseGetGrafanaBackupSchedulesAttributeTypeOk(arg BackupScheduleResponseGetGrafanaBackupSchedulesAttributeType) (ret BackupScheduleResponseGetGrafanaBackupSchedulesRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getBackupScheduleResponseGetGrafanaBackupSchedulesAttributeTypeOk(arg Backu return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleResponseGetGrafanaBackupSchedulesAttributeType(arg *BackupScheduleResponseGetGrafanaBackupSchedulesAttributeType, val BackupScheduleResponseGetGrafanaBackupSchedulesRetType) { *arg = &val } @@ -82,8 +104,10 @@ func setBackupScheduleResponseGetGrafanaBackupSchedulesAttributeType(arg *Backup */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleResponseGetMessageAttributeTypeOk(arg BackupScheduleResponseGetMessageAttributeType) (ret BackupScheduleResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -91,11 +115,15 @@ func getBackupScheduleResponseGetMessageAttributeTypeOk(arg BackupScheduleRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleResponseGetMessageAttributeType(arg *BackupScheduleResponseGetMessageAttributeType, val BackupScheduleResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetMessageRetType = string /* @@ -103,10 +131,16 @@ type BackupScheduleResponseGetMessageRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeType = *[]BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetScrapeConfigBackupSchedulesArgType = []BackupSchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponseGetScrapeConfigBackupSchedulesRetType = []BackupSchedule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeTypeOk(arg BackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeType) (ret BackupScheduleResponseGetScrapeConfigBackupSchedulesRetType, ok bool) { if arg == nil { return ret, false @@ -114,11 +148,13 @@ func getBackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeType(arg *BackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeType, val BackupScheduleResponseGetScrapeConfigBackupSchedulesRetType) { *arg = &val } // BackupScheduleResponse struct for BackupScheduleResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupScheduleResponse struct { AlertConfigBackupSchedules BackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType `json:"alertConfigBackupSchedules,omitempty"` AlertRulesBackupSchedules BackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType `json:"alertRulesBackupSchedules,omitempty"` @@ -128,12 +164,14 @@ type BackupScheduleResponse struct { ScrapeConfigBackupSchedules BackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeType `json:"scrapeConfigBackupSchedules,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _BackupScheduleResponse BackupScheduleResponse // NewBackupScheduleResponse instantiates a new BackupScheduleResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupScheduleResponse(message BackupScheduleResponseGetMessageArgType) *BackupScheduleResponse { this := BackupScheduleResponse{} setBackupScheduleResponseGetMessageAttributeType(&this.Message, message) @@ -143,12 +181,14 @@ func NewBackupScheduleResponse(message BackupScheduleResponseGetMessageArgType) // NewBackupScheduleResponseWithDefaults instantiates a new BackupScheduleResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupScheduleResponseWithDefaults() *BackupScheduleResponse { this := BackupScheduleResponse{} return &this } // GetAlertConfigBackupSchedules returns the AlertConfigBackupSchedules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetAlertConfigBackupSchedules() (res BackupScheduleResponseGetAlertConfigBackupSchedulesRetType) { res, _ = o.GetAlertConfigBackupSchedulesOk() return @@ -156,22 +196,26 @@ func (o *BackupScheduleResponse) GetAlertConfigBackupSchedules() (res BackupSche // GetAlertConfigBackupSchedulesOk returns a tuple with the AlertConfigBackupSchedules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetAlertConfigBackupSchedulesOk() (ret BackupScheduleResponseGetAlertConfigBackupSchedulesRetType, ok bool) { return getBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeTypeOk(o.AlertConfigBackupSchedules) } // HasAlertConfigBackupSchedules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) HasAlertConfigBackupSchedules() bool { _, ok := o.GetAlertConfigBackupSchedulesOk() return ok } // SetAlertConfigBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the AlertConfigBackupSchedules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) SetAlertConfigBackupSchedules(v BackupScheduleResponseGetAlertConfigBackupSchedulesRetType) { setBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeType(&o.AlertConfigBackupSchedules, v) } // GetAlertRulesBackupSchedules returns the AlertRulesBackupSchedules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetAlertRulesBackupSchedules() (res BackupScheduleResponseGetAlertRulesBackupSchedulesRetType) { res, _ = o.GetAlertRulesBackupSchedulesOk() return @@ -179,22 +223,26 @@ func (o *BackupScheduleResponse) GetAlertRulesBackupSchedules() (res BackupSched // GetAlertRulesBackupSchedulesOk returns a tuple with the AlertRulesBackupSchedules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetAlertRulesBackupSchedulesOk() (ret BackupScheduleResponseGetAlertRulesBackupSchedulesRetType, ok bool) { return getBackupScheduleResponseGetAlertRulesBackupSchedulesAttributeTypeOk(o.AlertRulesBackupSchedules) } // HasAlertRulesBackupSchedules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) HasAlertRulesBackupSchedules() bool { _, ok := o.GetAlertRulesBackupSchedulesOk() return ok } // SetAlertRulesBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the AlertRulesBackupSchedules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) SetAlertRulesBackupSchedules(v BackupScheduleResponseGetAlertRulesBackupSchedulesRetType) { setBackupScheduleResponseGetAlertRulesBackupSchedulesAttributeType(&o.AlertRulesBackupSchedules, v) } // GetGrafanaBackupSchedules returns the GrafanaBackupSchedules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetGrafanaBackupSchedules() (res BackupScheduleResponseGetGrafanaBackupSchedulesRetType) { res, _ = o.GetGrafanaBackupSchedulesOk() return @@ -202,22 +250,26 @@ func (o *BackupScheduleResponse) GetGrafanaBackupSchedules() (res BackupSchedule // GetGrafanaBackupSchedulesOk returns a tuple with the GrafanaBackupSchedules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetGrafanaBackupSchedulesOk() (ret BackupScheduleResponseGetGrafanaBackupSchedulesRetType, ok bool) { return getBackupScheduleResponseGetGrafanaBackupSchedulesAttributeTypeOk(o.GrafanaBackupSchedules) } // HasGrafanaBackupSchedules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) HasGrafanaBackupSchedules() bool { _, ok := o.GetGrafanaBackupSchedulesOk() return ok } // SetGrafanaBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the GrafanaBackupSchedules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) SetGrafanaBackupSchedules(v BackupScheduleResponseGetGrafanaBackupSchedulesRetType) { setBackupScheduleResponseGetGrafanaBackupSchedulesAttributeType(&o.GrafanaBackupSchedules, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetMessage() (ret BackupScheduleResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -225,16 +277,19 @@ func (o *BackupScheduleResponse) GetMessage() (ret BackupScheduleResponseGetMess // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetMessageOk() (ret BackupScheduleResponseGetMessageRetType, ok bool) { return getBackupScheduleResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) SetMessage(v BackupScheduleResponseGetMessageRetType) { setBackupScheduleResponseGetMessageAttributeType(&o.Message, v) } // GetScrapeConfigBackupSchedules returns the ScrapeConfigBackupSchedules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetScrapeConfigBackupSchedules() (res BackupScheduleResponseGetScrapeConfigBackupSchedulesRetType) { res, _ = o.GetScrapeConfigBackupSchedulesOk() return @@ -242,21 +297,25 @@ func (o *BackupScheduleResponse) GetScrapeConfigBackupSchedules() (res BackupSch // GetScrapeConfigBackupSchedulesOk returns a tuple with the ScrapeConfigBackupSchedules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) GetScrapeConfigBackupSchedulesOk() (ret BackupScheduleResponseGetScrapeConfigBackupSchedulesRetType, ok bool) { return getBackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeTypeOk(o.ScrapeConfigBackupSchedules) } // HasScrapeConfigBackupSchedules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) HasScrapeConfigBackupSchedules() bool { _, ok := o.GetScrapeConfigBackupSchedulesOk() return ok } // SetScrapeConfigBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the ScrapeConfigBackupSchedules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BackupScheduleResponse) SetScrapeConfigBackupSchedules(v BackupScheduleResponseGetScrapeConfigBackupSchedulesRetType) { setBackupScheduleResponseGetScrapeConfigBackupSchedulesAttributeType(&o.ScrapeConfigBackupSchedules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o BackupScheduleResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBackupScheduleResponseGetAlertConfigBackupSchedulesAttributeTypeOk(o.AlertConfigBackupSchedules); ok { @@ -277,37 +336,45 @@ func (o BackupScheduleResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBackupScheduleResponse struct { value *BackupScheduleResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupScheduleResponse) Get() *BackupScheduleResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupScheduleResponse) Set(val *BackupScheduleResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupScheduleResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupScheduleResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBackupScheduleResponse(val *BackupScheduleResponse) *NullableBackupScheduleResponse { return &NullableBackupScheduleResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackupScheduleResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackupScheduleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_basic_auth.go b/services/observability/model_basic_auth.go index a07e802c0..51a150dde 100644 --- a/services/observability/model_basic_auth.go +++ b/services/observability/model_basic_auth.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &BasicAuth{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuthGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBasicAuthGetPasswordAttributeTypeOk(arg BasicAuthGetPasswordAttributeType) (ret BasicAuthGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getBasicAuthGetPasswordAttributeTypeOk(arg BasicAuthGetPasswordAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBasicAuthGetPasswordAttributeType(arg *BasicAuthGetPasswordAttributeType, val BasicAuthGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuthGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuthGetPasswordRetType = string /* @@ -43,8 +50,10 @@ type BasicAuthGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuthGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBasicAuthGetUsernameAttributeTypeOk(arg BasicAuthGetUsernameAttributeType) (ret BasicAuthGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getBasicAuthGetUsernameAttributeTypeOk(arg BasicAuthGetUsernameAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBasicAuthGetUsernameAttributeType(arg *BasicAuthGetUsernameAttributeType, val BasicAuthGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuthGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuthGetUsernameRetType = string // BasicAuth struct for BasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BasicAuth struct { // REQUIRED Password BasicAuthGetPasswordAttributeType `json:"password" required:"true"` @@ -67,12 +81,14 @@ type BasicAuth struct { Username BasicAuthGetUsernameAttributeType `json:"username" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _BasicAuth BasicAuth // NewBasicAuth instantiates a new BasicAuth object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBasicAuth(password BasicAuthGetPasswordArgType, username BasicAuthGetUsernameArgType) *BasicAuth { this := BasicAuth{} setBasicAuthGetPasswordAttributeType(&this.Password, password) @@ -83,12 +99,14 @@ func NewBasicAuth(password BasicAuthGetPasswordArgType, username BasicAuthGetUse // NewBasicAuthWithDefaults instantiates a new BasicAuth object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBasicAuthWithDefaults() *BasicAuth { this := BasicAuth{} return &this } // GetPassword returns the Password field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BasicAuth) GetPassword() (ret BasicAuthGetPasswordRetType) { ret, _ = o.GetPasswordOk() return ret @@ -96,16 +114,19 @@ func (o *BasicAuth) GetPassword() (ret BasicAuthGetPasswordRetType) { // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BasicAuth) GetPasswordOk() (ret BasicAuthGetPasswordRetType, ok bool) { return getBasicAuthGetPasswordAttributeTypeOk(o.Password) } // SetPassword sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BasicAuth) SetPassword(v BasicAuthGetPasswordRetType) { setBasicAuthGetPasswordAttributeType(&o.Password, v) } // GetUsername returns the Username field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BasicAuth) GetUsername() (ret BasicAuthGetUsernameRetType) { ret, _ = o.GetUsernameOk() return ret @@ -113,15 +134,18 @@ func (o *BasicAuth) GetUsername() (ret BasicAuthGetUsernameRetType) { // GetUsernameOk returns a tuple with the Username field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BasicAuth) GetUsernameOk() (ret BasicAuthGetUsernameRetType, ok bool) { return getBasicAuthGetUsernameAttributeTypeOk(o.Username) } // SetUsername sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *BasicAuth) SetUsername(v BasicAuthGetUsernameRetType) { setBasicAuthGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o BasicAuth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBasicAuthGetPasswordAttributeTypeOk(o.Password); ok { @@ -133,37 +157,45 @@ func (o BasicAuth) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBasicAuth struct { value *BasicAuth isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBasicAuth) Get() *BasicAuth { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBasicAuth) Set(val *BasicAuth) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBasicAuth) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBasicAuth) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBasicAuth(val *BasicAuth) *NullableBasicAuth { return &NullableBasicAuth{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBasicAuth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBasicAuth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_cert_check_child_response.go b/services/observability/model_cert_check_child_response.go index 87b8a6344..d453aca33 100644 --- a/services/observability/model_cert_check_child_response.go +++ b/services/observability/model_cert_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CertCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCertCheckChildResponseGetIdAttributeTypeOk(arg CertCheckChildResponseGetIdAttributeType) (ret CertCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCertCheckChildResponseGetIdAttributeTypeOk(arg CertCheckChildResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCertCheckChildResponseGetIdAttributeType(arg *CertCheckChildResponseGetIdAttributeType, val CertCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type CertCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponseGetSourceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCertCheckChildResponseGetSourceAttributeTypeOk(arg CertCheckChildResponseGetSourceAttributeType) (ret CertCheckChildResponseGetSourceRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getCertCheckChildResponseGetSourceAttributeTypeOk(arg CertCheckChildRespons return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCertCheckChildResponseGetSourceAttributeType(arg *CertCheckChildResponseGetSourceAttributeType, val CertCheckChildResponseGetSourceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponseGetSourceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponseGetSourceRetType = string // CertCheckChildResponse struct for CertCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckChildResponse struct { // REQUIRED Id CertCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -67,12 +81,14 @@ type CertCheckChildResponse struct { Source CertCheckChildResponseGetSourceAttributeType `json:"source" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CertCheckChildResponse CertCheckChildResponse // NewCertCheckChildResponse instantiates a new CertCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCertCheckChildResponse(id CertCheckChildResponseGetIdArgType, source CertCheckChildResponseGetSourceArgType) *CertCheckChildResponse { this := CertCheckChildResponse{} setCertCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -83,12 +99,14 @@ func NewCertCheckChildResponse(id CertCheckChildResponseGetIdArgType, source Cer // NewCertCheckChildResponseWithDefaults instantiates a new CertCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCertCheckChildResponseWithDefaults() *CertCheckChildResponse { this := CertCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckChildResponse) GetId() (ret CertCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -96,16 +114,19 @@ func (o *CertCheckChildResponse) GetId() (ret CertCheckChildResponseGetIdRetType // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckChildResponse) GetIdOk() (ret CertCheckChildResponseGetIdRetType, ok bool) { return getCertCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckChildResponse) SetId(v CertCheckChildResponseGetIdRetType) { setCertCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetSource returns the Source field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckChildResponse) GetSource() (ret CertCheckChildResponseGetSourceRetType) { ret, _ = o.GetSourceOk() return ret @@ -113,15 +134,18 @@ func (o *CertCheckChildResponse) GetSource() (ret CertCheckChildResponseGetSourc // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckChildResponse) GetSourceOk() (ret CertCheckChildResponseGetSourceRetType, ok bool) { return getCertCheckChildResponseGetSourceAttributeTypeOk(o.Source) } // SetSource sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckChildResponse) SetSource(v CertCheckChildResponseGetSourceRetType) { setCertCheckChildResponseGetSourceAttributeType(&o.Source, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CertCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCertCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -133,37 +157,45 @@ func (o CertCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCertCheckChildResponse struct { value *CertCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCertCheckChildResponse) Get() *CertCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCertCheckChildResponse) Set(val *CertCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCertCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCertCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCertCheckChildResponse(val *CertCheckChildResponse) *NullableCertCheckChildResponse { return &NullableCertCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCertCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCertCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_cert_check_response.go b/services/observability/model_cert_check_response.go index 2a2df7e4f..d6ce6f331 100644 --- a/services/observability/model_cert_check_response.go +++ b/services/observability/model_cert_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CertCheckResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetCertCheckAttributeType = *CertCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetCertCheckArgType = CertCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetCertCheckRetType = CertCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCertCheckResponseGetCertCheckAttributeTypeOk(arg CertCheckResponseGetCertCheckAttributeType) (ret CertCheckResponseGetCertCheckRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCertCheckResponseGetCertCheckAttributeTypeOk(arg CertCheckResponseGetCer return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCertCheckResponseGetCertCheckAttributeType(arg *CertCheckResponseGetCertCheckAttributeType, val CertCheckResponseGetCertCheckRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCertCheckResponseGetCertCheckAttributeType(arg *CertCheckResponseGetCert */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetCertChecksAttributeType = *[]CertCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetCertChecksArgType = []CertCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetCertChecksRetType = []CertCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCertCheckResponseGetCertChecksAttributeTypeOk(arg CertCheckResponseGetCertChecksAttributeType) (ret CertCheckResponseGetCertChecksRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getCertCheckResponseGetCertChecksAttributeTypeOk(arg CertCheckResponseGetCe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCertCheckResponseGetCertChecksAttributeType(arg *CertCheckResponseGetCertChecksAttributeType, val CertCheckResponseGetCertChecksRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setCertCheckResponseGetCertChecksAttributeType(arg *CertCheckResponseGetCer */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCertCheckResponseGetMessageAttributeTypeOk(arg CertCheckResponseGetMessageAttributeType) (ret CertCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -71,14 +88,19 @@ func getCertCheckResponseGetMessageAttributeTypeOk(arg CertCheckResponseGetMessa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCertCheckResponseGetMessageAttributeType(arg *CertCheckResponseGetMessageAttributeType, val CertCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponseGetMessageRetType = string // CertCheckResponse struct for CertCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CertCheckResponse struct { CertCheck CertCheckResponseGetCertCheckAttributeType `json:"certCheck,omitempty"` // REQUIRED @@ -87,12 +109,14 @@ type CertCheckResponse struct { Message CertCheckResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CertCheckResponse CertCheckResponse // NewCertCheckResponse instantiates a new CertCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCertCheckResponse(certChecks CertCheckResponseGetCertChecksArgType, message CertCheckResponseGetMessageArgType) *CertCheckResponse { this := CertCheckResponse{} setCertCheckResponseGetCertChecksAttributeType(&this.CertChecks, certChecks) @@ -103,12 +127,14 @@ func NewCertCheckResponse(certChecks CertCheckResponseGetCertChecksArgType, mess // NewCertCheckResponseWithDefaults instantiates a new CertCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCertCheckResponseWithDefaults() *CertCheckResponse { this := CertCheckResponse{} return &this } // GetCertCheck returns the CertCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) GetCertCheck() (res CertCheckResponseGetCertCheckRetType) { res, _ = o.GetCertCheckOk() return @@ -116,22 +142,26 @@ func (o *CertCheckResponse) GetCertCheck() (res CertCheckResponseGetCertCheckRet // GetCertCheckOk returns a tuple with the CertCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) GetCertCheckOk() (ret CertCheckResponseGetCertCheckRetType, ok bool) { return getCertCheckResponseGetCertCheckAttributeTypeOk(o.CertCheck) } // HasCertCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) HasCertCheck() bool { _, ok := o.GetCertCheckOk() return ok } // SetCertCheck gets a reference to the given CertCheckChildResponse and assigns it to the CertCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) SetCertCheck(v CertCheckResponseGetCertCheckRetType) { setCertCheckResponseGetCertCheckAttributeType(&o.CertCheck, v) } // GetCertChecks returns the CertChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) GetCertChecks() (ret CertCheckResponseGetCertChecksRetType) { ret, _ = o.GetCertChecksOk() return ret @@ -139,16 +169,19 @@ func (o *CertCheckResponse) GetCertChecks() (ret CertCheckResponseGetCertChecksR // GetCertChecksOk returns a tuple with the CertChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) GetCertChecksOk() (ret CertCheckResponseGetCertChecksRetType, ok bool) { return getCertCheckResponseGetCertChecksAttributeTypeOk(o.CertChecks) } // SetCertChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) SetCertChecks(v CertCheckResponseGetCertChecksRetType) { setCertCheckResponseGetCertChecksAttributeType(&o.CertChecks, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) GetMessage() (ret CertCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -156,15 +189,18 @@ func (o *CertCheckResponse) GetMessage() (ret CertCheckResponseGetMessageRetType // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) GetMessageOk() (ret CertCheckResponseGetMessageRetType, ok bool) { return getCertCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CertCheckResponse) SetMessage(v CertCheckResponseGetMessageRetType) { setCertCheckResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CertCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCertCheckResponseGetCertCheckAttributeTypeOk(o.CertCheck); ok { @@ -179,37 +215,45 @@ func (o CertCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCertCheckResponse struct { value *CertCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCertCheckResponse) Get() *CertCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCertCheckResponse) Set(val *CertCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCertCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCertCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCertCheckResponse(val *CertCheckResponse) *NullableCertCheckResponse { return &NullableCertCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCertCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCertCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_config_receiver_payload.go b/services/observability/model_create_alert_config_receiver_payload.go index ad74c17ac..556262891 100644 --- a/services/observability/model_create_alert_config_receiver_payload.go +++ b/services/observability/model_create_alert_config_receiver_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateAlertConfigReceiverPayload{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadEmailConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetEmailConfigsArgType = []CreateAlertConfigReceiverPayloadEmailConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetEmailConfigsRetType = []CreateAlertConfigReceiverPayloadEmailConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(arg CreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType) (ret CreateAlertConfigReceiverPayloadGetEmailConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(arg Creat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType(arg *CreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType, val CreateAlertConfigReceiverPayloadGetEmailConfigsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType(arg *Create */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadGetNameAttributeTypeOk(arg CreateAlertConfigReceiverPayloadGetNameAttributeType) (ret CreateAlertConfigReceiverPayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getCreateAlertConfigReceiverPayloadGetNameAttributeTypeOk(arg CreateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadGetNameAttributeType(arg *CreateAlertConfigReceiverPayloadGetNameAttributeType, val CreateAlertConfigReceiverPayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetNameRetType = string /* @@ -63,10 +77,16 @@ type CreateAlertConfigReceiverPayloadGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetOpsgenieConfigsArgType = []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType = []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeTypeOk(arg CreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType) (ret CreateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getCreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeTypeOk(arg Cr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType(arg *CreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType, val CreateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType) { *arg = &val } @@ -83,10 +104,16 @@ func setCreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType(arg *Cre */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadWebHookConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetWebHookConfigsArgType = []CreateAlertConfigReceiverPayloadWebHookConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadGetWebHookConfigsRetType = []CreateAlertConfigReceiverPayloadWebHookConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeTypeOk(arg CreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType) (ret CreateAlertConfigReceiverPayloadGetWebHookConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +121,13 @@ func getCreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeTypeOk(arg Cre return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType(arg *CreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType, val CreateAlertConfigReceiverPayloadGetWebHookConfigsRetType) { *arg = &val } // CreateAlertConfigReceiverPayload Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayload struct { // Email configurations EmailConfigs CreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType `json:"emailConfigs,omitempty"` @@ -110,12 +139,14 @@ type CreateAlertConfigReceiverPayload struct { WebHookConfigs CreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType `json:"webHookConfigs,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateAlertConfigReceiverPayload CreateAlertConfigReceiverPayload // NewCreateAlertConfigReceiverPayload instantiates a new CreateAlertConfigReceiverPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayload(name CreateAlertConfigReceiverPayloadGetNameArgType) *CreateAlertConfigReceiverPayload { this := CreateAlertConfigReceiverPayload{} setCreateAlertConfigReceiverPayloadGetNameAttributeType(&this.Name, name) @@ -125,12 +156,14 @@ func NewCreateAlertConfigReceiverPayload(name CreateAlertConfigReceiverPayloadGe // NewCreateAlertConfigReceiverPayloadWithDefaults instantiates a new CreateAlertConfigReceiverPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadWithDefaults() *CreateAlertConfigReceiverPayload { this := CreateAlertConfigReceiverPayload{} return &this } // GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetEmailConfigs() (res CreateAlertConfigReceiverPayloadGetEmailConfigsRetType) { res, _ = o.GetEmailConfigsOk() return @@ -138,22 +171,26 @@ func (o *CreateAlertConfigReceiverPayload) GetEmailConfigs() (res CreateAlertCon // GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetEmailConfigsOk() (ret CreateAlertConfigReceiverPayloadGetEmailConfigsRetType, ok bool) { return getCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(o.EmailConfigs) } // HasEmailConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) HasEmailConfigs() bool { _, ok := o.GetEmailConfigsOk() return ok } // SetEmailConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadEmailConfigsInner and assigns it to the EmailConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) SetEmailConfigs(v CreateAlertConfigReceiverPayloadGetEmailConfigsRetType) { setCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeType(&o.EmailConfigs, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetName() (ret CreateAlertConfigReceiverPayloadGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -161,16 +198,19 @@ func (o *CreateAlertConfigReceiverPayload) GetName() (ret CreateAlertConfigRecei // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetNameOk() (ret CreateAlertConfigReceiverPayloadGetNameRetType, ok bool) { return getCreateAlertConfigReceiverPayloadGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) SetName(v CreateAlertConfigReceiverPayloadGetNameRetType) { setCreateAlertConfigReceiverPayloadGetNameAttributeType(&o.Name, v) } // GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetOpsgenieConfigs() (res CreateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType) { res, _ = o.GetOpsgenieConfigsOk() return @@ -178,22 +218,26 @@ func (o *CreateAlertConfigReceiverPayload) GetOpsgenieConfigs() (res CreateAlert // GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetOpsgenieConfigsOk() (ret CreateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType, ok bool) { return getCreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeTypeOk(o.OpsgenieConfigs) } // HasOpsgenieConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) HasOpsgenieConfigs() bool { _, ok := o.GetOpsgenieConfigsOk() return ok } // SetOpsgenieConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner and assigns it to the OpsgenieConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) SetOpsgenieConfigs(v CreateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType) { setCreateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType(&o.OpsgenieConfigs, v) } // GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetWebHookConfigs() (res CreateAlertConfigReceiverPayloadGetWebHookConfigsRetType) { res, _ = o.GetWebHookConfigsOk() return @@ -201,21 +245,25 @@ func (o *CreateAlertConfigReceiverPayload) GetWebHookConfigs() (res CreateAlertC // GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) GetWebHookConfigsOk() (ret CreateAlertConfigReceiverPayloadGetWebHookConfigsRetType, ok bool) { return getCreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeTypeOk(o.WebHookConfigs) } // HasWebHookConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) HasWebHookConfigs() bool { _, ok := o.GetWebHookConfigsOk() return ok } // SetWebHookConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadWebHookConfigsInner and assigns it to the WebHookConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayload) SetWebHookConfigs(v CreateAlertConfigReceiverPayloadGetWebHookConfigsRetType) { setCreateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType(&o.WebHookConfigs, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertConfigReceiverPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(o.EmailConfigs); ok { @@ -233,37 +281,45 @@ func (o CreateAlertConfigReceiverPayload) ToMap() (map[string]interface{}, error return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertConfigReceiverPayload struct { value *CreateAlertConfigReceiverPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayload) Get() *CreateAlertConfigReceiverPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayload) Set(val *CreateAlertConfigReceiverPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertConfigReceiverPayload(val *CreateAlertConfigReceiverPayload) *NullableCreateAlertConfigReceiverPayload { return &NullableCreateAlertConfigReceiverPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go index f3f085c8b..6c7407d04 100644 --- a/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateAlertConfigReceiverPayloadEmailConfigsInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType = string /* @@ -43,8 +50,10 @@ type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType = s */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType = string /* @@ -64,8 +77,10 @@ type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType = s */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType = string /* @@ -85,8 +104,10 @@ type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType = s */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +115,15 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeTypeOk( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType = string /* @@ -106,10 +131,16 @@ type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedRetType, ok bool) { if arg == nil { return ret, false @@ -117,6 +148,7 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedRetType) { *arg = &val } @@ -126,8 +158,10 @@ func setCreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttribut */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType, ok bool) { if arg == nil { return ret, false @@ -135,11 +169,15 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType = string /* @@ -147,8 +185,10 @@ type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType = stri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeTypeOk(arg CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeType) (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToRetType, ok bool) { if arg == nil { return ret, false @@ -156,14 +196,19 @@ func getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeTypeOk(ar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeType(arg *CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeType, val CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToRetType = string // CreateAlertConfigReceiverPayloadEmailConfigsInner struct for CreateAlertConfigReceiverPayloadEmailConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadEmailConfigsInner struct { // SMTP authentication information. `Additional Validators:` * must be a syntactically valid email address AuthIdentity CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeType `json:"authIdentity,omitempty"` @@ -185,6 +230,7 @@ type CreateAlertConfigReceiverPayloadEmailConfigsInner struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadEmailConfigsInner() *CreateAlertConfigReceiverPayloadEmailConfigsInner { this := CreateAlertConfigReceiverPayloadEmailConfigsInner{} return &this @@ -193,6 +239,7 @@ func NewCreateAlertConfigReceiverPayloadEmailConfigsInner() *CreateAlertConfigRe // NewCreateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults instantiates a new CreateAlertConfigReceiverPayloadEmailConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadEmailConfigsInner { this := CreateAlertConfigReceiverPayloadEmailConfigsInner{} var sendResolved bool = false @@ -201,6 +248,7 @@ func NewCreateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults() *CreateA } // GetAuthIdentity returns the AuthIdentity field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentity() (res CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType) { res, _ = o.GetAuthIdentityOk() return @@ -208,22 +256,26 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentity() (r // GetAuthIdentityOk returns a tuple with the AuthIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentityOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeTypeOk(o.AuthIdentity) } // HasAuthIdentity returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthIdentity() bool { _, ok := o.GetAuthIdentityOk() return ok } // SetAuthIdentity gets a reference to the given string and assigns it to the AuthIdentity field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthIdentity(v CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeType(&o.AuthIdentity, v) } // GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPassword() (res CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType) { res, _ = o.GetAuthPasswordOk() return @@ -231,22 +283,26 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPassword() (r // GetAuthPasswordOk returns a tuple with the AuthPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPasswordOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeTypeOk(o.AuthPassword) } // HasAuthPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthPassword() bool { _, ok := o.GetAuthPasswordOk() return ok } // SetAuthPassword gets a reference to the given string and assigns it to the AuthPassword field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthPassword(v CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthPasswordAttributeType(&o.AuthPassword, v) } // GetAuthUsername returns the AuthUsername field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsername() (res CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType) { res, _ = o.GetAuthUsernameOk() return @@ -254,22 +310,26 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsername() (r // GetAuthUsernameOk returns a tuple with the AuthUsername field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsernameOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeTypeOk(o.AuthUsername) } // HasAuthUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthUsername() bool { _, ok := o.GetAuthUsernameOk() return ok } // SetAuthUsername gets a reference to the given string and assigns it to the AuthUsername field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthUsername(v CreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthUsernameAttributeType(&o.AuthUsername, v) } // GetFrom returns the From field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetFrom() (res CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType) { res, _ = o.GetFromOk() return @@ -277,22 +337,26 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetFrom() (res Creat // GetFromOk returns a tuple with the From field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetFromOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeTypeOk(o.From) } // HasFrom returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasFrom() bool { _, ok := o.GetFromOk() return ok } // SetFrom gets a reference to the given string and assigns it to the From field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetFrom(v CreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetFromAttributeType(&o.From, v) } // GetSendResolved returns the SendResolved field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolved() (res CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedRetType) { res, _ = o.GetSendResolvedOk() return @@ -300,22 +364,26 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolved() (r // GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolvedOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeTypeOk(o.SendResolved) } // HasSendResolved returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasSendResolved() bool { _, ok := o.GetSendResolvedOk() return ok } // SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetSendResolved(v CreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnergetSendResolvedAttributeType(&o.SendResolved, v) } // GetSmarthost returns the Smarthost field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthost() (res CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType) { res, _ = o.GetSmarthostOk() return @@ -323,22 +391,26 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthost() (res // GetSmarthostOk returns a tuple with the Smarthost field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthostOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeTypeOk(o.Smarthost) } // HasSmarthost returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasSmarthost() bool { _, ok := o.GetSmarthostOk() return ok } // SetSmarthost gets a reference to the given string and assigns it to the Smarthost field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetSmarthost(v CreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetSmarthostAttributeType(&o.Smarthost, v) } // GetTo returns the To field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetTo() (res CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToRetType) { res, _ = o.GetToOk() return @@ -346,21 +418,25 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetTo() (res CreateA // GetToOk returns a tuple with the To field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetToOk() (ret CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToRetType, ok bool) { return getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeTypeOk(o.To) } // HasTo returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasTo() bool { _, ok := o.GetToOk() return ok } // SetTo gets a reference to the given string and assigns it to the To field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetTo(v CreateAlertConfigReceiverPayloadEmailConfigsInnerGetToRetType) { setCreateAlertConfigReceiverPayloadEmailConfigsInnerGetToAttributeType(&o.To, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertConfigReceiverPayloadEmailConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertConfigReceiverPayloadEmailConfigsInnerGetAuthIdentityAttributeTypeOk(o.AuthIdentity); ok { @@ -387,37 +463,45 @@ func (o CreateAlertConfigReceiverPayloadEmailConfigsInner) ToMap() (map[string]i return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertConfigReceiverPayloadEmailConfigsInner struct { value *CreateAlertConfigReceiverPayloadEmailConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) Get() *CreateAlertConfigReceiverPayloadEmailConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) Set(val *CreateAlertConfigReceiverPayloadEmailConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertConfigReceiverPayloadEmailConfigsInner(val *CreateAlertConfigReceiverPayloadEmailConfigsInner) *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner { return &NullableCreateAlertConfigReceiverPayloadEmailConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go index fc4eaf545..cb98553c1 100644 --- a/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateAlertConfigReceiverPayloadOpsgenieConfigsInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeTypeOk(arg CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeType) (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeType(arg *CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeType, val CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType = string /* @@ -43,8 +50,10 @@ type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType = stri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeTypeOk(arg CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeType) (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeType(arg *CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeType, val CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType = string /* @@ -64,8 +77,10 @@ type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType = stri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeTypeOk(arg CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeType) (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttribute return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeType(arg *CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeType, val CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType = string /* @@ -85,10 +104,16 @@ type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType = st */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeTypeOk(arg CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeType) (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedRetType, ok bool) { if arg == nil { return ret, false @@ -96,6 +121,7 @@ func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttri return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeType(arg *CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeType, val CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedRetType) { *arg = &val } @@ -105,8 +131,10 @@ func setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeTypeOk(arg CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeType) (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsRetType, ok bool) { if arg == nil { return ret, false @@ -114,14 +142,19 @@ func getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeType return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeType(arg *CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeType, val CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsRetType = string // CreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct for CreateAlertConfigReceiverPayloadOpsgenieConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { // The API key to use when talking to the OpsGenie API. `Additional Validators:` * should only include the characters: a-zA-Z0-9- ApiKey CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeType `json:"apiKey,omitempty"` @@ -139,6 +172,7 @@ type CreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInner() *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { this := CreateAlertConfigReceiverPayloadOpsgenieConfigsInner{} return &this @@ -147,6 +181,7 @@ func NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInner() *CreateAlertConfi // NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults instantiates a new CreateAlertConfigReceiverPayloadOpsgenieConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { this := CreateAlertConfigReceiverPayloadOpsgenieConfigsInner{} var sendResolved bool = true @@ -155,6 +190,7 @@ func NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults() *Crea } // GetApiKey returns the ApiKey field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKey() (res CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType) { res, _ = o.GetApiKeyOk() return @@ -162,22 +198,26 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKey() (res // GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKeyOk() (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType, ok bool) { return getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeTypeOk(o.ApiKey) } // HasApiKey returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiKey() bool { _, ok := o.GetApiKeyOk() return ok } // SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetApiKey(v CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyRetType) { setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeType(&o.ApiKey, v) } // GetApiUrl returns the ApiUrl field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrl() (res CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType) { res, _ = o.GetApiUrlOk() return @@ -185,22 +225,26 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrl() (res // GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrlOk() (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType, ok bool) { return getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeTypeOk(o.ApiUrl) } // HasApiUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiUrl() bool { _, ok := o.GetApiUrlOk() return ok } // SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetApiUrl(v CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlRetType) { setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiUrlAttributeType(&o.ApiUrl, v) } // GetPriority returns the Priority field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriority() (res CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType) { res, _ = o.GetPriorityOk() return @@ -208,22 +252,26 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriority() (re // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriorityOk() (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType, ok bool) { return getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeTypeOk(o.Priority) } // HasPriority returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasPriority() bool { _, ok := o.GetPriorityOk() return ok } // SetPriority gets a reference to the given string and assigns it to the Priority field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetPriority(v CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityRetType) { setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetPriorityAttributeType(&o.Priority, v) } // GetSendResolved returns the SendResolved field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolved() (res CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedRetType) { res, _ = o.GetSendResolvedOk() return @@ -231,22 +279,26 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolved() // GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolvedOk() (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedRetType, ok bool) { return getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeTypeOk(o.SendResolved) } // HasSendResolved returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasSendResolved() bool { _, ok := o.GetSendResolvedOk() return ok } // SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetSendResolved(v CreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedRetType) { setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnergetSendResolvedAttributeType(&o.SendResolved, v) } // GetTags returns the Tags field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTags() (res CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsRetType) { res, _ = o.GetTagsOk() return @@ -254,21 +306,25 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTags() (res Cr // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTagsOk() (ret CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsRetType, ok bool) { return getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeTypeOk(o.Tags) } // HasTags returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasTags() bool { _, ok := o.GetTagsOk() return ok } // SetTags gets a reference to the given string and assigns it to the Tags field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetTags(v CreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsRetType) { setCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetTagsAttributeType(&o.Tags, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerGetApiKeyAttributeTypeOk(o.ApiKey); ok { @@ -289,37 +345,45 @@ func (o CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) ToMap() (map[strin return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { value *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) Get() *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) Set(val *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner(val *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner { return &NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go index 2d9f44a36..4043cc2c5 100644 --- a/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateAlertConfigReceiverPayloadWebHookConfigsInner{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeTypeOk(arg CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType) (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType(arg *CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType, val CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttribut */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeTypeOk(arg CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeType) (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeType(arg *CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeType, val CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeTy */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeTypeOk(arg CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeType) (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeType(arg *CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeType, val CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedRetType) { *arg = &val } @@ -82,8 +104,10 @@ func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttrib */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeTypeOk(arg CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeType) (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -91,14 +115,19 @@ func getCreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeTypeOk return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeType(arg *CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeType, val CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType = string // CreateAlertConfigReceiverPayloadWebHookConfigsInner struct for CreateAlertConfigReceiverPayloadWebHookConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigReceiverPayloadWebHookConfigsInner struct { // Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false. GoogleChat CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType `json:"googleChat,omitempty"` @@ -114,6 +143,7 @@ type CreateAlertConfigReceiverPayloadWebHookConfigsInner struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadWebHookConfigsInner() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { this := CreateAlertConfigReceiverPayloadWebHookConfigsInner{} return &this @@ -122,6 +152,7 @@ func NewCreateAlertConfigReceiverPayloadWebHookConfigsInner() *CreateAlertConfig // NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults instantiates a new CreateAlertConfigReceiverPayloadWebHookConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { this := CreateAlertConfigReceiverPayloadWebHookConfigsInner{} var googleChat bool = false @@ -134,6 +165,7 @@ func NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults() *Creat } // GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChat() (res CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType) { res, _ = o.GetGoogleChatOk() return @@ -141,22 +173,26 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChat() (r // GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChatOk() (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType, ok bool) { return getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeTypeOk(o.GoogleChat) } // HasGoogleChat returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasGoogleChat() bool { _, ok := o.GetGoogleChatOk() return ok } // SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetGoogleChat(v CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType) { setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType(&o.GoogleChat, v) } // GetMsTeams returns the MsTeams field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeams() (res CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType) { res, _ = o.GetMsTeamsOk() return @@ -164,22 +200,26 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeams() (res // GetMsTeamsOk returns a tuple with the MsTeams field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeamsOk() (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType, ok bool) { return getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeTypeOk(o.MsTeams) } // HasMsTeams returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasMsTeams() bool { _, ok := o.GetMsTeamsOk() return ok } // SetMsTeams gets a reference to the given bool and assigns it to the MsTeams field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetMsTeams(v CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType) { setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeType(&o.MsTeams, v) } // GetSendResolved returns the SendResolved field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolved() (res CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedRetType) { res, _ = o.GetSendResolvedOk() return @@ -187,22 +227,26 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolved() // GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolvedOk() (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedRetType, ok bool) { return getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeTypeOk(o.SendResolved) } // HasSendResolved returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasSendResolved() bool { _, ok := o.GetSendResolvedOk() return ok } // SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetSendResolved(v CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedRetType) { setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeType(&o.SendResolved, v) } // GetUrl returns the Url field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrl() (res CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType) { res, _ = o.GetUrlOk() return @@ -210,21 +254,25 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrl() (res Crea // GetUrlOk returns a tuple with the Url field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrlOk() (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType, ok bool) { return getCreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeTypeOk(o.Url) } // HasUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasUrl() bool { _, ok := o.GetUrlOk() return ok } // SetUrl gets a reference to the given string and assigns it to the Url field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetUrl(v CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType) { setCreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertConfigReceiverPayloadWebHookConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeTypeOk(o.GoogleChat); ok { @@ -242,37 +290,45 @@ func (o CreateAlertConfigReceiverPayloadWebHookConfigsInner) ToMap() (map[string return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner struct { value *CreateAlertConfigReceiverPayloadWebHookConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) Get() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) Set(val *CreateAlertConfigReceiverPayloadWebHookConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertConfigReceiverPayloadWebHookConfigsInner(val *CreateAlertConfigReceiverPayloadWebHookConfigsInner) *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner { return &NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_config_route_payload.go b/services/observability/model_create_alert_config_route_payload.go index a620a09bb..1d5599cc5 100644 --- a/services/observability/model_create_alert_config_route_payload.go +++ b/services/observability/model_create_alert_config_route_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateAlertConfigRoutePayload{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadgetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadgetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadgetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadgetContinueAttributeTypeOk(arg CreateAlertConfigRoutePayloadgetContinueAttributeType) (ret CreateAlertConfigRoutePayloadgetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateAlertConfigRoutePayloadgetContinueAttributeTypeOk(arg CreateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadgetContinueAttributeType(arg *CreateAlertConfigRoutePayloadgetContinueAttributeType, val CreateAlertConfigRoutePayloadgetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCreateAlertConfigRoutePayloadgetContinueAttributeType(arg *CreateAlertCo */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetGroupByAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetGroupByAttributeType) (ret CreateAlertConfigRoutePayloadGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getCreateAlertConfigRoutePayloadGetGroupByAttributeTypeOk(arg CreateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetGroupByAttributeType(arg *CreateAlertConfigRoutePayloadGetGroupByAttributeType, val CreateAlertConfigRoutePayloadGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setCreateAlertConfigRoutePayloadGetGroupByAttributeType(arg *CreateAlertCon */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetGroupIntervalAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetGroupIntervalAttributeType) (ret CreateAlertConfigRoutePayloadGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getCreateAlertConfigRoutePayloadGetGroupIntervalAttributeTypeOk(arg CreateA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetGroupIntervalAttributeType(arg *CreateAlertConfigRoutePayloadGetGroupIntervalAttributeType, val CreateAlertConfigRoutePayloadGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type CreateAlertConfigRoutePayloadGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetGroupWaitAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetGroupWaitAttributeType) (ret CreateAlertConfigRoutePayloadGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getCreateAlertConfigRoutePayloadGetGroupWaitAttributeTypeOk(arg CreateAlert return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetGroupWaitAttributeType(arg *CreateAlertConfigRoutePayloadGetGroupWaitAttributeType, val CreateAlertConfigRoutePayloadGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type CreateAlertConfigRoutePayloadGetGroupWaitRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetMatchAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetMatchAttributeType) (ret CreateAlertConfigRoutePayloadGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getCreateAlertConfigRoutePayloadGetMatchAttributeTypeOk(arg CreateAlertConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetMatchAttributeType(arg *CreateAlertConfigRoutePayloadGetMatchAttributeType, val CreateAlertConfigRoutePayloadGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setCreateAlertConfigRoutePayloadGetMatchAttributeType(arg *CreateAlertConfi */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetMatchReAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetMatchReAttributeType) (ret CreateAlertConfigRoutePayloadGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getCreateAlertConfigRoutePayloadGetMatchReAttributeTypeOk(arg CreateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetMatchReAttributeType(arg *CreateAlertConfigRoutePayloadGetMatchReAttributeType, val CreateAlertConfigRoutePayloadGetMatchReRetType) { *arg = &val } @@ -144,10 +185,16 @@ func setCreateAlertConfigRoutePayloadGetMatchReAttributeType(arg *CreateAlertCon */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetMatchersAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetMatchersAttributeType) (ret CreateAlertConfigRoutePayloadGetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -155,6 +202,7 @@ func getCreateAlertConfigRoutePayloadGetMatchersAttributeTypeOk(arg CreateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetMatchersAttributeType(arg *CreateAlertConfigRoutePayloadGetMatchersAttributeType, val CreateAlertConfigRoutePayloadGetMatchersRetType) { *arg = &val } @@ -164,8 +212,10 @@ func setCreateAlertConfigRoutePayloadGetMatchersAttributeType(arg *CreateAlertCo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetReceiverAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetReceiverAttributeType) (ret CreateAlertConfigRoutePayloadGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -173,11 +223,15 @@ func getCreateAlertConfigRoutePayloadGetReceiverAttributeTypeOk(arg CreateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetReceiverAttributeType(arg *CreateAlertConfigRoutePayloadGetReceiverAttributeType, val CreateAlertConfigRoutePayloadGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetReceiverRetType = string /* @@ -185,8 +239,10 @@ type CreateAlertConfigRoutePayloadGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetRepeatIntervalAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetRepeatIntervalAttributeType) (ret CreateAlertConfigRoutePayloadGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -194,11 +250,15 @@ func getCreateAlertConfigRoutePayloadGetRepeatIntervalAttributeTypeOk(arg Create return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetRepeatIntervalAttributeType(arg *CreateAlertConfigRoutePayloadGetRepeatIntervalAttributeType, val CreateAlertConfigRoutePayloadGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetRepeatIntervalRetType = string /* @@ -206,10 +266,16 @@ type CreateAlertConfigRoutePayloadGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetRoutesAttributeType = *[]CreateAlertConfigRoutePayloadRoutesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetRoutesArgType = []CreateAlertConfigRoutePayloadRoutesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadGetRoutesRetType = []CreateAlertConfigRoutePayloadRoutesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadGetRoutesAttributeTypeOk(arg CreateAlertConfigRoutePayloadGetRoutesAttributeType) (ret CreateAlertConfigRoutePayloadGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +283,13 @@ func getCreateAlertConfigRoutePayloadGetRoutesAttributeTypeOk(arg CreateAlertCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadGetRoutesAttributeType(arg *CreateAlertConfigRoutePayloadGetRoutesAttributeType, val CreateAlertConfigRoutePayloadGetRoutesRetType) { *arg = &val } // CreateAlertConfigRoutePayload The root node of the routing tree. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayload struct { // The continue parameter cannot be set to true on the root route because there are no subsequent sibling nodes to match. It must always be false. Continue CreateAlertConfigRoutePayloadgetContinueAttributeType `json:"continue,omitempty"` @@ -246,12 +314,14 @@ type CreateAlertConfigRoutePayload struct { Routes CreateAlertConfigRoutePayloadGetRoutesAttributeType `json:"routes,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateAlertConfigRoutePayload CreateAlertConfigRoutePayload // NewCreateAlertConfigRoutePayload instantiates a new CreateAlertConfigRoutePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigRoutePayload(receiver CreateAlertConfigRoutePayloadGetReceiverArgType) *CreateAlertConfigRoutePayload { this := CreateAlertConfigRoutePayload{} setCreateAlertConfigRoutePayloadGetReceiverAttributeType(&this.Receiver, receiver) @@ -261,6 +331,7 @@ func NewCreateAlertConfigRoutePayload(receiver CreateAlertConfigRoutePayloadGetR // NewCreateAlertConfigRoutePayloadWithDefaults instantiates a new CreateAlertConfigRoutePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigRoutePayloadWithDefaults() *CreateAlertConfigRoutePayload { this := CreateAlertConfigRoutePayload{} var continue_ bool = false @@ -275,6 +346,7 @@ func NewCreateAlertConfigRoutePayloadWithDefaults() *CreateAlertConfigRoutePaylo } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetContinue() (res CreateAlertConfigRoutePayloadgetContinueRetType) { res, _ = o.GetContinueOk() return @@ -282,22 +354,26 @@ func (o *CreateAlertConfigRoutePayload) GetContinue() (res CreateAlertConfigRout // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetContinueOk() (ret CreateAlertConfigRoutePayloadgetContinueRetType, ok bool) { return getCreateAlertConfigRoutePayloadgetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetContinue(v CreateAlertConfigRoutePayloadgetContinueRetType) { setCreateAlertConfigRoutePayloadgetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetGroupBy() (res CreateAlertConfigRoutePayloadGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -305,22 +381,26 @@ func (o *CreateAlertConfigRoutePayload) GetGroupBy() (res CreateAlertConfigRoute // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetGroupByOk() (ret CreateAlertConfigRoutePayloadGetGroupByRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetGroupBy(v CreateAlertConfigRoutePayloadGetGroupByRetType) { setCreateAlertConfigRoutePayloadGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetGroupInterval() (res CreateAlertConfigRoutePayloadGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -328,22 +408,26 @@ func (o *CreateAlertConfigRoutePayload) GetGroupInterval() (res CreateAlertConfi // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetGroupIntervalOk() (ret CreateAlertConfigRoutePayloadGetGroupIntervalRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetGroupInterval(v CreateAlertConfigRoutePayloadGetGroupIntervalRetType) { setCreateAlertConfigRoutePayloadGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetGroupWait() (res CreateAlertConfigRoutePayloadGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -351,23 +435,26 @@ func (o *CreateAlertConfigRoutePayload) GetGroupWait() (res CreateAlertConfigRou // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetGroupWaitOk() (ret CreateAlertConfigRoutePayloadGetGroupWaitRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetGroupWait(v CreateAlertConfigRoutePayloadGetGroupWaitRetType) { setCreateAlertConfigRoutePayloadGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetMatch() (res CreateAlertConfigRoutePayloadGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -375,25 +462,26 @@ func (o *CreateAlertConfigRoutePayload) GetMatch() (res CreateAlertConfigRoutePa // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetMatchOk() (ret CreateAlertConfigRoutePayloadGetMatchRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetMatch(v CreateAlertConfigRoutePayloadGetMatchRetType) { setCreateAlertConfigRoutePayloadGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetMatchRe() (res CreateAlertConfigRoutePayloadGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -401,24 +489,26 @@ func (o *CreateAlertConfigRoutePayload) GetMatchRe() (res CreateAlertConfigRoute // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetMatchReOk() (ret CreateAlertConfigRoutePayloadGetMatchReRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetMatchRe(v CreateAlertConfigRoutePayloadGetMatchReRetType) { setCreateAlertConfigRoutePayloadGetMatchReAttributeType(&o.MatchRe, v) } // GetMatchers returns the Matchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetMatchers() (res CreateAlertConfigRoutePayloadGetMatchersRetType) { res, _ = o.GetMatchersOk() return @@ -426,22 +516,26 @@ func (o *CreateAlertConfigRoutePayload) GetMatchers() (res CreateAlertConfigRout // GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetMatchersOk() (ret CreateAlertConfigRoutePayloadGetMatchersRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetMatchersAttributeTypeOk(o.Matchers) } // HasMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasMatchers() bool { _, ok := o.GetMatchersOk() return ok } // SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetMatchers(v CreateAlertConfigRoutePayloadGetMatchersRetType) { setCreateAlertConfigRoutePayloadGetMatchersAttributeType(&o.Matchers, v) } // GetReceiver returns the Receiver field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetReceiver() (ret CreateAlertConfigRoutePayloadGetReceiverRetType) { ret, _ = o.GetReceiverOk() return ret @@ -449,16 +543,19 @@ func (o *CreateAlertConfigRoutePayload) GetReceiver() (ret CreateAlertConfigRout // GetReceiverOk returns a tuple with the Receiver field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetReceiverOk() (ret CreateAlertConfigRoutePayloadGetReceiverRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetReceiverAttributeTypeOk(o.Receiver) } // SetReceiver sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetReceiver(v CreateAlertConfigRoutePayloadGetReceiverRetType) { setCreateAlertConfigRoutePayloadGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetRepeatInterval() (res CreateAlertConfigRoutePayloadGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -466,22 +563,26 @@ func (o *CreateAlertConfigRoutePayload) GetRepeatInterval() (res CreateAlertConf // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetRepeatIntervalOk() (ret CreateAlertConfigRoutePayloadGetRepeatIntervalRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetRepeatInterval(v CreateAlertConfigRoutePayloadGetRepeatIntervalRetType) { setCreateAlertConfigRoutePayloadGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetRoutes() (res CreateAlertConfigRoutePayloadGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -489,21 +590,25 @@ func (o *CreateAlertConfigRoutePayload) GetRoutes() (res CreateAlertConfigRouteP // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) GetRoutesOk() (ret CreateAlertConfigRoutePayloadGetRoutesRetType, ok bool) { return getCreateAlertConfigRoutePayloadGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []CreateAlertConfigRoutePayloadRoutesInner and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayload) SetRoutes(v CreateAlertConfigRoutePayloadGetRoutesRetType) { setCreateAlertConfigRoutePayloadGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertConfigRoutePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertConfigRoutePayloadgetContinueAttributeTypeOk(o.Continue); ok { @@ -539,37 +644,45 @@ func (o CreateAlertConfigRoutePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertConfigRoutePayload struct { value *CreateAlertConfigRoutePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigRoutePayload) Get() *CreateAlertConfigRoutePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigRoutePayload) Set(val *CreateAlertConfigRoutePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigRoutePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigRoutePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertConfigRoutePayload(val *CreateAlertConfigRoutePayload) *NullableCreateAlertConfigRoutePayload { return &NullableCreateAlertConfigRoutePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigRoutePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigRoutePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_config_route_payload_routes_inner.go b/services/observability/model_create_alert_config_route_payload_routes_inner.go index 0672d4d7c..5eb31efad 100644 --- a/services/observability/model_create_alert_config_route_payload_routes_inner.go +++ b/services/observability/model_create_alert_config_route_payload_routes_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateAlertConfigRoutePayloadRoutesInner{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnergetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnergetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnergetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeTypeOk(arg C return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType, val CreateAlertConfigRoutePayloadRoutesInnergetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType(arg *Cr */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeTypeOk(arg Cr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setCreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeType(arg *Cre */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeTypeOk( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeTypeOk(arg Crea return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setCreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeType(arg *Creat */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeTypeOk(arg Cr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetMatchReRetType) { *arg = &val } @@ -144,10 +185,16 @@ func setCreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeType(arg *Cre */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -155,6 +202,7 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeTypeOk(arg C return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetMatchersRetType) { *arg = &val } @@ -164,8 +212,10 @@ func setCreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeType(arg *Cr */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -173,11 +223,15 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeTypeOk(arg C return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType = string /* @@ -185,8 +239,10 @@ type CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -194,11 +250,15 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeTypeOk return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType = string /* @@ -206,10 +266,16 @@ type CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeType = *[]map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetRoutesArgType = []map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInnerGetRoutesRetType = []map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeTypeOk(arg CreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeType) (ret CreateAlertConfigRoutePayloadRoutesInnerGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +283,13 @@ func getCreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeTypeOk(arg Cre return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeType(arg *CreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeType, val CreateAlertConfigRoutePayloadRoutesInnerGetRoutesRetType) { *arg = &val } // CreateAlertConfigRoutePayloadRoutesInner As in one level above +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertConfigRoutePayloadRoutesInner struct { // Whether an alert should continue matching subsequent sibling nodes. Continue CreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType `json:"continue,omitempty"` @@ -248,6 +316,7 @@ type CreateAlertConfigRoutePayloadRoutesInner struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigRoutePayloadRoutesInner() *CreateAlertConfigRoutePayloadRoutesInner { this := CreateAlertConfigRoutePayloadRoutesInner{} return &this @@ -256,6 +325,7 @@ func NewCreateAlertConfigRoutePayloadRoutesInner() *CreateAlertConfigRoutePayloa // NewCreateAlertConfigRoutePayloadRoutesInnerWithDefaults instantiates a new CreateAlertConfigRoutePayloadRoutesInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertConfigRoutePayloadRoutesInnerWithDefaults() *CreateAlertConfigRoutePayloadRoutesInner { this := CreateAlertConfigRoutePayloadRoutesInner{} var continue_ bool = false @@ -264,6 +334,7 @@ func NewCreateAlertConfigRoutePayloadRoutesInnerWithDefaults() *CreateAlertConfi } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetContinue() (res CreateAlertConfigRoutePayloadRoutesInnergetContinueRetType) { res, _ = o.GetContinueOk() return @@ -271,22 +342,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetContinue() (res CreateAler // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetContinueOk() (ret CreateAlertConfigRoutePayloadRoutesInnergetContinueRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetContinue(v CreateAlertConfigRoutePayloadRoutesInnergetContinueRetType) { setCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupBy() (res CreateAlertConfigRoutePayloadRoutesInnerGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -294,22 +369,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupBy() (res CreateAlert // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupByOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetGroupByRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetGroupBy(v CreateAlertConfigRoutePayloadRoutesInnerGetGroupByRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupInterval() (res CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -317,22 +396,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupInterval() (res Creat // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupIntervalOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetGroupInterval(v CreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupWait() (res CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -340,23 +423,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupWait() (res CreateAle // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupWaitOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetGroupWait(v CreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatch() (res CreateAlertConfigRoutePayloadRoutesInnerGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -364,25 +450,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatch() (res CreateAlertCo // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetMatchRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetMatch(v CreateAlertConfigRoutePayloadRoutesInnerGetMatchRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchRe() (res CreateAlertConfigRoutePayloadRoutesInnerGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -390,24 +477,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchRe() (res CreateAlert // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchReOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetMatchReRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetMatchRe(v CreateAlertConfigRoutePayloadRoutesInnerGetMatchReRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetMatchReAttributeType(&o.MatchRe, v) } // GetMatchers returns the Matchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchers() (res CreateAlertConfigRoutePayloadRoutesInnerGetMatchersRetType) { res, _ = o.GetMatchersOk() return @@ -415,22 +504,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchers() (res CreateAler // GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchersOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetMatchersRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeTypeOk(o.Matchers) } // HasMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatchers() bool { _, ok := o.GetMatchersOk() return ok } // SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetMatchers(v CreateAlertConfigRoutePayloadRoutesInnerGetMatchersRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetMatchersAttributeType(&o.Matchers, v) } // GetReceiver returns the Receiver field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetReceiver() (res CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType) { res, _ = o.GetReceiverOk() return @@ -438,22 +531,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetReceiver() (res CreateAler // GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetReceiverOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeTypeOk(o.Receiver) } // HasReceiver returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasReceiver() bool { _, ok := o.GetReceiverOk() return ok } // SetReceiver gets a reference to the given string and assigns it to the Receiver field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetReceiver(v CreateAlertConfigRoutePayloadRoutesInnerGetReceiverRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRepeatInterval() (res CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -461,22 +558,26 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRepeatInterval() (res Crea // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRepeatIntervalOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetRepeatInterval(v CreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRoutes() (res CreateAlertConfigRoutePayloadRoutesInnerGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -484,21 +585,25 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRoutes() (res CreateAlertC // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRoutesOk() (ret CreateAlertConfigRoutePayloadRoutesInnerGetRoutesRetType, ok bool) { return getCreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []map[string]interface{} and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertConfigRoutePayloadRoutesInner) SetRoutes(v CreateAlertConfigRoutePayloadRoutesInnerGetRoutesRetType) { setCreateAlertConfigRoutePayloadRoutesInnerGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertConfigRoutePayloadRoutesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertConfigRoutePayloadRoutesInnergetContinueAttributeTypeOk(o.Continue); ok { @@ -534,37 +639,45 @@ func (o CreateAlertConfigRoutePayloadRoutesInner) ToMap() (map[string]interface{ return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertConfigRoutePayloadRoutesInner struct { value *CreateAlertConfigRoutePayloadRoutesInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigRoutePayloadRoutesInner) Get() *CreateAlertConfigRoutePayloadRoutesInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigRoutePayloadRoutesInner) Set(val *CreateAlertConfigRoutePayloadRoutesInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigRoutePayloadRoutesInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigRoutePayloadRoutesInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertConfigRoutePayloadRoutesInner(val *CreateAlertConfigRoutePayloadRoutesInner) *NullableCreateAlertConfigRoutePayloadRoutesInner { return &NullableCreateAlertConfigRoutePayloadRoutesInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertConfigRoutePayloadRoutesInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertConfigRoutePayloadRoutesInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alert_record_payload.go b/services/observability/model_create_alert_record_payload.go index 8eff213ea..d7ef4aefd 100644 --- a/services/observability/model_create_alert_record_payload.go +++ b/services/observability/model_create_alert_record_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateAlertRecordPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertRecordPayloadGetExprAttributeTypeOk(arg CreateAlertRecordPayloadGetExprAttributeType) (ret CreateAlertRecordPayloadGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateAlertRecordPayloadGetExprAttributeTypeOk(arg CreateAlertRecordPayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertRecordPayloadGetExprAttributeType(arg *CreateAlertRecordPayloadGetExprAttributeType, val CreateAlertRecordPayloadGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetExprRetType = string /* @@ -43,10 +50,16 @@ type CreateAlertRecordPayloadGetExprRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertRecordPayloadGetLabelsAttributeTypeOk(arg CreateAlertRecordPayloadGetLabelsAttributeType) (ret CreateAlertRecordPayloadGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getCreateAlertRecordPayloadGetLabelsAttributeTypeOk(arg CreateAlertRecordPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertRecordPayloadGetLabelsAttributeType(arg *CreateAlertRecordPayloadGetLabelsAttributeType, val CreateAlertRecordPayloadGetLabelsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setCreateAlertRecordPayloadGetLabelsAttributeType(arg *CreateAlertRecordPay */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetRecordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertRecordPayloadGetRecordAttributeTypeOk(arg CreateAlertRecordPayloadGetRecordAttributeType) (ret CreateAlertRecordPayloadGetRecordRetType, ok bool) { if arg == nil { return ret, false @@ -72,14 +88,19 @@ func getCreateAlertRecordPayloadGetRecordAttributeTypeOk(arg CreateAlertRecordPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertRecordPayloadGetRecordAttributeType(arg *CreateAlertRecordPayloadGetRecordAttributeType, val CreateAlertRecordPayloadGetRecordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetRecordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayloadGetRecordRetType = string // CreateAlertRecordPayload Record. `Additional Validators:` * total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertRecordPayload struct { // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. // REQUIRED @@ -91,12 +112,14 @@ type CreateAlertRecordPayload struct { Record CreateAlertRecordPayloadGetRecordAttributeType `json:"record" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateAlertRecordPayload CreateAlertRecordPayload // NewCreateAlertRecordPayload instantiates a new CreateAlertRecordPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertRecordPayload(expr CreateAlertRecordPayloadGetExprArgType, record CreateAlertRecordPayloadGetRecordArgType) *CreateAlertRecordPayload { this := CreateAlertRecordPayload{} setCreateAlertRecordPayloadGetExprAttributeType(&this.Expr, expr) @@ -107,12 +130,14 @@ func NewCreateAlertRecordPayload(expr CreateAlertRecordPayloadGetExprArgType, re // NewCreateAlertRecordPayloadWithDefaults instantiates a new CreateAlertRecordPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertRecordPayloadWithDefaults() *CreateAlertRecordPayload { this := CreateAlertRecordPayload{} return &this } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) GetExpr() (ret CreateAlertRecordPayloadGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -120,16 +145,19 @@ func (o *CreateAlertRecordPayload) GetExpr() (ret CreateAlertRecordPayloadGetExp // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) GetExprOk() (ret CreateAlertRecordPayloadGetExprRetType, ok bool) { return getCreateAlertRecordPayloadGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) SetExpr(v CreateAlertRecordPayloadGetExprRetType) { setCreateAlertRecordPayloadGetExprAttributeType(&o.Expr, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) GetLabels() (res CreateAlertRecordPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -137,22 +165,26 @@ func (o *CreateAlertRecordPayload) GetLabels() (res CreateAlertRecordPayloadGetL // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) GetLabelsOk() (ret CreateAlertRecordPayloadGetLabelsRetType, ok bool) { return getCreateAlertRecordPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) SetLabels(v CreateAlertRecordPayloadGetLabelsRetType) { setCreateAlertRecordPayloadGetLabelsAttributeType(&o.Labels, v) } // GetRecord returns the Record field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) GetRecord() (ret CreateAlertRecordPayloadGetRecordRetType) { ret, _ = o.GetRecordOk() return ret @@ -160,15 +192,18 @@ func (o *CreateAlertRecordPayload) GetRecord() (ret CreateAlertRecordPayloadGetR // GetRecordOk returns a tuple with the Record field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) GetRecordOk() (ret CreateAlertRecordPayloadGetRecordRetType, ok bool) { return getCreateAlertRecordPayloadGetRecordAttributeTypeOk(o.Record) } // SetRecord sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertRecordPayload) SetRecord(v CreateAlertRecordPayloadGetRecordRetType) { setCreateAlertRecordPayloadGetRecordAttributeType(&o.Record, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertRecordPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertRecordPayloadGetExprAttributeTypeOk(o.Expr); ok { @@ -183,37 +218,45 @@ func (o CreateAlertRecordPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertRecordPayload struct { value *CreateAlertRecordPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertRecordPayload) Get() *CreateAlertRecordPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertRecordPayload) Set(val *CreateAlertRecordPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertRecordPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertRecordPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertRecordPayload(val *CreateAlertRecordPayload) *NullableCreateAlertRecordPayload { return &NullableCreateAlertRecordPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertRecordPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertRecordPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alertgroups_payload.go b/services/observability/model_create_alertgroups_payload.go index e4c66033a..094d4e0cd 100644 --- a/services/observability/model_create_alertgroups_payload.go +++ b/services/observability/model_create_alertgroups_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateAlertgroupsPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertgroupsPayloadGetIntervalAttributeTypeOk(arg CreateAlertgroupsPayloadGetIntervalAttributeType) (ret CreateAlertgroupsPayloadGetIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateAlertgroupsPayloadGetIntervalAttributeTypeOk(arg CreateAlertgroups return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertgroupsPayloadGetIntervalAttributeType(arg *CreateAlertgroupsPayloadGetIntervalAttributeType, val CreateAlertgroupsPayloadGetIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetIntervalRetType = string /* @@ -43,8 +50,10 @@ type CreateAlertgroupsPayloadGetIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertgroupsPayloadGetNameAttributeTypeOk(arg CreateAlertgroupsPayloadGetNameAttributeType) (ret CreateAlertgroupsPayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateAlertgroupsPayloadGetNameAttributeTypeOk(arg CreateAlertgroupsPayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertgroupsPayloadGetNameAttributeType(arg *CreateAlertgroupsPayloadGetNameAttributeType, val CreateAlertgroupsPayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetNameRetType = string /* @@ -64,10 +77,16 @@ type CreateAlertgroupsPayloadGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetRulesAttributeType = *[]UpdateAlertgroupsRequestInnerRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetRulesArgType = []UpdateAlertgroupsRequestInnerRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayloadGetRulesRetType = []UpdateAlertgroupsRequestInnerRulesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertgroupsPayloadGetRulesAttributeTypeOk(arg CreateAlertgroupsPayloadGetRulesAttributeType) (ret CreateAlertgroupsPayloadGetRulesRetType, ok bool) { if arg == nil { return ret, false @@ -75,11 +94,13 @@ func getCreateAlertgroupsPayloadGetRulesAttributeTypeOk(arg CreateAlertgroupsPay return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertgroupsPayloadGetRulesAttributeType(arg *CreateAlertgroupsPayloadGetRulesAttributeType, val CreateAlertgroupsPayloadGetRulesRetType) { *arg = &val } // CreateAlertgroupsPayload 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertgroupsPayload struct { // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s Interval CreateAlertgroupsPayloadGetIntervalAttributeType `json:"interval,omitempty"` @@ -91,12 +112,14 @@ type CreateAlertgroupsPayload struct { Rules CreateAlertgroupsPayloadGetRulesAttributeType `json:"rules" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateAlertgroupsPayload CreateAlertgroupsPayload // NewCreateAlertgroupsPayload instantiates a new CreateAlertgroupsPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertgroupsPayload(name CreateAlertgroupsPayloadGetNameArgType, rules CreateAlertgroupsPayloadGetRulesArgType) *CreateAlertgroupsPayload { this := CreateAlertgroupsPayload{} setCreateAlertgroupsPayloadGetNameAttributeType(&this.Name, name) @@ -107,6 +130,7 @@ func NewCreateAlertgroupsPayload(name CreateAlertgroupsPayloadGetNameArgType, ru // NewCreateAlertgroupsPayloadWithDefaults instantiates a new CreateAlertgroupsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertgroupsPayloadWithDefaults() *CreateAlertgroupsPayload { this := CreateAlertgroupsPayload{} var interval string = "60s" @@ -115,6 +139,7 @@ func NewCreateAlertgroupsPayloadWithDefaults() *CreateAlertgroupsPayload { } // GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) GetInterval() (res CreateAlertgroupsPayloadGetIntervalRetType) { res, _ = o.GetIntervalOk() return @@ -122,22 +147,26 @@ func (o *CreateAlertgroupsPayload) GetInterval() (res CreateAlertgroupsPayloadGe // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) GetIntervalOk() (ret CreateAlertgroupsPayloadGetIntervalRetType, ok bool) { return getCreateAlertgroupsPayloadGetIntervalAttributeTypeOk(o.Interval) } // HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) HasInterval() bool { _, ok := o.GetIntervalOk() return ok } // SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) SetInterval(v CreateAlertgroupsPayloadGetIntervalRetType) { setCreateAlertgroupsPayloadGetIntervalAttributeType(&o.Interval, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) GetName() (ret CreateAlertgroupsPayloadGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -145,16 +174,19 @@ func (o *CreateAlertgroupsPayload) GetName() (ret CreateAlertgroupsPayloadGetNam // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) GetNameOk() (ret CreateAlertgroupsPayloadGetNameRetType, ok bool) { return getCreateAlertgroupsPayloadGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) SetName(v CreateAlertgroupsPayloadGetNameRetType) { setCreateAlertgroupsPayloadGetNameAttributeType(&o.Name, v) } // GetRules returns the Rules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) GetRules() (ret CreateAlertgroupsPayloadGetRulesRetType) { ret, _ = o.GetRulesOk() return ret @@ -162,15 +194,18 @@ func (o *CreateAlertgroupsPayload) GetRules() (ret CreateAlertgroupsPayloadGetRu // GetRulesOk returns a tuple with the Rules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) GetRulesOk() (ret CreateAlertgroupsPayloadGetRulesRetType, ok bool) { return getCreateAlertgroupsPayloadGetRulesAttributeTypeOk(o.Rules) } // SetRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertgroupsPayload) SetRules(v CreateAlertgroupsPayloadGetRulesRetType) { setCreateAlertgroupsPayloadGetRulesAttributeType(&o.Rules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertgroupsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertgroupsPayloadGetIntervalAttributeTypeOk(o.Interval); ok { @@ -185,37 +220,45 @@ func (o CreateAlertgroupsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertgroupsPayload struct { value *CreateAlertgroupsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertgroupsPayload) Get() *CreateAlertgroupsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertgroupsPayload) Set(val *CreateAlertgroupsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertgroupsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertgroupsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertgroupsPayload(val *CreateAlertgroupsPayload) *NullableCreateAlertgroupsPayload { return &NullableCreateAlertgroupsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertgroupsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertgroupsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_alertrules_payload.go b/services/observability/model_create_alertrules_payload.go index c374b394a..0528978eb 100644 --- a/services/observability/model_create_alertrules_payload.go +++ b/services/observability/model_create_alertrules_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateAlertrulesPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetAlertAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertrulesPayloadGetAlertAttributeTypeOk(arg CreateAlertrulesPayloadGetAlertAttributeType) (ret CreateAlertrulesPayloadGetAlertRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateAlertrulesPayloadGetAlertAttributeTypeOk(arg CreateAlertrulesPaylo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertrulesPayloadGetAlertAttributeType(arg *CreateAlertrulesPayloadGetAlertAttributeType, val CreateAlertrulesPayloadGetAlertRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetAlertArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetAlertRetType = string /* @@ -43,10 +50,16 @@ type CreateAlertrulesPayloadGetAlertRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetAnnotationsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetAnnotationsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetAnnotationsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertrulesPayloadGetAnnotationsAttributeTypeOk(arg CreateAlertrulesPayloadGetAnnotationsAttributeType) (ret CreateAlertrulesPayloadGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getCreateAlertrulesPayloadGetAnnotationsAttributeTypeOk(arg CreateAlertrule return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertrulesPayloadGetAnnotationsAttributeType(arg *CreateAlertrulesPayloadGetAnnotationsAttributeType, val CreateAlertrulesPayloadGetAnnotationsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setCreateAlertrulesPayloadGetAnnotationsAttributeType(arg *CreateAlertrules */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertrulesPayloadGetExprAttributeTypeOk(arg CreateAlertrulesPayloadGetExprAttributeType) (ret CreateAlertrulesPayloadGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getCreateAlertrulesPayloadGetExprAttributeTypeOk(arg CreateAlertrulesPayloa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertrulesPayloadGetExprAttributeType(arg *CreateAlertrulesPayloadGetExprAttributeType, val CreateAlertrulesPayloadGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetExprRetType = string /* @@ -84,8 +104,10 @@ type CreateAlertrulesPayloadGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertrulesPayloadGetForAttributeTypeOk(arg CreateAlertrulesPayloadGetForAttributeType) (ret CreateAlertrulesPayloadGetForRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getCreateAlertrulesPayloadGetForAttributeTypeOk(arg CreateAlertrulesPayload return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertrulesPayloadGetForAttributeType(arg *CreateAlertrulesPayloadGetForAttributeType, val CreateAlertrulesPayloadGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetForRetType = string /* @@ -105,10 +131,16 @@ type CreateAlertrulesPayloadGetForRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayloadGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateAlertrulesPayloadGetLabelsAttributeTypeOk(arg CreateAlertrulesPayloadGetLabelsAttributeType) (ret CreateAlertrulesPayloadGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -116,11 +148,13 @@ func getCreateAlertrulesPayloadGetLabelsAttributeTypeOk(arg CreateAlertrulesPayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateAlertrulesPayloadGetLabelsAttributeType(arg *CreateAlertrulesPayloadGetLabelsAttributeType, val CreateAlertrulesPayloadGetLabelsRetType) { *arg = &val } // CreateAlertrulesPayload 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateAlertrulesPayload struct { // 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- // REQUIRED @@ -136,12 +170,14 @@ type CreateAlertrulesPayload struct { Labels CreateAlertrulesPayloadGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateAlertrulesPayload CreateAlertrulesPayload // NewCreateAlertrulesPayload instantiates a new CreateAlertrulesPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertrulesPayload(alert CreateAlertrulesPayloadGetAlertArgType, expr CreateAlertrulesPayloadGetExprArgType) *CreateAlertrulesPayload { this := CreateAlertrulesPayload{} setCreateAlertrulesPayloadGetAlertAttributeType(&this.Alert, alert) @@ -152,6 +188,7 @@ func NewCreateAlertrulesPayload(alert CreateAlertrulesPayloadGetAlertArgType, ex // NewCreateAlertrulesPayloadWithDefaults instantiates a new CreateAlertrulesPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateAlertrulesPayloadWithDefaults() *CreateAlertrulesPayload { this := CreateAlertrulesPayload{} var for_ string = "0s" @@ -160,6 +197,7 @@ func NewCreateAlertrulesPayloadWithDefaults() *CreateAlertrulesPayload { } // GetAlert returns the Alert field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetAlert() (ret CreateAlertrulesPayloadGetAlertRetType) { ret, _ = o.GetAlertOk() return ret @@ -167,16 +205,19 @@ func (o *CreateAlertrulesPayload) GetAlert() (ret CreateAlertrulesPayloadGetAler // GetAlertOk returns a tuple with the Alert field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetAlertOk() (ret CreateAlertrulesPayloadGetAlertRetType, ok bool) { return getCreateAlertrulesPayloadGetAlertAttributeTypeOk(o.Alert) } // SetAlert sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) SetAlert(v CreateAlertrulesPayloadGetAlertRetType) { setCreateAlertrulesPayloadGetAlertAttributeType(&o.Alert, v) } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetAnnotations() (res CreateAlertrulesPayloadGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -184,22 +225,26 @@ func (o *CreateAlertrulesPayload) GetAnnotations() (res CreateAlertrulesPayloadG // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetAnnotationsOk() (ret CreateAlertrulesPayloadGetAnnotationsRetType, ok bool) { return getCreateAlertrulesPayloadGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) SetAnnotations(v CreateAlertrulesPayloadGetAnnotationsRetType) { setCreateAlertrulesPayloadGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetExpr() (ret CreateAlertrulesPayloadGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -207,16 +252,19 @@ func (o *CreateAlertrulesPayload) GetExpr() (ret CreateAlertrulesPayloadGetExprR // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetExprOk() (ret CreateAlertrulesPayloadGetExprRetType, ok bool) { return getCreateAlertrulesPayloadGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) SetExpr(v CreateAlertrulesPayloadGetExprRetType) { setCreateAlertrulesPayloadGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetFor() (res CreateAlertrulesPayloadGetForRetType) { res, _ = o.GetForOk() return @@ -224,22 +272,26 @@ func (o *CreateAlertrulesPayload) GetFor() (res CreateAlertrulesPayloadGetForRet // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetForOk() (ret CreateAlertrulesPayloadGetForRetType, ok bool) { return getCreateAlertrulesPayloadGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) SetFor(v CreateAlertrulesPayloadGetForRetType) { setCreateAlertrulesPayloadGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetLabels() (res CreateAlertrulesPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -247,21 +299,25 @@ func (o *CreateAlertrulesPayload) GetLabels() (res CreateAlertrulesPayloadGetLab // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) GetLabelsOk() (ret CreateAlertrulesPayloadGetLabelsRetType, ok bool) { return getCreateAlertrulesPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateAlertrulesPayload) SetLabels(v CreateAlertrulesPayloadGetLabelsRetType) { setCreateAlertrulesPayloadGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateAlertrulesPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateAlertrulesPayloadGetAlertAttributeTypeOk(o.Alert); ok { @@ -282,37 +338,45 @@ func (o CreateAlertrulesPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateAlertrulesPayload struct { value *CreateAlertrulesPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertrulesPayload) Get() *CreateAlertrulesPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertrulesPayload) Set(val *CreateAlertrulesPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertrulesPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertrulesPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateAlertrulesPayload(val *CreateAlertrulesPayload) *NullableCreateAlertrulesPayload { return &NullableCreateAlertrulesPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateAlertrulesPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateAlertrulesPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_backup_schedule_payload.go b/services/observability/model_create_backup_schedule_payload.go index f89d7aa66..7df633267 100644 --- a/services/observability/model_create_backup_schedule_payload.go +++ b/services/observability/model_create_backup_schedule_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateBackupSchedulePayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupSchedulePayloadGetScheduleAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateBackupSchedulePayloadGetScheduleAttributeTypeOk(arg CreateBackupSchedulePayloadGetScheduleAttributeType) (ret CreateBackupSchedulePayloadGetScheduleRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreateBackupSchedulePayloadGetScheduleAttributeTypeOk(arg CreateBackupSc return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateBackupSchedulePayloadGetScheduleAttributeType(arg *CreateBackupSchedulePayloadGetScheduleAttributeType, val CreateBackupSchedulePayloadGetScheduleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupSchedulePayloadGetScheduleArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupSchedulePayloadGetScheduleRetType = string // CreateBackupSchedulePayload struct for CreateBackupSchedulePayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupSchedulePayload struct { // The schedule for how often to create a backup. `Additional Validators:` * must be a valid cronjob format * must run less than hourly // REQUIRED Schedule CreateBackupSchedulePayloadGetScheduleAttributeType `json:"schedule" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateBackupSchedulePayload CreateBackupSchedulePayload // NewCreateBackupSchedulePayload instantiates a new CreateBackupSchedulePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateBackupSchedulePayload(schedule CreateBackupSchedulePayloadGetScheduleArgType) *CreateBackupSchedulePayload { this := CreateBackupSchedulePayload{} setCreateBackupSchedulePayloadGetScheduleAttributeType(&this.Schedule, schedule) @@ -60,12 +70,14 @@ func NewCreateBackupSchedulePayload(schedule CreateBackupSchedulePayloadGetSched // NewCreateBackupSchedulePayloadWithDefaults instantiates a new CreateBackupSchedulePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateBackupSchedulePayloadWithDefaults() *CreateBackupSchedulePayload { this := CreateBackupSchedulePayload{} return &this } // GetSchedule returns the Schedule field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupSchedulePayload) GetSchedule() (ret CreateBackupSchedulePayloadGetScheduleRetType) { ret, _ = o.GetScheduleOk() return ret @@ -73,15 +85,18 @@ func (o *CreateBackupSchedulePayload) GetSchedule() (ret CreateBackupSchedulePay // GetScheduleOk returns a tuple with the Schedule field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupSchedulePayload) GetScheduleOk() (ret CreateBackupSchedulePayloadGetScheduleRetType, ok bool) { return getCreateBackupSchedulePayloadGetScheduleAttributeTypeOk(o.Schedule) } // SetSchedule sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupSchedulePayload) SetSchedule(v CreateBackupSchedulePayloadGetScheduleRetType) { setCreateBackupSchedulePayloadGetScheduleAttributeType(&o.Schedule, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateBackupSchedulePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateBackupSchedulePayloadGetScheduleAttributeTypeOk(o.Schedule); ok { @@ -90,37 +105,45 @@ func (o CreateBackupSchedulePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateBackupSchedulePayload struct { value *CreateBackupSchedulePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateBackupSchedulePayload) Get() *CreateBackupSchedulePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateBackupSchedulePayload) Set(val *CreateBackupSchedulePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateBackupSchedulePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateBackupSchedulePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateBackupSchedulePayload(val *CreateBackupSchedulePayload) *NullableCreateBackupSchedulePayload { return &NullableCreateBackupSchedulePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateBackupSchedulePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateBackupSchedulePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_cert_check_400_response.go b/services/observability/model_create_cert_check_400_response.go index 6f4d36b6d..34217ca94 100644 --- a/services/observability/model_create_cert_check_400_response.go +++ b/services/observability/model_create_cert_check_400_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -16,12 +17,14 @@ import ( ) // CreateCertCheck400Response - struct for CreateCertCheck400Response +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCertCheck400Response struct { ArrayOfString *[]string MapmapOfStringarrayOfString *map[string][]string } // []stringAsCreateCertCheck400Response is a convenience function that returns []string wrapped in CreateCertCheck400Response +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func ArrayOfStringAsCreateCertCheck400Response(v *[]string) CreateCertCheck400Response { return CreateCertCheck400Response{ ArrayOfString: v, @@ -29,6 +32,7 @@ func ArrayOfStringAsCreateCertCheck400Response(v *[]string) CreateCertCheck400Re } // map[string][]stringAsCreateCertCheck400Response is a convenience function that returns map[string][]string wrapped in CreateCertCheck400Response +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func MapmapOfStringarrayOfStringAsCreateCertCheck400Response(v *map[string][]string) CreateCertCheck400Response { return CreateCertCheck400Response{ MapmapOfStringarrayOfString: v, @@ -36,6 +40,7 @@ func MapmapOfStringarrayOfStringAsCreateCertCheck400Response(v *map[string][]str } // Unmarshal JSON data into one of the pointers in the struct +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (dst *CreateCertCheck400Response) UnmarshalJSON(data []byte) error { var err error match := 0 @@ -79,6 +84,7 @@ func (dst *CreateCertCheck400Response) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src CreateCertCheck400Response) MarshalJSON() ([]byte, error) { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead if src.ArrayOfString != nil { return json.Marshal(&src.ArrayOfString) } @@ -91,6 +97,7 @@ func (src CreateCertCheck400Response) MarshalJSON() ([]byte, error) { } // Get the actual instance +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (obj *CreateCertCheck400Response) GetActualInstance() interface{} { if obj == nil { return nil @@ -107,37 +114,45 @@ func (obj *CreateCertCheck400Response) GetActualInstance() interface{} { return nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateCertCheck400Response struct { value *CreateCertCheck400Response isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCertCheck400Response) Get() *CreateCertCheck400Response { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCertCheck400Response) Set(val *CreateCertCheck400Response) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCertCheck400Response) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCertCheck400Response) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateCertCheck400Response(val *CreateCertCheck400Response) *NullableCreateCertCheck400Response { return &NullableCreateCertCheck400Response{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCertCheck400Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCertCheck400Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_cert_check_payload.go b/services/observability/model_create_cert_check_payload.go index 274c5f4aa..da75e7f92 100644 --- a/services/observability/model_create_cert_check_payload.go +++ b/services/observability/model_create_cert_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateCertCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCertCheckPayloadGetSourceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateCertCheckPayloadGetSourceAttributeTypeOk(arg CreateCertCheckPayloadGetSourceAttributeType) (ret CreateCertCheckPayloadGetSourceRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreateCertCheckPayloadGetSourceAttributeTypeOk(arg CreateCertCheckPayloa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateCertCheckPayloadGetSourceAttributeType(arg *CreateCertCheckPayloadGetSourceAttributeType, val CreateCertCheckPayloadGetSourceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCertCheckPayloadGetSourceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCertCheckPayloadGetSourceRetType = string // CreateCertCheckPayload Cert check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCertCheckPayload struct { // cert to check // REQUIRED Source CreateCertCheckPayloadGetSourceAttributeType `json:"source" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateCertCheckPayload CreateCertCheckPayload // NewCreateCertCheckPayload instantiates a new CreateCertCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateCertCheckPayload(source CreateCertCheckPayloadGetSourceArgType) *CreateCertCheckPayload { this := CreateCertCheckPayload{} setCreateCertCheckPayloadGetSourceAttributeType(&this.Source, source) @@ -60,12 +70,14 @@ func NewCreateCertCheckPayload(source CreateCertCheckPayloadGetSourceArgType) *C // NewCreateCertCheckPayloadWithDefaults instantiates a new CreateCertCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateCertCheckPayloadWithDefaults() *CreateCertCheckPayload { this := CreateCertCheckPayload{} return &this } // GetSource returns the Source field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCertCheckPayload) GetSource() (ret CreateCertCheckPayloadGetSourceRetType) { ret, _ = o.GetSourceOk() return ret @@ -73,15 +85,18 @@ func (o *CreateCertCheckPayload) GetSource() (ret CreateCertCheckPayloadGetSourc // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCertCheckPayload) GetSourceOk() (ret CreateCertCheckPayloadGetSourceRetType, ok bool) { return getCreateCertCheckPayloadGetSourceAttributeTypeOk(o.Source) } // SetSource sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCertCheckPayload) SetSource(v CreateCertCheckPayloadGetSourceRetType) { setCreateCertCheckPayloadGetSourceAttributeType(&o.Source, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateCertCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateCertCheckPayloadGetSourceAttributeTypeOk(o.Source); ok { @@ -90,37 +105,45 @@ func (o CreateCertCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateCertCheckPayload struct { value *CreateCertCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCertCheckPayload) Get() *CreateCertCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCertCheckPayload) Set(val *CreateCertCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCertCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCertCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateCertCheckPayload(val *CreateCertCheckPayload) *NullableCreateCertCheckPayload { return &NullableCreateCertCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCertCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCertCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_credentials_payload.go b/services/observability/model_create_credentials_payload.go index ced2d78bf..40562a8b2 100644 --- a/services/observability/model_create_credentials_payload.go +++ b/services/observability/model_create_credentials_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateCredentialsPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(arg CreateCredentialsPayloadGetDescriptionAttributeType) (ret CreateCredentialsPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,14 +34,19 @@ func getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(arg CreateCredenti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateCredentialsPayloadGetDescriptionAttributeType(arg *CreateCredentialsPayloadGetDescriptionAttributeType, val CreateCredentialsPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsPayloadGetDescriptionRetType = string // CreateCredentialsPayload Create new credentials with (optional) description +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsPayload struct { // description Description CreateCredentialsPayloadGetDescriptionAttributeType `json:"description,omitempty"` @@ -48,6 +56,7 @@ type CreateCredentialsPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateCredentialsPayload() *CreateCredentialsPayload { this := CreateCredentialsPayload{} return &this @@ -56,12 +65,14 @@ func NewCreateCredentialsPayload() *CreateCredentialsPayload { // NewCreateCredentialsPayloadWithDefaults instantiates a new CreateCredentialsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateCredentialsPayloadWithDefaults() *CreateCredentialsPayload { this := CreateCredentialsPayload{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsPayload) GetDescription() (res CreateCredentialsPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -69,21 +80,25 @@ func (o *CreateCredentialsPayload) GetDescription() (res CreateCredentialsPayloa // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsPayload) GetDescriptionOk() (ret CreateCredentialsPayloadGetDescriptionRetType, ok bool) { return getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsPayload) SetDescription(v CreateCredentialsPayloadGetDescriptionRetType) { setCreateCredentialsPayloadGetDescriptionAttributeType(&o.Description, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateCredentialsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -92,37 +107,45 @@ func (o CreateCredentialsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateCredentialsPayload struct { value *CreateCredentialsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCredentialsPayload) Get() *CreateCredentialsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCredentialsPayload) Set(val *CreateCredentialsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCredentialsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCredentialsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateCredentialsPayload(val *CreateCredentialsPayload) *NullableCreateCredentialsPayload { return &NullableCreateCredentialsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCredentialsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCredentialsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_credentials_response.go b/services/observability/model_create_credentials_response.go index 8f1cec3a1..d17a195be 100644 --- a/services/observability/model_create_credentials_response.go +++ b/services/observability/model_create_credentials_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateCredentialsResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponseGetCredentialsAttributeType = *Credentials + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponseGetCredentialsArgType = Credentials + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponseGetCredentialsRetType = Credentials +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateCredentialsResponseGetCredentialsAttributeTypeOk(arg CreateCredentialsResponseGetCredentialsAttributeType) (ret CreateCredentialsResponseGetCredentialsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateCredentialsResponseGetCredentialsAttributeTypeOk(arg CreateCredent return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateCredentialsResponseGetCredentialsAttributeType(arg *CreateCredentialsResponseGetCredentialsAttributeType, val CreateCredentialsResponseGetCredentialsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setCreateCredentialsResponseGetCredentialsAttributeType(arg *CreateCredenti */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateCredentialsResponseGetMessageAttributeTypeOk(arg CreateCredentialsResponseGetMessageAttributeType) (ret CreateCredentialsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getCreateCredentialsResponseGetMessageAttributeTypeOk(arg CreateCredentials return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateCredentialsResponseGetMessageAttributeType(arg *CreateCredentialsResponseGetMessageAttributeType, val CreateCredentialsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponseGetMessageRetType = string // CreateCredentialsResponse struct for CreateCredentialsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsResponse struct { // REQUIRED Credentials CreateCredentialsResponseGetCredentialsAttributeType `json:"credentials" required:"true"` @@ -66,12 +81,14 @@ type CreateCredentialsResponse struct { Message CreateCredentialsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateCredentialsResponse CreateCredentialsResponse // NewCreateCredentialsResponse instantiates a new CreateCredentialsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateCredentialsResponse(credentials CreateCredentialsResponseGetCredentialsArgType, message CreateCredentialsResponseGetMessageArgType) *CreateCredentialsResponse { this := CreateCredentialsResponse{} setCreateCredentialsResponseGetCredentialsAttributeType(&this.Credentials, credentials) @@ -82,12 +99,14 @@ func NewCreateCredentialsResponse(credentials CreateCredentialsResponseGetCreden // NewCreateCredentialsResponseWithDefaults instantiates a new CreateCredentialsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateCredentialsResponseWithDefaults() *CreateCredentialsResponse { this := CreateCredentialsResponse{} return &this } // GetCredentials returns the Credentials field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsResponse) GetCredentials() (ret CreateCredentialsResponseGetCredentialsRetType) { ret, _ = o.GetCredentialsOk() return ret @@ -95,16 +114,19 @@ func (o *CreateCredentialsResponse) GetCredentials() (ret CreateCredentialsRespo // GetCredentialsOk returns a tuple with the Credentials field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsResponse) GetCredentialsOk() (ret CreateCredentialsResponseGetCredentialsRetType, ok bool) { return getCreateCredentialsResponseGetCredentialsAttributeTypeOk(o.Credentials) } // SetCredentials sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsResponse) SetCredentials(v CreateCredentialsResponseGetCredentialsRetType) { setCreateCredentialsResponseGetCredentialsAttributeType(&o.Credentials, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsResponse) GetMessage() (ret CreateCredentialsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *CreateCredentialsResponse) GetMessage() (ret CreateCredentialsResponseG // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsResponse) GetMessageOk() (ret CreateCredentialsResponseGetMessageRetType, ok bool) { return getCreateCredentialsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateCredentialsResponse) SetMessage(v CreateCredentialsResponseGetMessageRetType) { setCreateCredentialsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateCredentialsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateCredentialsResponseGetCredentialsAttributeTypeOk(o.Credentials); ok { @@ -132,37 +157,45 @@ func (o CreateCredentialsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateCredentialsResponse struct { value *CreateCredentialsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCredentialsResponse) Get() *CreateCredentialsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCredentialsResponse) Set(val *CreateCredentialsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCredentialsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCredentialsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateCredentialsResponse(val *CreateCredentialsResponse) *NullableCreateCredentialsResponse { return &NullableCreateCredentialsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateCredentialsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateCredentialsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_elasticsearch_check_payload.go b/services/observability/model_create_elasticsearch_check_payload.go index b3f89b3d6..18fc03755 100644 --- a/services/observability/model_create_elasticsearch_check_payload.go +++ b/services/observability/model_create_elasticsearch_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateElasticsearchCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateElasticsearchCheckPayloadGetPasswordAttributeTypeOk(arg CreateElasticsearchCheckPayloadGetPasswordAttributeType) (ret CreateElasticsearchCheckPayloadGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateElasticsearchCheckPayloadGetPasswordAttributeTypeOk(arg CreateElas return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateElasticsearchCheckPayloadGetPasswordAttributeType(arg *CreateElasticsearchCheckPayloadGetPasswordAttributeType, val CreateElasticsearchCheckPayloadGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetPasswordRetType = string /* @@ -43,8 +50,10 @@ type CreateElasticsearchCheckPayloadGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateElasticsearchCheckPayloadGetServerAttributeTypeOk(arg CreateElasticsearchCheckPayloadGetServerAttributeType) (ret CreateElasticsearchCheckPayloadGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateElasticsearchCheckPayloadGetServerAttributeTypeOk(arg CreateElasti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateElasticsearchCheckPayloadGetServerAttributeType(arg *CreateElasticsearchCheckPayloadGetServerAttributeType, val CreateElasticsearchCheckPayloadGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetServerRetType = string /* @@ -64,8 +77,10 @@ type CreateElasticsearchCheckPayloadGetServerRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateElasticsearchCheckPayloadGetUsernameAttributeTypeOk(arg CreateElasticsearchCheckPayloadGetUsernameAttributeType) (ret CreateElasticsearchCheckPayloadGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getCreateElasticsearchCheckPayloadGetUsernameAttributeTypeOk(arg CreateElas return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateElasticsearchCheckPayloadGetUsernameAttributeType(arg *CreateElasticsearchCheckPayloadGetUsernameAttributeType, val CreateElasticsearchCheckPayloadGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayloadGetUsernameRetType = string // CreateElasticsearchCheckPayload Elasticsearch check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateElasticsearchCheckPayload struct { // password Password CreateElasticsearchCheckPayloadGetPasswordAttributeType `json:"password,omitempty"` @@ -91,12 +111,14 @@ type CreateElasticsearchCheckPayload struct { Username CreateElasticsearchCheckPayloadGetUsernameAttributeType `json:"username,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateElasticsearchCheckPayload CreateElasticsearchCheckPayload // NewCreateElasticsearchCheckPayload instantiates a new CreateElasticsearchCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateElasticsearchCheckPayload(server CreateElasticsearchCheckPayloadGetServerArgType) *CreateElasticsearchCheckPayload { this := CreateElasticsearchCheckPayload{} setCreateElasticsearchCheckPayloadGetServerAttributeType(&this.Server, server) @@ -106,12 +128,14 @@ func NewCreateElasticsearchCheckPayload(server CreateElasticsearchCheckPayloadGe // NewCreateElasticsearchCheckPayloadWithDefaults instantiates a new CreateElasticsearchCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateElasticsearchCheckPayloadWithDefaults() *CreateElasticsearchCheckPayload { this := CreateElasticsearchCheckPayload{} return &this } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) GetPassword() (res CreateElasticsearchCheckPayloadGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -119,22 +143,26 @@ func (o *CreateElasticsearchCheckPayload) GetPassword() (res CreateElasticsearch // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) GetPasswordOk() (ret CreateElasticsearchCheckPayloadGetPasswordRetType, ok bool) { return getCreateElasticsearchCheckPayloadGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) SetPassword(v CreateElasticsearchCheckPayloadGetPasswordRetType) { setCreateElasticsearchCheckPayloadGetPasswordAttributeType(&o.Password, v) } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) GetServer() (ret CreateElasticsearchCheckPayloadGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -142,16 +170,19 @@ func (o *CreateElasticsearchCheckPayload) GetServer() (ret CreateElasticsearchCh // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) GetServerOk() (ret CreateElasticsearchCheckPayloadGetServerRetType, ok bool) { return getCreateElasticsearchCheckPayloadGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) SetServer(v CreateElasticsearchCheckPayloadGetServerRetType) { setCreateElasticsearchCheckPayloadGetServerAttributeType(&o.Server, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) GetUsername() (res CreateElasticsearchCheckPayloadGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -159,21 +190,25 @@ func (o *CreateElasticsearchCheckPayload) GetUsername() (res CreateElasticsearch // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) GetUsernameOk() (ret CreateElasticsearchCheckPayloadGetUsernameRetType, ok bool) { return getCreateElasticsearchCheckPayloadGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateElasticsearchCheckPayload) SetUsername(v CreateElasticsearchCheckPayloadGetUsernameRetType) { setCreateElasticsearchCheckPayloadGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateElasticsearchCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateElasticsearchCheckPayloadGetPasswordAttributeTypeOk(o.Password); ok { @@ -188,37 +223,45 @@ func (o CreateElasticsearchCheckPayload) ToMap() (map[string]interface{}, error) return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateElasticsearchCheckPayload struct { value *CreateElasticsearchCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateElasticsearchCheckPayload) Get() *CreateElasticsearchCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateElasticsearchCheckPayload) Set(val *CreateElasticsearchCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateElasticsearchCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateElasticsearchCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateElasticsearchCheckPayload(val *CreateElasticsearchCheckPayload) *NullableCreateElasticsearchCheckPayload { return &NullableCreateElasticsearchCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateElasticsearchCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateElasticsearchCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_http_check_payload.go b/services/observability/model_create_http_check_payload.go index 7ea8e8432..97956453a 100644 --- a/services/observability/model_create_http_check_payload.go +++ b/services/observability/model_create_http_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateHttpCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateHttpCheckPayloadGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateHttpCheckPayloadGetUrlAttributeTypeOk(arg CreateHttpCheckPayloadGetUrlAttributeType) (ret CreateHttpCheckPayloadGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreateHttpCheckPayloadGetUrlAttributeTypeOk(arg CreateHttpCheckPayloadGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateHttpCheckPayloadGetUrlAttributeType(arg *CreateHttpCheckPayloadGetUrlAttributeType, val CreateHttpCheckPayloadGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateHttpCheckPayloadGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateHttpCheckPayloadGetUrlRetType = string // CreateHttpCheckPayload Http check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateHttpCheckPayload struct { // url to check // REQUIRED Url CreateHttpCheckPayloadGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateHttpCheckPayload CreateHttpCheckPayload // NewCreateHttpCheckPayload instantiates a new CreateHttpCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateHttpCheckPayload(url CreateHttpCheckPayloadGetUrlArgType) *CreateHttpCheckPayload { this := CreateHttpCheckPayload{} setCreateHttpCheckPayloadGetUrlAttributeType(&this.Url, url) @@ -60,12 +70,14 @@ func NewCreateHttpCheckPayload(url CreateHttpCheckPayloadGetUrlArgType) *CreateH // NewCreateHttpCheckPayloadWithDefaults instantiates a new CreateHttpCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateHttpCheckPayloadWithDefaults() *CreateHttpCheckPayload { this := CreateHttpCheckPayload{} return &this } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateHttpCheckPayload) GetUrl() (ret CreateHttpCheckPayloadGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -73,15 +85,18 @@ func (o *CreateHttpCheckPayload) GetUrl() (ret CreateHttpCheckPayloadGetUrlRetTy // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateHttpCheckPayload) GetUrlOk() (ret CreateHttpCheckPayloadGetUrlRetType, ok bool) { return getCreateHttpCheckPayloadGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateHttpCheckPayload) SetUrl(v CreateHttpCheckPayloadGetUrlRetType) { setCreateHttpCheckPayloadGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateHttpCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateHttpCheckPayloadGetUrlAttributeTypeOk(o.Url); ok { @@ -90,37 +105,45 @@ func (o CreateHttpCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateHttpCheckPayload struct { value *CreateHttpCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateHttpCheckPayload) Get() *CreateHttpCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateHttpCheckPayload) Set(val *CreateHttpCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateHttpCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateHttpCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateHttpCheckPayload(val *CreateHttpCheckPayload) *NullableCreateHttpCheckPayload { return &NullableCreateHttpCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateHttpCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateHttpCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_instance_payload.go b/services/observability/model_create_instance_payload.go index 754009066..7b3615413 100644 --- a/services/observability/model_create_instance_payload.go +++ b/services/observability/model_create_instance_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateInstancePayload{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadgetGrafanaAdminEnabledAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadgetGrafanaAdminEnabledArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadgetGrafanaAdminEnabledRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(arg CreateInstancePayloadgetGrafanaAdminEnabledAttributeType) (ret CreateInstancePayloadgetGrafanaAdminEnabledRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(arg CreateIns return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadgetGrafanaAdminEnabledAttributeType(arg *CreateInstancePayloadgetGrafanaAdminEnabledAttributeType, val CreateInstancePayloadgetGrafanaAdminEnabledRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setCreateInstancePayloadgetGrafanaAdminEnabledAttributeType(arg *CreateInst */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadGetNameAttributeTypeOk(arg CreateInstancePayloadGetNameAttributeType) (ret CreateInstancePayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getCreateInstancePayloadGetNameAttributeTypeOk(arg CreateInstancePayloadGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadGetNameAttributeType(arg *CreateInstancePayloadGetNameAttributeType, val CreateInstancePayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetNameRetType = string /* @@ -63,10 +77,16 @@ type CreateInstancePayloadGetNameRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetParameterAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetParameterArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetParameterRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadGetParameterAttributeTypeOk(arg CreateInstancePayloadGetParameterAttributeType) (ret CreateInstancePayloadGetParameterRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getCreateInstancePayloadGetParameterAttributeTypeOk(arg CreateInstancePaylo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadGetParameterAttributeType(arg *CreateInstancePayloadGetParameterAttributeType, val CreateInstancePayloadGetParameterRetType) { *arg = &val } @@ -83,8 +104,10 @@ func setCreateInstancePayloadGetParameterAttributeType(arg *CreateInstancePayloa */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadGetPlanIdAttributeTypeOk(arg CreateInstancePayloadGetPlanIdAttributeType) (ret CreateInstancePayloadGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -92,14 +115,19 @@ func getCreateInstancePayloadGetPlanIdAttributeTypeOk(arg CreateInstancePayloadG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadGetPlanIdAttributeType(arg *CreateInstancePayloadGetPlanIdAttributeType, val CreateInstancePayloadGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetPlanIdRetType = string // CreateInstancePayload Create update instance body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayload struct { // If true, a default Grafana server admin user is created. It's recommended to set this to false and use STACKIT SSO (`Owner` or `Observability Grafana Server Admin` role) instead. It is still possible to manually create a new Grafana admin user via the Grafana UI later. GrafanaAdminEnabled CreateInstancePayloadgetGrafanaAdminEnabledAttributeType `json:"grafanaAdminEnabled,omitempty"` @@ -112,12 +140,14 @@ type CreateInstancePayload struct { PlanId CreateInstancePayloadGetPlanIdAttributeType `json:"planId" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateInstancePayload CreateInstancePayload // NewCreateInstancePayload instantiates a new CreateInstancePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstancePayload(planId CreateInstancePayloadGetPlanIdArgType) *CreateInstancePayload { this := CreateInstancePayload{} setCreateInstancePayloadGetPlanIdAttributeType(&this.PlanId, planId) @@ -127,6 +157,7 @@ func NewCreateInstancePayload(planId CreateInstancePayloadGetPlanIdArgType) *Cre // NewCreateInstancePayloadWithDefaults instantiates a new CreateInstancePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { this := CreateInstancePayload{} var grafanaAdminEnabled bool = true @@ -135,6 +166,7 @@ func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { } // GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetGrafanaAdminEnabled() (res CreateInstancePayloadgetGrafanaAdminEnabledRetType) { res, _ = o.GetGrafanaAdminEnabledOk() return @@ -142,22 +174,26 @@ func (o *CreateInstancePayload) GetGrafanaAdminEnabled() (res CreateInstancePayl // GetGrafanaAdminEnabledOk returns a tuple with the GrafanaAdminEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetGrafanaAdminEnabledOk() (ret CreateInstancePayloadgetGrafanaAdminEnabledRetType, ok bool) { return getCreateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(o.GrafanaAdminEnabled) } // HasGrafanaAdminEnabled returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) HasGrafanaAdminEnabled() bool { _, ok := o.GetGrafanaAdminEnabledOk() return ok } // SetGrafanaAdminEnabled gets a reference to the given bool and assigns it to the GrafanaAdminEnabled field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetGrafanaAdminEnabled(v CreateInstancePayloadgetGrafanaAdminEnabledRetType) { setCreateInstancePayloadgetGrafanaAdminEnabledAttributeType(&o.GrafanaAdminEnabled, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetName() (res CreateInstancePayloadGetNameRetType) { res, _ = o.GetNameOk() return @@ -165,22 +201,26 @@ func (o *CreateInstancePayload) GetName() (res CreateInstancePayloadGetNameRetTy // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetNameOk() (ret CreateInstancePayloadGetNameRetType, ok bool) { return getCreateInstancePayloadGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetName(v CreateInstancePayloadGetNameRetType) { setCreateInstancePayloadGetNameAttributeType(&o.Name, v) } // GetParameter returns the Parameter field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetParameter() (res CreateInstancePayloadGetParameterRetType) { res, _ = o.GetParameterOk() return @@ -188,22 +228,26 @@ func (o *CreateInstancePayload) GetParameter() (res CreateInstancePayloadGetPara // GetParameterOk returns a tuple with the Parameter field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetParameterOk() (ret CreateInstancePayloadGetParameterRetType, ok bool) { return getCreateInstancePayloadGetParameterAttributeTypeOk(o.Parameter) } // HasParameter returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) HasParameter() bool { _, ok := o.GetParameterOk() return ok } // SetParameter gets a reference to the given map[string]interface{} and assigns it to the Parameter field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetParameter(v CreateInstancePayloadGetParameterRetType) { setCreateInstancePayloadGetParameterAttributeType(&o.Parameter, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetPlanId() (ret CreateInstancePayloadGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -211,15 +255,18 @@ func (o *CreateInstancePayload) GetPlanId() (ret CreateInstancePayloadGetPlanIdR // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetPlanIdOk() (ret CreateInstancePayloadGetPlanIdRetType, ok bool) { return getCreateInstancePayloadGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetPlanId(v CreateInstancePayloadGetPlanIdRetType) { setCreateInstancePayloadGetPlanIdAttributeType(&o.PlanId, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(o.GrafanaAdminEnabled); ok { @@ -237,37 +284,45 @@ func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateInstancePayload struct { value *CreateInstancePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstancePayload) Get() *CreateInstancePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstancePayload) Set(val *CreateInstancePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstancePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstancePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateInstancePayload(val *CreateInstancePayload) *NullableCreateInstancePayload { return &NullableCreateInstancePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstancePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstancePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_instance_response.go b/services/observability/model_create_instance_response.go index b78381798..7b603034c 100644 --- a/services/observability/model_create_instance_response.go +++ b/services/observability/model_create_instance_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateInstanceResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetDashboardUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstanceResponseGetDashboardUrlAttributeTypeOk(arg CreateInstanceResponseGetDashboardUrlAttributeType) (ret CreateInstanceResponseGetDashboardUrlRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateInstanceResponseGetDashboardUrlAttributeTypeOk(arg CreateInstanceR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstanceResponseGetDashboardUrlAttributeType(arg *CreateInstanceResponseGetDashboardUrlAttributeType, val CreateInstanceResponseGetDashboardUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetDashboardUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetDashboardUrlRetType = string /* @@ -43,8 +50,10 @@ type CreateInstanceResponseGetDashboardUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetInstanceIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstanceResponseGetInstanceIdAttributeTypeOk(arg CreateInstanceResponseGetInstanceIdAttributeType) (ret CreateInstanceResponseGetInstanceIdRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateInstanceResponseGetInstanceIdAttributeTypeOk(arg CreateInstanceRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstanceResponseGetInstanceIdAttributeType(arg *CreateInstanceResponseGetInstanceIdAttributeType, val CreateInstanceResponseGetInstanceIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetInstanceIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetInstanceIdRetType = string /* @@ -64,8 +77,10 @@ type CreateInstanceResponseGetInstanceIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstanceResponseGetMessageAttributeTypeOk(arg CreateInstanceResponseGetMessageAttributeType) (ret CreateInstanceResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getCreateInstanceResponseGetMessageAttributeTypeOk(arg CreateInstanceRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstanceResponseGetMessageAttributeType(arg *CreateInstanceResponseGetMessageAttributeType, val CreateInstanceResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetMessageRetType = string // CreateInstanceResponse struct for CreateInstanceResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponse struct { // REQUIRED DashboardUrl CreateInstanceResponseGetDashboardUrlAttributeType `json:"dashboardUrl" required:"true"` @@ -90,12 +110,14 @@ type CreateInstanceResponse struct { Message CreateInstanceResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateInstanceResponse CreateInstanceResponse // NewCreateInstanceResponse instantiates a new CreateInstanceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstanceResponse(dashboardUrl CreateInstanceResponseGetDashboardUrlArgType, instanceId CreateInstanceResponseGetInstanceIdArgType, message CreateInstanceResponseGetMessageArgType) *CreateInstanceResponse { this := CreateInstanceResponse{} setCreateInstanceResponseGetDashboardUrlAttributeType(&this.DashboardUrl, dashboardUrl) @@ -107,12 +129,14 @@ func NewCreateInstanceResponse(dashboardUrl CreateInstanceResponseGetDashboardUr // NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { this := CreateInstanceResponse{} return &this } // GetDashboardUrl returns the DashboardUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetDashboardUrl() (ret CreateInstanceResponseGetDashboardUrlRetType) { ret, _ = o.GetDashboardUrlOk() return ret @@ -120,16 +144,19 @@ func (o *CreateInstanceResponse) GetDashboardUrl() (ret CreateInstanceResponseGe // GetDashboardUrlOk returns a tuple with the DashboardUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetDashboardUrlOk() (ret CreateInstanceResponseGetDashboardUrlRetType, ok bool) { return getCreateInstanceResponseGetDashboardUrlAttributeTypeOk(o.DashboardUrl) } // SetDashboardUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) SetDashboardUrl(v CreateInstanceResponseGetDashboardUrlRetType) { setCreateInstanceResponseGetDashboardUrlAttributeType(&o.DashboardUrl, v) } // GetInstanceId returns the InstanceId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetInstanceId() (ret CreateInstanceResponseGetInstanceIdRetType) { ret, _ = o.GetInstanceIdOk() return ret @@ -137,16 +164,19 @@ func (o *CreateInstanceResponse) GetInstanceId() (ret CreateInstanceResponseGetI // GetInstanceIdOk returns a tuple with the InstanceId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetInstanceIdOk() (ret CreateInstanceResponseGetInstanceIdRetType, ok bool) { return getCreateInstanceResponseGetInstanceIdAttributeTypeOk(o.InstanceId) } // SetInstanceId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) SetInstanceId(v CreateInstanceResponseGetInstanceIdRetType) { setCreateInstanceResponseGetInstanceIdAttributeType(&o.InstanceId, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetMessage() (ret CreateInstanceResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -154,15 +184,18 @@ func (o *CreateInstanceResponse) GetMessage() (ret CreateInstanceResponseGetMess // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetMessageOk() (ret CreateInstanceResponseGetMessageRetType, ok bool) { return getCreateInstanceResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) SetMessage(v CreateInstanceResponseGetMessageRetType) { setCreateInstanceResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateInstanceResponseGetDashboardUrlAttributeTypeOk(o.DashboardUrl); ok { @@ -177,37 +210,45 @@ func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateInstanceResponse struct { value *CreateInstanceResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstanceResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstanceResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse { return &NullableCreateInstanceResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_logs_alertgroups_payload.go b/services/observability/model_create_logs_alertgroups_payload.go index 3f72298ec..c3013b690 100644 --- a/services/observability/model_create_logs_alertgroups_payload.go +++ b/services/observability/model_create_logs_alertgroups_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateLogsAlertgroupsPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadGetIntervalAttributeTypeOk(arg CreateLogsAlertgroupsPayloadGetIntervalAttributeType) (ret CreateLogsAlertgroupsPayloadGetIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateLogsAlertgroupsPayloadGetIntervalAttributeTypeOk(arg CreateLogsAle return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadGetIntervalAttributeType(arg *CreateLogsAlertgroupsPayloadGetIntervalAttributeType, val CreateLogsAlertgroupsPayloadGetIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetIntervalRetType = string /* @@ -43,8 +50,10 @@ type CreateLogsAlertgroupsPayloadGetIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadGetNameAttributeTypeOk(arg CreateLogsAlertgroupsPayloadGetNameAttributeType) (ret CreateLogsAlertgroupsPayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateLogsAlertgroupsPayloadGetNameAttributeTypeOk(arg CreateLogsAlertgr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadGetNameAttributeType(arg *CreateLogsAlertgroupsPayloadGetNameAttributeType, val CreateLogsAlertgroupsPayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetNameRetType = string /* @@ -64,10 +77,16 @@ type CreateLogsAlertgroupsPayloadGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetRulesAttributeType = *[]CreateLogsAlertgroupsPayloadRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetRulesArgType = []CreateLogsAlertgroupsPayloadRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadGetRulesRetType = []CreateLogsAlertgroupsPayloadRulesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadGetRulesAttributeTypeOk(arg CreateLogsAlertgroupsPayloadGetRulesAttributeType) (ret CreateLogsAlertgroupsPayloadGetRulesRetType, ok bool) { if arg == nil { return ret, false @@ -75,11 +94,13 @@ func getCreateLogsAlertgroupsPayloadGetRulesAttributeTypeOk(arg CreateLogsAlertg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadGetRulesAttributeType(arg *CreateLogsAlertgroupsPayloadGetRulesAttributeType, val CreateLogsAlertgroupsPayloadGetRulesRetType) { *arg = &val } // CreateLogsAlertgroupsPayload 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayload struct { // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s Interval CreateLogsAlertgroupsPayloadGetIntervalAttributeType `json:"interval,omitempty"` @@ -91,12 +112,14 @@ type CreateLogsAlertgroupsPayload struct { Rules CreateLogsAlertgroupsPayloadGetRulesAttributeType `json:"rules" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateLogsAlertgroupsPayload CreateLogsAlertgroupsPayload // NewCreateLogsAlertgroupsPayload instantiates a new CreateLogsAlertgroupsPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateLogsAlertgroupsPayload(name CreateLogsAlertgroupsPayloadGetNameArgType, rules CreateLogsAlertgroupsPayloadGetRulesArgType) *CreateLogsAlertgroupsPayload { this := CreateLogsAlertgroupsPayload{} setCreateLogsAlertgroupsPayloadGetNameAttributeType(&this.Name, name) @@ -107,6 +130,7 @@ func NewCreateLogsAlertgroupsPayload(name CreateLogsAlertgroupsPayloadGetNameArg // NewCreateLogsAlertgroupsPayloadWithDefaults instantiates a new CreateLogsAlertgroupsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateLogsAlertgroupsPayloadWithDefaults() *CreateLogsAlertgroupsPayload { this := CreateLogsAlertgroupsPayload{} var interval string = "60s" @@ -115,6 +139,7 @@ func NewCreateLogsAlertgroupsPayloadWithDefaults() *CreateLogsAlertgroupsPayload } // GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) GetInterval() (res CreateLogsAlertgroupsPayloadGetIntervalRetType) { res, _ = o.GetIntervalOk() return @@ -122,22 +147,26 @@ func (o *CreateLogsAlertgroupsPayload) GetInterval() (res CreateLogsAlertgroupsP // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) GetIntervalOk() (ret CreateLogsAlertgroupsPayloadGetIntervalRetType, ok bool) { return getCreateLogsAlertgroupsPayloadGetIntervalAttributeTypeOk(o.Interval) } // HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) HasInterval() bool { _, ok := o.GetIntervalOk() return ok } // SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) SetInterval(v CreateLogsAlertgroupsPayloadGetIntervalRetType) { setCreateLogsAlertgroupsPayloadGetIntervalAttributeType(&o.Interval, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) GetName() (ret CreateLogsAlertgroupsPayloadGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -145,16 +174,19 @@ func (o *CreateLogsAlertgroupsPayload) GetName() (ret CreateLogsAlertgroupsPaylo // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) GetNameOk() (ret CreateLogsAlertgroupsPayloadGetNameRetType, ok bool) { return getCreateLogsAlertgroupsPayloadGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) SetName(v CreateLogsAlertgroupsPayloadGetNameRetType) { setCreateLogsAlertgroupsPayloadGetNameAttributeType(&o.Name, v) } // GetRules returns the Rules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) GetRules() (ret CreateLogsAlertgroupsPayloadGetRulesRetType) { ret, _ = o.GetRulesOk() return ret @@ -162,15 +194,18 @@ func (o *CreateLogsAlertgroupsPayload) GetRules() (ret CreateLogsAlertgroupsPayl // GetRulesOk returns a tuple with the Rules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) GetRulesOk() (ret CreateLogsAlertgroupsPayloadGetRulesRetType, ok bool) { return getCreateLogsAlertgroupsPayloadGetRulesAttributeTypeOk(o.Rules) } // SetRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayload) SetRules(v CreateLogsAlertgroupsPayloadGetRulesRetType) { setCreateLogsAlertgroupsPayloadGetRulesAttributeType(&o.Rules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateLogsAlertgroupsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateLogsAlertgroupsPayloadGetIntervalAttributeTypeOk(o.Interval); ok { @@ -185,37 +220,45 @@ func (o CreateLogsAlertgroupsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateLogsAlertgroupsPayload struct { value *CreateLogsAlertgroupsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateLogsAlertgroupsPayload) Get() *CreateLogsAlertgroupsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateLogsAlertgroupsPayload) Set(val *CreateLogsAlertgroupsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateLogsAlertgroupsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateLogsAlertgroupsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateLogsAlertgroupsPayload(val *CreateLogsAlertgroupsPayload) *NullableCreateLogsAlertgroupsPayload { return &NullableCreateLogsAlertgroupsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateLogsAlertgroupsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateLogsAlertgroupsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_logs_alertgroups_payload_rules_inner.go b/services/observability/model_create_logs_alertgroups_payload_rules_inner.go index 5d8d6dd2b..525da4909 100644 --- a/services/observability/model_create_logs_alertgroups_payload_rules_inner.go +++ b/services/observability/model_create_logs_alertgroups_payload_rules_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateLogsAlertgroupsPayloadRulesInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeTypeOk(arg CreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeType) (ret CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeTypeOk(arg Create return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeType(arg *CreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeType, val CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetAlertArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType = string /* @@ -43,10 +50,16 @@ type CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeTypeOk(arg CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeType) (ret CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getCreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeType(arg *CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeType, val CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setCreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeType(arg *C */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeTypeOk(arg CreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeType) (ret CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getCreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeTypeOk(arg CreateL return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeType(arg *CreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeType, val CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType = string /* @@ -84,8 +104,10 @@ type CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadRulesInnerGetForAttributeTypeOk(arg CreateLogsAlertgroupsPayloadRulesInnerGetForAttributeType) (ret CreateLogsAlertgroupsPayloadRulesInnerGetForRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getCreateLogsAlertgroupsPayloadRulesInnerGetForAttributeTypeOk(arg CreateLo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadRulesInnerGetForAttributeType(arg *CreateLogsAlertgroupsPayloadRulesInnerGetForAttributeType, val CreateLogsAlertgroupsPayloadRulesInnerGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetForRetType = string /* @@ -105,10 +131,16 @@ type CreateLogsAlertgroupsPayloadRulesInnerGetForRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeTypeOk(arg CreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeType) (ret CreateLogsAlertgroupsPayloadRulesInnerGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -116,6 +148,7 @@ func getCreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeTypeOk(arg Creat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeType(arg *CreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeType, val CreateLogsAlertgroupsPayloadRulesInnerGetLabelsRetType) { *arg = &val } @@ -125,8 +158,10 @@ func setCreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeType(arg *Create */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeTypeOk(arg CreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeType) (ret CreateLogsAlertgroupsPayloadRulesInnerGetRecordRetType, ok bool) { if arg == nil { return ret, false @@ -134,14 +169,19 @@ func getCreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeTypeOk(arg Creat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeType(arg *CreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeType, val CreateLogsAlertgroupsPayloadRulesInnerGetRecordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetRecordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInnerGetRecordRetType = string // CreateLogsAlertgroupsPayloadRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateLogsAlertgroupsPayloadRulesInner struct { // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed Alert CreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeType `json:"alert,omitempty"` @@ -158,12 +198,14 @@ type CreateLogsAlertgroupsPayloadRulesInner struct { Record CreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeType `json:"record,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateLogsAlertgroupsPayloadRulesInner CreateLogsAlertgroupsPayloadRulesInner // NewCreateLogsAlertgroupsPayloadRulesInner instantiates a new CreateLogsAlertgroupsPayloadRulesInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateLogsAlertgroupsPayloadRulesInner(expr CreateLogsAlertgroupsPayloadRulesInnerGetExprArgType) *CreateLogsAlertgroupsPayloadRulesInner { this := CreateLogsAlertgroupsPayloadRulesInner{} setCreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeType(&this.Expr, expr) @@ -173,6 +215,7 @@ func NewCreateLogsAlertgroupsPayloadRulesInner(expr CreateLogsAlertgroupsPayload // NewCreateLogsAlertgroupsPayloadRulesInnerWithDefaults instantiates a new CreateLogsAlertgroupsPayloadRulesInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateLogsAlertgroupsPayloadRulesInnerWithDefaults() *CreateLogsAlertgroupsPayloadRulesInner { this := CreateLogsAlertgroupsPayloadRulesInner{} var for_ string = "0s" @@ -181,6 +224,7 @@ func NewCreateLogsAlertgroupsPayloadRulesInnerWithDefaults() *CreateLogsAlertgro } // GetAlert returns the Alert field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAlert() (res CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType) { res, _ = o.GetAlertOk() return @@ -188,22 +232,26 @@ func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAlert() (res CreateLogsAlert // GetAlertOk returns a tuple with the Alert field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAlertOk() (ret CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType, ok bool) { return getCreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeTypeOk(o.Alert) } // HasAlert returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) HasAlert() bool { _, ok := o.GetAlertOk() return ok } // SetAlert gets a reference to the given string and assigns it to the Alert field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) SetAlert(v CreateLogsAlertgroupsPayloadRulesInnerGetAlertRetType) { setCreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeType(&o.Alert, v) } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAnnotations() (res CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -211,22 +259,26 @@ func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAnnotations() (res CreateLog // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAnnotationsOk() (ret CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsRetType, ok bool) { return getCreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) SetAnnotations(v CreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsRetType) { setCreateLogsAlertgroupsPayloadRulesInnerGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetExpr() (ret CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -234,16 +286,19 @@ func (o *CreateLogsAlertgroupsPayloadRulesInner) GetExpr() (ret CreateLogsAlertg // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetExprOk() (ret CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType, ok bool) { return getCreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) SetExpr(v CreateLogsAlertgroupsPayloadRulesInnerGetExprRetType) { setCreateLogsAlertgroupsPayloadRulesInnerGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetFor() (res CreateLogsAlertgroupsPayloadRulesInnerGetForRetType) { res, _ = o.GetForOk() return @@ -251,22 +306,26 @@ func (o *CreateLogsAlertgroupsPayloadRulesInner) GetFor() (res CreateLogsAlertgr // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetForOk() (ret CreateLogsAlertgroupsPayloadRulesInnerGetForRetType, ok bool) { return getCreateLogsAlertgroupsPayloadRulesInnerGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) SetFor(v CreateLogsAlertgroupsPayloadRulesInnerGetForRetType) { setCreateLogsAlertgroupsPayloadRulesInnerGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetLabels() (res CreateLogsAlertgroupsPayloadRulesInnerGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -274,22 +333,26 @@ func (o *CreateLogsAlertgroupsPayloadRulesInner) GetLabels() (res CreateLogsAler // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetLabelsOk() (ret CreateLogsAlertgroupsPayloadRulesInnerGetLabelsRetType, ok bool) { return getCreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) SetLabels(v CreateLogsAlertgroupsPayloadRulesInnerGetLabelsRetType) { setCreateLogsAlertgroupsPayloadRulesInnerGetLabelsAttributeType(&o.Labels, v) } // GetRecord returns the Record field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetRecord() (res CreateLogsAlertgroupsPayloadRulesInnerGetRecordRetType) { res, _ = o.GetRecordOk() return @@ -297,21 +360,25 @@ func (o *CreateLogsAlertgroupsPayloadRulesInner) GetRecord() (res CreateLogsAler // GetRecordOk returns a tuple with the Record field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) GetRecordOk() (ret CreateLogsAlertgroupsPayloadRulesInnerGetRecordRetType, ok bool) { return getCreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeTypeOk(o.Record) } // HasRecord returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) HasRecord() bool { _, ok := o.GetRecordOk() return ok } // SetRecord gets a reference to the given string and assigns it to the Record field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateLogsAlertgroupsPayloadRulesInner) SetRecord(v CreateLogsAlertgroupsPayloadRulesInnerGetRecordRetType) { setCreateLogsAlertgroupsPayloadRulesInnerGetRecordAttributeType(&o.Record, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateLogsAlertgroupsPayloadRulesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateLogsAlertgroupsPayloadRulesInnerGetAlertAttributeTypeOk(o.Alert); ok { @@ -335,37 +402,45 @@ func (o CreateLogsAlertgroupsPayloadRulesInner) ToMap() (map[string]interface{}, return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateLogsAlertgroupsPayloadRulesInner struct { value *CreateLogsAlertgroupsPayloadRulesInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateLogsAlertgroupsPayloadRulesInner) Get() *CreateLogsAlertgroupsPayloadRulesInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateLogsAlertgroupsPayloadRulesInner) Set(val *CreateLogsAlertgroupsPayloadRulesInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateLogsAlertgroupsPayloadRulesInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateLogsAlertgroupsPayloadRulesInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateLogsAlertgroupsPayloadRulesInner(val *CreateLogsAlertgroupsPayloadRulesInner) *NullableCreateLogsAlertgroupsPayloadRulesInner { return &NullableCreateLogsAlertgroupsPayloadRulesInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateLogsAlertgroupsPayloadRulesInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateLogsAlertgroupsPayloadRulesInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_mongodb_check_payload.go b/services/observability/model_create_mongodb_check_payload.go index 98f39fac6..65b525375 100644 --- a/services/observability/model_create_mongodb_check_payload.go +++ b/services/observability/model_create_mongodb_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateMongodbCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMongodbCheckPayloadGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateMongodbCheckPayloadGetServerAttributeTypeOk(arg CreateMongodbCheckPayloadGetServerAttributeType) (ret CreateMongodbCheckPayloadGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreateMongodbCheckPayloadGetServerAttributeTypeOk(arg CreateMongodbCheck return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateMongodbCheckPayloadGetServerAttributeType(arg *CreateMongodbCheckPayloadGetServerAttributeType, val CreateMongodbCheckPayloadGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMongodbCheckPayloadGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMongodbCheckPayloadGetServerRetType = string // CreateMongodbCheckPayload Mongodb check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMongodbCheckPayload struct { // url to check // REQUIRED Server CreateMongodbCheckPayloadGetServerAttributeType `json:"server" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateMongodbCheckPayload CreateMongodbCheckPayload // NewCreateMongodbCheckPayload instantiates a new CreateMongodbCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateMongodbCheckPayload(server CreateMongodbCheckPayloadGetServerArgType) *CreateMongodbCheckPayload { this := CreateMongodbCheckPayload{} setCreateMongodbCheckPayloadGetServerAttributeType(&this.Server, server) @@ -60,12 +70,14 @@ func NewCreateMongodbCheckPayload(server CreateMongodbCheckPayloadGetServerArgTy // NewCreateMongodbCheckPayloadWithDefaults instantiates a new CreateMongodbCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateMongodbCheckPayloadWithDefaults() *CreateMongodbCheckPayload { this := CreateMongodbCheckPayload{} return &this } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateMongodbCheckPayload) GetServer() (ret CreateMongodbCheckPayloadGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -73,15 +85,18 @@ func (o *CreateMongodbCheckPayload) GetServer() (ret CreateMongodbCheckPayloadGe // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateMongodbCheckPayload) GetServerOk() (ret CreateMongodbCheckPayloadGetServerRetType, ok bool) { return getCreateMongodbCheckPayloadGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateMongodbCheckPayload) SetServer(v CreateMongodbCheckPayloadGetServerRetType) { setCreateMongodbCheckPayloadGetServerAttributeType(&o.Server, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateMongodbCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateMongodbCheckPayloadGetServerAttributeTypeOk(o.Server); ok { @@ -90,37 +105,45 @@ func (o CreateMongodbCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateMongodbCheckPayload struct { value *CreateMongodbCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateMongodbCheckPayload) Get() *CreateMongodbCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateMongodbCheckPayload) Set(val *CreateMongodbCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateMongodbCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateMongodbCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateMongodbCheckPayload(val *CreateMongodbCheckPayload) *NullableCreateMongodbCheckPayload { return &NullableCreateMongodbCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateMongodbCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateMongodbCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_mysql_check_payload.go b/services/observability/model_create_mysql_check_payload.go index a4270c0e2..0ef3a9871 100644 --- a/services/observability/model_create_mysql_check_payload.go +++ b/services/observability/model_create_mysql_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateMysqlCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMysqlCheckPayloadGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateMysqlCheckPayloadGetServerAttributeTypeOk(arg CreateMysqlCheckPayloadGetServerAttributeType) (ret CreateMysqlCheckPayloadGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreateMysqlCheckPayloadGetServerAttributeTypeOk(arg CreateMysqlCheckPayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateMysqlCheckPayloadGetServerAttributeType(arg *CreateMysqlCheckPayloadGetServerAttributeType, val CreateMysqlCheckPayloadGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMysqlCheckPayloadGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMysqlCheckPayloadGetServerRetType = string // CreateMysqlCheckPayload MySQL check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateMysqlCheckPayload struct { // url to check // REQUIRED Server CreateMysqlCheckPayloadGetServerAttributeType `json:"server" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateMysqlCheckPayload CreateMysqlCheckPayload // NewCreateMysqlCheckPayload instantiates a new CreateMysqlCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateMysqlCheckPayload(server CreateMysqlCheckPayloadGetServerArgType) *CreateMysqlCheckPayload { this := CreateMysqlCheckPayload{} setCreateMysqlCheckPayloadGetServerAttributeType(&this.Server, server) @@ -60,12 +70,14 @@ func NewCreateMysqlCheckPayload(server CreateMysqlCheckPayloadGetServerArgType) // NewCreateMysqlCheckPayloadWithDefaults instantiates a new CreateMysqlCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateMysqlCheckPayloadWithDefaults() *CreateMysqlCheckPayload { this := CreateMysqlCheckPayload{} return &this } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateMysqlCheckPayload) GetServer() (ret CreateMysqlCheckPayloadGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -73,15 +85,18 @@ func (o *CreateMysqlCheckPayload) GetServer() (ret CreateMysqlCheckPayloadGetSer // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateMysqlCheckPayload) GetServerOk() (ret CreateMysqlCheckPayloadGetServerRetType, ok bool) { return getCreateMysqlCheckPayloadGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateMysqlCheckPayload) SetServer(v CreateMysqlCheckPayloadGetServerRetType) { setCreateMysqlCheckPayloadGetServerAttributeType(&o.Server, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateMysqlCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateMysqlCheckPayloadGetServerAttributeTypeOk(o.Server); ok { @@ -90,37 +105,45 @@ func (o CreateMysqlCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateMysqlCheckPayload struct { value *CreateMysqlCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateMysqlCheckPayload) Get() *CreateMysqlCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateMysqlCheckPayload) Set(val *CreateMysqlCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateMysqlCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateMysqlCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateMysqlCheckPayload(val *CreateMysqlCheckPayload) *NullableCreateMysqlCheckPayload { return &NullableCreateMysqlCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateMysqlCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateMysqlCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_network_check_payload.go b/services/observability/model_create_network_check_payload.go index cbfa4c3b3..be003f043 100644 --- a/services/observability/model_create_network_check_payload.go +++ b/services/observability/model_create_network_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateNetworkCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateNetworkCheckPayloadGetAddressAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateNetworkCheckPayloadGetAddressAttributeTypeOk(arg CreateNetworkCheckPayloadGetAddressAttributeType) (ret CreateNetworkCheckPayloadGetAddressRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreateNetworkCheckPayloadGetAddressAttributeTypeOk(arg CreateNetworkChec return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateNetworkCheckPayloadGetAddressAttributeType(arg *CreateNetworkCheckPayloadGetAddressAttributeType, val CreateNetworkCheckPayloadGetAddressRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateNetworkCheckPayloadGetAddressArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateNetworkCheckPayloadGetAddressRetType = string // CreateNetworkCheckPayload Network check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateNetworkCheckPayload struct { // network to check // REQUIRED Address CreateNetworkCheckPayloadGetAddressAttributeType `json:"address" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateNetworkCheckPayload CreateNetworkCheckPayload // NewCreateNetworkCheckPayload instantiates a new CreateNetworkCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateNetworkCheckPayload(address CreateNetworkCheckPayloadGetAddressArgType) *CreateNetworkCheckPayload { this := CreateNetworkCheckPayload{} setCreateNetworkCheckPayloadGetAddressAttributeType(&this.Address, address) @@ -60,12 +70,14 @@ func NewCreateNetworkCheckPayload(address CreateNetworkCheckPayloadGetAddressArg // NewCreateNetworkCheckPayloadWithDefaults instantiates a new CreateNetworkCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateNetworkCheckPayloadWithDefaults() *CreateNetworkCheckPayload { this := CreateNetworkCheckPayload{} return &this } // GetAddress returns the Address field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateNetworkCheckPayload) GetAddress() (ret CreateNetworkCheckPayloadGetAddressRetType) { ret, _ = o.GetAddressOk() return ret @@ -73,15 +85,18 @@ func (o *CreateNetworkCheckPayload) GetAddress() (ret CreateNetworkCheckPayloadG // GetAddressOk returns a tuple with the Address field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateNetworkCheckPayload) GetAddressOk() (ret CreateNetworkCheckPayloadGetAddressRetType, ok bool) { return getCreateNetworkCheckPayloadGetAddressAttributeTypeOk(o.Address) } // SetAddress sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateNetworkCheckPayload) SetAddress(v CreateNetworkCheckPayloadGetAddressRetType) { setCreateNetworkCheckPayloadGetAddressAttributeType(&o.Address, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateNetworkCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateNetworkCheckPayloadGetAddressAttributeTypeOk(o.Address); ok { @@ -90,37 +105,45 @@ func (o CreateNetworkCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateNetworkCheckPayload struct { value *CreateNetworkCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateNetworkCheckPayload) Get() *CreateNetworkCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateNetworkCheckPayload) Set(val *CreateNetworkCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateNetworkCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateNetworkCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateNetworkCheckPayload(val *CreateNetworkCheckPayload) *NullableCreateNetworkCheckPayload { return &NullableCreateNetworkCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateNetworkCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateNetworkCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_ping_check_payload.go b/services/observability/model_create_ping_check_payload.go index 414c0e808..f85befe70 100644 --- a/services/observability/model_create_ping_check_payload.go +++ b/services/observability/model_create_ping_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreatePingCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePingCheckPayloadGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreatePingCheckPayloadGetUrlAttributeTypeOk(arg CreatePingCheckPayloadGetUrlAttributeType) (ret CreatePingCheckPayloadGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreatePingCheckPayloadGetUrlAttributeTypeOk(arg CreatePingCheckPayloadGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreatePingCheckPayloadGetUrlAttributeType(arg *CreatePingCheckPayloadGetUrlAttributeType, val CreatePingCheckPayloadGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePingCheckPayloadGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePingCheckPayloadGetUrlRetType = string // CreatePingCheckPayload Ping check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePingCheckPayload struct { // domain to check // REQUIRED Url CreatePingCheckPayloadGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreatePingCheckPayload CreatePingCheckPayload // NewCreatePingCheckPayload instantiates a new CreatePingCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreatePingCheckPayload(url CreatePingCheckPayloadGetUrlArgType) *CreatePingCheckPayload { this := CreatePingCheckPayload{} setCreatePingCheckPayloadGetUrlAttributeType(&this.Url, url) @@ -60,12 +70,14 @@ func NewCreatePingCheckPayload(url CreatePingCheckPayloadGetUrlArgType) *CreateP // NewCreatePingCheckPayloadWithDefaults instantiates a new CreatePingCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreatePingCheckPayloadWithDefaults() *CreatePingCheckPayload { this := CreatePingCheckPayload{} return &this } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreatePingCheckPayload) GetUrl() (ret CreatePingCheckPayloadGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -73,15 +85,18 @@ func (o *CreatePingCheckPayload) GetUrl() (ret CreatePingCheckPayloadGetUrlRetTy // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreatePingCheckPayload) GetUrlOk() (ret CreatePingCheckPayloadGetUrlRetType, ok bool) { return getCreatePingCheckPayloadGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreatePingCheckPayload) SetUrl(v CreatePingCheckPayloadGetUrlRetType) { setCreatePingCheckPayloadGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreatePingCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreatePingCheckPayloadGetUrlAttributeTypeOk(o.Url); ok { @@ -90,37 +105,45 @@ func (o CreatePingCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreatePingCheckPayload struct { value *CreatePingCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreatePingCheckPayload) Get() *CreatePingCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreatePingCheckPayload) Set(val *CreatePingCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreatePingCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreatePingCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreatePingCheckPayload(val *CreatePingCheckPayload) *NullableCreatePingCheckPayload { return &NullableCreatePingCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreatePingCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreatePingCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_postgresql_check_payload.go b/services/observability/model_create_postgresql_check_payload.go index fac995679..e04f811a1 100644 --- a/services/observability/model_create_postgresql_check_payload.go +++ b/services/observability/model_create_postgresql_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreatePostgresqlCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePostgresqlCheckPayloadGetAddressAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreatePostgresqlCheckPayloadGetAddressAttributeTypeOk(arg CreatePostgresqlCheckPayloadGetAddressAttributeType) (ret CreatePostgresqlCheckPayloadGetAddressRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getCreatePostgresqlCheckPayloadGetAddressAttributeTypeOk(arg CreatePostgres return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreatePostgresqlCheckPayloadGetAddressAttributeType(arg *CreatePostgresqlCheckPayloadGetAddressAttributeType, val CreatePostgresqlCheckPayloadGetAddressRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePostgresqlCheckPayloadGetAddressArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePostgresqlCheckPayloadGetAddressRetType = string // CreatePostgresqlCheckPayload Postgresql check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreatePostgresqlCheckPayload struct { // url to check // REQUIRED Address CreatePostgresqlCheckPayloadGetAddressAttributeType `json:"address" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreatePostgresqlCheckPayload CreatePostgresqlCheckPayload // NewCreatePostgresqlCheckPayload instantiates a new CreatePostgresqlCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreatePostgresqlCheckPayload(address CreatePostgresqlCheckPayloadGetAddressArgType) *CreatePostgresqlCheckPayload { this := CreatePostgresqlCheckPayload{} setCreatePostgresqlCheckPayloadGetAddressAttributeType(&this.Address, address) @@ -60,12 +70,14 @@ func NewCreatePostgresqlCheckPayload(address CreatePostgresqlCheckPayloadGetAddr // NewCreatePostgresqlCheckPayloadWithDefaults instantiates a new CreatePostgresqlCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreatePostgresqlCheckPayloadWithDefaults() *CreatePostgresqlCheckPayload { this := CreatePostgresqlCheckPayload{} return &this } // GetAddress returns the Address field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreatePostgresqlCheckPayload) GetAddress() (ret CreatePostgresqlCheckPayloadGetAddressRetType) { ret, _ = o.GetAddressOk() return ret @@ -73,15 +85,18 @@ func (o *CreatePostgresqlCheckPayload) GetAddress() (ret CreatePostgresqlCheckPa // GetAddressOk returns a tuple with the Address field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreatePostgresqlCheckPayload) GetAddressOk() (ret CreatePostgresqlCheckPayloadGetAddressRetType, ok bool) { return getCreatePostgresqlCheckPayloadGetAddressAttributeTypeOk(o.Address) } // SetAddress sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreatePostgresqlCheckPayload) SetAddress(v CreatePostgresqlCheckPayloadGetAddressRetType) { setCreatePostgresqlCheckPayloadGetAddressAttributeType(&o.Address, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreatePostgresqlCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreatePostgresqlCheckPayloadGetAddressAttributeTypeOk(o.Address); ok { @@ -90,37 +105,45 @@ func (o CreatePostgresqlCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreatePostgresqlCheckPayload struct { value *CreatePostgresqlCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreatePostgresqlCheckPayload) Get() *CreatePostgresqlCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreatePostgresqlCheckPayload) Set(val *CreatePostgresqlCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreatePostgresqlCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreatePostgresqlCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreatePostgresqlCheckPayload(val *CreatePostgresqlCheckPayload) *NullableCreatePostgresqlCheckPayload { return &NullableCreatePostgresqlCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreatePostgresqlCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreatePostgresqlCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_rabbitmq_check_payload.go b/services/observability/model_create_rabbitmq_check_payload.go index 0e5bcb2c1..b255a78de 100644 --- a/services/observability/model_create_rabbitmq_check_payload.go +++ b/services/observability/model_create_rabbitmq_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateRabbitmqCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateRabbitmqCheckPayloadGetPasswordAttributeTypeOk(arg CreateRabbitmqCheckPayloadGetPasswordAttributeType) (ret CreateRabbitmqCheckPayloadGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateRabbitmqCheckPayloadGetPasswordAttributeTypeOk(arg CreateRabbitmqC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateRabbitmqCheckPayloadGetPasswordAttributeType(arg *CreateRabbitmqCheckPayloadGetPasswordAttributeType, val CreateRabbitmqCheckPayloadGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetPasswordRetType = string /* @@ -43,8 +50,10 @@ type CreateRabbitmqCheckPayloadGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateRabbitmqCheckPayloadGetUrlAttributeTypeOk(arg CreateRabbitmqCheckPayloadGetUrlAttributeType) (ret CreateRabbitmqCheckPayloadGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateRabbitmqCheckPayloadGetUrlAttributeTypeOk(arg CreateRabbitmqCheckP return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateRabbitmqCheckPayloadGetUrlAttributeType(arg *CreateRabbitmqCheckPayloadGetUrlAttributeType, val CreateRabbitmqCheckPayloadGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetUrlRetType = string /* @@ -64,8 +77,10 @@ type CreateRabbitmqCheckPayloadGetUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateRabbitmqCheckPayloadGetUsernameAttributeTypeOk(arg CreateRabbitmqCheckPayloadGetUsernameAttributeType) (ret CreateRabbitmqCheckPayloadGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getCreateRabbitmqCheckPayloadGetUsernameAttributeTypeOk(arg CreateRabbitmqC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateRabbitmqCheckPayloadGetUsernameAttributeType(arg *CreateRabbitmqCheckPayloadGetUsernameAttributeType, val CreateRabbitmqCheckPayloadGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayloadGetUsernameRetType = string // CreateRabbitmqCheckPayload RabbitMQ check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRabbitmqCheckPayload struct { // password Password CreateRabbitmqCheckPayloadGetPasswordAttributeType `json:"password,omitempty"` @@ -91,12 +111,14 @@ type CreateRabbitmqCheckPayload struct { Username CreateRabbitmqCheckPayloadGetUsernameAttributeType `json:"username,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateRabbitmqCheckPayload CreateRabbitmqCheckPayload // NewCreateRabbitmqCheckPayload instantiates a new CreateRabbitmqCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateRabbitmqCheckPayload(url CreateRabbitmqCheckPayloadGetUrlArgType) *CreateRabbitmqCheckPayload { this := CreateRabbitmqCheckPayload{} setCreateRabbitmqCheckPayloadGetUrlAttributeType(&this.Url, url) @@ -106,12 +128,14 @@ func NewCreateRabbitmqCheckPayload(url CreateRabbitmqCheckPayloadGetUrlArgType) // NewCreateRabbitmqCheckPayloadWithDefaults instantiates a new CreateRabbitmqCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateRabbitmqCheckPayloadWithDefaults() *CreateRabbitmqCheckPayload { this := CreateRabbitmqCheckPayload{} return &this } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) GetPassword() (res CreateRabbitmqCheckPayloadGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -119,22 +143,26 @@ func (o *CreateRabbitmqCheckPayload) GetPassword() (res CreateRabbitmqCheckPaylo // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) GetPasswordOk() (ret CreateRabbitmqCheckPayloadGetPasswordRetType, ok bool) { return getCreateRabbitmqCheckPayloadGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) SetPassword(v CreateRabbitmqCheckPayloadGetPasswordRetType) { setCreateRabbitmqCheckPayloadGetPasswordAttributeType(&o.Password, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) GetUrl() (ret CreateRabbitmqCheckPayloadGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -142,16 +170,19 @@ func (o *CreateRabbitmqCheckPayload) GetUrl() (ret CreateRabbitmqCheckPayloadGet // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) GetUrlOk() (ret CreateRabbitmqCheckPayloadGetUrlRetType, ok bool) { return getCreateRabbitmqCheckPayloadGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) SetUrl(v CreateRabbitmqCheckPayloadGetUrlRetType) { setCreateRabbitmqCheckPayloadGetUrlAttributeType(&o.Url, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) GetUsername() (res CreateRabbitmqCheckPayloadGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -159,21 +190,25 @@ func (o *CreateRabbitmqCheckPayload) GetUsername() (res CreateRabbitmqCheckPaylo // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) GetUsernameOk() (ret CreateRabbitmqCheckPayloadGetUsernameRetType, ok bool) { return getCreateRabbitmqCheckPayloadGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRabbitmqCheckPayload) SetUsername(v CreateRabbitmqCheckPayloadGetUsernameRetType) { setCreateRabbitmqCheckPayloadGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateRabbitmqCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateRabbitmqCheckPayloadGetPasswordAttributeTypeOk(o.Password); ok { @@ -188,37 +223,45 @@ func (o CreateRabbitmqCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateRabbitmqCheckPayload struct { value *CreateRabbitmqCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateRabbitmqCheckPayload) Get() *CreateRabbitmqCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateRabbitmqCheckPayload) Set(val *CreateRabbitmqCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateRabbitmqCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateRabbitmqCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateRabbitmqCheckPayload(val *CreateRabbitmqCheckPayload) *NullableCreateRabbitmqCheckPayload { return &NullableCreateRabbitmqCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateRabbitmqCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateRabbitmqCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_redis_check_payload.go b/services/observability/model_create_redis_check_payload.go index 590b45357..9a0e250fb 100644 --- a/services/observability/model_create_redis_check_payload.go +++ b/services/observability/model_create_redis_check_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateRedisCheckPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateRedisCheckPayloadGetPasswordAttributeTypeOk(arg CreateRedisCheckPayloadGetPasswordAttributeType) (ret CreateRedisCheckPayloadGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateRedisCheckPayloadGetPasswordAttributeTypeOk(arg CreateRedisCheckPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateRedisCheckPayloadGetPasswordAttributeType(arg *CreateRedisCheckPayloadGetPasswordAttributeType, val CreateRedisCheckPayloadGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetPasswordRetType = string /* @@ -43,8 +50,10 @@ type CreateRedisCheckPayloadGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateRedisCheckPayloadGetServerAttributeTypeOk(arg CreateRedisCheckPayloadGetServerAttributeType) (ret CreateRedisCheckPayloadGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateRedisCheckPayloadGetServerAttributeTypeOk(arg CreateRedisCheckPayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateRedisCheckPayloadGetServerAttributeType(arg *CreateRedisCheckPayloadGetServerAttributeType, val CreateRedisCheckPayloadGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetServerRetType = string /* @@ -64,8 +77,10 @@ type CreateRedisCheckPayloadGetServerRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateRedisCheckPayloadGetUsernameAttributeTypeOk(arg CreateRedisCheckPayloadGetUsernameAttributeType) (ret CreateRedisCheckPayloadGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getCreateRedisCheckPayloadGetUsernameAttributeTypeOk(arg CreateRedisCheckPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateRedisCheckPayloadGetUsernameAttributeType(arg *CreateRedisCheckPayloadGetUsernameAttributeType, val CreateRedisCheckPayloadGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayloadGetUsernameRetType = string // CreateRedisCheckPayload Redis check body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateRedisCheckPayload struct { // password Password CreateRedisCheckPayloadGetPasswordAttributeType `json:"password,omitempty"` @@ -91,12 +111,14 @@ type CreateRedisCheckPayload struct { Username CreateRedisCheckPayloadGetUsernameAttributeType `json:"username,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateRedisCheckPayload CreateRedisCheckPayload // NewCreateRedisCheckPayload instantiates a new CreateRedisCheckPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateRedisCheckPayload(server CreateRedisCheckPayloadGetServerArgType) *CreateRedisCheckPayload { this := CreateRedisCheckPayload{} setCreateRedisCheckPayloadGetServerAttributeType(&this.Server, server) @@ -106,12 +128,14 @@ func NewCreateRedisCheckPayload(server CreateRedisCheckPayloadGetServerArgType) // NewCreateRedisCheckPayloadWithDefaults instantiates a new CreateRedisCheckPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateRedisCheckPayloadWithDefaults() *CreateRedisCheckPayload { this := CreateRedisCheckPayload{} return &this } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) GetPassword() (res CreateRedisCheckPayloadGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -119,22 +143,26 @@ func (o *CreateRedisCheckPayload) GetPassword() (res CreateRedisCheckPayloadGetP // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) GetPasswordOk() (ret CreateRedisCheckPayloadGetPasswordRetType, ok bool) { return getCreateRedisCheckPayloadGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) SetPassword(v CreateRedisCheckPayloadGetPasswordRetType) { setCreateRedisCheckPayloadGetPasswordAttributeType(&o.Password, v) } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) GetServer() (ret CreateRedisCheckPayloadGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -142,16 +170,19 @@ func (o *CreateRedisCheckPayload) GetServer() (ret CreateRedisCheckPayloadGetSer // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) GetServerOk() (ret CreateRedisCheckPayloadGetServerRetType, ok bool) { return getCreateRedisCheckPayloadGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) SetServer(v CreateRedisCheckPayloadGetServerRetType) { setCreateRedisCheckPayloadGetServerAttributeType(&o.Server, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) GetUsername() (res CreateRedisCheckPayloadGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -159,21 +190,25 @@ func (o *CreateRedisCheckPayload) GetUsername() (res CreateRedisCheckPayloadGetU // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) GetUsernameOk() (ret CreateRedisCheckPayloadGetUsernameRetType, ok bool) { return getCreateRedisCheckPayloadGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateRedisCheckPayload) SetUsername(v CreateRedisCheckPayloadGetUsernameRetType) { setCreateRedisCheckPayloadGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateRedisCheckPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateRedisCheckPayloadGetPasswordAttributeTypeOk(o.Password); ok { @@ -188,37 +223,45 @@ func (o CreateRedisCheckPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateRedisCheckPayload struct { value *CreateRedisCheckPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateRedisCheckPayload) Get() *CreateRedisCheckPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateRedisCheckPayload) Set(val *CreateRedisCheckPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateRedisCheckPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateRedisCheckPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateRedisCheckPayload(val *CreateRedisCheckPayload) *NullableCreateRedisCheckPayload { return &NullableCreateRedisCheckPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateRedisCheckPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateRedisCheckPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_create_scrape_config_payload.go b/services/observability/model_create_scrape_config_payload.go index 6c7db53fd..98e8e4e97 100644 --- a/services/observability/model_create_scrape_config_payload.go +++ b/services/observability/model_create_scrape_config_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,10 +24,16 @@ var _ MappedNullable = &CreateScrapeConfigPayload{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetBasicAuthAttributeType = *PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetBasicAuthArgType = PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetBasicAuthRetType = PartialUpdateScrapeConfigsRequestInnerBasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(arg CreateScrapeConfigPayloadGetBasicAuthAttributeType) (ret CreateScrapeConfigPayloadGetBasicAuthRetType, ok bool) { if arg == nil { return ret, false @@ -34,6 +41,7 @@ func getCreateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(arg CreateScrapeCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetBasicAuthAttributeType(arg *CreateScrapeConfigPayloadGetBasicAuthAttributeType, val CreateScrapeConfigPayloadGetBasicAuthRetType) { *arg = &val } @@ -43,8 +51,10 @@ func setCreateScrapeConfigPayloadGetBasicAuthAttributeType(arg *CreateScrapeConf */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetBearerTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetBearerTokenAttributeTypeOk(arg CreateScrapeConfigPayloadGetBearerTokenAttributeType) (ret CreateScrapeConfigPayloadGetBearerTokenRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +62,15 @@ func getCreateScrapeConfigPayloadGetBearerTokenAttributeTypeOk(arg CreateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetBearerTokenAttributeType(arg *CreateScrapeConfigPayloadGetBearerTokenAttributeType, val CreateScrapeConfigPayloadGetBearerTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetBearerTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetBearerTokenRetType = string /* @@ -64,10 +78,16 @@ type CreateScrapeConfigPayloadGetBearerTokenRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadgetHonorLabelsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadgetHonorLabelsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadgetHonorLabelsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadgetHonorLabelsAttributeTypeOk(arg CreateScrapeConfigPayloadgetHonorLabelsAttributeType) (ret CreateScrapeConfigPayloadgetHonorLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +95,7 @@ func getCreateScrapeConfigPayloadgetHonorLabelsAttributeTypeOk(arg CreateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadgetHonorLabelsAttributeType(arg *CreateScrapeConfigPayloadgetHonorLabelsAttributeType, val CreateScrapeConfigPayloadgetHonorLabelsRetType) { *arg = &val } @@ -84,10 +105,16 @@ func setCreateScrapeConfigPayloadgetHonorLabelsAttributeType(arg *CreateScrapeCo */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadgetHonorTimeStampsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadgetHonorTimeStampsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadgetHonorTimeStampsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadgetHonorTimeStampsAttributeTypeOk(arg CreateScrapeConfigPayloadgetHonorTimeStampsAttributeType) (ret CreateScrapeConfigPayloadgetHonorTimeStampsRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +122,7 @@ func getCreateScrapeConfigPayloadgetHonorTimeStampsAttributeTypeOk(arg CreateScr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadgetHonorTimeStampsAttributeType(arg *CreateScrapeConfigPayloadgetHonorTimeStampsAttributeType, val CreateScrapeConfigPayloadgetHonorTimeStampsRetType) { *arg = &val } @@ -104,10 +132,16 @@ func setCreateScrapeConfigPayloadgetHonorTimeStampsAttributeType(arg *CreateScra */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetHttpSdConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetHttpSdConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetHttpSdConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetHttpSdConfigsAttributeTypeOk(arg CreateScrapeConfigPayloadGetHttpSdConfigsAttributeType) (ret CreateScrapeConfigPayloadGetHttpSdConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +149,7 @@ func getCreateScrapeConfigPayloadGetHttpSdConfigsAttributeTypeOk(arg CreateScrap return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetHttpSdConfigsAttributeType(arg *CreateScrapeConfigPayloadGetHttpSdConfigsAttributeType, val CreateScrapeConfigPayloadGetHttpSdConfigsRetType) { *arg = &val } @@ -124,8 +159,10 @@ func setCreateScrapeConfigPayloadGetHttpSdConfigsAttributeType(arg *CreateScrape */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetJobNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetJobNameAttributeTypeOk(arg CreateScrapeConfigPayloadGetJobNameAttributeType) (ret CreateScrapeConfigPayloadGetJobNameRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +170,15 @@ func getCreateScrapeConfigPayloadGetJobNameAttributeTypeOk(arg CreateScrapeConfi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetJobNameAttributeType(arg *CreateScrapeConfigPayloadGetJobNameAttributeType, val CreateScrapeConfigPayloadGetJobNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetJobNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetJobNameRetType = string /* @@ -145,8 +186,10 @@ type CreateScrapeConfigPayloadGetJobNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetMetricsPathAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetMetricsPathAttributeTypeOk(arg CreateScrapeConfigPayloadGetMetricsPathAttributeType) (ret CreateScrapeConfigPayloadGetMetricsPathRetType, ok bool) { if arg == nil { return ret, false @@ -154,11 +197,15 @@ func getCreateScrapeConfigPayloadGetMetricsPathAttributeTypeOk(arg CreateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetMetricsPathAttributeType(arg *CreateScrapeConfigPayloadGetMetricsPathAttributeType, val CreateScrapeConfigPayloadGetMetricsPathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetMetricsPathArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetMetricsPathRetType = string /* @@ -166,10 +213,16 @@ type CreateScrapeConfigPayloadGetMetricsPathRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetMetricsRelabelConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetMetricsRelabelConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeTypeOk(arg CreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType) (ret CreateScrapeConfigPayloadGetMetricsRelabelConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -177,6 +230,7 @@ func getCreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeTypeOk(arg Cre return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType(arg *CreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType, val CreateScrapeConfigPayloadGetMetricsRelabelConfigsRetType) { *arg = &val } @@ -186,10 +240,16 @@ func setCreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType(arg *Crea */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetOauth2AttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetOauth2ArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetOauth2RetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetOauth2AttributeTypeOk(arg CreateScrapeConfigPayloadGetOauth2AttributeType) (ret CreateScrapeConfigPayloadGetOauth2RetType, ok bool) { if arg == nil { return ret, false @@ -197,6 +257,7 @@ func getCreateScrapeConfigPayloadGetOauth2AttributeTypeOk(arg CreateScrapeConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetOauth2AttributeType(arg *CreateScrapeConfigPayloadGetOauth2AttributeType, val CreateScrapeConfigPayloadGetOauth2RetType) { *arg = &val } @@ -206,10 +267,16 @@ func setCreateScrapeConfigPayloadGetOauth2AttributeType(arg *CreateScrapeConfigP */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetParamsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetParamsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetParamsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetParamsAttributeTypeOk(arg CreateScrapeConfigPayloadGetParamsAttributeType) (ret CreateScrapeConfigPayloadGetParamsRetType, ok bool) { if arg == nil { return ret, false @@ -217,6 +284,7 @@ func getCreateScrapeConfigPayloadGetParamsAttributeTypeOk(arg CreateScrapeConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetParamsAttributeType(arg *CreateScrapeConfigPayloadGetParamsAttributeType, val CreateScrapeConfigPayloadGetParamsRetType) { *arg = &val } @@ -226,10 +294,16 @@ func setCreateScrapeConfigPayloadGetParamsAttributeType(arg *CreateScrapeConfigP */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetSampleLimitAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetSampleLimitArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetSampleLimitRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetSampleLimitAttributeTypeOk(arg CreateScrapeConfigPayloadGetSampleLimitAttributeType) (ret CreateScrapeConfigPayloadGetSampleLimitRetType, ok bool) { if arg == nil { return ret, false @@ -237,6 +311,7 @@ func getCreateScrapeConfigPayloadGetSampleLimitAttributeTypeOk(arg CreateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetSampleLimitAttributeType(arg *CreateScrapeConfigPayloadGetSampleLimitAttributeType, val CreateScrapeConfigPayloadGetSampleLimitRetType) { *arg = &val } @@ -249,20 +324,25 @@ func setCreateScrapeConfigPayloadGetSampleLimitAttributeType(arg *CreateScrapeCo // CreateScrapeConfigPayloadScheme Configures the protocol scheme used for requests. https or http // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadScheme string // List of Scheme const ( - CREATESCRAPECONFIGPAYLOADSCHEME_HTTP CreateScrapeConfigPayloadScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CREATESCRAPECONFIGPAYLOADSCHEME_HTTP CreateScrapeConfigPayloadScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CREATESCRAPECONFIGPAYLOADSCHEME_HTTPS CreateScrapeConfigPayloadScheme = "https" ) // All allowed values of CreateScrapeConfigPayload enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedCreateScrapeConfigPayloadSchemeEnumValues = []CreateScrapeConfigPayloadScheme{ "http", "https", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *CreateScrapeConfigPayloadScheme) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -290,6 +370,7 @@ func (v *CreateScrapeConfigPayloadScheme) UnmarshalJSON(src []byte) error { // NewCreateScrapeConfigPayloadSchemeFromValue returns a pointer to a valid CreateScrapeConfigPayloadScheme // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateScrapeConfigPayloadSchemeFromValue(v CreateScrapeConfigPayloadScheme) (*CreateScrapeConfigPayloadScheme, error) { ev := CreateScrapeConfigPayloadScheme(v) if ev.IsValid() { @@ -300,6 +381,7 @@ func NewCreateScrapeConfigPayloadSchemeFromValue(v CreateScrapeConfigPayloadSche } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v CreateScrapeConfigPayloadScheme) IsValid() bool { for _, existing := range AllowedCreateScrapeConfigPayloadSchemeEnumValues { if existing == v { @@ -310,50 +392,65 @@ func (v CreateScrapeConfigPayloadScheme) IsValid() bool { } // Ptr returns reference to SchemeScheme value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v CreateScrapeConfigPayloadScheme) Ptr() *CreateScrapeConfigPayloadScheme { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateScrapeConfigPayloadScheme struct { value *CreateScrapeConfigPayloadScheme isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateScrapeConfigPayloadScheme) Get() *CreateScrapeConfigPayloadScheme { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateScrapeConfigPayloadScheme) Set(val *CreateScrapeConfigPayloadScheme) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateScrapeConfigPayloadScheme) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateScrapeConfigPayloadScheme) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateScrapeConfigPayloadScheme(val *CreateScrapeConfigPayloadScheme) *NullableCreateScrapeConfigPayloadScheme { return &NullableCreateScrapeConfigPayloadScheme{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateScrapeConfigPayloadScheme) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateScrapeConfigPayloadScheme) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetSchemeAttributeType = *CreateScrapeConfigPayloadScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetSchemeArgType = CreateScrapeConfigPayloadScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetSchemeRetType = CreateScrapeConfigPayloadScheme +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetSchemeAttributeTypeOk(arg CreateScrapeConfigPayloadGetSchemeAttributeType) (ret CreateScrapeConfigPayloadGetSchemeRetType, ok bool) { if arg == nil { return ret, false @@ -361,6 +458,7 @@ func getCreateScrapeConfigPayloadGetSchemeAttributeTypeOk(arg CreateScrapeConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetSchemeAttributeType(arg *CreateScrapeConfigPayloadGetSchemeAttributeType, val CreateScrapeConfigPayloadGetSchemeRetType) { *arg = &val } @@ -370,8 +468,10 @@ func setCreateScrapeConfigPayloadGetSchemeAttributeType(arg *CreateScrapeConfigP */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetScrapeIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetScrapeIntervalAttributeTypeOk(arg CreateScrapeConfigPayloadGetScrapeIntervalAttributeType) (ret CreateScrapeConfigPayloadGetScrapeIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -379,11 +479,15 @@ func getCreateScrapeConfigPayloadGetScrapeIntervalAttributeTypeOk(arg CreateScra return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetScrapeIntervalAttributeType(arg *CreateScrapeConfigPayloadGetScrapeIntervalAttributeType, val CreateScrapeConfigPayloadGetScrapeIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetScrapeIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetScrapeIntervalRetType = string /* @@ -391,8 +495,10 @@ type CreateScrapeConfigPayloadGetScrapeIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetScrapeTimeoutAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetScrapeTimeoutAttributeTypeOk(arg CreateScrapeConfigPayloadGetScrapeTimeoutAttributeType) (ret CreateScrapeConfigPayloadGetScrapeTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -400,11 +506,15 @@ func getCreateScrapeConfigPayloadGetScrapeTimeoutAttributeTypeOk(arg CreateScrap return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetScrapeTimeoutAttributeType(arg *CreateScrapeConfigPayloadGetScrapeTimeoutAttributeType, val CreateScrapeConfigPayloadGetScrapeTimeoutRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetScrapeTimeoutArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetScrapeTimeoutRetType = string /* @@ -412,10 +522,16 @@ type CreateScrapeConfigPayloadGetScrapeTimeoutRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetStaticConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetStaticConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetStaticConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetStaticConfigsAttributeTypeOk(arg CreateScrapeConfigPayloadGetStaticConfigsAttributeType) (ret CreateScrapeConfigPayloadGetStaticConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -423,6 +539,7 @@ func getCreateScrapeConfigPayloadGetStaticConfigsAttributeTypeOk(arg CreateScrap return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetStaticConfigsAttributeType(arg *CreateScrapeConfigPayloadGetStaticConfigsAttributeType, val CreateScrapeConfigPayloadGetStaticConfigsRetType) { *arg = &val } @@ -432,10 +549,16 @@ func setCreateScrapeConfigPayloadGetStaticConfigsAttributeType(arg *CreateScrape */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetTlsConfigAttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetTlsConfigArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayloadGetTlsConfigRetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateScrapeConfigPayloadGetTlsConfigAttributeTypeOk(arg CreateScrapeConfigPayloadGetTlsConfigAttributeType) (ret CreateScrapeConfigPayloadGetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -443,11 +566,13 @@ func getCreateScrapeConfigPayloadGetTlsConfigAttributeTypeOk(arg CreateScrapeCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateScrapeConfigPayloadGetTlsConfigAttributeType(arg *CreateScrapeConfigPayloadGetTlsConfigAttributeType, val CreateScrapeConfigPayloadGetTlsConfigRetType) { *arg = &val } // CreateScrapeConfigPayload struct for CreateScrapeConfigPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateScrapeConfigPayload struct { BasicAuth CreateScrapeConfigPayloadGetBasicAuthAttributeType `json:"basicAuth,omitempty"` // Sets the 'Authorization' header on every scrape request with the configured bearer token. It is mutually exclusive with 'bearer_token_file'. `Additional Validators:` * needs to be a valid bearer token * if bearerToken is in the body no other authentication method should be in the body @@ -485,12 +610,14 @@ type CreateScrapeConfigPayload struct { TlsConfig CreateScrapeConfigPayloadGetTlsConfigAttributeType `json:"tlsConfig,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateScrapeConfigPayload CreateScrapeConfigPayload // NewCreateScrapeConfigPayload instantiates a new CreateScrapeConfigPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateScrapeConfigPayload(jobName CreateScrapeConfigPayloadGetJobNameArgType, scheme CreateScrapeConfigPayloadGetSchemeArgType, scrapeInterval CreateScrapeConfigPayloadGetScrapeIntervalArgType, scrapeTimeout CreateScrapeConfigPayloadGetScrapeTimeoutArgType, staticConfigs CreateScrapeConfigPayloadGetStaticConfigsArgType) *CreateScrapeConfigPayload { this := CreateScrapeConfigPayload{} setCreateScrapeConfigPayloadGetJobNameAttributeType(&this.JobName, jobName) @@ -504,6 +631,7 @@ func NewCreateScrapeConfigPayload(jobName CreateScrapeConfigPayloadGetJobNameArg // NewCreateScrapeConfigPayloadWithDefaults instantiates a new CreateScrapeConfigPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateScrapeConfigPayloadWithDefaults() *CreateScrapeConfigPayload { this := CreateScrapeConfigPayload{} var honorLabels bool = false @@ -516,6 +644,7 @@ func NewCreateScrapeConfigPayloadWithDefaults() *CreateScrapeConfigPayload { } // GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetBasicAuth() (res CreateScrapeConfigPayloadGetBasicAuthRetType) { res, _ = o.GetBasicAuthOk() return @@ -523,22 +652,26 @@ func (o *CreateScrapeConfigPayload) GetBasicAuth() (res CreateScrapeConfigPayloa // GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetBasicAuthOk() (ret CreateScrapeConfigPayloadGetBasicAuthRetType, ok bool) { return getCreateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(o.BasicAuth) } // HasBasicAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasBasicAuth() bool { _, ok := o.GetBasicAuthOk() return ok } // SetBasicAuth gets a reference to the given PartialUpdateScrapeConfigsRequestInnerBasicAuth and assigns it to the BasicAuth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetBasicAuth(v CreateScrapeConfigPayloadGetBasicAuthRetType) { setCreateScrapeConfigPayloadGetBasicAuthAttributeType(&o.BasicAuth, v) } // GetBearerToken returns the BearerToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetBearerToken() (res CreateScrapeConfigPayloadGetBearerTokenRetType) { res, _ = o.GetBearerTokenOk() return @@ -546,22 +679,26 @@ func (o *CreateScrapeConfigPayload) GetBearerToken() (res CreateScrapeConfigPayl // GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetBearerTokenOk() (ret CreateScrapeConfigPayloadGetBearerTokenRetType, ok bool) { return getCreateScrapeConfigPayloadGetBearerTokenAttributeTypeOk(o.BearerToken) } // HasBearerToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasBearerToken() bool { _, ok := o.GetBearerTokenOk() return ok } // SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetBearerToken(v CreateScrapeConfigPayloadGetBearerTokenRetType) { setCreateScrapeConfigPayloadGetBearerTokenAttributeType(&o.BearerToken, v) } // GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetHonorLabels() (res CreateScrapeConfigPayloadgetHonorLabelsRetType) { res, _ = o.GetHonorLabelsOk() return @@ -569,22 +706,26 @@ func (o *CreateScrapeConfigPayload) GetHonorLabels() (res CreateScrapeConfigPayl // GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetHonorLabelsOk() (ret CreateScrapeConfigPayloadgetHonorLabelsRetType, ok bool) { return getCreateScrapeConfigPayloadgetHonorLabelsAttributeTypeOk(o.HonorLabels) } // HasHonorLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasHonorLabels() bool { _, ok := o.GetHonorLabelsOk() return ok } // SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetHonorLabels(v CreateScrapeConfigPayloadgetHonorLabelsRetType) { setCreateScrapeConfigPayloadgetHonorLabelsAttributeType(&o.HonorLabels, v) } // GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetHonorTimeStamps() (res CreateScrapeConfigPayloadgetHonorTimeStampsRetType) { res, _ = o.GetHonorTimeStampsOk() return @@ -592,22 +733,26 @@ func (o *CreateScrapeConfigPayload) GetHonorTimeStamps() (res CreateScrapeConfig // GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetHonorTimeStampsOk() (ret CreateScrapeConfigPayloadgetHonorTimeStampsRetType, ok bool) { return getCreateScrapeConfigPayloadgetHonorTimeStampsAttributeTypeOk(o.HonorTimeStamps) } // HasHonorTimeStamps returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasHonorTimeStamps() bool { _, ok := o.GetHonorTimeStampsOk() return ok } // SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetHonorTimeStamps(v CreateScrapeConfigPayloadgetHonorTimeStampsRetType) { setCreateScrapeConfigPayloadgetHonorTimeStampsAttributeType(&o.HonorTimeStamps, v) } // GetHttpSdConfigs returns the HttpSdConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetHttpSdConfigs() (res CreateScrapeConfigPayloadGetHttpSdConfigsRetType) { res, _ = o.GetHttpSdConfigsOk() return @@ -615,22 +760,26 @@ func (o *CreateScrapeConfigPayload) GetHttpSdConfigs() (res CreateScrapeConfigPa // GetHttpSdConfigsOk returns a tuple with the HttpSdConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetHttpSdConfigsOk() (ret CreateScrapeConfigPayloadGetHttpSdConfigsRetType, ok bool) { return getCreateScrapeConfigPayloadGetHttpSdConfigsAttributeTypeOk(o.HttpSdConfigs) } // HasHttpSdConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasHttpSdConfigs() bool { _, ok := o.GetHttpSdConfigsOk() return ok } // SetHttpSdConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner and assigns it to the HttpSdConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetHttpSdConfigs(v CreateScrapeConfigPayloadGetHttpSdConfigsRetType) { setCreateScrapeConfigPayloadGetHttpSdConfigsAttributeType(&o.HttpSdConfigs, v) } // GetJobName returns the JobName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetJobName() (ret CreateScrapeConfigPayloadGetJobNameRetType) { ret, _ = o.GetJobNameOk() return ret @@ -638,16 +787,19 @@ func (o *CreateScrapeConfigPayload) GetJobName() (ret CreateScrapeConfigPayloadG // GetJobNameOk returns a tuple with the JobName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetJobNameOk() (ret CreateScrapeConfigPayloadGetJobNameRetType, ok bool) { return getCreateScrapeConfigPayloadGetJobNameAttributeTypeOk(o.JobName) } // SetJobName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetJobName(v CreateScrapeConfigPayloadGetJobNameRetType) { setCreateScrapeConfigPayloadGetJobNameAttributeType(&o.JobName, v) } // GetMetricsPath returns the MetricsPath field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetMetricsPath() (res CreateScrapeConfigPayloadGetMetricsPathRetType) { res, _ = o.GetMetricsPathOk() return @@ -655,22 +807,26 @@ func (o *CreateScrapeConfigPayload) GetMetricsPath() (res CreateScrapeConfigPayl // GetMetricsPathOk returns a tuple with the MetricsPath field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetMetricsPathOk() (ret CreateScrapeConfigPayloadGetMetricsPathRetType, ok bool) { return getCreateScrapeConfigPayloadGetMetricsPathAttributeTypeOk(o.MetricsPath) } // HasMetricsPath returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasMetricsPath() bool { _, ok := o.GetMetricsPathOk() return ok } // SetMetricsPath gets a reference to the given string and assigns it to the MetricsPath field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetMetricsPath(v CreateScrapeConfigPayloadGetMetricsPathRetType) { setCreateScrapeConfigPayloadGetMetricsPathAttributeType(&o.MetricsPath, v) } // GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetMetricsRelabelConfigs() (res CreateScrapeConfigPayloadGetMetricsRelabelConfigsRetType) { res, _ = o.GetMetricsRelabelConfigsOk() return @@ -678,22 +834,26 @@ func (o *CreateScrapeConfigPayload) GetMetricsRelabelConfigs() (res CreateScrape // GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetMetricsRelabelConfigsOk() (ret CreateScrapeConfigPayloadGetMetricsRelabelConfigsRetType, ok bool) { return getCreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeTypeOk(o.MetricsRelabelConfigs) } // HasMetricsRelabelConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasMetricsRelabelConfigs() bool { _, ok := o.GetMetricsRelabelConfigsOk() return ok } // SetMetricsRelabelConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner and assigns it to the MetricsRelabelConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetMetricsRelabelConfigs(v CreateScrapeConfigPayloadGetMetricsRelabelConfigsRetType) { setCreateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType(&o.MetricsRelabelConfigs, v) } // GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetOauth2() (res CreateScrapeConfigPayloadGetOauth2RetType) { res, _ = o.GetOauth2Ok() return @@ -701,22 +861,26 @@ func (o *CreateScrapeConfigPayload) GetOauth2() (res CreateScrapeConfigPayloadGe // GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetOauth2Ok() (ret CreateScrapeConfigPayloadGetOauth2RetType, ok bool) { return getCreateScrapeConfigPayloadGetOauth2AttributeTypeOk(o.Oauth2) } // HasOauth2 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasOauth2() bool { _, ok := o.GetOauth2Ok() return ok } // SetOauth2 gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 and assigns it to the Oauth2 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetOauth2(v CreateScrapeConfigPayloadGetOauth2RetType) { setCreateScrapeConfigPayloadGetOauth2AttributeType(&o.Oauth2, v) } // GetParams returns the Params field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetParams() (res CreateScrapeConfigPayloadGetParamsRetType) { res, _ = o.GetParamsOk() return @@ -724,22 +888,26 @@ func (o *CreateScrapeConfigPayload) GetParams() (res CreateScrapeConfigPayloadGe // GetParamsOk returns a tuple with the Params field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetParamsOk() (ret CreateScrapeConfigPayloadGetParamsRetType, ok bool) { return getCreateScrapeConfigPayloadGetParamsAttributeTypeOk(o.Params) } // HasParams returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasParams() bool { _, ok := o.GetParamsOk() return ok } // SetParams gets a reference to the given map[string]interface{} and assigns it to the Params field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetParams(v CreateScrapeConfigPayloadGetParamsRetType) { setCreateScrapeConfigPayloadGetParamsAttributeType(&o.Params, v) } // GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetSampleLimit() (res CreateScrapeConfigPayloadGetSampleLimitRetType) { res, _ = o.GetSampleLimitOk() return @@ -747,22 +915,26 @@ func (o *CreateScrapeConfigPayload) GetSampleLimit() (res CreateScrapeConfigPayl // GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetSampleLimitOk() (ret CreateScrapeConfigPayloadGetSampleLimitRetType, ok bool) { return getCreateScrapeConfigPayloadGetSampleLimitAttributeTypeOk(o.SampleLimit) } // HasSampleLimit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasSampleLimit() bool { _, ok := o.GetSampleLimitOk() return ok } // SetSampleLimit gets a reference to the given float64 and assigns it to the SampleLimit field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetSampleLimit(v CreateScrapeConfigPayloadGetSampleLimitRetType) { setCreateScrapeConfigPayloadGetSampleLimitAttributeType(&o.SampleLimit, v) } // GetScheme returns the Scheme field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetScheme() (ret CreateScrapeConfigPayloadGetSchemeRetType) { ret, _ = o.GetSchemeOk() return ret @@ -770,16 +942,19 @@ func (o *CreateScrapeConfigPayload) GetScheme() (ret CreateScrapeConfigPayloadGe // GetSchemeOk returns a tuple with the Scheme field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetSchemeOk() (ret CreateScrapeConfigPayloadGetSchemeRetType, ok bool) { return getCreateScrapeConfigPayloadGetSchemeAttributeTypeOk(o.Scheme) } // SetScheme sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetScheme(v CreateScrapeConfigPayloadGetSchemeRetType) { setCreateScrapeConfigPayloadGetSchemeAttributeType(&o.Scheme, v) } // GetScrapeInterval returns the ScrapeInterval field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetScrapeInterval() (ret CreateScrapeConfigPayloadGetScrapeIntervalRetType) { ret, _ = o.GetScrapeIntervalOk() return ret @@ -787,16 +962,19 @@ func (o *CreateScrapeConfigPayload) GetScrapeInterval() (ret CreateScrapeConfigP // GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetScrapeIntervalOk() (ret CreateScrapeConfigPayloadGetScrapeIntervalRetType, ok bool) { return getCreateScrapeConfigPayloadGetScrapeIntervalAttributeTypeOk(o.ScrapeInterval) } // SetScrapeInterval sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetScrapeInterval(v CreateScrapeConfigPayloadGetScrapeIntervalRetType) { setCreateScrapeConfigPayloadGetScrapeIntervalAttributeType(&o.ScrapeInterval, v) } // GetScrapeTimeout returns the ScrapeTimeout field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetScrapeTimeout() (ret CreateScrapeConfigPayloadGetScrapeTimeoutRetType) { ret, _ = o.GetScrapeTimeoutOk() return ret @@ -804,16 +982,19 @@ func (o *CreateScrapeConfigPayload) GetScrapeTimeout() (ret CreateScrapeConfigPa // GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetScrapeTimeoutOk() (ret CreateScrapeConfigPayloadGetScrapeTimeoutRetType, ok bool) { return getCreateScrapeConfigPayloadGetScrapeTimeoutAttributeTypeOk(o.ScrapeTimeout) } // SetScrapeTimeout sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetScrapeTimeout(v CreateScrapeConfigPayloadGetScrapeTimeoutRetType) { setCreateScrapeConfigPayloadGetScrapeTimeoutAttributeType(&o.ScrapeTimeout, v) } // GetStaticConfigs returns the StaticConfigs field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetStaticConfigs() (ret CreateScrapeConfigPayloadGetStaticConfigsRetType) { ret, _ = o.GetStaticConfigsOk() return ret @@ -821,16 +1002,19 @@ func (o *CreateScrapeConfigPayload) GetStaticConfigs() (ret CreateScrapeConfigPa // GetStaticConfigsOk returns a tuple with the StaticConfigs field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetStaticConfigsOk() (ret CreateScrapeConfigPayloadGetStaticConfigsRetType, ok bool) { return getCreateScrapeConfigPayloadGetStaticConfigsAttributeTypeOk(o.StaticConfigs) } // SetStaticConfigs sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetStaticConfigs(v CreateScrapeConfigPayloadGetStaticConfigsRetType) { setCreateScrapeConfigPayloadGetStaticConfigsAttributeType(&o.StaticConfigs, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetTlsConfig() (res CreateScrapeConfigPayloadGetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -838,21 +1022,25 @@ func (o *CreateScrapeConfigPayload) GetTlsConfig() (res CreateScrapeConfigPayloa // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) GetTlsConfigOk() (ret CreateScrapeConfigPayloadGetTlsConfigRetType, ok bool) { return getCreateScrapeConfigPayloadGetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateScrapeConfigPayload) SetTlsConfig(v CreateScrapeConfigPayloadGetTlsConfigRetType) { setCreateScrapeConfigPayloadGetTlsConfigAttributeType(&o.TlsConfig, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateScrapeConfigPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(o.BasicAuth); ok { @@ -906,37 +1094,45 @@ func (o CreateScrapeConfigPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateScrapeConfigPayload struct { value *CreateScrapeConfigPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateScrapeConfigPayload) Get() *CreateScrapeConfigPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateScrapeConfigPayload) Set(val *CreateScrapeConfigPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateScrapeConfigPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateScrapeConfigPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateScrapeConfigPayload(val *CreateScrapeConfigPayload) *NullableCreateScrapeConfigPayload { return &NullableCreateScrapeConfigPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateScrapeConfigPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateScrapeConfigPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_credentials.go b/services/observability/model_credentials.go index 94fe14615..61ae0c2f8 100644 --- a/services/observability/model_credentials.go +++ b/services/observability/model_credentials.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Credentials{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetDescriptionAttributeTypeOk(arg CredentialsGetDescriptionAttributeType) (ret CredentialsGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCredentialsGetDescriptionAttributeTypeOk(arg CredentialsGetDescriptionAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetDescriptionAttributeType(arg *CredentialsGetDescriptionAttributeType, val CredentialsGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type CredentialsGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetPasswordAttributeTypeOk(arg CredentialsGetPasswordAttributeType) (ret CredentialsGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCredentialsGetPasswordAttributeTypeOk(arg CredentialsGetPasswordAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetPasswordAttributeType(arg *CredentialsGetPasswordAttributeType, val CredentialsGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPasswordRetType = string /* @@ -64,8 +77,10 @@ type CredentialsGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetUsernameAttributeTypeOk(arg CredentialsGetUsernameAttributeType) (ret CredentialsGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getCredentialsGetUsernameAttributeTypeOk(arg CredentialsGetUsernameAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetUsernameAttributeType(arg *CredentialsGetUsernameAttributeType, val CredentialsGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUsernameRetType = string // Credentials struct for Credentials +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Credentials struct { Description CredentialsGetDescriptionAttributeType `json:"description,omitempty"` // REQUIRED @@ -89,12 +109,14 @@ type Credentials struct { Username CredentialsGetUsernameAttributeType `json:"username" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Credentials Credentials // NewCredentials instantiates a new Credentials object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentials(password CredentialsGetPasswordArgType, username CredentialsGetUsernameArgType) *Credentials { this := Credentials{} setCredentialsGetPasswordAttributeType(&this.Password, password) @@ -105,12 +127,14 @@ func NewCredentials(password CredentialsGetPasswordArgType, username Credentials // NewCredentialsWithDefaults instantiates a new Credentials object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsWithDefaults() *Credentials { this := Credentials{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetDescription() (res CredentialsGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -118,22 +142,26 @@ func (o *Credentials) GetDescription() (res CredentialsGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetDescriptionOk() (ret CredentialsGetDescriptionRetType, ok bool) { return getCredentialsGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetDescription(v CredentialsGetDescriptionRetType) { setCredentialsGetDescriptionAttributeType(&o.Description, v) } // GetPassword returns the Password field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetPassword() (ret CredentialsGetPasswordRetType) { ret, _ = o.GetPasswordOk() return ret @@ -141,16 +169,19 @@ func (o *Credentials) GetPassword() (ret CredentialsGetPasswordRetType) { // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetPasswordOk() (ret CredentialsGetPasswordRetType, ok bool) { return getCredentialsGetPasswordAttributeTypeOk(o.Password) } // SetPassword sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetPassword(v CredentialsGetPasswordRetType) { setCredentialsGetPasswordAttributeType(&o.Password, v) } // GetUsername returns the Username field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetUsername() (ret CredentialsGetUsernameRetType) { ret, _ = o.GetUsernameOk() return ret @@ -158,15 +189,18 @@ func (o *Credentials) GetUsername() (ret CredentialsGetUsernameRetType) { // GetUsernameOk returns a tuple with the Username field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetUsernameOk() (ret CredentialsGetUsernameRetType, ok bool) { return getCredentialsGetUsernameAttributeTypeOk(o.Username) } // SetUsername sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetUsername(v CredentialsGetUsernameRetType) { setCredentialsGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Credentials) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCredentialsGetDescriptionAttributeTypeOk(o.Description); ok { @@ -181,37 +215,45 @@ func (o Credentials) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCredentials struct { value *Credentials isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentials) Get() *Credentials { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentials) Set(val *Credentials) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentials) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentials) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCredentials(val *Credentials) *NullableCredentials { return &NullableCredentials{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentials) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentials) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_credentials_remote_write_config.go b/services/observability/model_credentials_remote_write_config.go index 16d214ef5..7310a5b87 100644 --- a/services/observability/model_credentials_remote_write_config.go +++ b/services/observability/model_credentials_remote_write_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CredentialsRemoteWriteConfig{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetCredentialsMaxLimitArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetCredentialsMaxLimitRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeTypeOk(arg CredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType) (ret CredentialsRemoteWriteConfigGetCredentialsMaxLimitRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeTypeOk(arg Cr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType(arg *CredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType, val CredentialsRemoteWriteConfigGetCredentialsMaxLimitRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType(arg *Cre */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetMaxLimitAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetMaxLimitArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetMaxLimitRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsRemoteWriteConfigGetMaxLimitAttributeTypeOk(arg CredentialsRemoteWriteConfigGetMaxLimitAttributeType) (ret CredentialsRemoteWriteConfigGetMaxLimitRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getCredentialsRemoteWriteConfigGetMaxLimitAttributeTypeOk(arg CredentialsRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsRemoteWriteConfigGetMaxLimitAttributeType(arg *CredentialsRemoteWriteConfigGetMaxLimitAttributeType, val CredentialsRemoteWriteConfigGetMaxLimitRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setCredentialsRemoteWriteConfigGetMaxLimitAttributeType(arg *CredentialsRem */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsRemoteWriteConfigGetMessageAttributeTypeOk(arg CredentialsRemoteWriteConfigGetMessageAttributeType) (ret CredentialsRemoteWriteConfigGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -71,14 +88,19 @@ func getCredentialsRemoteWriteConfigGetMessageAttributeTypeOk(arg CredentialsRem return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsRemoteWriteConfigGetMessageAttributeType(arg *CredentialsRemoteWriteConfigGetMessageAttributeType, val CredentialsRemoteWriteConfigGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfigGetMessageRetType = string // CredentialsRemoteWriteConfig struct for CredentialsRemoteWriteConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteConfig struct { // REQUIRED CredentialsMaxLimit CredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType `json:"credentialsMaxLimit" required:"true"` @@ -88,12 +110,14 @@ type CredentialsRemoteWriteConfig struct { Message CredentialsRemoteWriteConfigGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CredentialsRemoteWriteConfig CredentialsRemoteWriteConfig // NewCredentialsRemoteWriteConfig instantiates a new CredentialsRemoteWriteConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsRemoteWriteConfig(credentialsMaxLimit CredentialsRemoteWriteConfigGetCredentialsMaxLimitArgType, maxLimit CredentialsRemoteWriteConfigGetMaxLimitArgType, message CredentialsRemoteWriteConfigGetMessageArgType) *CredentialsRemoteWriteConfig { this := CredentialsRemoteWriteConfig{} setCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType(&this.CredentialsMaxLimit, credentialsMaxLimit) @@ -105,12 +129,14 @@ func NewCredentialsRemoteWriteConfig(credentialsMaxLimit CredentialsRemoteWriteC // NewCredentialsRemoteWriteConfigWithDefaults instantiates a new CredentialsRemoteWriteConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsRemoteWriteConfigWithDefaults() *CredentialsRemoteWriteConfig { this := CredentialsRemoteWriteConfig{} return &this } // GetCredentialsMaxLimit returns the CredentialsMaxLimit field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) GetCredentialsMaxLimit() (ret CredentialsRemoteWriteConfigGetCredentialsMaxLimitRetType) { ret, _ = o.GetCredentialsMaxLimitOk() return ret @@ -118,16 +144,19 @@ func (o *CredentialsRemoteWriteConfig) GetCredentialsMaxLimit() (ret Credentials // GetCredentialsMaxLimitOk returns a tuple with the CredentialsMaxLimit field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) GetCredentialsMaxLimitOk() (ret CredentialsRemoteWriteConfigGetCredentialsMaxLimitRetType, ok bool) { return getCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeTypeOk(o.CredentialsMaxLimit) } // SetCredentialsMaxLimit sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) SetCredentialsMaxLimit(v CredentialsRemoteWriteConfigGetCredentialsMaxLimitRetType) { setCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeType(&o.CredentialsMaxLimit, v) } // GetMaxLimit returns the MaxLimit field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) GetMaxLimit() (ret CredentialsRemoteWriteConfigGetMaxLimitRetType) { ret, _ = o.GetMaxLimitOk() return ret @@ -135,16 +164,19 @@ func (o *CredentialsRemoteWriteConfig) GetMaxLimit() (ret CredentialsRemoteWrite // GetMaxLimitOk returns a tuple with the MaxLimit field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) GetMaxLimitOk() (ret CredentialsRemoteWriteConfigGetMaxLimitRetType, ok bool) { return getCredentialsRemoteWriteConfigGetMaxLimitAttributeTypeOk(o.MaxLimit) } // SetMaxLimit sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) SetMaxLimit(v CredentialsRemoteWriteConfigGetMaxLimitRetType) { setCredentialsRemoteWriteConfigGetMaxLimitAttributeType(&o.MaxLimit, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) GetMessage() (ret CredentialsRemoteWriteConfigGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -152,15 +184,18 @@ func (o *CredentialsRemoteWriteConfig) GetMessage() (ret CredentialsRemoteWriteC // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) GetMessageOk() (ret CredentialsRemoteWriteConfigGetMessageRetType, ok bool) { return getCredentialsRemoteWriteConfigGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteConfig) SetMessage(v CredentialsRemoteWriteConfigGetMessageRetType) { setCredentialsRemoteWriteConfigGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CredentialsRemoteWriteConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCredentialsRemoteWriteConfigGetCredentialsMaxLimitAttributeTypeOk(o.CredentialsMaxLimit); ok { @@ -175,37 +210,45 @@ func (o CredentialsRemoteWriteConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCredentialsRemoteWriteConfig struct { value *CredentialsRemoteWriteConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsRemoteWriteConfig) Get() *CredentialsRemoteWriteConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsRemoteWriteConfig) Set(val *CredentialsRemoteWriteConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsRemoteWriteConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsRemoteWriteConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCredentialsRemoteWriteConfig(val *CredentialsRemoteWriteConfig) *NullableCredentialsRemoteWriteConfig { return &NullableCredentialsRemoteWriteConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsRemoteWriteConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsRemoteWriteConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_credentials_remote_write_delete_response.go b/services/observability/model_credentials_remote_write_delete_response.go index 819bb43bc..20af796fc 100644 --- a/services/observability/model_credentials_remote_write_delete_response.go +++ b/services/observability/model_credentials_remote_write_delete_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CredentialsRemoteWriteDeleteResponse{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponseGetMaxLimitArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponseGetMaxLimitRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeTypeOk(arg CredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType) (ret CredentialsRemoteWriteDeleteResponseGetMaxLimitRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeTypeOk(arg Crede return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType(arg *CredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType, val CredentialsRemoteWriteDeleteResponseGetMaxLimitRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType(arg *Creden */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsRemoteWriteDeleteResponseGetMessageAttributeTypeOk(arg CredentialsRemoteWriteDeleteResponseGetMessageAttributeType) (ret CredentialsRemoteWriteDeleteResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getCredentialsRemoteWriteDeleteResponseGetMessageAttributeTypeOk(arg Creden return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsRemoteWriteDeleteResponseGetMessageAttributeType(arg *CredentialsRemoteWriteDeleteResponseGetMessageAttributeType, val CredentialsRemoteWriteDeleteResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponseGetMessageRetType = string // CredentialsRemoteWriteDeleteResponse struct for CredentialsRemoteWriteDeleteResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsRemoteWriteDeleteResponse struct { // REQUIRED MaxLimit CredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType `json:"maxLimit" required:"true"` @@ -66,12 +81,14 @@ type CredentialsRemoteWriteDeleteResponse struct { Message CredentialsRemoteWriteDeleteResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CredentialsRemoteWriteDeleteResponse CredentialsRemoteWriteDeleteResponse // NewCredentialsRemoteWriteDeleteResponse instantiates a new CredentialsRemoteWriteDeleteResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsRemoteWriteDeleteResponse(maxLimit CredentialsRemoteWriteDeleteResponseGetMaxLimitArgType, message CredentialsRemoteWriteDeleteResponseGetMessageArgType) *CredentialsRemoteWriteDeleteResponse { this := CredentialsRemoteWriteDeleteResponse{} setCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType(&this.MaxLimit, maxLimit) @@ -82,12 +99,14 @@ func NewCredentialsRemoteWriteDeleteResponse(maxLimit CredentialsRemoteWriteDele // NewCredentialsRemoteWriteDeleteResponseWithDefaults instantiates a new CredentialsRemoteWriteDeleteResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsRemoteWriteDeleteResponseWithDefaults() *CredentialsRemoteWriteDeleteResponse { this := CredentialsRemoteWriteDeleteResponse{} return &this } // GetMaxLimit returns the MaxLimit field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteDeleteResponse) GetMaxLimit() (ret CredentialsRemoteWriteDeleteResponseGetMaxLimitRetType) { ret, _ = o.GetMaxLimitOk() return ret @@ -95,16 +114,19 @@ func (o *CredentialsRemoteWriteDeleteResponse) GetMaxLimit() (ret CredentialsRem // GetMaxLimitOk returns a tuple with the MaxLimit field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteDeleteResponse) GetMaxLimitOk() (ret CredentialsRemoteWriteDeleteResponseGetMaxLimitRetType, ok bool) { return getCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeTypeOk(o.MaxLimit) } // SetMaxLimit sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteDeleteResponse) SetMaxLimit(v CredentialsRemoteWriteDeleteResponseGetMaxLimitRetType) { setCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeType(&o.MaxLimit, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteDeleteResponse) GetMessage() (ret CredentialsRemoteWriteDeleteResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *CredentialsRemoteWriteDeleteResponse) GetMessage() (ret CredentialsRemo // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteDeleteResponse) GetMessageOk() (ret CredentialsRemoteWriteDeleteResponseGetMessageRetType, ok bool) { return getCredentialsRemoteWriteDeleteResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsRemoteWriteDeleteResponse) SetMessage(v CredentialsRemoteWriteDeleteResponseGetMessageRetType) { setCredentialsRemoteWriteDeleteResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CredentialsRemoteWriteDeleteResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCredentialsRemoteWriteDeleteResponseGetMaxLimitAttributeTypeOk(o.MaxLimit); ok { @@ -132,37 +157,45 @@ func (o CredentialsRemoteWriteDeleteResponse) ToMap() (map[string]interface{}, e return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCredentialsRemoteWriteDeleteResponse struct { value *CredentialsRemoteWriteDeleteResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsRemoteWriteDeleteResponse) Get() *CredentialsRemoteWriteDeleteResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsRemoteWriteDeleteResponse) Set(val *CredentialsRemoteWriteDeleteResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsRemoteWriteDeleteResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsRemoteWriteDeleteResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCredentialsRemoteWriteDeleteResponse(val *CredentialsRemoteWriteDeleteResponse) *NullableCredentialsRemoteWriteDeleteResponse { return &NullableCredentialsRemoteWriteDeleteResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsRemoteWriteDeleteResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsRemoteWriteDeleteResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_delete_scrape_config_response.go b/services/observability/model_delete_scrape_config_response.go index 8eb83c23b..2a940361c 100644 --- a/services/observability/model_delete_scrape_config_response.go +++ b/services/observability/model_delete_scrape_config_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &DeleteScrapeConfigResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponseGetDataAttributeType = *[]Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponseGetDataArgType = []Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponseGetDataRetType = []Job +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getDeleteScrapeConfigResponseGetDataAttributeTypeOk(arg DeleteScrapeConfigResponseGetDataAttributeType) (ret DeleteScrapeConfigResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getDeleteScrapeConfigResponseGetDataAttributeTypeOk(arg DeleteScrapeConfigR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setDeleteScrapeConfigResponseGetDataAttributeType(arg *DeleteScrapeConfigResponseGetDataAttributeType, val DeleteScrapeConfigResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setDeleteScrapeConfigResponseGetDataAttributeType(arg *DeleteScrapeConfigRe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getDeleteScrapeConfigResponseGetMessageAttributeTypeOk(arg DeleteScrapeConfigResponseGetMessageAttributeType) (ret DeleteScrapeConfigResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getDeleteScrapeConfigResponseGetMessageAttributeTypeOk(arg DeleteScrapeConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setDeleteScrapeConfigResponseGetMessageAttributeType(arg *DeleteScrapeConfigResponseGetMessageAttributeType, val DeleteScrapeConfigResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponseGetMessageRetType = string // DeleteScrapeConfigResponse struct for DeleteScrapeConfigResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteScrapeConfigResponse struct { // REQUIRED Data DeleteScrapeConfigResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type DeleteScrapeConfigResponse struct { Message DeleteScrapeConfigResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _DeleteScrapeConfigResponse DeleteScrapeConfigResponse // NewDeleteScrapeConfigResponse instantiates a new DeleteScrapeConfigResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewDeleteScrapeConfigResponse(data DeleteScrapeConfigResponseGetDataArgType, message DeleteScrapeConfigResponseGetMessageArgType) *DeleteScrapeConfigResponse { this := DeleteScrapeConfigResponse{} setDeleteScrapeConfigResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewDeleteScrapeConfigResponse(data DeleteScrapeConfigResponseGetDataArgType // NewDeleteScrapeConfigResponseWithDefaults instantiates a new DeleteScrapeConfigResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewDeleteScrapeConfigResponseWithDefaults() *DeleteScrapeConfigResponse { this := DeleteScrapeConfigResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DeleteScrapeConfigResponse) GetData() (ret DeleteScrapeConfigResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *DeleteScrapeConfigResponse) GetData() (ret DeleteScrapeConfigResponseGe // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DeleteScrapeConfigResponse) GetDataOk() (ret DeleteScrapeConfigResponseGetDataRetType, ok bool) { return getDeleteScrapeConfigResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DeleteScrapeConfigResponse) SetData(v DeleteScrapeConfigResponseGetDataRetType) { setDeleteScrapeConfigResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DeleteScrapeConfigResponse) GetMessage() (ret DeleteScrapeConfigResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *DeleteScrapeConfigResponse) GetMessage() (ret DeleteScrapeConfigRespons // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DeleteScrapeConfigResponse) GetMessageOk() (ret DeleteScrapeConfigResponseGetMessageRetType, ok bool) { return getDeleteScrapeConfigResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DeleteScrapeConfigResponse) SetMessage(v DeleteScrapeConfigResponseGetMessageRetType) { setDeleteScrapeConfigResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o DeleteScrapeConfigResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getDeleteScrapeConfigResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o DeleteScrapeConfigResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableDeleteScrapeConfigResponse struct { value *DeleteScrapeConfigResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDeleteScrapeConfigResponse) Get() *DeleteScrapeConfigResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDeleteScrapeConfigResponse) Set(val *DeleteScrapeConfigResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDeleteScrapeConfigResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDeleteScrapeConfigResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableDeleteScrapeConfigResponse(val *DeleteScrapeConfigResponse) *NullableDeleteScrapeConfigResponse { return &NullableDeleteScrapeConfigResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDeleteScrapeConfigResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDeleteScrapeConfigResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_elasticsearch_check_child_response.go b/services/observability/model_elasticsearch_check_child_response.go index f75ca984b..346d37958 100644 --- a/services/observability/model_elasticsearch_check_child_response.go +++ b/services/observability/model_elasticsearch_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &ElasticsearchCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckChildResponseGetIdAttributeTypeOk(arg ElasticsearchCheckChildResponseGetIdAttributeType) (ret ElasticsearchCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getElasticsearchCheckChildResponseGetIdAttributeTypeOk(arg ElasticsearchChe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckChildResponseGetIdAttributeType(arg *ElasticsearchCheckChildResponseGetIdAttributeType, val ElasticsearchCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type ElasticsearchCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckChildResponseGetPasswordAttributeTypeOk(arg ElasticsearchCheckChildResponseGetPasswordAttributeType) (ret ElasticsearchCheckChildResponseGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getElasticsearchCheckChildResponseGetPasswordAttributeTypeOk(arg Elasticsea return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckChildResponseGetPasswordAttributeType(arg *ElasticsearchCheckChildResponseGetPasswordAttributeType, val ElasticsearchCheckChildResponseGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetPasswordRetType = string /* @@ -64,8 +77,10 @@ type ElasticsearchCheckChildResponseGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckChildResponseGetServerAttributeTypeOk(arg ElasticsearchCheckChildResponseGetServerAttributeType) (ret ElasticsearchCheckChildResponseGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getElasticsearchCheckChildResponseGetServerAttributeTypeOk(arg Elasticsearc return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckChildResponseGetServerAttributeType(arg *ElasticsearchCheckChildResponseGetServerAttributeType, val ElasticsearchCheckChildResponseGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetServerRetType = string /* @@ -85,8 +104,10 @@ type ElasticsearchCheckChildResponseGetServerRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckChildResponseGetUsernameAttributeTypeOk(arg ElasticsearchCheckChildResponseGetUsernameAttributeType) (ret ElasticsearchCheckChildResponseGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -94,14 +115,19 @@ func getElasticsearchCheckChildResponseGetUsernameAttributeTypeOk(arg Elasticsea return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckChildResponseGetUsernameAttributeType(arg *ElasticsearchCheckChildResponseGetUsernameAttributeType, val ElasticsearchCheckChildResponseGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponseGetUsernameRetType = string // ElasticsearchCheckChildResponse struct for ElasticsearchCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckChildResponse struct { // REQUIRED Id ElasticsearchCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -111,12 +137,14 @@ type ElasticsearchCheckChildResponse struct { Username ElasticsearchCheckChildResponseGetUsernameAttributeType `json:"username,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ElasticsearchCheckChildResponse ElasticsearchCheckChildResponse // NewElasticsearchCheckChildResponse instantiates a new ElasticsearchCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewElasticsearchCheckChildResponse(id ElasticsearchCheckChildResponseGetIdArgType, server ElasticsearchCheckChildResponseGetServerArgType) *ElasticsearchCheckChildResponse { this := ElasticsearchCheckChildResponse{} setElasticsearchCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -127,12 +155,14 @@ func NewElasticsearchCheckChildResponse(id ElasticsearchCheckChildResponseGetIdA // NewElasticsearchCheckChildResponseWithDefaults instantiates a new ElasticsearchCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewElasticsearchCheckChildResponseWithDefaults() *ElasticsearchCheckChildResponse { this := ElasticsearchCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetId() (ret ElasticsearchCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -140,16 +170,19 @@ func (o *ElasticsearchCheckChildResponse) GetId() (ret ElasticsearchCheckChildRe // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetIdOk() (ret ElasticsearchCheckChildResponseGetIdRetType, ok bool) { return getElasticsearchCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) SetId(v ElasticsearchCheckChildResponseGetIdRetType) { setElasticsearchCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetPassword() (res ElasticsearchCheckChildResponseGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -157,22 +190,26 @@ func (o *ElasticsearchCheckChildResponse) GetPassword() (res ElasticsearchCheckC // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetPasswordOk() (ret ElasticsearchCheckChildResponseGetPasswordRetType, ok bool) { return getElasticsearchCheckChildResponseGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) SetPassword(v ElasticsearchCheckChildResponseGetPasswordRetType) { setElasticsearchCheckChildResponseGetPasswordAttributeType(&o.Password, v) } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetServer() (ret ElasticsearchCheckChildResponseGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -180,16 +217,19 @@ func (o *ElasticsearchCheckChildResponse) GetServer() (ret ElasticsearchCheckChi // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetServerOk() (ret ElasticsearchCheckChildResponseGetServerRetType, ok bool) { return getElasticsearchCheckChildResponseGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) SetServer(v ElasticsearchCheckChildResponseGetServerRetType) { setElasticsearchCheckChildResponseGetServerAttributeType(&o.Server, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetUsername() (res ElasticsearchCheckChildResponseGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -197,21 +237,25 @@ func (o *ElasticsearchCheckChildResponse) GetUsername() (res ElasticsearchCheckC // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) GetUsernameOk() (ret ElasticsearchCheckChildResponseGetUsernameRetType, ok bool) { return getElasticsearchCheckChildResponseGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckChildResponse) SetUsername(v ElasticsearchCheckChildResponseGetUsernameRetType) { setElasticsearchCheckChildResponseGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ElasticsearchCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getElasticsearchCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -229,37 +273,45 @@ func (o ElasticsearchCheckChildResponse) ToMap() (map[string]interface{}, error) return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableElasticsearchCheckChildResponse struct { value *ElasticsearchCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableElasticsearchCheckChildResponse) Get() *ElasticsearchCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableElasticsearchCheckChildResponse) Set(val *ElasticsearchCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableElasticsearchCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableElasticsearchCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableElasticsearchCheckChildResponse(val *ElasticsearchCheckChildResponse) *NullableElasticsearchCheckChildResponse { return &NullableElasticsearchCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableElasticsearchCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableElasticsearchCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_elasticsearch_check_response.go b/services/observability/model_elasticsearch_check_response.go index 0de594d8b..a9ee322c3 100644 --- a/services/observability/model_elasticsearch_check_response.go +++ b/services/observability/model_elasticsearch_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ElasticsearchCheckResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetElasticsearchCheckAttributeType = *ElasticsearchCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetElasticsearchCheckArgType = ElasticsearchCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetElasticsearchCheckRetType = ElasticsearchCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckResponseGetElasticsearchCheckAttributeTypeOk(arg ElasticsearchCheckResponseGetElasticsearchCheckAttributeType) (ret ElasticsearchCheckResponseGetElasticsearchCheckRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getElasticsearchCheckResponseGetElasticsearchCheckAttributeTypeOk(arg Elast return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckResponseGetElasticsearchCheckAttributeType(arg *ElasticsearchCheckResponseGetElasticsearchCheckAttributeType, val ElasticsearchCheckResponseGetElasticsearchCheckRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setElasticsearchCheckResponseGetElasticsearchCheckAttributeType(arg *Elasti */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetElasticsearchChecksAttributeType = *[]ElasticsearchCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetElasticsearchChecksArgType = []ElasticsearchCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetElasticsearchChecksRetType = []ElasticsearchCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckResponseGetElasticsearchChecksAttributeTypeOk(arg ElasticsearchCheckResponseGetElasticsearchChecksAttributeType) (ret ElasticsearchCheckResponseGetElasticsearchChecksRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getElasticsearchCheckResponseGetElasticsearchChecksAttributeTypeOk(arg Elas return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckResponseGetElasticsearchChecksAttributeType(arg *ElasticsearchCheckResponseGetElasticsearchChecksAttributeType, val ElasticsearchCheckResponseGetElasticsearchChecksRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setElasticsearchCheckResponseGetElasticsearchChecksAttributeType(arg *Elast */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getElasticsearchCheckResponseGetMessageAttributeTypeOk(arg ElasticsearchCheckResponseGetMessageAttributeType) (ret ElasticsearchCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -71,14 +88,19 @@ func getElasticsearchCheckResponseGetMessageAttributeTypeOk(arg ElasticsearchChe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setElasticsearchCheckResponseGetMessageAttributeType(arg *ElasticsearchCheckResponseGetMessageAttributeType, val ElasticsearchCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponseGetMessageRetType = string // ElasticsearchCheckResponse struct for ElasticsearchCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ElasticsearchCheckResponse struct { ElasticsearchCheck ElasticsearchCheckResponseGetElasticsearchCheckAttributeType `json:"elasticsearchCheck,omitempty"` // REQUIRED @@ -87,12 +109,14 @@ type ElasticsearchCheckResponse struct { Message ElasticsearchCheckResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ElasticsearchCheckResponse ElasticsearchCheckResponse // NewElasticsearchCheckResponse instantiates a new ElasticsearchCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewElasticsearchCheckResponse(elasticsearchChecks ElasticsearchCheckResponseGetElasticsearchChecksArgType, message ElasticsearchCheckResponseGetMessageArgType) *ElasticsearchCheckResponse { this := ElasticsearchCheckResponse{} setElasticsearchCheckResponseGetElasticsearchChecksAttributeType(&this.ElasticsearchChecks, elasticsearchChecks) @@ -103,12 +127,14 @@ func NewElasticsearchCheckResponse(elasticsearchChecks ElasticsearchCheckRespons // NewElasticsearchCheckResponseWithDefaults instantiates a new ElasticsearchCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewElasticsearchCheckResponseWithDefaults() *ElasticsearchCheckResponse { this := ElasticsearchCheckResponse{} return &this } // GetElasticsearchCheck returns the ElasticsearchCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) GetElasticsearchCheck() (res ElasticsearchCheckResponseGetElasticsearchCheckRetType) { res, _ = o.GetElasticsearchCheckOk() return @@ -116,22 +142,26 @@ func (o *ElasticsearchCheckResponse) GetElasticsearchCheck() (res ElasticsearchC // GetElasticsearchCheckOk returns a tuple with the ElasticsearchCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) GetElasticsearchCheckOk() (ret ElasticsearchCheckResponseGetElasticsearchCheckRetType, ok bool) { return getElasticsearchCheckResponseGetElasticsearchCheckAttributeTypeOk(o.ElasticsearchCheck) } // HasElasticsearchCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) HasElasticsearchCheck() bool { _, ok := o.GetElasticsearchCheckOk() return ok } // SetElasticsearchCheck gets a reference to the given ElasticsearchCheckChildResponse and assigns it to the ElasticsearchCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) SetElasticsearchCheck(v ElasticsearchCheckResponseGetElasticsearchCheckRetType) { setElasticsearchCheckResponseGetElasticsearchCheckAttributeType(&o.ElasticsearchCheck, v) } // GetElasticsearchChecks returns the ElasticsearchChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) GetElasticsearchChecks() (ret ElasticsearchCheckResponseGetElasticsearchChecksRetType) { ret, _ = o.GetElasticsearchChecksOk() return ret @@ -139,16 +169,19 @@ func (o *ElasticsearchCheckResponse) GetElasticsearchChecks() (ret Elasticsearch // GetElasticsearchChecksOk returns a tuple with the ElasticsearchChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) GetElasticsearchChecksOk() (ret ElasticsearchCheckResponseGetElasticsearchChecksRetType, ok bool) { return getElasticsearchCheckResponseGetElasticsearchChecksAttributeTypeOk(o.ElasticsearchChecks) } // SetElasticsearchChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) SetElasticsearchChecks(v ElasticsearchCheckResponseGetElasticsearchChecksRetType) { setElasticsearchCheckResponseGetElasticsearchChecksAttributeType(&o.ElasticsearchChecks, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) GetMessage() (ret ElasticsearchCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -156,15 +189,18 @@ func (o *ElasticsearchCheckResponse) GetMessage() (ret ElasticsearchCheckRespons // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) GetMessageOk() (ret ElasticsearchCheckResponseGetMessageRetType, ok bool) { return getElasticsearchCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ElasticsearchCheckResponse) SetMessage(v ElasticsearchCheckResponseGetMessageRetType) { setElasticsearchCheckResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ElasticsearchCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getElasticsearchCheckResponseGetElasticsearchCheckAttributeTypeOk(o.ElasticsearchCheck); ok { @@ -179,37 +215,45 @@ func (o ElasticsearchCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableElasticsearchCheckResponse struct { value *ElasticsearchCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableElasticsearchCheckResponse) Get() *ElasticsearchCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableElasticsearchCheckResponse) Set(val *ElasticsearchCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableElasticsearchCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableElasticsearchCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableElasticsearchCheckResponse(val *ElasticsearchCheckResponse) *NullableElasticsearchCheckResponse { return &NullableElasticsearchCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableElasticsearchCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableElasticsearchCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_email_config.go b/services/observability/model_email_config.go index dbc9ae30c..fefec199c 100644 --- a/services/observability/model_email_config.go +++ b/services/observability/model_email_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &EmailConfig{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthIdentityAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfigGetAuthIdentityAttributeTypeOk(arg EmailConfigGetAuthIdentityAttributeType) (ret EmailConfigGetAuthIdentityRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getEmailConfigGetAuthIdentityAttributeTypeOk(arg EmailConfigGetAuthIdentity return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfigGetAuthIdentityAttributeType(arg *EmailConfigGetAuthIdentityAttributeType, val EmailConfigGetAuthIdentityRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthIdentityArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthIdentityRetType = string /* @@ -43,8 +50,10 @@ type EmailConfigGetAuthIdentityRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfigGetAuthPasswordAttributeTypeOk(arg EmailConfigGetAuthPasswordAttributeType) (ret EmailConfigGetAuthPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getEmailConfigGetAuthPasswordAttributeTypeOk(arg EmailConfigGetAuthPassword return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfigGetAuthPasswordAttributeType(arg *EmailConfigGetAuthPasswordAttributeType, val EmailConfigGetAuthPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthPasswordRetType = string /* @@ -64,8 +77,10 @@ type EmailConfigGetAuthPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfigGetAuthUsernameAttributeTypeOk(arg EmailConfigGetAuthUsernameAttributeType) (ret EmailConfigGetAuthUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getEmailConfigGetAuthUsernameAttributeTypeOk(arg EmailConfigGetAuthUsername return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfigGetAuthUsernameAttributeType(arg *EmailConfigGetAuthUsernameAttributeType, val EmailConfigGetAuthUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetAuthUsernameRetType = string /* @@ -85,8 +104,10 @@ type EmailConfigGetAuthUsernameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetFromAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfigGetFromAttributeTypeOk(arg EmailConfigGetFromAttributeType) (ret EmailConfigGetFromRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +115,15 @@ func getEmailConfigGetFromAttributeTypeOk(arg EmailConfigGetFromAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfigGetFromAttributeType(arg *EmailConfigGetFromAttributeType, val EmailConfigGetFromRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetFromArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetFromRetType = string /* @@ -106,10 +131,16 @@ type EmailConfigGetFromRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfiggetSendResolvedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfiggetSendResolvedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfiggetSendResolvedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfiggetSendResolvedAttributeTypeOk(arg EmailConfiggetSendResolvedAttributeType) (ret EmailConfiggetSendResolvedRetType, ok bool) { if arg == nil { return ret, false @@ -117,6 +148,7 @@ func getEmailConfiggetSendResolvedAttributeTypeOk(arg EmailConfiggetSendResolved return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfiggetSendResolvedAttributeType(arg *EmailConfiggetSendResolvedAttributeType, val EmailConfiggetSendResolvedRetType) { *arg = &val } @@ -126,8 +158,10 @@ func setEmailConfiggetSendResolvedAttributeType(arg *EmailConfiggetSendResolvedA */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetSmarthostAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfigGetSmarthostAttributeTypeOk(arg EmailConfigGetSmarthostAttributeType) (ret EmailConfigGetSmarthostRetType, ok bool) { if arg == nil { return ret, false @@ -135,11 +169,15 @@ func getEmailConfigGetSmarthostAttributeTypeOk(arg EmailConfigGetSmarthostAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfigGetSmarthostAttributeType(arg *EmailConfigGetSmarthostAttributeType, val EmailConfigGetSmarthostRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetSmarthostArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetSmarthostRetType = string /* @@ -147,8 +185,10 @@ type EmailConfigGetSmarthostRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetToAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmailConfigGetToAttributeTypeOk(arg EmailConfigGetToAttributeType) (ret EmailConfigGetToRetType, ok bool) { if arg == nil { return ret, false @@ -156,14 +196,19 @@ func getEmailConfigGetToAttributeTypeOk(arg EmailConfigGetToAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmailConfigGetToAttributeType(arg *EmailConfigGetToAttributeType, val EmailConfigGetToRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetToArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfigGetToRetType = string // EmailConfig struct for EmailConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmailConfig struct { AuthIdentity EmailConfigGetAuthIdentityAttributeType `json:"authIdentity,omitempty"` AuthPassword EmailConfigGetAuthPasswordAttributeType `json:"authPassword,omitempty"` @@ -175,12 +220,14 @@ type EmailConfig struct { To EmailConfigGetToAttributeType `json:"to" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _EmailConfig EmailConfig // NewEmailConfig instantiates a new EmailConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewEmailConfig(to EmailConfigGetToArgType) *EmailConfig { this := EmailConfig{} setEmailConfigGetToAttributeType(&this.To, to) @@ -190,6 +237,7 @@ func NewEmailConfig(to EmailConfigGetToArgType) *EmailConfig { // NewEmailConfigWithDefaults instantiates a new EmailConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewEmailConfigWithDefaults() *EmailConfig { this := EmailConfig{} var sendResolved bool = false @@ -198,6 +246,7 @@ func NewEmailConfigWithDefaults() *EmailConfig { } // GetAuthIdentity returns the AuthIdentity field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetAuthIdentity() (res EmailConfigGetAuthIdentityRetType) { res, _ = o.GetAuthIdentityOk() return @@ -205,22 +254,26 @@ func (o *EmailConfig) GetAuthIdentity() (res EmailConfigGetAuthIdentityRetType) // GetAuthIdentityOk returns a tuple with the AuthIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetAuthIdentityOk() (ret EmailConfigGetAuthIdentityRetType, ok bool) { return getEmailConfigGetAuthIdentityAttributeTypeOk(o.AuthIdentity) } // HasAuthIdentity returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) HasAuthIdentity() bool { _, ok := o.GetAuthIdentityOk() return ok } // SetAuthIdentity gets a reference to the given string and assigns it to the AuthIdentity field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetAuthIdentity(v EmailConfigGetAuthIdentityRetType) { setEmailConfigGetAuthIdentityAttributeType(&o.AuthIdentity, v) } // GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetAuthPassword() (res EmailConfigGetAuthPasswordRetType) { res, _ = o.GetAuthPasswordOk() return @@ -228,22 +281,26 @@ func (o *EmailConfig) GetAuthPassword() (res EmailConfigGetAuthPasswordRetType) // GetAuthPasswordOk returns a tuple with the AuthPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetAuthPasswordOk() (ret EmailConfigGetAuthPasswordRetType, ok bool) { return getEmailConfigGetAuthPasswordAttributeTypeOk(o.AuthPassword) } // HasAuthPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) HasAuthPassword() bool { _, ok := o.GetAuthPasswordOk() return ok } // SetAuthPassword gets a reference to the given string and assigns it to the AuthPassword field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetAuthPassword(v EmailConfigGetAuthPasswordRetType) { setEmailConfigGetAuthPasswordAttributeType(&o.AuthPassword, v) } // GetAuthUsername returns the AuthUsername field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetAuthUsername() (res EmailConfigGetAuthUsernameRetType) { res, _ = o.GetAuthUsernameOk() return @@ -251,22 +308,26 @@ func (o *EmailConfig) GetAuthUsername() (res EmailConfigGetAuthUsernameRetType) // GetAuthUsernameOk returns a tuple with the AuthUsername field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetAuthUsernameOk() (ret EmailConfigGetAuthUsernameRetType, ok bool) { return getEmailConfigGetAuthUsernameAttributeTypeOk(o.AuthUsername) } // HasAuthUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) HasAuthUsername() bool { _, ok := o.GetAuthUsernameOk() return ok } // SetAuthUsername gets a reference to the given string and assigns it to the AuthUsername field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetAuthUsername(v EmailConfigGetAuthUsernameRetType) { setEmailConfigGetAuthUsernameAttributeType(&o.AuthUsername, v) } // GetFrom returns the From field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetFrom() (res EmailConfigGetFromRetType) { res, _ = o.GetFromOk() return @@ -274,22 +335,26 @@ func (o *EmailConfig) GetFrom() (res EmailConfigGetFromRetType) { // GetFromOk returns a tuple with the From field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetFromOk() (ret EmailConfigGetFromRetType, ok bool) { return getEmailConfigGetFromAttributeTypeOk(o.From) } // HasFrom returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) HasFrom() bool { _, ok := o.GetFromOk() return ok } // SetFrom gets a reference to the given string and assigns it to the From field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetFrom(v EmailConfigGetFromRetType) { setEmailConfigGetFromAttributeType(&o.From, v) } // GetSendResolved returns the SendResolved field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetSendResolved() (res EmailConfiggetSendResolvedRetType) { res, _ = o.GetSendResolvedOk() return @@ -297,22 +362,26 @@ func (o *EmailConfig) GetSendResolved() (res EmailConfiggetSendResolvedRetType) // GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetSendResolvedOk() (ret EmailConfiggetSendResolvedRetType, ok bool) { return getEmailConfiggetSendResolvedAttributeTypeOk(o.SendResolved) } // HasSendResolved returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) HasSendResolved() bool { _, ok := o.GetSendResolvedOk() return ok } // SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetSendResolved(v EmailConfiggetSendResolvedRetType) { setEmailConfiggetSendResolvedAttributeType(&o.SendResolved, v) } // GetSmarthost returns the Smarthost field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetSmarthost() (res EmailConfigGetSmarthostRetType) { res, _ = o.GetSmarthostOk() return @@ -320,22 +389,26 @@ func (o *EmailConfig) GetSmarthost() (res EmailConfigGetSmarthostRetType) { // GetSmarthostOk returns a tuple with the Smarthost field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetSmarthostOk() (ret EmailConfigGetSmarthostRetType, ok bool) { return getEmailConfigGetSmarthostAttributeTypeOk(o.Smarthost) } // HasSmarthost returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) HasSmarthost() bool { _, ok := o.GetSmarthostOk() return ok } // SetSmarthost gets a reference to the given string and assigns it to the Smarthost field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetSmarthost(v EmailConfigGetSmarthostRetType) { setEmailConfigGetSmarthostAttributeType(&o.Smarthost, v) } // GetTo returns the To field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetTo() (ret EmailConfigGetToRetType) { ret, _ = o.GetToOk() return ret @@ -343,15 +416,18 @@ func (o *EmailConfig) GetTo() (ret EmailConfigGetToRetType) { // GetToOk returns a tuple with the To field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) GetToOk() (ret EmailConfigGetToRetType, ok bool) { return getEmailConfigGetToAttributeTypeOk(o.To) } // SetTo sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmailConfig) SetTo(v EmailConfigGetToRetType) { setEmailConfigGetToAttributeType(&o.To, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o EmailConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getEmailConfigGetAuthIdentityAttributeTypeOk(o.AuthIdentity); ok { @@ -378,37 +454,45 @@ func (o EmailConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableEmailConfig struct { value *EmailConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmailConfig) Get() *EmailConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmailConfig) Set(val *EmailConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmailConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmailConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableEmailConfig(val *EmailConfig) *NullableEmailConfig { return &NullableEmailConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmailConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmailConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_error.go b/services/observability/model_error.go index 9d9dd017a..f07505415 100644 --- a/services/observability/model_error.go +++ b/services/observability/model_error.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Error{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetErrorsAttributeType = *[]map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetErrorsArgType = []map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetErrorsRetType = []map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getErrorGetErrorsAttributeTypeOk(arg ErrorGetErrorsAttributeType) (ret ErrorGetErrorsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getErrorGetErrorsAttributeTypeOk(arg ErrorGetErrorsAttributeType) (ret Erro return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setErrorGetErrorsAttributeType(arg *ErrorGetErrorsAttributeType, val ErrorGetErrorsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setErrorGetErrorsAttributeType(arg *ErrorGetErrorsAttributeType, val ErrorG */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getErrorGetMessageAttributeTypeOk(arg ErrorGetMessageAttributeType) (ret ErrorGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,26 +61,33 @@ func getErrorGetMessageAttributeTypeOk(arg ErrorGetMessageAttributeType) (ret Er return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setErrorGetMessageAttributeType(arg *ErrorGetMessageAttributeType, val ErrorGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetMessageRetType = string // Error struct for Error +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Error struct { Errors ErrorGetErrorsAttributeType `json:"errors,omitempty"` // REQUIRED Message ErrorGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Error Error // NewError instantiates a new Error object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewError(message ErrorGetMessageArgType) *Error { this := Error{} setErrorGetMessageAttributeType(&this.Message, message) @@ -80,12 +97,14 @@ func NewError(message ErrorGetMessageArgType) *Error { // NewErrorWithDefaults instantiates a new Error object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewErrorWithDefaults() *Error { this := Error{} return &this } // GetErrors returns the Errors field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetErrors() (res ErrorGetErrorsRetType) { res, _ = o.GetErrorsOk() return @@ -93,22 +112,26 @@ func (o *Error) GetErrors() (res ErrorGetErrorsRetType) { // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetErrorsOk() (ret ErrorGetErrorsRetType, ok bool) { return getErrorGetErrorsAttributeTypeOk(o.Errors) } // HasErrors returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) HasErrors() bool { _, ok := o.GetErrorsOk() return ok } // SetErrors gets a reference to the given []map[string]string and assigns it to the Errors field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) SetErrors(v ErrorGetErrorsRetType) { setErrorGetErrorsAttributeType(&o.Errors, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetMessage() (ret ErrorGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,15 +139,18 @@ func (o *Error) GetMessage() (ret ErrorGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetMessageOk() (ret ErrorGetMessageRetType, ok bool) { return getErrorGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) SetMessage(v ErrorGetMessageRetType) { setErrorGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Error) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getErrorGetErrorsAttributeTypeOk(o.Errors); ok { @@ -136,37 +162,45 @@ func (o Error) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableError struct { value *Error isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableError) Get() *Error { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableError) Set(val *Error) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableError) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableError) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableError(val *Error) *NullableError { return &NullableError{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_get_alert_configs_response.go b/services/observability/model_get_alert_configs_response.go index caf2e1914..b24917578 100644 --- a/services/observability/model_get_alert_configs_response.go +++ b/services/observability/model_get_alert_configs_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &GetAlertConfigsResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponseGetDataAttributeType = *Alert + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponseGetDataArgType = Alert + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponseGetDataRetType = Alert +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetAlertConfigsResponseGetDataAttributeTypeOk(arg GetAlertConfigsResponseGetDataAttributeType) (ret GetAlertConfigsResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getGetAlertConfigsResponseGetDataAttributeTypeOk(arg GetAlertConfigsRespons return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetAlertConfigsResponseGetDataAttributeType(arg *GetAlertConfigsResponseGetDataAttributeType, val GetAlertConfigsResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setGetAlertConfigsResponseGetDataAttributeType(arg *GetAlertConfigsResponse */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetAlertConfigsResponseGetMessageAttributeTypeOk(arg GetAlertConfigsResponseGetMessageAttributeType) (ret GetAlertConfigsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getGetAlertConfigsResponseGetMessageAttributeTypeOk(arg GetAlertConfigsResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetAlertConfigsResponseGetMessageAttributeType(arg *GetAlertConfigsResponseGetMessageAttributeType, val GetAlertConfigsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponseGetMessageRetType = string // GetAlertConfigsResponse struct for GetAlertConfigsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetAlertConfigsResponse struct { // REQUIRED Data GetAlertConfigsResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type GetAlertConfigsResponse struct { Message GetAlertConfigsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetAlertConfigsResponse GetAlertConfigsResponse // NewGetAlertConfigsResponse instantiates a new GetAlertConfigsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetAlertConfigsResponse(data GetAlertConfigsResponseGetDataArgType, message GetAlertConfigsResponseGetMessageArgType) *GetAlertConfigsResponse { this := GetAlertConfigsResponse{} setGetAlertConfigsResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewGetAlertConfigsResponse(data GetAlertConfigsResponseGetDataArgType, mess // NewGetAlertConfigsResponseWithDefaults instantiates a new GetAlertConfigsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetAlertConfigsResponseWithDefaults() *GetAlertConfigsResponse { this := GetAlertConfigsResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetAlertConfigsResponse) GetData() (ret GetAlertConfigsResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *GetAlertConfigsResponse) GetData() (ret GetAlertConfigsResponseGetDataR // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetAlertConfigsResponse) GetDataOk() (ret GetAlertConfigsResponseGetDataRetType, ok bool) { return getGetAlertConfigsResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetAlertConfigsResponse) SetData(v GetAlertConfigsResponseGetDataRetType) { setGetAlertConfigsResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetAlertConfigsResponse) GetMessage() (ret GetAlertConfigsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *GetAlertConfigsResponse) GetMessage() (ret GetAlertConfigsResponseGetMe // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetAlertConfigsResponse) GetMessageOk() (ret GetAlertConfigsResponseGetMessageRetType, ok bool) { return getGetAlertConfigsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetAlertConfigsResponse) SetMessage(v GetAlertConfigsResponseGetMessageRetType) { setGetAlertConfigsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetAlertConfigsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetAlertConfigsResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o GetAlertConfigsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetAlertConfigsResponse struct { value *GetAlertConfigsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetAlertConfigsResponse) Get() *GetAlertConfigsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetAlertConfigsResponse) Set(val *GetAlertConfigsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetAlertConfigsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetAlertConfigsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetAlertConfigsResponse(val *GetAlertConfigsResponse) *NullableGetAlertConfigsResponse { return &NullableGetAlertConfigsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetAlertConfigsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetAlertConfigsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_get_credentials_response.go b/services/observability/model_get_credentials_response.go index 747cb4cf6..a4d667387 100644 --- a/services/observability/model_get_credentials_response.go +++ b/services/observability/model_get_credentials_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &GetCredentialsResponse{} */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetCredentialsInfoAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetCredentialsInfoArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetCredentialsInfoRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetCredentialsResponseGetCredentialsInfoAttributeTypeOk(arg GetCredentialsResponseGetCredentialsInfoAttributeType) (ret GetCredentialsResponseGetCredentialsInfoRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getGetCredentialsResponseGetCredentialsInfoAttributeTypeOk(arg GetCredentia return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetCredentialsResponseGetCredentialsInfoAttributeType(arg *GetCredentialsResponseGetCredentialsInfoAttributeType, val GetCredentialsResponseGetCredentialsInfoRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setGetCredentialsResponseGetCredentialsInfoAttributeType(arg *GetCredential */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetCredentialsResponseGetIdAttributeTypeOk(arg GetCredentialsResponseGetIdAttributeType) (ret GetCredentialsResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getGetCredentialsResponseGetIdAttributeTypeOk(arg GetCredentialsResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetCredentialsResponseGetIdAttributeType(arg *GetCredentialsResponseGetIdAttributeType, val GetCredentialsResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetIdRetType = string /* @@ -63,8 +77,10 @@ type GetCredentialsResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetCredentialsResponseGetMessageAttributeTypeOk(arg GetCredentialsResponseGetMessageAttributeType) (ret GetCredentialsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getGetCredentialsResponseGetMessageAttributeTypeOk(arg GetCredentialsRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetCredentialsResponseGetMessageAttributeType(arg *GetCredentialsResponseGetMessageAttributeType, val GetCredentialsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetMessageRetType = string /* @@ -84,8 +104,10 @@ type GetCredentialsResponseGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetCredentialsResponseGetNameAttributeTypeOk(arg GetCredentialsResponseGetNameAttributeType) (ret GetCredentialsResponseGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -93,14 +115,19 @@ func getGetCredentialsResponseGetNameAttributeTypeOk(arg GetCredentialsResponseG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetCredentialsResponseGetNameAttributeType(arg *GetCredentialsResponseGetNameAttributeType, val GetCredentialsResponseGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponseGetNameRetType = string // GetCredentialsResponse struct for GetCredentialsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsResponse struct { CredentialsInfo GetCredentialsResponseGetCredentialsInfoAttributeType `json:"credentialsInfo,omitempty"` // REQUIRED @@ -111,12 +138,14 @@ type GetCredentialsResponse struct { Name GetCredentialsResponseGetNameAttributeType `json:"name" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetCredentialsResponse GetCredentialsResponse // NewGetCredentialsResponse instantiates a new GetCredentialsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetCredentialsResponse(id GetCredentialsResponseGetIdArgType, message GetCredentialsResponseGetMessageArgType, name GetCredentialsResponseGetNameArgType) *GetCredentialsResponse { this := GetCredentialsResponse{} setGetCredentialsResponseGetIdAttributeType(&this.Id, id) @@ -128,12 +157,14 @@ func NewGetCredentialsResponse(id GetCredentialsResponseGetIdArgType, message Ge // NewGetCredentialsResponseWithDefaults instantiates a new GetCredentialsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetCredentialsResponseWithDefaults() *GetCredentialsResponse { this := GetCredentialsResponse{} return &this } // GetCredentialsInfo returns the CredentialsInfo field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetCredentialsInfo() (res GetCredentialsResponseGetCredentialsInfoRetType) { res, _ = o.GetCredentialsInfoOk() return @@ -141,22 +172,26 @@ func (o *GetCredentialsResponse) GetCredentialsInfo() (res GetCredentialsRespons // GetCredentialsInfoOk returns a tuple with the CredentialsInfo field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetCredentialsInfoOk() (ret GetCredentialsResponseGetCredentialsInfoRetType, ok bool) { return getGetCredentialsResponseGetCredentialsInfoAttributeTypeOk(o.CredentialsInfo) } // HasCredentialsInfo returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) HasCredentialsInfo() bool { _, ok := o.GetCredentialsInfoOk() return ok } // SetCredentialsInfo gets a reference to the given map[string]string and assigns it to the CredentialsInfo field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) SetCredentialsInfo(v GetCredentialsResponseGetCredentialsInfoRetType) { setGetCredentialsResponseGetCredentialsInfoAttributeType(&o.CredentialsInfo, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetId() (ret GetCredentialsResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -164,16 +199,19 @@ func (o *GetCredentialsResponse) GetId() (ret GetCredentialsResponseGetIdRetType // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetIdOk() (ret GetCredentialsResponseGetIdRetType, ok bool) { return getGetCredentialsResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) SetId(v GetCredentialsResponseGetIdRetType) { setGetCredentialsResponseGetIdAttributeType(&o.Id, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetMessage() (ret GetCredentialsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -181,16 +219,19 @@ func (o *GetCredentialsResponse) GetMessage() (ret GetCredentialsResponseGetMess // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetMessageOk() (ret GetCredentialsResponseGetMessageRetType, ok bool) { return getGetCredentialsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) SetMessage(v GetCredentialsResponseGetMessageRetType) { setGetCredentialsResponseGetMessageAttributeType(&o.Message, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetName() (ret GetCredentialsResponseGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -198,15 +239,18 @@ func (o *GetCredentialsResponse) GetName() (ret GetCredentialsResponseGetNameRet // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) GetNameOk() (ret GetCredentialsResponseGetNameRetType, ok bool) { return getGetCredentialsResponseGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetCredentialsResponse) SetName(v GetCredentialsResponseGetNameRetType) { setGetCredentialsResponseGetNameAttributeType(&o.Name, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetCredentialsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetCredentialsResponseGetCredentialsInfoAttributeTypeOk(o.CredentialsInfo); ok { @@ -224,37 +268,45 @@ func (o GetCredentialsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetCredentialsResponse struct { value *GetCredentialsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetCredentialsResponse) Get() *GetCredentialsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetCredentialsResponse) Set(val *GetCredentialsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetCredentialsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetCredentialsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetCredentialsResponse(val *GetCredentialsResponse) *NullableGetCredentialsResponse { return &NullableGetCredentialsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetCredentialsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetCredentialsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_get_instance_response.go b/services/observability/model_get_instance_response.go index e7d5bc886..15803b6e6 100644 --- a/services/observability/model_get_instance_response.go +++ b/services/observability/model_get_instance_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,8 +24,10 @@ var _ MappedNullable = &GetInstanceResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetDashboardUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetDashboardUrlAttributeTypeOk(arg GetInstanceResponseGetDashboardUrlAttributeType) (ret GetInstanceResponseGetDashboardUrlRetType, ok bool) { if arg == nil { return ret, false @@ -32,11 +35,15 @@ func getGetInstanceResponseGetDashboardUrlAttributeTypeOk(arg GetInstanceRespons return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetDashboardUrlAttributeType(arg *GetInstanceResponseGetDashboardUrlAttributeType, val GetInstanceResponseGetDashboardUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetDashboardUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetDashboardUrlRetType = string /* @@ -44,8 +51,10 @@ type GetInstanceResponseGetDashboardUrlRetType = string */ // isNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetErrorAttributeType = *NullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetErrorAttributeTypeOk(arg GetInstanceResponseGetErrorAttributeType) (ret GetInstanceResponseGetErrorRetType, ok bool) { if arg == nil { return nil, false @@ -53,6 +62,7 @@ func getGetInstanceResponseGetErrorAttributeTypeOk(arg GetInstanceResponseGetErr return arg.Get(), true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetErrorAttributeType(arg *GetInstanceResponseGetErrorAttributeType, val GetInstanceResponseGetErrorRetType) { if IsNil(*arg) { *arg = NewNullableString(val) @@ -61,7 +71,10 @@ func setGetInstanceResponseGetErrorAttributeType(arg *GetInstanceResponseGetErro } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetErrorArgType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetErrorRetType = *string /* @@ -69,8 +82,10 @@ type GetInstanceResponseGetErrorRetType = *string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetIdAttributeTypeOk(arg GetInstanceResponseGetIdAttributeType) (ret GetInstanceResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -78,11 +93,15 @@ func getGetInstanceResponseGetIdAttributeTypeOk(arg GetInstanceResponseGetIdAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetIdAttributeType(arg *GetInstanceResponseGetIdAttributeType, val GetInstanceResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetIdRetType = string /* @@ -90,10 +109,16 @@ type GetInstanceResponseGetIdRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetInstanceAttributeType = *InstanceSensitiveData + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetInstanceArgType = InstanceSensitiveData + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetInstanceRetType = InstanceSensitiveData +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetInstanceAttributeTypeOk(arg GetInstanceResponseGetInstanceAttributeType) (ret GetInstanceResponseGetInstanceRetType, ok bool) { if arg == nil { return ret, false @@ -101,6 +126,7 @@ func getGetInstanceResponseGetInstanceAttributeTypeOk(arg GetInstanceResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetInstanceAttributeType(arg *GetInstanceResponseGetInstanceAttributeType, val GetInstanceResponseGetInstanceRetType) { *arg = &val } @@ -110,10 +136,16 @@ func setGetInstanceResponseGetInstanceAttributeType(arg *GetInstanceResponseGetI */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponsegetIsUpdatableAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponsegetIsUpdatableArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponsegetIsUpdatableRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponsegetIsUpdatableAttributeTypeOk(arg GetInstanceResponsegetIsUpdatableAttributeType) (ret GetInstanceResponsegetIsUpdatableRetType, ok bool) { if arg == nil { return ret, false @@ -121,6 +153,7 @@ func getGetInstanceResponsegetIsUpdatableAttributeTypeOk(arg GetInstanceResponse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponsegetIsUpdatableAttributeType(arg *GetInstanceResponsegetIsUpdatableAttributeType, val GetInstanceResponsegetIsUpdatableRetType) { *arg = &val } @@ -130,8 +163,10 @@ func setGetInstanceResponsegetIsUpdatableAttributeType(arg *GetInstanceResponseg */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetMessageAttributeTypeOk(arg GetInstanceResponseGetMessageAttributeType) (ret GetInstanceResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -139,11 +174,15 @@ func getGetInstanceResponseGetMessageAttributeTypeOk(arg GetInstanceResponseGetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetMessageAttributeType(arg *GetInstanceResponseGetMessageAttributeType, val GetInstanceResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetMessageRetType = string /* @@ -151,8 +190,10 @@ type GetInstanceResponseGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetNameAttributeTypeOk(arg GetInstanceResponseGetNameAttributeType) (ret GetInstanceResponseGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -160,11 +201,15 @@ func getGetInstanceResponseGetNameAttributeTypeOk(arg GetInstanceResponseGetName return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetNameAttributeType(arg *GetInstanceResponseGetNameAttributeType, val GetInstanceResponseGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetNameRetType = string /* @@ -172,10 +217,16 @@ type GetInstanceResponseGetNameRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetParametersAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetParametersArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetParametersRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetParametersAttributeTypeOk(arg GetInstanceResponseGetParametersAttributeType) (ret GetInstanceResponseGetParametersRetType, ok bool) { if arg == nil { return ret, false @@ -183,6 +234,7 @@ func getGetInstanceResponseGetParametersAttributeTypeOk(arg GetInstanceResponseG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetParametersAttributeType(arg *GetInstanceResponseGetParametersAttributeType, val GetInstanceResponseGetParametersRetType) { *arg = &val } @@ -192,8 +244,10 @@ func setGetInstanceResponseGetParametersAttributeType(arg *GetInstanceResponseGe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetPlanIdAttributeTypeOk(arg GetInstanceResponseGetPlanIdAttributeType) (ret GetInstanceResponseGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -201,11 +255,15 @@ func getGetInstanceResponseGetPlanIdAttributeTypeOk(arg GetInstanceResponseGetPl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetPlanIdAttributeType(arg *GetInstanceResponseGetPlanIdAttributeType, val GetInstanceResponseGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanIdRetType = string /* @@ -213,8 +271,10 @@ type GetInstanceResponseGetPlanIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetPlanNameAttributeTypeOk(arg GetInstanceResponseGetPlanNameAttributeType) (ret GetInstanceResponseGetPlanNameRetType, ok bool) { if arg == nil { return ret, false @@ -222,11 +282,15 @@ func getGetInstanceResponseGetPlanNameAttributeTypeOk(arg GetInstanceResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetPlanNameAttributeType(arg *GetInstanceResponseGetPlanNameAttributeType, val GetInstanceResponseGetPlanNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanNameRetType = string /* @@ -234,8 +298,10 @@ type GetInstanceResponseGetPlanNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanSchemaAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetPlanSchemaAttributeTypeOk(arg GetInstanceResponseGetPlanSchemaAttributeType) (ret GetInstanceResponseGetPlanSchemaRetType, ok bool) { if arg == nil { return ret, false @@ -243,11 +309,15 @@ func getGetInstanceResponseGetPlanSchemaAttributeTypeOk(arg GetInstanceResponseG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetPlanSchemaAttributeType(arg *GetInstanceResponseGetPlanSchemaAttributeType, val GetInstanceResponseGetPlanSchemaRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanSchemaArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetPlanSchemaRetType = string /* @@ -255,8 +325,10 @@ type GetInstanceResponseGetPlanSchemaRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetServiceNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetServiceNameAttributeTypeOk(arg GetInstanceResponseGetServiceNameAttributeType) (ret GetInstanceResponseGetServiceNameRetType, ok bool) { if arg == nil { return ret, false @@ -264,11 +336,15 @@ func getGetInstanceResponseGetServiceNameAttributeTypeOk(arg GetInstanceResponse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetServiceNameAttributeType(arg *GetInstanceResponseGetServiceNameAttributeType, val GetInstanceResponseGetServiceNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetServiceNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetServiceNameRetType = string /* @@ -279,22 +355,33 @@ type GetInstanceResponseGetServiceNameRetType = string // GetInstanceResponseStatus the model 'GetInstanceResponse' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseStatus string // List of Status const ( - GETINSTANCERESPONSESTATUS_CREATING GetInstanceResponseStatus = "CREATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + GETINSTANCERESPONSESTATUS_CREATING GetInstanceResponseStatus = "CREATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead GETINSTANCERESPONSESTATUS_CREATE_SUCCEEDED GetInstanceResponseStatus = "CREATE_SUCCEEDED" - GETINSTANCERESPONSESTATUS_CREATE_FAILED GetInstanceResponseStatus = "CREATE_FAILED" - GETINSTANCERESPONSESTATUS_DELETING GetInstanceResponseStatus = "DELETING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + GETINSTANCERESPONSESTATUS_CREATE_FAILED GetInstanceResponseStatus = "CREATE_FAILED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + GETINSTANCERESPONSESTATUS_DELETING GetInstanceResponseStatus = "DELETING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead GETINSTANCERESPONSESTATUS_DELETE_SUCCEEDED GetInstanceResponseStatus = "DELETE_SUCCEEDED" - GETINSTANCERESPONSESTATUS_DELETE_FAILED GetInstanceResponseStatus = "DELETE_FAILED" - GETINSTANCERESPONSESTATUS_UPDATING GetInstanceResponseStatus = "UPDATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + GETINSTANCERESPONSESTATUS_DELETE_FAILED GetInstanceResponseStatus = "DELETE_FAILED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + GETINSTANCERESPONSESTATUS_UPDATING GetInstanceResponseStatus = "UPDATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead GETINSTANCERESPONSESTATUS_UPDATE_SUCCEEDED GetInstanceResponseStatus = "UPDATE_SUCCEEDED" - GETINSTANCERESPONSESTATUS_UPDATE_FAILED GetInstanceResponseStatus = "UPDATE_FAILED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + GETINSTANCERESPONSESTATUS_UPDATE_FAILED GetInstanceResponseStatus = "UPDATE_FAILED" ) // All allowed values of GetInstanceResponse enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedGetInstanceResponseStatusEnumValues = []GetInstanceResponseStatus{ "CREATING", "CREATE_SUCCEEDED", @@ -307,6 +394,7 @@ var AllowedGetInstanceResponseStatusEnumValues = []GetInstanceResponseStatus{ "UPDATE_FAILED", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *GetInstanceResponseStatus) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -334,6 +422,7 @@ func (v *GetInstanceResponseStatus) UnmarshalJSON(src []byte) error { // NewGetInstanceResponseStatusFromValue returns a pointer to a valid GetInstanceResponseStatus // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetInstanceResponseStatusFromValue(v GetInstanceResponseStatus) (*GetInstanceResponseStatus, error) { ev := GetInstanceResponseStatus(v) if ev.IsValid() { @@ -344,6 +433,7 @@ func NewGetInstanceResponseStatusFromValue(v GetInstanceResponseStatus) (*GetIns } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v GetInstanceResponseStatus) IsValid() bool { for _, existing := range AllowedGetInstanceResponseStatusEnumValues { if existing == v { @@ -354,50 +444,65 @@ func (v GetInstanceResponseStatus) IsValid() bool { } // Ptr returns reference to StatusStatus value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v GetInstanceResponseStatus) Ptr() *GetInstanceResponseStatus { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetInstanceResponseStatus struct { value *GetInstanceResponseStatus isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetInstanceResponseStatus) Get() *GetInstanceResponseStatus { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetInstanceResponseStatus) Set(val *GetInstanceResponseStatus) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetInstanceResponseStatus) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetInstanceResponseStatus) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetInstanceResponseStatus(val *GetInstanceResponseStatus) *NullableGetInstanceResponseStatus { return &NullableGetInstanceResponseStatus{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetInstanceResponseStatus) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetInstanceResponseStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetStatusAttributeType = *GetInstanceResponseStatus + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetStatusArgType = GetInstanceResponseStatus + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponseGetStatusRetType = GetInstanceResponseStatus +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetInstanceResponseGetStatusAttributeTypeOk(arg GetInstanceResponseGetStatusAttributeType) (ret GetInstanceResponseGetStatusRetType, ok bool) { if arg == nil { return ret, false @@ -405,11 +510,13 @@ func getGetInstanceResponseGetStatusAttributeTypeOk(arg GetInstanceResponseGetSt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetInstanceResponseGetStatusAttributeType(arg *GetInstanceResponseGetStatusAttributeType, val GetInstanceResponseGetStatusRetType) { *arg = &val } // GetInstanceResponse struct for GetInstanceResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceResponse struct { // REQUIRED DashboardUrl GetInstanceResponseGetDashboardUrlAttributeType `json:"dashboardUrl" required:"true"` @@ -434,12 +541,14 @@ type GetInstanceResponse struct { Status GetInstanceResponseGetStatusAttributeType `json:"status" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetInstanceResponse GetInstanceResponse // NewGetInstanceResponse instantiates a new GetInstanceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetInstanceResponse(dashboardUrl GetInstanceResponseGetDashboardUrlArgType, id GetInstanceResponseGetIdArgType, instance GetInstanceResponseGetInstanceArgType, message GetInstanceResponseGetMessageArgType, planId GetInstanceResponseGetPlanIdArgType, planName GetInstanceResponseGetPlanNameArgType, serviceName GetInstanceResponseGetServiceNameArgType, status GetInstanceResponseGetStatusArgType) *GetInstanceResponse { this := GetInstanceResponse{} setGetInstanceResponseGetDashboardUrlAttributeType(&this.DashboardUrl, dashboardUrl) @@ -456,6 +565,7 @@ func NewGetInstanceResponse(dashboardUrl GetInstanceResponseGetDashboardUrlArgTy // NewGetInstanceResponseWithDefaults instantiates a new GetInstanceResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetInstanceResponseWithDefaults() *GetInstanceResponse { this := GetInstanceResponse{} var isUpdatable bool = true @@ -466,6 +576,7 @@ func NewGetInstanceResponseWithDefaults() *GetInstanceResponse { } // GetDashboardUrl returns the DashboardUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetDashboardUrl() (ret GetInstanceResponseGetDashboardUrlRetType) { ret, _ = o.GetDashboardUrlOk() return ret @@ -473,16 +584,19 @@ func (o *GetInstanceResponse) GetDashboardUrl() (ret GetInstanceResponseGetDashb // GetDashboardUrlOk returns a tuple with the DashboardUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetDashboardUrlOk() (ret GetInstanceResponseGetDashboardUrlRetType, ok bool) { return getGetInstanceResponseGetDashboardUrlAttributeTypeOk(o.DashboardUrl) } // SetDashboardUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetDashboardUrl(v GetInstanceResponseGetDashboardUrlRetType) { setGetInstanceResponseGetDashboardUrlAttributeType(&o.DashboardUrl, v) } // GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetError() (res GetInstanceResponseGetErrorRetType) { res, _ = o.GetErrorOk() return @@ -491,32 +605,38 @@ func (o *GetInstanceResponse) GetError() (res GetInstanceResponseGetErrorRetType // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetErrorOk() (ret GetInstanceResponseGetErrorRetType, ok bool) { return getGetInstanceResponseGetErrorAttributeTypeOk(o.Error) } // HasError returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) HasError() bool { _, ok := o.GetErrorOk() return ok } // SetError gets a reference to the given string and assigns it to the Error field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetError(v GetInstanceResponseGetErrorRetType) { setGetInstanceResponseGetErrorAttributeType(&o.Error, v) } // SetErrorNil sets the value for Error to be an explicit nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetErrorNil() { o.Error = nil } // UnsetError ensures that no value is present for Error, not even an explicit nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) UnsetError() { o.Error = nil } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetId() (ret GetInstanceResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -524,16 +644,19 @@ func (o *GetInstanceResponse) GetId() (ret GetInstanceResponseGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetIdOk() (ret GetInstanceResponseGetIdRetType, ok bool) { return getGetInstanceResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetId(v GetInstanceResponseGetIdRetType) { setGetInstanceResponseGetIdAttributeType(&o.Id, v) } // GetInstance returns the Instance field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetInstance() (ret GetInstanceResponseGetInstanceRetType) { ret, _ = o.GetInstanceOk() return ret @@ -541,16 +664,19 @@ func (o *GetInstanceResponse) GetInstance() (ret GetInstanceResponseGetInstanceR // GetInstanceOk returns a tuple with the Instance field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetInstanceOk() (ret GetInstanceResponseGetInstanceRetType, ok bool) { return getGetInstanceResponseGetInstanceAttributeTypeOk(o.Instance) } // SetInstance sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetInstance(v GetInstanceResponseGetInstanceRetType) { setGetInstanceResponseGetInstanceAttributeType(&o.Instance, v) } // GetIsUpdatable returns the IsUpdatable field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetIsUpdatable() (res GetInstanceResponsegetIsUpdatableRetType) { res, _ = o.GetIsUpdatableOk() return @@ -558,22 +684,26 @@ func (o *GetInstanceResponse) GetIsUpdatable() (res GetInstanceResponsegetIsUpda // GetIsUpdatableOk returns a tuple with the IsUpdatable field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetIsUpdatableOk() (ret GetInstanceResponsegetIsUpdatableRetType, ok bool) { return getGetInstanceResponsegetIsUpdatableAttributeTypeOk(o.IsUpdatable) } // HasIsUpdatable returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) HasIsUpdatable() bool { _, ok := o.GetIsUpdatableOk() return ok } // SetIsUpdatable gets a reference to the given bool and assigns it to the IsUpdatable field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetIsUpdatable(v GetInstanceResponsegetIsUpdatableRetType) { setGetInstanceResponsegetIsUpdatableAttributeType(&o.IsUpdatable, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetMessage() (ret GetInstanceResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -581,16 +711,19 @@ func (o *GetInstanceResponse) GetMessage() (ret GetInstanceResponseGetMessageRet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetMessageOk() (ret GetInstanceResponseGetMessageRetType, ok bool) { return getGetInstanceResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetMessage(v GetInstanceResponseGetMessageRetType) { setGetInstanceResponseGetMessageAttributeType(&o.Message, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetName() (res GetInstanceResponseGetNameRetType) { res, _ = o.GetNameOk() return @@ -598,22 +731,26 @@ func (o *GetInstanceResponse) GetName() (res GetInstanceResponseGetNameRetType) // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetNameOk() (ret GetInstanceResponseGetNameRetType, ok bool) { return getGetInstanceResponseGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetName(v GetInstanceResponseGetNameRetType) { setGetInstanceResponseGetNameAttributeType(&o.Name, v) } // GetParameters returns the Parameters field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetParameters() (res GetInstanceResponseGetParametersRetType) { res, _ = o.GetParametersOk() return @@ -621,22 +758,26 @@ func (o *GetInstanceResponse) GetParameters() (res GetInstanceResponseGetParamet // GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetParametersOk() (ret GetInstanceResponseGetParametersRetType, ok bool) { return getGetInstanceResponseGetParametersAttributeTypeOk(o.Parameters) } // HasParameters returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) HasParameters() bool { _, ok := o.GetParametersOk() return ok } // SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetParameters(v GetInstanceResponseGetParametersRetType) { setGetInstanceResponseGetParametersAttributeType(&o.Parameters, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetPlanId() (ret GetInstanceResponseGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -644,16 +785,19 @@ func (o *GetInstanceResponse) GetPlanId() (ret GetInstanceResponseGetPlanIdRetTy // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetPlanIdOk() (ret GetInstanceResponseGetPlanIdRetType, ok bool) { return getGetInstanceResponseGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetPlanId(v GetInstanceResponseGetPlanIdRetType) { setGetInstanceResponseGetPlanIdAttributeType(&o.PlanId, v) } // GetPlanName returns the PlanName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetPlanName() (ret GetInstanceResponseGetPlanNameRetType) { ret, _ = o.GetPlanNameOk() return ret @@ -661,16 +805,19 @@ func (o *GetInstanceResponse) GetPlanName() (ret GetInstanceResponseGetPlanNameR // GetPlanNameOk returns a tuple with the PlanName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetPlanNameOk() (ret GetInstanceResponseGetPlanNameRetType, ok bool) { return getGetInstanceResponseGetPlanNameAttributeTypeOk(o.PlanName) } // SetPlanName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetPlanName(v GetInstanceResponseGetPlanNameRetType) { setGetInstanceResponseGetPlanNameAttributeType(&o.PlanName, v) } // GetPlanSchema returns the PlanSchema field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetPlanSchema() (res GetInstanceResponseGetPlanSchemaRetType) { res, _ = o.GetPlanSchemaOk() return @@ -678,22 +825,26 @@ func (o *GetInstanceResponse) GetPlanSchema() (res GetInstanceResponseGetPlanSch // GetPlanSchemaOk returns a tuple with the PlanSchema field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetPlanSchemaOk() (ret GetInstanceResponseGetPlanSchemaRetType, ok bool) { return getGetInstanceResponseGetPlanSchemaAttributeTypeOk(o.PlanSchema) } // HasPlanSchema returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) HasPlanSchema() bool { _, ok := o.GetPlanSchemaOk() return ok } // SetPlanSchema gets a reference to the given string and assigns it to the PlanSchema field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetPlanSchema(v GetInstanceResponseGetPlanSchemaRetType) { setGetInstanceResponseGetPlanSchemaAttributeType(&o.PlanSchema, v) } // GetServiceName returns the ServiceName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetServiceName() (ret GetInstanceResponseGetServiceNameRetType) { ret, _ = o.GetServiceNameOk() return ret @@ -701,16 +852,19 @@ func (o *GetInstanceResponse) GetServiceName() (ret GetInstanceResponseGetServic // GetServiceNameOk returns a tuple with the ServiceName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetServiceNameOk() (ret GetInstanceResponseGetServiceNameRetType, ok bool) { return getGetInstanceResponseGetServiceNameAttributeTypeOk(o.ServiceName) } // SetServiceName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetServiceName(v GetInstanceResponseGetServiceNameRetType) { setGetInstanceResponseGetServiceNameAttributeType(&o.ServiceName, v) } // GetStatus returns the Status field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetStatus() (ret GetInstanceResponseGetStatusRetType) { ret, _ = o.GetStatusOk() return ret @@ -718,15 +872,18 @@ func (o *GetInstanceResponse) GetStatus() (ret GetInstanceResponseGetStatusRetTy // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) GetStatusOk() (ret GetInstanceResponseGetStatusRetType, ok bool) { return getGetInstanceResponseGetStatusAttributeTypeOk(o.Status) } // SetStatus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetInstanceResponse) SetStatus(v GetInstanceResponseGetStatusRetType) { setGetInstanceResponseGetStatusAttributeType(&o.Status, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetInstanceResponseGetDashboardUrlAttributeTypeOk(o.DashboardUrl); ok { @@ -771,37 +928,45 @@ func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetInstanceResponse struct { value *GetInstanceResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetInstanceResponse) Get() *GetInstanceResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetInstanceResponse) Set(val *GetInstanceResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetInstanceResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetInstanceResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetInstanceResponse(val *GetInstanceResponse) *NullableGetInstanceResponse { return &NullableGetInstanceResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetInstanceResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetInstanceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_get_metrics_storage_retention_response.go b/services/observability/model_get_metrics_storage_retention_response.go index 5fe8c72c3..540c013ae 100644 --- a/services/observability/model_get_metrics_storage_retention_response.go +++ b/services/observability/model_get_metrics_storage_retention_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &GetMetricsStorageRetentionResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsStorageRetentionResponseGetMessageAttributeTypeOk(arg GetMetricsStorageRetentionResponseGetMessageAttributeType) (ret GetMetricsStorageRetentionResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getGetMetricsStorageRetentionResponseGetMessageAttributeTypeOk(arg GetMetri return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsStorageRetentionResponseGetMessageAttributeType(arg *GetMetricsStorageRetentionResponseGetMessageAttributeType, val GetMetricsStorageRetentionResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMessageRetType = string /* @@ -43,8 +50,10 @@ type GetMetricsStorageRetentionResponseGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeTypeOk(arg GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeType) (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getGetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeType return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeType(arg *GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeType, val GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType = string /* @@ -64,8 +77,10 @@ type GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeTypeOk(arg GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeType) (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getGetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeType return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeType(arg *GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeType, val GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType = string /* @@ -85,8 +104,10 @@ type GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeTypeOk(arg GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeType) (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawRetType, ok bool) { if arg == nil { return ret, false @@ -94,14 +115,19 @@ func getGetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeType(arg *GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeType, val GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawRetType = string // GetMetricsStorageRetentionResponse struct for GetMetricsStorageRetentionResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsStorageRetentionResponse struct { // REQUIRED Message GetMetricsStorageRetentionResponseGetMessageAttributeType `json:"message" required:"true"` @@ -113,12 +139,14 @@ type GetMetricsStorageRetentionResponse struct { MetricsRetentionTimeRaw GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeType `json:"metricsRetentionTimeRaw" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetMetricsStorageRetentionResponse GetMetricsStorageRetentionResponse // NewGetMetricsStorageRetentionResponse instantiates a new GetMetricsStorageRetentionResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetMetricsStorageRetentionResponse(message GetMetricsStorageRetentionResponseGetMessageArgType, metricsRetentionTime1h GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hArgType, metricsRetentionTime5m GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mArgType, metricsRetentionTimeRaw GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawArgType) *GetMetricsStorageRetentionResponse { this := GetMetricsStorageRetentionResponse{} setGetMetricsStorageRetentionResponseGetMessageAttributeType(&this.Message, message) @@ -131,12 +159,14 @@ func NewGetMetricsStorageRetentionResponse(message GetMetricsStorageRetentionRes // NewGetMetricsStorageRetentionResponseWithDefaults instantiates a new GetMetricsStorageRetentionResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetMetricsStorageRetentionResponseWithDefaults() *GetMetricsStorageRetentionResponse { this := GetMetricsStorageRetentionResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMessage() (ret GetMetricsStorageRetentionResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -144,16 +174,19 @@ func (o *GetMetricsStorageRetentionResponse) GetMessage() (ret GetMetricsStorage // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMessageOk() (ret GetMetricsStorageRetentionResponseGetMessageRetType, ok bool) { return getGetMetricsStorageRetentionResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) SetMessage(v GetMetricsStorageRetentionResponseGetMessageRetType) { setGetMetricsStorageRetentionResponseGetMessageAttributeType(&o.Message, v) } // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime1h() (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType) { ret, _ = o.GetMetricsRetentionTime1hOk() return ret @@ -161,16 +194,19 @@ func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime1h() (ret Ge // GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime1hOk() (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType, ok bool) { return getGetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeTypeOk(o.MetricsRetentionTime1h) } // SetMetricsRetentionTime1h sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTime1h(v GetMetricsStorageRetentionResponseGetMetricsRetentionTime1hRetType) { setGetMetricsStorageRetentionResponseGetMetricsRetentionTime1hAttributeType(&o.MetricsRetentionTime1h, v) } // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime5m() (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType) { ret, _ = o.GetMetricsRetentionTime5mOk() return ret @@ -178,16 +214,19 @@ func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime5m() (ret Ge // GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime5mOk() (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType, ok bool) { return getGetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeTypeOk(o.MetricsRetentionTime5m) } // SetMetricsRetentionTime5m sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTime5m(v GetMetricsStorageRetentionResponseGetMetricsRetentionTime5mRetType) { setGetMetricsStorageRetentionResponseGetMetricsRetentionTime5mAttributeType(&o.MetricsRetentionTime5m, v) } // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTimeRaw() (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawRetType) { ret, _ = o.GetMetricsRetentionTimeRawOk() return ret @@ -195,15 +234,18 @@ func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTimeRaw() (ret G // GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTimeRawOk() (ret GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawRetType, ok bool) { return getGetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeTypeOk(o.MetricsRetentionTimeRaw) } // SetMetricsRetentionTimeRaw sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTimeRaw(v GetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawRetType) { setGetMetricsStorageRetentionResponseGetMetricsRetentionTimeRawAttributeType(&o.MetricsRetentionTimeRaw, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetMetricsStorageRetentionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetMetricsStorageRetentionResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -221,37 +263,45 @@ func (o GetMetricsStorageRetentionResponse) ToMap() (map[string]interface{}, err return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetMetricsStorageRetentionResponse struct { value *GetMetricsStorageRetentionResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetMetricsStorageRetentionResponse) Get() *GetMetricsStorageRetentionResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetMetricsStorageRetentionResponse) Set(val *GetMetricsStorageRetentionResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetMetricsStorageRetentionResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetMetricsStorageRetentionResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetMetricsStorageRetentionResponse(val *GetMetricsStorageRetentionResponse) *NullableGetMetricsStorageRetentionResponse { return &NullableGetMetricsStorageRetentionResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetMetricsStorageRetentionResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetMetricsStorageRetentionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_get_scrape_config_response.go b/services/observability/model_get_scrape_config_response.go index b66889b5d..bc822a97b 100644 --- a/services/observability/model_get_scrape_config_response.go +++ b/services/observability/model_get_scrape_config_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &GetScrapeConfigResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponseGetDataAttributeType = *Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponseGetDataArgType = Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponseGetDataRetType = Job +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetScrapeConfigResponseGetDataAttributeTypeOk(arg GetScrapeConfigResponseGetDataAttributeType) (ret GetScrapeConfigResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getGetScrapeConfigResponseGetDataAttributeTypeOk(arg GetScrapeConfigRespons return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetScrapeConfigResponseGetDataAttributeType(arg *GetScrapeConfigResponseGetDataAttributeType, val GetScrapeConfigResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setGetScrapeConfigResponseGetDataAttributeType(arg *GetScrapeConfigResponse */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetScrapeConfigResponseGetMessageAttributeTypeOk(arg GetScrapeConfigResponseGetMessageAttributeType) (ret GetScrapeConfigResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getGetScrapeConfigResponseGetMessageAttributeTypeOk(arg GetScrapeConfigResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetScrapeConfigResponseGetMessageAttributeType(arg *GetScrapeConfigResponseGetMessageAttributeType, val GetScrapeConfigResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponseGetMessageRetType = string // GetScrapeConfigResponse struct for GetScrapeConfigResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetScrapeConfigResponse struct { // REQUIRED Data GetScrapeConfigResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type GetScrapeConfigResponse struct { Message GetScrapeConfigResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetScrapeConfigResponse GetScrapeConfigResponse // NewGetScrapeConfigResponse instantiates a new GetScrapeConfigResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetScrapeConfigResponse(data GetScrapeConfigResponseGetDataArgType, message GetScrapeConfigResponseGetMessageArgType) *GetScrapeConfigResponse { this := GetScrapeConfigResponse{} setGetScrapeConfigResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewGetScrapeConfigResponse(data GetScrapeConfigResponseGetDataArgType, mess // NewGetScrapeConfigResponseWithDefaults instantiates a new GetScrapeConfigResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetScrapeConfigResponseWithDefaults() *GetScrapeConfigResponse { this := GetScrapeConfigResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetScrapeConfigResponse) GetData() (ret GetScrapeConfigResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *GetScrapeConfigResponse) GetData() (ret GetScrapeConfigResponseGetDataR // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetScrapeConfigResponse) GetDataOk() (ret GetScrapeConfigResponseGetDataRetType, ok bool) { return getGetScrapeConfigResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetScrapeConfigResponse) SetData(v GetScrapeConfigResponseGetDataRetType) { setGetScrapeConfigResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetScrapeConfigResponse) GetMessage() (ret GetScrapeConfigResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *GetScrapeConfigResponse) GetMessage() (ret GetScrapeConfigResponseGetMe // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetScrapeConfigResponse) GetMessageOk() (ret GetScrapeConfigResponseGetMessageRetType, ok bool) { return getGetScrapeConfigResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetScrapeConfigResponse) SetMessage(v GetScrapeConfigResponseGetMessageRetType) { setGetScrapeConfigResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetScrapeConfigResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetScrapeConfigResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o GetScrapeConfigResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetScrapeConfigResponse struct { value *GetScrapeConfigResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetScrapeConfigResponse) Get() *GetScrapeConfigResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetScrapeConfigResponse) Set(val *GetScrapeConfigResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetScrapeConfigResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetScrapeConfigResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetScrapeConfigResponse(val *GetScrapeConfigResponse) *NullableGetScrapeConfigResponse { return &NullableGetScrapeConfigResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetScrapeConfigResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetScrapeConfigResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_global.go b/services/observability/model_global.go index 8e84df8a2..3f1516772 100644 --- a/services/observability/model_global.go +++ b/services/observability/model_global.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Global{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetOpsgenieApiKeyAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetOpsgenieApiKeyAttributeTypeOk(arg GlobalGetOpsgenieApiKeyAttributeType) (ret GlobalGetOpsgenieApiKeyRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getGlobalGetOpsgenieApiKeyAttributeTypeOk(arg GlobalGetOpsgenieApiKeyAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetOpsgenieApiKeyAttributeType(arg *GlobalGetOpsgenieApiKeyAttributeType, val GlobalGetOpsgenieApiKeyRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetOpsgenieApiKeyArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetOpsgenieApiKeyRetType = string /* @@ -43,8 +50,10 @@ type GlobalGetOpsgenieApiKeyRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetOpsgenieApiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetOpsgenieApiUrlAttributeTypeOk(arg GlobalGetOpsgenieApiUrlAttributeType) (ret GlobalGetOpsgenieApiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getGlobalGetOpsgenieApiUrlAttributeTypeOk(arg GlobalGetOpsgenieApiUrlAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetOpsgenieApiUrlAttributeType(arg *GlobalGetOpsgenieApiUrlAttributeType, val GlobalGetOpsgenieApiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetOpsgenieApiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetOpsgenieApiUrlRetType = string /* @@ -64,8 +77,10 @@ type GlobalGetOpsgenieApiUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetResolveTimeoutAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetResolveTimeoutAttributeTypeOk(arg GlobalGetResolveTimeoutAttributeType) (ret GlobalGetResolveTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getGlobalGetResolveTimeoutAttributeTypeOk(arg GlobalGetResolveTimeoutAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetResolveTimeoutAttributeType(arg *GlobalGetResolveTimeoutAttributeType, val GlobalGetResolveTimeoutRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetResolveTimeoutArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetResolveTimeoutRetType = string /* @@ -85,8 +104,10 @@ type GlobalGetResolveTimeoutRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthIdentityAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetSmtpAuthIdentityAttributeTypeOk(arg GlobalGetSmtpAuthIdentityAttributeType) (ret GlobalGetSmtpAuthIdentityRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +115,15 @@ func getGlobalGetSmtpAuthIdentityAttributeTypeOk(arg GlobalGetSmtpAuthIdentityAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetSmtpAuthIdentityAttributeType(arg *GlobalGetSmtpAuthIdentityAttributeType, val GlobalGetSmtpAuthIdentityRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthIdentityArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthIdentityRetType = string /* @@ -106,8 +131,10 @@ type GlobalGetSmtpAuthIdentityRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetSmtpAuthPasswordAttributeTypeOk(arg GlobalGetSmtpAuthPasswordAttributeType) (ret GlobalGetSmtpAuthPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +142,15 @@ func getGlobalGetSmtpAuthPasswordAttributeTypeOk(arg GlobalGetSmtpAuthPasswordAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetSmtpAuthPasswordAttributeType(arg *GlobalGetSmtpAuthPasswordAttributeType, val GlobalGetSmtpAuthPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthPasswordRetType = string /* @@ -127,8 +158,10 @@ type GlobalGetSmtpAuthPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetSmtpAuthUsernameAttributeTypeOk(arg GlobalGetSmtpAuthUsernameAttributeType) (ret GlobalGetSmtpAuthUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -136,11 +169,15 @@ func getGlobalGetSmtpAuthUsernameAttributeTypeOk(arg GlobalGetSmtpAuthUsernameAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetSmtpAuthUsernameAttributeType(arg *GlobalGetSmtpAuthUsernameAttributeType, val GlobalGetSmtpAuthUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpAuthUsernameRetType = string /* @@ -148,8 +185,10 @@ type GlobalGetSmtpAuthUsernameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpFromAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetSmtpFromAttributeTypeOk(arg GlobalGetSmtpFromAttributeType) (ret GlobalGetSmtpFromRetType, ok bool) { if arg == nil { return ret, false @@ -157,11 +196,15 @@ func getGlobalGetSmtpFromAttributeTypeOk(arg GlobalGetSmtpFromAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetSmtpFromAttributeType(arg *GlobalGetSmtpFromAttributeType, val GlobalGetSmtpFromRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpFromArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpFromRetType = string /* @@ -169,8 +212,10 @@ type GlobalGetSmtpFromRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpSmarthostAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGlobalGetSmtpSmarthostAttributeTypeOk(arg GlobalGetSmtpSmarthostAttributeType) (ret GlobalGetSmtpSmarthostRetType, ok bool) { if arg == nil { return ret, false @@ -178,14 +223,19 @@ func getGlobalGetSmtpSmarthostAttributeTypeOk(arg GlobalGetSmtpSmarthostAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGlobalGetSmtpSmarthostAttributeType(arg *GlobalGetSmtpSmarthostAttributeType, val GlobalGetSmtpSmarthostRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpSmarthostArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GlobalGetSmtpSmarthostRetType = string // Global struct for Global +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Global struct { OpsgenieApiKey GlobalGetOpsgenieApiKeyAttributeType `json:"opsgenieApiKey,omitempty"` OpsgenieApiUrl GlobalGetOpsgenieApiUrlAttributeType `json:"opsgenieApiUrl,omitempty"` @@ -201,6 +251,7 @@ type Global struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGlobal() *Global { this := Global{} return &this @@ -209,6 +260,7 @@ func NewGlobal() *Global { // NewGlobalWithDefaults instantiates a new Global object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGlobalWithDefaults() *Global { this := Global{} var resolveTimeout string = "5m" @@ -217,6 +269,7 @@ func NewGlobalWithDefaults() *Global { } // GetOpsgenieApiKey returns the OpsgenieApiKey field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetOpsgenieApiKey() (res GlobalGetOpsgenieApiKeyRetType) { res, _ = o.GetOpsgenieApiKeyOk() return @@ -224,22 +277,26 @@ func (o *Global) GetOpsgenieApiKey() (res GlobalGetOpsgenieApiKeyRetType) { // GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetOpsgenieApiKeyOk() (ret GlobalGetOpsgenieApiKeyRetType, ok bool) { return getGlobalGetOpsgenieApiKeyAttributeTypeOk(o.OpsgenieApiKey) } // HasOpsgenieApiKey returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasOpsgenieApiKey() bool { _, ok := o.GetOpsgenieApiKeyOk() return ok } // SetOpsgenieApiKey gets a reference to the given string and assigns it to the OpsgenieApiKey field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetOpsgenieApiKey(v GlobalGetOpsgenieApiKeyRetType) { setGlobalGetOpsgenieApiKeyAttributeType(&o.OpsgenieApiKey, v) } // GetOpsgenieApiUrl returns the OpsgenieApiUrl field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetOpsgenieApiUrl() (res GlobalGetOpsgenieApiUrlRetType) { res, _ = o.GetOpsgenieApiUrlOk() return @@ -247,22 +304,26 @@ func (o *Global) GetOpsgenieApiUrl() (res GlobalGetOpsgenieApiUrlRetType) { // GetOpsgenieApiUrlOk returns a tuple with the OpsgenieApiUrl field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetOpsgenieApiUrlOk() (ret GlobalGetOpsgenieApiUrlRetType, ok bool) { return getGlobalGetOpsgenieApiUrlAttributeTypeOk(o.OpsgenieApiUrl) } // HasOpsgenieApiUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasOpsgenieApiUrl() bool { _, ok := o.GetOpsgenieApiUrlOk() return ok } // SetOpsgenieApiUrl gets a reference to the given string and assigns it to the OpsgenieApiUrl field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetOpsgenieApiUrl(v GlobalGetOpsgenieApiUrlRetType) { setGlobalGetOpsgenieApiUrlAttributeType(&o.OpsgenieApiUrl, v) } // GetResolveTimeout returns the ResolveTimeout field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetResolveTimeout() (res GlobalGetResolveTimeoutRetType) { res, _ = o.GetResolveTimeoutOk() return @@ -270,22 +331,26 @@ func (o *Global) GetResolveTimeout() (res GlobalGetResolveTimeoutRetType) { // GetResolveTimeoutOk returns a tuple with the ResolveTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetResolveTimeoutOk() (ret GlobalGetResolveTimeoutRetType, ok bool) { return getGlobalGetResolveTimeoutAttributeTypeOk(o.ResolveTimeout) } // HasResolveTimeout returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasResolveTimeout() bool { _, ok := o.GetResolveTimeoutOk() return ok } // SetResolveTimeout gets a reference to the given string and assigns it to the ResolveTimeout field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetResolveTimeout(v GlobalGetResolveTimeoutRetType) { setGlobalGetResolveTimeoutAttributeType(&o.ResolveTimeout, v) } // GetSmtpAuthIdentity returns the SmtpAuthIdentity field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpAuthIdentity() (res GlobalGetSmtpAuthIdentityRetType) { res, _ = o.GetSmtpAuthIdentityOk() return @@ -293,22 +358,26 @@ func (o *Global) GetSmtpAuthIdentity() (res GlobalGetSmtpAuthIdentityRetType) { // GetSmtpAuthIdentityOk returns a tuple with the SmtpAuthIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpAuthIdentityOk() (ret GlobalGetSmtpAuthIdentityRetType, ok bool) { return getGlobalGetSmtpAuthIdentityAttributeTypeOk(o.SmtpAuthIdentity) } // HasSmtpAuthIdentity returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasSmtpAuthIdentity() bool { _, ok := o.GetSmtpAuthIdentityOk() return ok } // SetSmtpAuthIdentity gets a reference to the given string and assigns it to the SmtpAuthIdentity field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetSmtpAuthIdentity(v GlobalGetSmtpAuthIdentityRetType) { setGlobalGetSmtpAuthIdentityAttributeType(&o.SmtpAuthIdentity, v) } // GetSmtpAuthPassword returns the SmtpAuthPassword field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpAuthPassword() (res GlobalGetSmtpAuthPasswordRetType) { res, _ = o.GetSmtpAuthPasswordOk() return @@ -316,22 +385,26 @@ func (o *Global) GetSmtpAuthPassword() (res GlobalGetSmtpAuthPasswordRetType) { // GetSmtpAuthPasswordOk returns a tuple with the SmtpAuthPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpAuthPasswordOk() (ret GlobalGetSmtpAuthPasswordRetType, ok bool) { return getGlobalGetSmtpAuthPasswordAttributeTypeOk(o.SmtpAuthPassword) } // HasSmtpAuthPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasSmtpAuthPassword() bool { _, ok := o.GetSmtpAuthPasswordOk() return ok } // SetSmtpAuthPassword gets a reference to the given string and assigns it to the SmtpAuthPassword field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetSmtpAuthPassword(v GlobalGetSmtpAuthPasswordRetType) { setGlobalGetSmtpAuthPasswordAttributeType(&o.SmtpAuthPassword, v) } // GetSmtpAuthUsername returns the SmtpAuthUsername field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpAuthUsername() (res GlobalGetSmtpAuthUsernameRetType) { res, _ = o.GetSmtpAuthUsernameOk() return @@ -339,22 +412,26 @@ func (o *Global) GetSmtpAuthUsername() (res GlobalGetSmtpAuthUsernameRetType) { // GetSmtpAuthUsernameOk returns a tuple with the SmtpAuthUsername field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpAuthUsernameOk() (ret GlobalGetSmtpAuthUsernameRetType, ok bool) { return getGlobalGetSmtpAuthUsernameAttributeTypeOk(o.SmtpAuthUsername) } // HasSmtpAuthUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasSmtpAuthUsername() bool { _, ok := o.GetSmtpAuthUsernameOk() return ok } // SetSmtpAuthUsername gets a reference to the given string and assigns it to the SmtpAuthUsername field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetSmtpAuthUsername(v GlobalGetSmtpAuthUsernameRetType) { setGlobalGetSmtpAuthUsernameAttributeType(&o.SmtpAuthUsername, v) } // GetSmtpFrom returns the SmtpFrom field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpFrom() (res GlobalGetSmtpFromRetType) { res, _ = o.GetSmtpFromOk() return @@ -362,22 +439,26 @@ func (o *Global) GetSmtpFrom() (res GlobalGetSmtpFromRetType) { // GetSmtpFromOk returns a tuple with the SmtpFrom field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpFromOk() (ret GlobalGetSmtpFromRetType, ok bool) { return getGlobalGetSmtpFromAttributeTypeOk(o.SmtpFrom) } // HasSmtpFrom returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasSmtpFrom() bool { _, ok := o.GetSmtpFromOk() return ok } // SetSmtpFrom gets a reference to the given string and assigns it to the SmtpFrom field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetSmtpFrom(v GlobalGetSmtpFromRetType) { setGlobalGetSmtpFromAttributeType(&o.SmtpFrom, v) } // GetSmtpSmarthost returns the SmtpSmarthost field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpSmarthost() (res GlobalGetSmtpSmarthostRetType) { res, _ = o.GetSmtpSmarthostOk() return @@ -385,21 +466,25 @@ func (o *Global) GetSmtpSmarthost() (res GlobalGetSmtpSmarthostRetType) { // GetSmtpSmarthostOk returns a tuple with the SmtpSmarthost field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) GetSmtpSmarthostOk() (ret GlobalGetSmtpSmarthostRetType, ok bool) { return getGlobalGetSmtpSmarthostAttributeTypeOk(o.SmtpSmarthost) } // HasSmtpSmarthost returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) HasSmtpSmarthost() bool { _, ok := o.GetSmtpSmarthostOk() return ok } // SetSmtpSmarthost gets a reference to the given string and assigns it to the SmtpSmarthost field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Global) SetSmtpSmarthost(v GlobalGetSmtpSmarthostRetType) { setGlobalGetSmtpSmarthostAttributeType(&o.SmtpSmarthost, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Global) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGlobalGetOpsgenieApiKeyAttributeTypeOk(o.OpsgenieApiKey); ok { @@ -429,37 +514,45 @@ func (o Global) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGlobal struct { value *Global isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGlobal) Get() *Global { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGlobal) Set(val *Global) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGlobal) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGlobal) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGlobal(val *Global) *NullableGlobal { return &NullableGlobal{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGlobal) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGlobal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_grafana_configs.go b/services/observability/model_grafana_configs.go index 3777f3d18..83495f180 100644 --- a/services/observability/model_grafana_configs.go +++ b/services/observability/model_grafana_configs.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &GrafanaConfigs{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsGetGenericOauthAttributeType = *GrafanaOauth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsGetGenericOauthArgType = GrafanaOauth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsGetGenericOauthRetType = GrafanaOauth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaConfigsGetGenericOauthAttributeTypeOk(arg GrafanaConfigsGetGenericOauthAttributeType) (ret GrafanaConfigsGetGenericOauthRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getGrafanaConfigsGetGenericOauthAttributeTypeOk(arg GrafanaConfigsGetGeneri return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaConfigsGetGenericOauthAttributeType(arg *GrafanaConfigsGetGenericOauthAttributeType, val GrafanaConfigsGetGenericOauthRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setGrafanaConfigsGetGenericOauthAttributeType(arg *GrafanaConfigsGetGeneric */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaConfigsGetMessageAttributeTypeOk(arg GrafanaConfigsGetMessageAttributeType) (ret GrafanaConfigsGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getGrafanaConfigsGetMessageAttributeTypeOk(arg GrafanaConfigsGetMessageAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaConfigsGetMessageAttributeType(arg *GrafanaConfigsGetMessageAttributeType, val GrafanaConfigsGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsGetMessageRetType = string /* @@ -63,10 +77,16 @@ type GrafanaConfigsGetMessageRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsgetPublicReadAccessAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsgetPublicReadAccessArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsgetPublicReadAccessRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaConfigsgetPublicReadAccessAttributeTypeOk(arg GrafanaConfigsgetPublicReadAccessAttributeType) (ret GrafanaConfigsgetPublicReadAccessRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getGrafanaConfigsgetPublicReadAccessAttributeTypeOk(arg GrafanaConfigsgetPu return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaConfigsgetPublicReadAccessAttributeType(arg *GrafanaConfigsgetPublicReadAccessAttributeType, val GrafanaConfigsgetPublicReadAccessRetType) { *arg = &val } @@ -83,10 +104,16 @@ func setGrafanaConfigsgetPublicReadAccessAttributeType(arg *GrafanaConfigsgetPub */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsgetUseStackitSsoAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsgetUseStackitSsoArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigsgetUseStackitSsoRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaConfigsgetUseStackitSsoAttributeTypeOk(arg GrafanaConfigsgetUseStackitSsoAttributeType) (ret GrafanaConfigsgetUseStackitSsoRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +121,13 @@ func getGrafanaConfigsgetUseStackitSsoAttributeTypeOk(arg GrafanaConfigsgetUseSt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaConfigsgetUseStackitSsoAttributeType(arg *GrafanaConfigsgetUseStackitSsoAttributeType, val GrafanaConfigsgetUseStackitSsoRetType) { *arg = &val } // GrafanaConfigs struct for GrafanaConfigs +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaConfigs struct { GenericOauth GrafanaConfigsGetGenericOauthAttributeType `json:"genericOauth,omitempty"` // REQUIRED @@ -107,12 +136,14 @@ type GrafanaConfigs struct { UseStackitSso GrafanaConfigsgetUseStackitSsoAttributeType `json:"useStackitSso,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GrafanaConfigs GrafanaConfigs // NewGrafanaConfigs instantiates a new GrafanaConfigs object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGrafanaConfigs(message GrafanaConfigsGetMessageArgType) *GrafanaConfigs { this := GrafanaConfigs{} setGrafanaConfigsGetMessageAttributeType(&this.Message, message) @@ -122,12 +153,14 @@ func NewGrafanaConfigs(message GrafanaConfigsGetMessageArgType) *GrafanaConfigs // NewGrafanaConfigsWithDefaults instantiates a new GrafanaConfigs object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGrafanaConfigsWithDefaults() *GrafanaConfigs { this := GrafanaConfigs{} return &this } // GetGenericOauth returns the GenericOauth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetGenericOauth() (res GrafanaConfigsGetGenericOauthRetType) { res, _ = o.GetGenericOauthOk() return @@ -135,22 +168,26 @@ func (o *GrafanaConfigs) GetGenericOauth() (res GrafanaConfigsGetGenericOauthRet // GetGenericOauthOk returns a tuple with the GenericOauth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetGenericOauthOk() (ret GrafanaConfigsGetGenericOauthRetType, ok bool) { return getGrafanaConfigsGetGenericOauthAttributeTypeOk(o.GenericOauth) } // HasGenericOauth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) HasGenericOauth() bool { _, ok := o.GetGenericOauthOk() return ok } // SetGenericOauth gets a reference to the given GrafanaOauth and assigns it to the GenericOauth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) SetGenericOauth(v GrafanaConfigsGetGenericOauthRetType) { setGrafanaConfigsGetGenericOauthAttributeType(&o.GenericOauth, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetMessage() (ret GrafanaConfigsGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -158,16 +195,19 @@ func (o *GrafanaConfigs) GetMessage() (ret GrafanaConfigsGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetMessageOk() (ret GrafanaConfigsGetMessageRetType, ok bool) { return getGrafanaConfigsGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) SetMessage(v GrafanaConfigsGetMessageRetType) { setGrafanaConfigsGetMessageAttributeType(&o.Message, v) } // GetPublicReadAccess returns the PublicReadAccess field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetPublicReadAccess() (res GrafanaConfigsgetPublicReadAccessRetType) { res, _ = o.GetPublicReadAccessOk() return @@ -175,22 +215,26 @@ func (o *GrafanaConfigs) GetPublicReadAccess() (res GrafanaConfigsgetPublicReadA // GetPublicReadAccessOk returns a tuple with the PublicReadAccess field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetPublicReadAccessOk() (ret GrafanaConfigsgetPublicReadAccessRetType, ok bool) { return getGrafanaConfigsgetPublicReadAccessAttributeTypeOk(o.PublicReadAccess) } // HasPublicReadAccess returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) HasPublicReadAccess() bool { _, ok := o.GetPublicReadAccessOk() return ok } // SetPublicReadAccess gets a reference to the given bool and assigns it to the PublicReadAccess field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) SetPublicReadAccess(v GrafanaConfigsgetPublicReadAccessRetType) { setGrafanaConfigsgetPublicReadAccessAttributeType(&o.PublicReadAccess, v) } // GetUseStackitSso returns the UseStackitSso field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetUseStackitSso() (res GrafanaConfigsgetUseStackitSsoRetType) { res, _ = o.GetUseStackitSsoOk() return @@ -198,21 +242,25 @@ func (o *GrafanaConfigs) GetUseStackitSso() (res GrafanaConfigsgetUseStackitSsoR // GetUseStackitSsoOk returns a tuple with the UseStackitSso field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) GetUseStackitSsoOk() (ret GrafanaConfigsgetUseStackitSsoRetType, ok bool) { return getGrafanaConfigsgetUseStackitSsoAttributeTypeOk(o.UseStackitSso) } // HasUseStackitSso returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) HasUseStackitSso() bool { _, ok := o.GetUseStackitSsoOk() return ok } // SetUseStackitSso gets a reference to the given bool and assigns it to the UseStackitSso field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaConfigs) SetUseStackitSso(v GrafanaConfigsgetUseStackitSsoRetType) { setGrafanaConfigsgetUseStackitSsoAttributeType(&o.UseStackitSso, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GrafanaConfigs) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGrafanaConfigsGetGenericOauthAttributeTypeOk(o.GenericOauth); ok { @@ -230,37 +278,45 @@ func (o GrafanaConfigs) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGrafanaConfigs struct { value *GrafanaConfigs isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGrafanaConfigs) Get() *GrafanaConfigs { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGrafanaConfigs) Set(val *GrafanaConfigs) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGrafanaConfigs) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGrafanaConfigs) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGrafanaConfigs(val *GrafanaConfigs) *NullableGrafanaConfigs { return &NullableGrafanaConfigs{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGrafanaConfigs) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGrafanaConfigs) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_grafana_oauth.go b/services/observability/model_grafana_oauth.go index c39c01364..c619a01b6 100644 --- a/services/observability/model_grafana_oauth.go +++ b/services/observability/model_grafana_oauth.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &GrafanaOauth{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetAllowAssignGrafanaAdminAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetAllowAssignGrafanaAdminArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetAllowAssignGrafanaAdminRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthgetAllowAssignGrafanaAdminAttributeTypeOk(arg GrafanaOauthgetAllowAssignGrafanaAdminAttributeType) (ret GrafanaOauthgetAllowAssignGrafanaAdminRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getGrafanaOauthgetAllowAssignGrafanaAdminAttributeTypeOk(arg GrafanaOauthge return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthgetAllowAssignGrafanaAdminAttributeType(arg *GrafanaOauthgetAllowAssignGrafanaAdminAttributeType, val GrafanaOauthgetAllowAssignGrafanaAdminRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setGrafanaOauthgetAllowAssignGrafanaAdminAttributeType(arg *GrafanaOauthget */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetApiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetApiUrlAttributeTypeOk(arg GrafanaOauthGetApiUrlAttributeType) (ret GrafanaOauthGetApiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getGrafanaOauthGetApiUrlAttributeTypeOk(arg GrafanaOauthGetApiUrlAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetApiUrlAttributeType(arg *GrafanaOauthGetApiUrlAttributeType, val GrafanaOauthGetApiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetApiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetApiUrlRetType = string /* @@ -63,8 +77,10 @@ type GrafanaOauthGetApiUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetAuthUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetAuthUrlAttributeTypeOk(arg GrafanaOauthGetAuthUrlAttributeType) (ret GrafanaOauthGetAuthUrlRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getGrafanaOauthGetAuthUrlAttributeTypeOk(arg GrafanaOauthGetAuthUrlAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetAuthUrlAttributeType(arg *GrafanaOauthGetAuthUrlAttributeType, val GrafanaOauthGetAuthUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetAuthUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetAuthUrlRetType = string /* @@ -84,10 +104,16 @@ type GrafanaOauthGetAuthUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetEnabledAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetEnabledArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetEnabledRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthgetEnabledAttributeTypeOk(arg GrafanaOauthgetEnabledAttributeType) (ret GrafanaOauthgetEnabledRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +121,7 @@ func getGrafanaOauthgetEnabledAttributeTypeOk(arg GrafanaOauthgetEnabledAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthgetEnabledAttributeType(arg *GrafanaOauthgetEnabledAttributeType, val GrafanaOauthgetEnabledRetType) { *arg = &val } @@ -104,8 +131,10 @@ func setGrafanaOauthgetEnabledAttributeType(arg *GrafanaOauthgetEnabledAttribute */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetNameAttributeTypeOk(arg GrafanaOauthGetNameAttributeType) (ret GrafanaOauthGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -113,11 +142,15 @@ func getGrafanaOauthGetNameAttributeTypeOk(arg GrafanaOauthGetNameAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetNameAttributeType(arg *GrafanaOauthGetNameAttributeType, val GrafanaOauthGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetNameRetType = string /* @@ -125,8 +158,10 @@ type GrafanaOauthGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetOauthClientIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetOauthClientIdAttributeTypeOk(arg GrafanaOauthGetOauthClientIdAttributeType) (ret GrafanaOauthGetOauthClientIdRetType, ok bool) { if arg == nil { return ret, false @@ -134,11 +169,15 @@ func getGrafanaOauthGetOauthClientIdAttributeTypeOk(arg GrafanaOauthGetOauthClie return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetOauthClientIdAttributeType(arg *GrafanaOauthGetOauthClientIdAttributeType, val GrafanaOauthGetOauthClientIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetOauthClientIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetOauthClientIdRetType = string /* @@ -146,8 +185,10 @@ type GrafanaOauthGetOauthClientIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetOauthClientSecretAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetOauthClientSecretAttributeTypeOk(arg GrafanaOauthGetOauthClientSecretAttributeType) (ret GrafanaOauthGetOauthClientSecretRetType, ok bool) { if arg == nil { return ret, false @@ -155,11 +196,15 @@ func getGrafanaOauthGetOauthClientSecretAttributeTypeOk(arg GrafanaOauthGetOauth return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetOauthClientSecretAttributeType(arg *GrafanaOauthGetOauthClientSecretAttributeType, val GrafanaOauthGetOauthClientSecretRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetOauthClientSecretArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetOauthClientSecretRetType = string /* @@ -167,8 +212,10 @@ type GrafanaOauthGetOauthClientSecretRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetRoleAttributePathAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetRoleAttributePathAttributeTypeOk(arg GrafanaOauthGetRoleAttributePathAttributeType) (ret GrafanaOauthGetRoleAttributePathRetType, ok bool) { if arg == nil { return ret, false @@ -176,11 +223,15 @@ func getGrafanaOauthGetRoleAttributePathAttributeTypeOk(arg GrafanaOauthGetRoleA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetRoleAttributePathAttributeType(arg *GrafanaOauthGetRoleAttributePathAttributeType, val GrafanaOauthGetRoleAttributePathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetRoleAttributePathArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetRoleAttributePathRetType = string /* @@ -188,10 +239,16 @@ type GrafanaOauthGetRoleAttributePathRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetRoleAttributeStrictAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetRoleAttributeStrictArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetRoleAttributeStrictRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthgetRoleAttributeStrictAttributeTypeOk(arg GrafanaOauthgetRoleAttributeStrictAttributeType) (ret GrafanaOauthgetRoleAttributeStrictRetType, ok bool) { if arg == nil { return ret, false @@ -199,6 +256,7 @@ func getGrafanaOauthgetRoleAttributeStrictAttributeTypeOk(arg GrafanaOauthgetRol return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthgetRoleAttributeStrictAttributeType(arg *GrafanaOauthgetRoleAttributeStrictAttributeType, val GrafanaOauthgetRoleAttributeStrictRetType) { *arg = &val } @@ -208,8 +266,10 @@ func setGrafanaOauthgetRoleAttributeStrictAttributeType(arg *GrafanaOauthgetRole */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetScopesAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetScopesAttributeTypeOk(arg GrafanaOauthGetScopesAttributeType) (ret GrafanaOauthGetScopesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +277,15 @@ func getGrafanaOauthGetScopesAttributeTypeOk(arg GrafanaOauthGetScopesAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetScopesAttributeType(arg *GrafanaOauthGetScopesAttributeType, val GrafanaOauthGetScopesRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetScopesArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetScopesRetType = string /* @@ -229,8 +293,10 @@ type GrafanaOauthGetScopesRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetTokenUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthGetTokenUrlAttributeTypeOk(arg GrafanaOauthGetTokenUrlAttributeType) (ret GrafanaOauthGetTokenUrlRetType, ok bool) { if arg == nil { return ret, false @@ -238,11 +304,15 @@ func getGrafanaOauthGetTokenUrlAttributeTypeOk(arg GrafanaOauthGetTokenUrlAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthGetTokenUrlAttributeType(arg *GrafanaOauthGetTokenUrlAttributeType, val GrafanaOauthGetTokenUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetTokenUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthGetTokenUrlRetType = string /* @@ -250,10 +320,16 @@ type GrafanaOauthGetTokenUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetUsePkceAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetUsePkceArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauthgetUsePkceRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGrafanaOauthgetUsePkceAttributeTypeOk(arg GrafanaOauthgetUsePkceAttributeType) (ret GrafanaOauthgetUsePkceRetType, ok bool) { if arg == nil { return ret, false @@ -261,11 +337,13 @@ func getGrafanaOauthgetUsePkceAttributeTypeOk(arg GrafanaOauthgetUsePkceAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGrafanaOauthgetUsePkceAttributeType(arg *GrafanaOauthgetUsePkceAttributeType, val GrafanaOauthgetUsePkceRetType) { *arg = &val } // GrafanaOauth struct for GrafanaOauth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GrafanaOauth struct { AllowAssignGrafanaAdmin GrafanaOauthgetAllowAssignGrafanaAdminAttributeType `json:"allowAssignGrafanaAdmin,omitempty"` // REQUIRED @@ -288,12 +366,14 @@ type GrafanaOauth struct { UsePkce GrafanaOauthgetUsePkceAttributeType `json:"usePkce,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GrafanaOauth GrafanaOauth // NewGrafanaOauth instantiates a new GrafanaOauth object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGrafanaOauth(apiUrl GrafanaOauthGetApiUrlArgType, authUrl GrafanaOauthGetAuthUrlArgType, enabled GrafanaOauthgetEnabledArgType, oauthClientId GrafanaOauthGetOauthClientIdArgType, oauthClientSecret GrafanaOauthGetOauthClientSecretArgType, roleAttributePath GrafanaOauthGetRoleAttributePathArgType, tokenUrl GrafanaOauthGetTokenUrlArgType) *GrafanaOauth { this := GrafanaOauth{} setGrafanaOauthGetApiUrlAttributeType(&this.ApiUrl, apiUrl) @@ -309,6 +389,7 @@ func NewGrafanaOauth(apiUrl GrafanaOauthGetApiUrlArgType, authUrl GrafanaOauthGe // NewGrafanaOauthWithDefaults instantiates a new GrafanaOauth object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGrafanaOauthWithDefaults() *GrafanaOauth { this := GrafanaOauth{} var allowAssignGrafanaAdmin bool = false @@ -321,6 +402,7 @@ func NewGrafanaOauthWithDefaults() *GrafanaOauth { } // GetAllowAssignGrafanaAdmin returns the AllowAssignGrafanaAdmin field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetAllowAssignGrafanaAdmin() (res GrafanaOauthgetAllowAssignGrafanaAdminRetType) { res, _ = o.GetAllowAssignGrafanaAdminOk() return @@ -328,22 +410,26 @@ func (o *GrafanaOauth) GetAllowAssignGrafanaAdmin() (res GrafanaOauthgetAllowAss // GetAllowAssignGrafanaAdminOk returns a tuple with the AllowAssignGrafanaAdmin field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetAllowAssignGrafanaAdminOk() (ret GrafanaOauthgetAllowAssignGrafanaAdminRetType, ok bool) { return getGrafanaOauthgetAllowAssignGrafanaAdminAttributeTypeOk(o.AllowAssignGrafanaAdmin) } // HasAllowAssignGrafanaAdmin returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) HasAllowAssignGrafanaAdmin() bool { _, ok := o.GetAllowAssignGrafanaAdminOk() return ok } // SetAllowAssignGrafanaAdmin gets a reference to the given bool and assigns it to the AllowAssignGrafanaAdmin field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetAllowAssignGrafanaAdmin(v GrafanaOauthgetAllowAssignGrafanaAdminRetType) { setGrafanaOauthgetAllowAssignGrafanaAdminAttributeType(&o.AllowAssignGrafanaAdmin, v) } // GetApiUrl returns the ApiUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetApiUrl() (ret GrafanaOauthGetApiUrlRetType) { ret, _ = o.GetApiUrlOk() return ret @@ -351,16 +437,19 @@ func (o *GrafanaOauth) GetApiUrl() (ret GrafanaOauthGetApiUrlRetType) { // GetApiUrlOk returns a tuple with the ApiUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetApiUrlOk() (ret GrafanaOauthGetApiUrlRetType, ok bool) { return getGrafanaOauthGetApiUrlAttributeTypeOk(o.ApiUrl) } // SetApiUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetApiUrl(v GrafanaOauthGetApiUrlRetType) { setGrafanaOauthGetApiUrlAttributeType(&o.ApiUrl, v) } // GetAuthUrl returns the AuthUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetAuthUrl() (ret GrafanaOauthGetAuthUrlRetType) { ret, _ = o.GetAuthUrlOk() return ret @@ -368,16 +457,19 @@ func (o *GrafanaOauth) GetAuthUrl() (ret GrafanaOauthGetAuthUrlRetType) { // GetAuthUrlOk returns a tuple with the AuthUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetAuthUrlOk() (ret GrafanaOauthGetAuthUrlRetType, ok bool) { return getGrafanaOauthGetAuthUrlAttributeTypeOk(o.AuthUrl) } // SetAuthUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetAuthUrl(v GrafanaOauthGetAuthUrlRetType) { setGrafanaOauthGetAuthUrlAttributeType(&o.AuthUrl, v) } // GetEnabled returns the Enabled field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetEnabled() (ret GrafanaOauthgetEnabledRetType) { ret, _ = o.GetEnabledOk() return ret @@ -385,16 +477,19 @@ func (o *GrafanaOauth) GetEnabled() (ret GrafanaOauthgetEnabledRetType) { // GetEnabledOk returns a tuple with the Enabled field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetEnabledOk() (ret GrafanaOauthgetEnabledRetType, ok bool) { return getGrafanaOauthgetEnabledAttributeTypeOk(o.Enabled) } // SetEnabled sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetEnabled(v GrafanaOauthgetEnabledRetType) { setGrafanaOauthgetEnabledAttributeType(&o.Enabled, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetName() (res GrafanaOauthGetNameRetType) { res, _ = o.GetNameOk() return @@ -402,22 +497,26 @@ func (o *GrafanaOauth) GetName() (res GrafanaOauthGetNameRetType) { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetNameOk() (ret GrafanaOauthGetNameRetType, ok bool) { return getGrafanaOauthGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetName(v GrafanaOauthGetNameRetType) { setGrafanaOauthGetNameAttributeType(&o.Name, v) } // GetOauthClientId returns the OauthClientId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetOauthClientId() (ret GrafanaOauthGetOauthClientIdRetType) { ret, _ = o.GetOauthClientIdOk() return ret @@ -425,16 +524,19 @@ func (o *GrafanaOauth) GetOauthClientId() (ret GrafanaOauthGetOauthClientIdRetTy // GetOauthClientIdOk returns a tuple with the OauthClientId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetOauthClientIdOk() (ret GrafanaOauthGetOauthClientIdRetType, ok bool) { return getGrafanaOauthGetOauthClientIdAttributeTypeOk(o.OauthClientId) } // SetOauthClientId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetOauthClientId(v GrafanaOauthGetOauthClientIdRetType) { setGrafanaOauthGetOauthClientIdAttributeType(&o.OauthClientId, v) } // GetOauthClientSecret returns the OauthClientSecret field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetOauthClientSecret() (ret GrafanaOauthGetOauthClientSecretRetType) { ret, _ = o.GetOauthClientSecretOk() return ret @@ -442,16 +544,19 @@ func (o *GrafanaOauth) GetOauthClientSecret() (ret GrafanaOauthGetOauthClientSec // GetOauthClientSecretOk returns a tuple with the OauthClientSecret field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetOauthClientSecretOk() (ret GrafanaOauthGetOauthClientSecretRetType, ok bool) { return getGrafanaOauthGetOauthClientSecretAttributeTypeOk(o.OauthClientSecret) } // SetOauthClientSecret sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetOauthClientSecret(v GrafanaOauthGetOauthClientSecretRetType) { setGrafanaOauthGetOauthClientSecretAttributeType(&o.OauthClientSecret, v) } // GetRoleAttributePath returns the RoleAttributePath field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetRoleAttributePath() (ret GrafanaOauthGetRoleAttributePathRetType) { ret, _ = o.GetRoleAttributePathOk() return ret @@ -459,16 +564,19 @@ func (o *GrafanaOauth) GetRoleAttributePath() (ret GrafanaOauthGetRoleAttributeP // GetRoleAttributePathOk returns a tuple with the RoleAttributePath field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetRoleAttributePathOk() (ret GrafanaOauthGetRoleAttributePathRetType, ok bool) { return getGrafanaOauthGetRoleAttributePathAttributeTypeOk(o.RoleAttributePath) } // SetRoleAttributePath sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetRoleAttributePath(v GrafanaOauthGetRoleAttributePathRetType) { setGrafanaOauthGetRoleAttributePathAttributeType(&o.RoleAttributePath, v) } // GetRoleAttributeStrict returns the RoleAttributeStrict field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetRoleAttributeStrict() (res GrafanaOauthgetRoleAttributeStrictRetType) { res, _ = o.GetRoleAttributeStrictOk() return @@ -476,22 +584,26 @@ func (o *GrafanaOauth) GetRoleAttributeStrict() (res GrafanaOauthgetRoleAttribut // GetRoleAttributeStrictOk returns a tuple with the RoleAttributeStrict field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetRoleAttributeStrictOk() (ret GrafanaOauthgetRoleAttributeStrictRetType, ok bool) { return getGrafanaOauthgetRoleAttributeStrictAttributeTypeOk(o.RoleAttributeStrict) } // HasRoleAttributeStrict returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) HasRoleAttributeStrict() bool { _, ok := o.GetRoleAttributeStrictOk() return ok } // SetRoleAttributeStrict gets a reference to the given bool and assigns it to the RoleAttributeStrict field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetRoleAttributeStrict(v GrafanaOauthgetRoleAttributeStrictRetType) { setGrafanaOauthgetRoleAttributeStrictAttributeType(&o.RoleAttributeStrict, v) } // GetScopes returns the Scopes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetScopes() (res GrafanaOauthGetScopesRetType) { res, _ = o.GetScopesOk() return @@ -499,22 +611,26 @@ func (o *GrafanaOauth) GetScopes() (res GrafanaOauthGetScopesRetType) { // GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetScopesOk() (ret GrafanaOauthGetScopesRetType, ok bool) { return getGrafanaOauthGetScopesAttributeTypeOk(o.Scopes) } // HasScopes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) HasScopes() bool { _, ok := o.GetScopesOk() return ok } // SetScopes gets a reference to the given string and assigns it to the Scopes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetScopes(v GrafanaOauthGetScopesRetType) { setGrafanaOauthGetScopesAttributeType(&o.Scopes, v) } // GetTokenUrl returns the TokenUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetTokenUrl() (ret GrafanaOauthGetTokenUrlRetType) { ret, _ = o.GetTokenUrlOk() return ret @@ -522,16 +638,19 @@ func (o *GrafanaOauth) GetTokenUrl() (ret GrafanaOauthGetTokenUrlRetType) { // GetTokenUrlOk returns a tuple with the TokenUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetTokenUrlOk() (ret GrafanaOauthGetTokenUrlRetType, ok bool) { return getGrafanaOauthGetTokenUrlAttributeTypeOk(o.TokenUrl) } // SetTokenUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetTokenUrl(v GrafanaOauthGetTokenUrlRetType) { setGrafanaOauthGetTokenUrlAttributeType(&o.TokenUrl, v) } // GetUsePkce returns the UsePkce field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetUsePkce() (res GrafanaOauthgetUsePkceRetType) { res, _ = o.GetUsePkceOk() return @@ -539,21 +658,25 @@ func (o *GrafanaOauth) GetUsePkce() (res GrafanaOauthgetUsePkceRetType) { // GetUsePkceOk returns a tuple with the UsePkce field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) GetUsePkceOk() (ret GrafanaOauthgetUsePkceRetType, ok bool) { return getGrafanaOauthgetUsePkceAttributeTypeOk(o.UsePkce) } // HasUsePkce returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) HasUsePkce() bool { _, ok := o.GetUsePkceOk() return ok } // SetUsePkce gets a reference to the given bool and assigns it to the UsePkce field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GrafanaOauth) SetUsePkce(v GrafanaOauthgetUsePkceRetType) { setGrafanaOauthgetUsePkceAttributeType(&o.UsePkce, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GrafanaOauth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGrafanaOauthgetAllowAssignGrafanaAdminAttributeTypeOk(o.AllowAssignGrafanaAdmin); ok { @@ -595,37 +718,45 @@ func (o GrafanaOauth) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGrafanaOauth struct { value *GrafanaOauth isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGrafanaOauth) Get() *GrafanaOauth { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGrafanaOauth) Set(val *GrafanaOauth) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGrafanaOauth) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGrafanaOauth) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGrafanaOauth(val *GrafanaOauth) *NullableGrafanaOauth { return &NullableGrafanaOauth{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGrafanaOauth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGrafanaOauth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_http_check_child_response.go b/services/observability/model_http_check_child_response.go index 8d04ed43f..84587a80c 100644 --- a/services/observability/model_http_check_child_response.go +++ b/services/observability/model_http_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &HttpCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHttpCheckChildResponseGetIdAttributeTypeOk(arg HttpCheckChildResponseGetIdAttributeType) (ret HttpCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getHttpCheckChildResponseGetIdAttributeTypeOk(arg HttpCheckChildResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHttpCheckChildResponseGetIdAttributeType(arg *HttpCheckChildResponseGetIdAttributeType, val HttpCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type HttpCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponseGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHttpCheckChildResponseGetUrlAttributeTypeOk(arg HttpCheckChildResponseGetUrlAttributeType) (ret HttpCheckChildResponseGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getHttpCheckChildResponseGetUrlAttributeTypeOk(arg HttpCheckChildResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHttpCheckChildResponseGetUrlAttributeType(arg *HttpCheckChildResponseGetUrlAttributeType, val HttpCheckChildResponseGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponseGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponseGetUrlRetType = string // HttpCheckChildResponse struct for HttpCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckChildResponse struct { // REQUIRED Id HttpCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -67,12 +81,14 @@ type HttpCheckChildResponse struct { Url HttpCheckChildResponseGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _HttpCheckChildResponse HttpCheckChildResponse // NewHttpCheckChildResponse instantiates a new HttpCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewHttpCheckChildResponse(id HttpCheckChildResponseGetIdArgType, url HttpCheckChildResponseGetUrlArgType) *HttpCheckChildResponse { this := HttpCheckChildResponse{} setHttpCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -83,12 +99,14 @@ func NewHttpCheckChildResponse(id HttpCheckChildResponseGetIdArgType, url HttpCh // NewHttpCheckChildResponseWithDefaults instantiates a new HttpCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewHttpCheckChildResponseWithDefaults() *HttpCheckChildResponse { this := HttpCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckChildResponse) GetId() (ret HttpCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -96,16 +114,19 @@ func (o *HttpCheckChildResponse) GetId() (ret HttpCheckChildResponseGetIdRetType // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckChildResponse) GetIdOk() (ret HttpCheckChildResponseGetIdRetType, ok bool) { return getHttpCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckChildResponse) SetId(v HttpCheckChildResponseGetIdRetType) { setHttpCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckChildResponse) GetUrl() (ret HttpCheckChildResponseGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -113,15 +134,18 @@ func (o *HttpCheckChildResponse) GetUrl() (ret HttpCheckChildResponseGetUrlRetTy // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckChildResponse) GetUrlOk() (ret HttpCheckChildResponseGetUrlRetType, ok bool) { return getHttpCheckChildResponseGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckChildResponse) SetUrl(v HttpCheckChildResponseGetUrlRetType) { setHttpCheckChildResponseGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o HttpCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getHttpCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -133,37 +157,45 @@ func (o HttpCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableHttpCheckChildResponse struct { value *HttpCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHttpCheckChildResponse) Get() *HttpCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHttpCheckChildResponse) Set(val *HttpCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHttpCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHttpCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableHttpCheckChildResponse(val *HttpCheckChildResponse) *NullableHttpCheckChildResponse { return &NullableHttpCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHttpCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHttpCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_http_check_response.go b/services/observability/model_http_check_response.go index 82549c883..5efd120b3 100644 --- a/services/observability/model_http_check_response.go +++ b/services/observability/model_http_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &HttpCheckResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetHttpCheckAttributeType = *HttpCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetHttpCheckArgType = HttpCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetHttpCheckRetType = HttpCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHttpCheckResponseGetHttpCheckAttributeTypeOk(arg HttpCheckResponseGetHttpCheckAttributeType) (ret HttpCheckResponseGetHttpCheckRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getHttpCheckResponseGetHttpCheckAttributeTypeOk(arg HttpCheckResponseGetHtt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHttpCheckResponseGetHttpCheckAttributeType(arg *HttpCheckResponseGetHttpCheckAttributeType, val HttpCheckResponseGetHttpCheckRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setHttpCheckResponseGetHttpCheckAttributeType(arg *HttpCheckResponseGetHttp */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetHttpChecksAttributeType = *[]HttpCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetHttpChecksArgType = []HttpCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetHttpChecksRetType = []HttpCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHttpCheckResponseGetHttpChecksAttributeTypeOk(arg HttpCheckResponseGetHttpChecksAttributeType) (ret HttpCheckResponseGetHttpChecksRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getHttpCheckResponseGetHttpChecksAttributeTypeOk(arg HttpCheckResponseGetHt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHttpCheckResponseGetHttpChecksAttributeType(arg *HttpCheckResponseGetHttpChecksAttributeType, val HttpCheckResponseGetHttpChecksRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setHttpCheckResponseGetHttpChecksAttributeType(arg *HttpCheckResponseGetHtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHttpCheckResponseGetMessageAttributeTypeOk(arg HttpCheckResponseGetMessageAttributeType) (ret HttpCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -71,14 +88,19 @@ func getHttpCheckResponseGetMessageAttributeTypeOk(arg HttpCheckResponseGetMessa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHttpCheckResponseGetMessageAttributeType(arg *HttpCheckResponseGetMessageAttributeType, val HttpCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponseGetMessageRetType = string // HttpCheckResponse struct for HttpCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HttpCheckResponse struct { HttpCheck HttpCheckResponseGetHttpCheckAttributeType `json:"httpCheck,omitempty"` // REQUIRED @@ -87,12 +109,14 @@ type HttpCheckResponse struct { Message HttpCheckResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _HttpCheckResponse HttpCheckResponse // NewHttpCheckResponse instantiates a new HttpCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewHttpCheckResponse(httpChecks HttpCheckResponseGetHttpChecksArgType, message HttpCheckResponseGetMessageArgType) *HttpCheckResponse { this := HttpCheckResponse{} setHttpCheckResponseGetHttpChecksAttributeType(&this.HttpChecks, httpChecks) @@ -103,12 +127,14 @@ func NewHttpCheckResponse(httpChecks HttpCheckResponseGetHttpChecksArgType, mess // NewHttpCheckResponseWithDefaults instantiates a new HttpCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewHttpCheckResponseWithDefaults() *HttpCheckResponse { this := HttpCheckResponse{} return &this } // GetHttpCheck returns the HttpCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) GetHttpCheck() (res HttpCheckResponseGetHttpCheckRetType) { res, _ = o.GetHttpCheckOk() return @@ -116,22 +142,26 @@ func (o *HttpCheckResponse) GetHttpCheck() (res HttpCheckResponseGetHttpCheckRet // GetHttpCheckOk returns a tuple with the HttpCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) GetHttpCheckOk() (ret HttpCheckResponseGetHttpCheckRetType, ok bool) { return getHttpCheckResponseGetHttpCheckAttributeTypeOk(o.HttpCheck) } // HasHttpCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) HasHttpCheck() bool { _, ok := o.GetHttpCheckOk() return ok } // SetHttpCheck gets a reference to the given HttpCheckChildResponse and assigns it to the HttpCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) SetHttpCheck(v HttpCheckResponseGetHttpCheckRetType) { setHttpCheckResponseGetHttpCheckAttributeType(&o.HttpCheck, v) } // GetHttpChecks returns the HttpChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) GetHttpChecks() (ret HttpCheckResponseGetHttpChecksRetType) { ret, _ = o.GetHttpChecksOk() return ret @@ -139,16 +169,19 @@ func (o *HttpCheckResponse) GetHttpChecks() (ret HttpCheckResponseGetHttpChecksR // GetHttpChecksOk returns a tuple with the HttpChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) GetHttpChecksOk() (ret HttpCheckResponseGetHttpChecksRetType, ok bool) { return getHttpCheckResponseGetHttpChecksAttributeTypeOk(o.HttpChecks) } // SetHttpChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) SetHttpChecks(v HttpCheckResponseGetHttpChecksRetType) { setHttpCheckResponseGetHttpChecksAttributeType(&o.HttpChecks, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) GetMessage() (ret HttpCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -156,15 +189,18 @@ func (o *HttpCheckResponse) GetMessage() (ret HttpCheckResponseGetMessageRetType // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) GetMessageOk() (ret HttpCheckResponseGetMessageRetType, ok bool) { return getHttpCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HttpCheckResponse) SetMessage(v HttpCheckResponseGetMessageRetType) { setHttpCheckResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o HttpCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getHttpCheckResponseGetHttpCheckAttributeTypeOk(o.HttpCheck); ok { @@ -179,37 +215,45 @@ func (o HttpCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableHttpCheckResponse struct { value *HttpCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHttpCheckResponse) Get() *HttpCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHttpCheckResponse) Set(val *HttpCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHttpCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHttpCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableHttpCheckResponse(val *HttpCheckResponse) *NullableHttpCheckResponse { return &NullableHttpCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHttpCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHttpCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_http_service_sd.go b/services/observability/model_http_service_sd.go index 2de97d6fa..ceb73c069 100644 --- a/services/observability/model_http_service_sd.go +++ b/services/observability/model_http_service_sd.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &HTTPServiceSD{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetBasicAuthAttributeType = *BasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetBasicAuthArgType = BasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetBasicAuthRetType = BasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHTTPServiceSDGetBasicAuthAttributeTypeOk(arg HTTPServiceSDGetBasicAuthAttributeType) (ret HTTPServiceSDGetBasicAuthRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getHTTPServiceSDGetBasicAuthAttributeTypeOk(arg HTTPServiceSDGetBasicAuthAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHTTPServiceSDGetBasicAuthAttributeType(arg *HTTPServiceSDGetBasicAuthAttributeType, val HTTPServiceSDGetBasicAuthRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setHTTPServiceSDGetBasicAuthAttributeType(arg *HTTPServiceSDGetBasicAuthAtt */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetOauth2AttributeType = *OAuth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetOauth2ArgType = OAuth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetOauth2RetType = OAuth2 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHTTPServiceSDGetOauth2AttributeTypeOk(arg HTTPServiceSDGetOauth2AttributeType) (ret HTTPServiceSDGetOauth2RetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getHTTPServiceSDGetOauth2AttributeTypeOk(arg HTTPServiceSDGetOauth2Attribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHTTPServiceSDGetOauth2AttributeType(arg *HTTPServiceSDGetOauth2AttributeType, val HTTPServiceSDGetOauth2RetType) { *arg = &val } @@ -62,8 +77,10 @@ func setHTTPServiceSDGetOauth2AttributeType(arg *HTTPServiceSDGetOauth2Attribute */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetRefreshIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHTTPServiceSDGetRefreshIntervalAttributeTypeOk(arg HTTPServiceSDGetRefreshIntervalAttributeType) (ret HTTPServiceSDGetRefreshIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getHTTPServiceSDGetRefreshIntervalAttributeTypeOk(arg HTTPServiceSDGetRefre return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHTTPServiceSDGetRefreshIntervalAttributeType(arg *HTTPServiceSDGetRefreshIntervalAttributeType, val HTTPServiceSDGetRefreshIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetRefreshIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetRefreshIntervalRetType = string /* @@ -83,10 +104,16 @@ type HTTPServiceSDGetRefreshIntervalRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetTlsConfigAttributeType = *TLSConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetTlsConfigArgType = TLSConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetTlsConfigRetType = TLSConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHTTPServiceSDGetTlsConfigAttributeTypeOk(arg HTTPServiceSDGetTlsConfigAttributeType) (ret HTTPServiceSDGetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -94,6 +121,7 @@ func getHTTPServiceSDGetTlsConfigAttributeTypeOk(arg HTTPServiceSDGetTlsConfigAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHTTPServiceSDGetTlsConfigAttributeType(arg *HTTPServiceSDGetTlsConfigAttributeType, val HTTPServiceSDGetTlsConfigRetType) { *arg = &val } @@ -103,8 +131,10 @@ func setHTTPServiceSDGetTlsConfigAttributeType(arg *HTTPServiceSDGetTlsConfigAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getHTTPServiceSDGetUrlAttributeTypeOk(arg HTTPServiceSDGetUrlAttributeType) (ret HTTPServiceSDGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -112,14 +142,19 @@ func getHTTPServiceSDGetUrlAttributeTypeOk(arg HTTPServiceSDGetUrlAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setHTTPServiceSDGetUrlAttributeType(arg *HTTPServiceSDGetUrlAttributeType, val HTTPServiceSDGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSDGetUrlRetType = string // HTTPServiceSD struct for HTTPServiceSD +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type HTTPServiceSD struct { BasicAuth HTTPServiceSDGetBasicAuthAttributeType `json:"basicAuth,omitempty"` Oauth2 HTTPServiceSDGetOauth2AttributeType `json:"oauth2,omitempty"` @@ -129,12 +164,14 @@ type HTTPServiceSD struct { Url HTTPServiceSDGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _HTTPServiceSD HTTPServiceSD // NewHTTPServiceSD instantiates a new HTTPServiceSD object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewHTTPServiceSD(url HTTPServiceSDGetUrlArgType) *HTTPServiceSD { this := HTTPServiceSD{} setHTTPServiceSDGetUrlAttributeType(&this.Url, url) @@ -144,6 +181,7 @@ func NewHTTPServiceSD(url HTTPServiceSDGetUrlArgType) *HTTPServiceSD { // NewHTTPServiceSDWithDefaults instantiates a new HTTPServiceSD object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewHTTPServiceSDWithDefaults() *HTTPServiceSD { this := HTTPServiceSD{} var refreshInterval string = "60s" @@ -152,6 +190,7 @@ func NewHTTPServiceSDWithDefaults() *HTTPServiceSD { } // GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetBasicAuth() (res HTTPServiceSDGetBasicAuthRetType) { res, _ = o.GetBasicAuthOk() return @@ -159,22 +198,26 @@ func (o *HTTPServiceSD) GetBasicAuth() (res HTTPServiceSDGetBasicAuthRetType) { // GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetBasicAuthOk() (ret HTTPServiceSDGetBasicAuthRetType, ok bool) { return getHTTPServiceSDGetBasicAuthAttributeTypeOk(o.BasicAuth) } // HasBasicAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) HasBasicAuth() bool { _, ok := o.GetBasicAuthOk() return ok } // SetBasicAuth gets a reference to the given BasicAuth and assigns it to the BasicAuth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) SetBasicAuth(v HTTPServiceSDGetBasicAuthRetType) { setHTTPServiceSDGetBasicAuthAttributeType(&o.BasicAuth, v) } // GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetOauth2() (res HTTPServiceSDGetOauth2RetType) { res, _ = o.GetOauth2Ok() return @@ -182,22 +225,26 @@ func (o *HTTPServiceSD) GetOauth2() (res HTTPServiceSDGetOauth2RetType) { // GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetOauth2Ok() (ret HTTPServiceSDGetOauth2RetType, ok bool) { return getHTTPServiceSDGetOauth2AttributeTypeOk(o.Oauth2) } // HasOauth2 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) HasOauth2() bool { _, ok := o.GetOauth2Ok() return ok } // SetOauth2 gets a reference to the given OAuth2 and assigns it to the Oauth2 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) SetOauth2(v HTTPServiceSDGetOauth2RetType) { setHTTPServiceSDGetOauth2AttributeType(&o.Oauth2, v) } // GetRefreshInterval returns the RefreshInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetRefreshInterval() (res HTTPServiceSDGetRefreshIntervalRetType) { res, _ = o.GetRefreshIntervalOk() return @@ -205,22 +252,26 @@ func (o *HTTPServiceSD) GetRefreshInterval() (res HTTPServiceSDGetRefreshInterva // GetRefreshIntervalOk returns a tuple with the RefreshInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetRefreshIntervalOk() (ret HTTPServiceSDGetRefreshIntervalRetType, ok bool) { return getHTTPServiceSDGetRefreshIntervalAttributeTypeOk(o.RefreshInterval) } // HasRefreshInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) HasRefreshInterval() bool { _, ok := o.GetRefreshIntervalOk() return ok } // SetRefreshInterval gets a reference to the given string and assigns it to the RefreshInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) SetRefreshInterval(v HTTPServiceSDGetRefreshIntervalRetType) { setHTTPServiceSDGetRefreshIntervalAttributeType(&o.RefreshInterval, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetTlsConfig() (res HTTPServiceSDGetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -228,22 +279,26 @@ func (o *HTTPServiceSD) GetTlsConfig() (res HTTPServiceSDGetTlsConfigRetType) { // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetTlsConfigOk() (ret HTTPServiceSDGetTlsConfigRetType, ok bool) { return getHTTPServiceSDGetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given TLSConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) SetTlsConfig(v HTTPServiceSDGetTlsConfigRetType) { setHTTPServiceSDGetTlsConfigAttributeType(&o.TlsConfig, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetUrl() (ret HTTPServiceSDGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -251,15 +306,18 @@ func (o *HTTPServiceSD) GetUrl() (ret HTTPServiceSDGetUrlRetType) { // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) GetUrlOk() (ret HTTPServiceSDGetUrlRetType, ok bool) { return getHTTPServiceSDGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *HTTPServiceSD) SetUrl(v HTTPServiceSDGetUrlRetType) { setHTTPServiceSDGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o HTTPServiceSD) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getHTTPServiceSDGetBasicAuthAttributeTypeOk(o.BasicAuth); ok { @@ -280,37 +338,45 @@ func (o HTTPServiceSD) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableHTTPServiceSD struct { value *HTTPServiceSD isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHTTPServiceSD) Get() *HTTPServiceSD { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHTTPServiceSD) Set(val *HTTPServiceSD) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHTTPServiceSD) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHTTPServiceSD) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableHTTPServiceSD(val *HTTPServiceSD) *NullableHTTPServiceSD { return &NullableHTTPServiceSD{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableHTTPServiceSD) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableHTTPServiceSD) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_inhibit_rules.go b/services/observability/model_inhibit_rules.go index 4f53110cd..bb712aa7d 100644 --- a/services/observability/model_inhibit_rules.go +++ b/services/observability/model_inhibit_rules.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &InhibitRules{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetEqualAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetEqualArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetEqualRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetEqualAttributeTypeOk(arg InhibitRulesGetEqualAttributeType) (ret InhibitRulesGetEqualRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getInhibitRulesGetEqualAttributeTypeOk(arg InhibitRulesGetEqualAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetEqualAttributeType(arg *InhibitRulesGetEqualAttributeType, val InhibitRulesGetEqualRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setInhibitRulesGetEqualAttributeType(arg *InhibitRulesGetEqualAttributeType */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetSourceMatchAttributeTypeOk(arg InhibitRulesGetSourceMatchAttributeType) (ret InhibitRulesGetSourceMatchRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getInhibitRulesGetSourceMatchAttributeTypeOk(arg InhibitRulesGetSourceMatch return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetSourceMatchAttributeType(arg *InhibitRulesGetSourceMatchAttributeType, val InhibitRulesGetSourceMatchRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setInhibitRulesGetSourceMatchAttributeType(arg *InhibitRulesGetSourceMatchA */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchReAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchReArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchReRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetSourceMatchReAttributeTypeOk(arg InhibitRulesGetSourceMatchReAttributeType) (ret InhibitRulesGetSourceMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getInhibitRulesGetSourceMatchReAttributeTypeOk(arg InhibitRulesGetSourceMat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetSourceMatchReAttributeType(arg *InhibitRulesGetSourceMatchReAttributeType, val InhibitRulesGetSourceMatchReRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setInhibitRulesGetSourceMatchReAttributeType(arg *InhibitRulesGetSourceMatc */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetSourceMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetSourceMatchersAttributeTypeOk(arg InhibitRulesGetSourceMatchersAttributeType) (ret InhibitRulesGetSourceMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -93,6 +121,7 @@ func getInhibitRulesGetSourceMatchersAttributeTypeOk(arg InhibitRulesGetSourceMa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetSourceMatchersAttributeType(arg *InhibitRulesGetSourceMatchersAttributeType, val InhibitRulesGetSourceMatchersRetType) { *arg = &val } @@ -102,10 +131,16 @@ func setInhibitRulesGetSourceMatchersAttributeType(arg *InhibitRulesGetSourceMat */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetTargetMatchAttributeTypeOk(arg InhibitRulesGetTargetMatchAttributeType) (ret InhibitRulesGetTargetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -113,6 +148,7 @@ func getInhibitRulesGetTargetMatchAttributeTypeOk(arg InhibitRulesGetTargetMatch return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetTargetMatchAttributeType(arg *InhibitRulesGetTargetMatchAttributeType, val InhibitRulesGetTargetMatchRetType) { *arg = &val } @@ -122,10 +158,16 @@ func setInhibitRulesGetTargetMatchAttributeType(arg *InhibitRulesGetTargetMatchA */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchReAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchReArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchReRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetTargetMatchReAttributeTypeOk(arg InhibitRulesGetTargetMatchReAttributeType) (ret InhibitRulesGetTargetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -133,6 +175,7 @@ func getInhibitRulesGetTargetMatchReAttributeTypeOk(arg InhibitRulesGetTargetMat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetTargetMatchReAttributeType(arg *InhibitRulesGetTargetMatchReAttributeType, val InhibitRulesGetTargetMatchReRetType) { *arg = &val } @@ -142,10 +185,16 @@ func setInhibitRulesGetTargetMatchReAttributeType(arg *InhibitRulesGetTargetMatc */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRulesGetTargetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInhibitRulesGetTargetMatchersAttributeTypeOk(arg InhibitRulesGetTargetMatchersAttributeType) (ret InhibitRulesGetTargetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -153,11 +202,13 @@ func getInhibitRulesGetTargetMatchersAttributeTypeOk(arg InhibitRulesGetTargetMa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInhibitRulesGetTargetMatchersAttributeType(arg *InhibitRulesGetTargetMatchersAttributeType, val InhibitRulesGetTargetMatchersRetType) { *arg = &val } // InhibitRules struct for InhibitRules +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InhibitRules struct { Equal InhibitRulesGetEqualAttributeType `json:"equal,omitempty"` SourceMatch InhibitRulesGetSourceMatchAttributeType `json:"sourceMatch,omitempty"` @@ -172,6 +223,7 @@ type InhibitRules struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInhibitRules() *InhibitRules { this := InhibitRules{} return &this @@ -180,12 +232,14 @@ func NewInhibitRules() *InhibitRules { // NewInhibitRulesWithDefaults instantiates a new InhibitRules object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInhibitRulesWithDefaults() *InhibitRules { this := InhibitRules{} return &this } // GetEqual returns the Equal field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetEqual() (res InhibitRulesGetEqualRetType) { res, _ = o.GetEqualOk() return @@ -193,22 +247,26 @@ func (o *InhibitRules) GetEqual() (res InhibitRulesGetEqualRetType) { // GetEqualOk returns a tuple with the Equal field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetEqualOk() (ret InhibitRulesGetEqualRetType, ok bool) { return getInhibitRulesGetEqualAttributeTypeOk(o.Equal) } // HasEqual returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasEqual() bool { _, ok := o.GetEqualOk() return ok } // SetEqual gets a reference to the given []string and assigns it to the Equal field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetEqual(v InhibitRulesGetEqualRetType) { setInhibitRulesGetEqualAttributeType(&o.Equal, v) } // GetSourceMatch returns the SourceMatch field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetSourceMatch() (res InhibitRulesGetSourceMatchRetType) { res, _ = o.GetSourceMatchOk() return @@ -216,22 +274,26 @@ func (o *InhibitRules) GetSourceMatch() (res InhibitRulesGetSourceMatchRetType) // GetSourceMatchOk returns a tuple with the SourceMatch field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetSourceMatchOk() (ret InhibitRulesGetSourceMatchRetType, ok bool) { return getInhibitRulesGetSourceMatchAttributeTypeOk(o.SourceMatch) } // HasSourceMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasSourceMatch() bool { _, ok := o.GetSourceMatchOk() return ok } // SetSourceMatch gets a reference to the given map[string]string and assigns it to the SourceMatch field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetSourceMatch(v InhibitRulesGetSourceMatchRetType) { setInhibitRulesGetSourceMatchAttributeType(&o.SourceMatch, v) } // GetSourceMatchRe returns the SourceMatchRe field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetSourceMatchRe() (res InhibitRulesGetSourceMatchReRetType) { res, _ = o.GetSourceMatchReOk() return @@ -239,22 +301,26 @@ func (o *InhibitRules) GetSourceMatchRe() (res InhibitRulesGetSourceMatchReRetTy // GetSourceMatchReOk returns a tuple with the SourceMatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetSourceMatchReOk() (ret InhibitRulesGetSourceMatchReRetType, ok bool) { return getInhibitRulesGetSourceMatchReAttributeTypeOk(o.SourceMatchRe) } // HasSourceMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasSourceMatchRe() bool { _, ok := o.GetSourceMatchReOk() return ok } // SetSourceMatchRe gets a reference to the given map[string]string and assigns it to the SourceMatchRe field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetSourceMatchRe(v InhibitRulesGetSourceMatchReRetType) { setInhibitRulesGetSourceMatchReAttributeType(&o.SourceMatchRe, v) } // GetSourceMatchers returns the SourceMatchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetSourceMatchers() (res InhibitRulesGetSourceMatchersRetType) { res, _ = o.GetSourceMatchersOk() return @@ -262,22 +328,26 @@ func (o *InhibitRules) GetSourceMatchers() (res InhibitRulesGetSourceMatchersRet // GetSourceMatchersOk returns a tuple with the SourceMatchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetSourceMatchersOk() (ret InhibitRulesGetSourceMatchersRetType, ok bool) { return getInhibitRulesGetSourceMatchersAttributeTypeOk(o.SourceMatchers) } // HasSourceMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasSourceMatchers() bool { _, ok := o.GetSourceMatchersOk() return ok } // SetSourceMatchers gets a reference to the given []string and assigns it to the SourceMatchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetSourceMatchers(v InhibitRulesGetSourceMatchersRetType) { setInhibitRulesGetSourceMatchersAttributeType(&o.SourceMatchers, v) } // GetTargetMatch returns the TargetMatch field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetTargetMatch() (res InhibitRulesGetTargetMatchRetType) { res, _ = o.GetTargetMatchOk() return @@ -285,22 +355,26 @@ func (o *InhibitRules) GetTargetMatch() (res InhibitRulesGetTargetMatchRetType) // GetTargetMatchOk returns a tuple with the TargetMatch field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetTargetMatchOk() (ret InhibitRulesGetTargetMatchRetType, ok bool) { return getInhibitRulesGetTargetMatchAttributeTypeOk(o.TargetMatch) } // HasTargetMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasTargetMatch() bool { _, ok := o.GetTargetMatchOk() return ok } // SetTargetMatch gets a reference to the given map[string]string and assigns it to the TargetMatch field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetTargetMatch(v InhibitRulesGetTargetMatchRetType) { setInhibitRulesGetTargetMatchAttributeType(&o.TargetMatch, v) } // GetTargetMatchRe returns the TargetMatchRe field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetTargetMatchRe() (res InhibitRulesGetTargetMatchReRetType) { res, _ = o.GetTargetMatchReOk() return @@ -308,22 +382,26 @@ func (o *InhibitRules) GetTargetMatchRe() (res InhibitRulesGetTargetMatchReRetTy // GetTargetMatchReOk returns a tuple with the TargetMatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetTargetMatchReOk() (ret InhibitRulesGetTargetMatchReRetType, ok bool) { return getInhibitRulesGetTargetMatchReAttributeTypeOk(o.TargetMatchRe) } // HasTargetMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasTargetMatchRe() bool { _, ok := o.GetTargetMatchReOk() return ok } // SetTargetMatchRe gets a reference to the given map[string]string and assigns it to the TargetMatchRe field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetTargetMatchRe(v InhibitRulesGetTargetMatchReRetType) { setInhibitRulesGetTargetMatchReAttributeType(&o.TargetMatchRe, v) } // GetTargetMatchers returns the TargetMatchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetTargetMatchers() (res InhibitRulesGetTargetMatchersRetType) { res, _ = o.GetTargetMatchersOk() return @@ -331,21 +409,25 @@ func (o *InhibitRules) GetTargetMatchers() (res InhibitRulesGetTargetMatchersRet // GetTargetMatchersOk returns a tuple with the TargetMatchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) GetTargetMatchersOk() (ret InhibitRulesGetTargetMatchersRetType, ok bool) { return getInhibitRulesGetTargetMatchersAttributeTypeOk(o.TargetMatchers) } // HasTargetMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) HasTargetMatchers() bool { _, ok := o.GetTargetMatchersOk() return ok } // SetTargetMatchers gets a reference to the given []string and assigns it to the TargetMatchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InhibitRules) SetTargetMatchers(v InhibitRulesGetTargetMatchersRetType) { setInhibitRulesGetTargetMatchersAttributeType(&o.TargetMatchers, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o InhibitRules) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInhibitRulesGetEqualAttributeTypeOk(o.Equal); ok { @@ -372,37 +454,45 @@ func (o InhibitRules) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInhibitRules struct { value *InhibitRules isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInhibitRules) Get() *InhibitRules { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInhibitRules) Set(val *InhibitRules) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInhibitRules) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInhibitRules) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInhibitRules(val *InhibitRules) *NullableInhibitRules { return &NullableInhibitRules{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInhibitRules) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInhibitRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_instance.go b/services/observability/model_instance.go index 5cd938904..aef1467aa 100644 --- a/services/observability/model_instance.go +++ b/services/observability/model_instance.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,8 +24,10 @@ var _ MappedNullable = &Instance{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetClusterAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetClusterAttributeTypeOk(arg InstanceGetClusterAttributeType) (ret InstanceGetClusterRetType, ok bool) { if arg == nil { return ret, false @@ -32,11 +35,15 @@ func getInstanceGetClusterAttributeTypeOk(arg InstanceGetClusterAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetClusterAttributeType(arg *InstanceGetClusterAttributeType, val InstanceGetClusterRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetClusterArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetClusterRetType = string /* @@ -44,10 +51,16 @@ type InstanceGetClusterRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstancegetGrafanaPublicReadAccessAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstancegetGrafanaPublicReadAccessArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstancegetGrafanaPublicReadAccessRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstancegetGrafanaPublicReadAccessAttributeTypeOk(arg InstancegetGrafanaPublicReadAccessAttributeType) (ret InstancegetGrafanaPublicReadAccessRetType, ok bool) { if arg == nil { return ret, false @@ -55,6 +68,7 @@ func getInstancegetGrafanaPublicReadAccessAttributeTypeOk(arg InstancegetGrafana return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstancegetGrafanaPublicReadAccessAttributeType(arg *InstancegetGrafanaPublicReadAccessAttributeType, val InstancegetGrafanaPublicReadAccessRetType) { *arg = &val } @@ -64,10 +78,16 @@ func setInstancegetGrafanaPublicReadAccessAttributeType(arg *InstancegetGrafanaP */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstancegetGrafanaUseStackitSsoAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstancegetGrafanaUseStackitSsoArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstancegetGrafanaUseStackitSsoRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstancegetGrafanaUseStackitSsoAttributeTypeOk(arg InstancegetGrafanaUseStackitSsoAttributeType) (ret InstancegetGrafanaUseStackitSsoRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +95,7 @@ func getInstancegetGrafanaUseStackitSsoAttributeTypeOk(arg InstancegetGrafanaUse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstancegetGrafanaUseStackitSsoAttributeType(arg *InstancegetGrafanaUseStackitSsoAttributeType, val InstancegetGrafanaUseStackitSsoRetType) { *arg = &val } @@ -84,8 +105,10 @@ func setInstancegetGrafanaUseStackitSsoAttributeType(arg *InstancegetGrafanaUseS */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetInstanceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetInstanceAttributeTypeOk(arg InstanceGetInstanceAttributeType) (ret InstanceGetInstanceRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +116,15 @@ func getInstanceGetInstanceAttributeTypeOk(arg InstanceGetInstanceAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetInstanceAttributeType(arg *InstanceGetInstanceAttributeType, val InstanceGetInstanceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetInstanceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetInstanceRetType = string /* @@ -105,10 +132,16 @@ type InstanceGetInstanceRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTime1hAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTime1hArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTime1hRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetMetricsRetentionTime1hAttributeTypeOk(arg InstanceGetMetricsRetentionTime1hAttributeType) (ret InstanceGetMetricsRetentionTime1hRetType, ok bool) { if arg == nil { return ret, false @@ -116,6 +149,7 @@ func getInstanceGetMetricsRetentionTime1hAttributeTypeOk(arg InstanceGetMetricsR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetMetricsRetentionTime1hAttributeType(arg *InstanceGetMetricsRetentionTime1hAttributeType, val InstanceGetMetricsRetentionTime1hRetType) { *arg = &val } @@ -125,10 +159,16 @@ func setInstanceGetMetricsRetentionTime1hAttributeType(arg *InstanceGetMetricsRe */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTime5mAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTime5mArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTime5mRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetMetricsRetentionTime5mAttributeTypeOk(arg InstanceGetMetricsRetentionTime5mAttributeType) (ret InstanceGetMetricsRetentionTime5mRetType, ok bool) { if arg == nil { return ret, false @@ -136,6 +176,7 @@ func getInstanceGetMetricsRetentionTime5mAttributeTypeOk(arg InstanceGetMetricsR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetMetricsRetentionTime5mAttributeType(arg *InstanceGetMetricsRetentionTime5mAttributeType, val InstanceGetMetricsRetentionTime5mRetType) { *arg = &val } @@ -145,10 +186,16 @@ func setInstanceGetMetricsRetentionTime5mAttributeType(arg *InstanceGetMetricsRe */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTimeRawAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTimeRawArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetMetricsRetentionTimeRawRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetMetricsRetentionTimeRawAttributeTypeOk(arg InstanceGetMetricsRetentionTimeRawAttributeType) (ret InstanceGetMetricsRetentionTimeRawRetType, ok bool) { if arg == nil { return ret, false @@ -156,6 +203,7 @@ func getInstanceGetMetricsRetentionTimeRawAttributeTypeOk(arg InstanceGetMetrics return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetMetricsRetentionTimeRawAttributeType(arg *InstanceGetMetricsRetentionTimeRawAttributeType, val InstanceGetMetricsRetentionTimeRawRetType) { *arg = &val } @@ -165,8 +213,10 @@ func setInstanceGetMetricsRetentionTimeRawAttributeType(arg *InstanceGetMetricsR */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetNameAttributeTypeOk(arg InstanceGetNameAttributeType) (ret InstanceGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -174,11 +224,15 @@ func getInstanceGetNameAttributeTypeOk(arg InstanceGetNameAttributeType) (ret In return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetNameAttributeType(arg *InstanceGetNameAttributeType, val InstanceGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetNameRetType = string /* @@ -186,10 +240,16 @@ type InstanceGetNameRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanAttributeType = *PlanModel + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanArgType = PlanModel + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanRetType = PlanModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetPlanAttributeTypeOk(arg InstanceGetPlanAttributeType) (ret InstanceGetPlanRetType, ok bool) { if arg == nil { return ret, false @@ -197,6 +257,7 @@ func getInstanceGetPlanAttributeTypeOk(arg InstanceGetPlanAttributeType) (ret In return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetPlanAttributeType(arg *InstanceGetPlanAttributeType, val InstanceGetPlanRetType) { *arg = &val } @@ -209,26 +270,41 @@ func setInstanceGetPlanAttributeType(arg *InstanceGetPlanAttributeType, val Inst // InstanceState the model 'Instance' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceState string // List of State const ( - INSTANCESTATE_CREATION_STARTED InstanceState = "Component creation started" - INSTANCESTATE_CREATION_FAILED InstanceState = "Component creation failed" - INSTANCESTATE_CREATION_SUCCEEDED__NOW_NEED_TO_CHECK_READINESS InstanceState = "Component creation succeeded. Now need to check readiness" - INSTANCESTATE_CREATION_SUCCEEDED InstanceState = "Component creation succeeded" - INSTANCESTATE_DELETION_STARTED InstanceState = "Component deletion started" - INSTANCESTATE_DELETION_FAILED InstanceState = "Component deletion failed" - INSTANCESTATE_DELETION_SUCCEEDED InstanceState = "Component deletion succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_CREATION_STARTED InstanceState = "Component creation started" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_CREATION_FAILED InstanceState = "Component creation failed" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_CREATION_SUCCEEDED__NOW_NEED_TO_CHECK_READINESS InstanceState = "Component creation succeeded. Now need to check readiness" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_CREATION_SUCCEEDED InstanceState = "Component creation succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_DELETION_STARTED InstanceState = "Component deletion started" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_DELETION_FAILED InstanceState = "Component deletion failed" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_DELETION_SUCCEEDED InstanceState = "Component deletion succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCESTATE_DELETION_OF_ROUTINE_SUCCEEDED__NOW_NEED_TO_CHECK_IF_RESOURCES_GONE InstanceState = "Component deletion of routine succeeded. Now need to check if resources gone" - INSTANCESTATE_DELETION_BUCKETS_SUCCEEDED InstanceState = "Component deletion buckets succeeded" - INSTANCESTATE_UPDATE_FAILED InstanceState = "Component update failed" - INSTANCESTATE_UPDATE_STARTED InstanceState = "Component update started" - INSTANCESTATE_UPDATE_CREATION_SUCCEEDED InstanceState = "Component update creation succeeded" - INSTANCESTATE_UPDATE_DOWNGRADE_DELETION_RESOURCES_SUCCEEDED InstanceState = "Component update downgrade deletion resources succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_DELETION_BUCKETS_SUCCEEDED InstanceState = "Component deletion buckets succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_UPDATE_FAILED InstanceState = "Component update failed" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_UPDATE_STARTED InstanceState = "Component update started" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_UPDATE_CREATION_SUCCEEDED InstanceState = "Component update creation succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATE_UPDATE_DOWNGRADE_DELETION_RESOURCES_SUCCEEDED InstanceState = "Component update downgrade deletion resources succeeded" ) // All allowed values of Instance enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceStateEnumValues = []InstanceState{ "Component creation started", "Component creation failed", @@ -245,6 +321,7 @@ var AllowedInstanceStateEnumValues = []InstanceState{ "Component update downgrade deletion resources succeeded", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -272,6 +349,7 @@ func (v *InstanceState) UnmarshalJSON(src []byte) error { // NewInstanceStateFromValue returns a pointer to a valid InstanceState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceStateFromValue(v InstanceState) (*InstanceState, error) { ev := InstanceState(v) if ev.IsValid() { @@ -282,6 +360,7 @@ func NewInstanceStateFromValue(v InstanceState) (*InstanceState, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceState) IsValid() bool { for _, existing := range AllowedInstanceStateEnumValues { if existing == v { @@ -292,50 +371,65 @@ func (v InstanceState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceState) Ptr() *InstanceState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceState struct { value *InstanceState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceState) Get() *InstanceState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceState) Set(val *InstanceState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceState(val *InstanceState) *NullableInstanceState { return &NullableInstanceState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetStateAttributeType = *InstanceState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetStateArgType = InstanceState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetStateRetType = InstanceState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetStateAttributeTypeOk(arg InstanceGetStateAttributeType) (ret InstanceGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -343,11 +437,13 @@ func getInstanceGetStateAttributeTypeOk(arg InstanceGetStateAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetStateAttributeType(arg *InstanceGetStateAttributeType, val InstanceGetStateRetType) { *arg = &val } // Instance struct for Instance +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Instance struct { // REQUIRED Cluster InstanceGetClusterAttributeType `json:"cluster" required:"true"` @@ -369,12 +465,14 @@ type Instance struct { State InstanceGetStateAttributeType `json:"state,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Instance Instance // NewInstance instantiates a new Instance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstance(cluster InstanceGetClusterArgType, grafanaPublicReadAccess InstancegetGrafanaPublicReadAccessArgType, grafanaUseStackitSso InstancegetGrafanaUseStackitSsoArgType, instance InstanceGetInstanceArgType, metricsRetentionTime1h InstanceGetMetricsRetentionTime1hArgType, metricsRetentionTime5m InstanceGetMetricsRetentionTime5mArgType, metricsRetentionTimeRaw InstanceGetMetricsRetentionTimeRawArgType, plan InstanceGetPlanArgType) *Instance { this := Instance{} setInstanceGetClusterAttributeType(&this.Cluster, cluster) @@ -391,12 +489,14 @@ func NewInstance(cluster InstanceGetClusterArgType, grafanaPublicReadAccess Inst // NewInstanceWithDefaults instantiates a new Instance object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceWithDefaults() *Instance { this := Instance{} return &this } // GetCluster returns the Cluster field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCluster() (ret InstanceGetClusterRetType) { ret, _ = o.GetClusterOk() return ret @@ -404,16 +504,19 @@ func (o *Instance) GetCluster() (ret InstanceGetClusterRetType) { // GetClusterOk returns a tuple with the Cluster field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetClusterOk() (ret InstanceGetClusterRetType, ok bool) { return getInstanceGetClusterAttributeTypeOk(o.Cluster) } // SetCluster sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetCluster(v InstanceGetClusterRetType) { setInstanceGetClusterAttributeType(&o.Cluster, v) } // GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetGrafanaPublicReadAccess() (ret InstancegetGrafanaPublicReadAccessRetType) { ret, _ = o.GetGrafanaPublicReadAccessOk() return ret @@ -421,16 +524,19 @@ func (o *Instance) GetGrafanaPublicReadAccess() (ret InstancegetGrafanaPublicRea // GetGrafanaPublicReadAccessOk returns a tuple with the GrafanaPublicReadAccess field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetGrafanaPublicReadAccessOk() (ret InstancegetGrafanaPublicReadAccessRetType, ok bool) { return getInstancegetGrafanaPublicReadAccessAttributeTypeOk(o.GrafanaPublicReadAccess) } // SetGrafanaPublicReadAccess sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetGrafanaPublicReadAccess(v InstancegetGrafanaPublicReadAccessRetType) { setInstancegetGrafanaPublicReadAccessAttributeType(&o.GrafanaPublicReadAccess, v) } // GetGrafanaUseStackitSso returns the GrafanaUseStackitSso field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetGrafanaUseStackitSso() (ret InstancegetGrafanaUseStackitSsoRetType) { ret, _ = o.GetGrafanaUseStackitSsoOk() return ret @@ -438,16 +544,19 @@ func (o *Instance) GetGrafanaUseStackitSso() (ret InstancegetGrafanaUseStackitSs // GetGrafanaUseStackitSsoOk returns a tuple with the GrafanaUseStackitSso field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetGrafanaUseStackitSsoOk() (ret InstancegetGrafanaUseStackitSsoRetType, ok bool) { return getInstancegetGrafanaUseStackitSsoAttributeTypeOk(o.GrafanaUseStackitSso) } // SetGrafanaUseStackitSso sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetGrafanaUseStackitSso(v InstancegetGrafanaUseStackitSsoRetType) { setInstancegetGrafanaUseStackitSsoAttributeType(&o.GrafanaUseStackitSso, v) } // GetInstance returns the Instance field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetInstance() (ret InstanceGetInstanceRetType) { ret, _ = o.GetInstanceOk() return ret @@ -455,16 +564,19 @@ func (o *Instance) GetInstance() (ret InstanceGetInstanceRetType) { // GetInstanceOk returns a tuple with the Instance field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetInstanceOk() (ret InstanceGetInstanceRetType, ok bool) { return getInstanceGetInstanceAttributeTypeOk(o.Instance) } // SetInstance sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetInstance(v InstanceGetInstanceRetType) { setInstanceGetInstanceAttributeType(&o.Instance, v) } // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetMetricsRetentionTime1h() (ret InstanceGetMetricsRetentionTime1hRetType) { ret, _ = o.GetMetricsRetentionTime1hOk() return ret @@ -472,16 +584,19 @@ func (o *Instance) GetMetricsRetentionTime1h() (ret InstanceGetMetricsRetentionT // GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetMetricsRetentionTime1hOk() (ret InstanceGetMetricsRetentionTime1hRetType, ok bool) { return getInstanceGetMetricsRetentionTime1hAttributeTypeOk(o.MetricsRetentionTime1h) } // SetMetricsRetentionTime1h sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetMetricsRetentionTime1h(v InstanceGetMetricsRetentionTime1hRetType) { setInstanceGetMetricsRetentionTime1hAttributeType(&o.MetricsRetentionTime1h, v) } // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetMetricsRetentionTime5m() (ret InstanceGetMetricsRetentionTime5mRetType) { ret, _ = o.GetMetricsRetentionTime5mOk() return ret @@ -489,16 +604,19 @@ func (o *Instance) GetMetricsRetentionTime5m() (ret InstanceGetMetricsRetentionT // GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetMetricsRetentionTime5mOk() (ret InstanceGetMetricsRetentionTime5mRetType, ok bool) { return getInstanceGetMetricsRetentionTime5mAttributeTypeOk(o.MetricsRetentionTime5m) } // SetMetricsRetentionTime5m sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetMetricsRetentionTime5m(v InstanceGetMetricsRetentionTime5mRetType) { setInstanceGetMetricsRetentionTime5mAttributeType(&o.MetricsRetentionTime5m, v) } // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetMetricsRetentionTimeRaw() (ret InstanceGetMetricsRetentionTimeRawRetType) { ret, _ = o.GetMetricsRetentionTimeRawOk() return ret @@ -506,16 +624,19 @@ func (o *Instance) GetMetricsRetentionTimeRaw() (ret InstanceGetMetricsRetention // GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetMetricsRetentionTimeRawOk() (ret InstanceGetMetricsRetentionTimeRawRetType, ok bool) { return getInstanceGetMetricsRetentionTimeRawAttributeTypeOk(o.MetricsRetentionTimeRaw) } // SetMetricsRetentionTimeRaw sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetMetricsRetentionTimeRaw(v InstanceGetMetricsRetentionTimeRawRetType) { setInstanceGetMetricsRetentionTimeRawAttributeType(&o.MetricsRetentionTimeRaw, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetName() (res InstanceGetNameRetType) { res, _ = o.GetNameOk() return @@ -523,22 +644,26 @@ func (o *Instance) GetName() (res InstanceGetNameRetType) { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetNameOk() (ret InstanceGetNameRetType, ok bool) { return getInstanceGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetName(v InstanceGetNameRetType) { setInstanceGetNameAttributeType(&o.Name, v) } // GetPlan returns the Plan field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetPlan() (ret InstanceGetPlanRetType) { ret, _ = o.GetPlanOk() return ret @@ -546,16 +671,19 @@ func (o *Instance) GetPlan() (ret InstanceGetPlanRetType) { // GetPlanOk returns a tuple with the Plan field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetPlanOk() (ret InstanceGetPlanRetType, ok bool) { return getInstanceGetPlanAttributeTypeOk(o.Plan) } // SetPlan sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetPlan(v InstanceGetPlanRetType) { setInstanceGetPlanAttributeType(&o.Plan, v) } // GetState returns the State field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetState() (res InstanceGetStateRetType) { res, _ = o.GetStateOk() return @@ -563,21 +691,25 @@ func (o *Instance) GetState() (res InstanceGetStateRetType) { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetStateOk() (ret InstanceGetStateRetType, ok bool) { return getInstanceGetStateAttributeTypeOk(o.State) } // HasState returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) HasState() bool { _, ok := o.GetStateOk() return ok } // SetState gets a reference to the given string and assigns it to the State field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetState(v InstanceGetStateRetType) { setInstanceGetStateAttributeType(&o.State, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Instance) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceGetClusterAttributeTypeOk(o.Cluster); ok { @@ -613,37 +745,45 @@ func (o Instance) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstance struct { value *Instance isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstance) Get() *Instance { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstance) Set(val *Instance) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstance) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstance) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstance(val *Instance) *NullableInstance { return &NullableInstance{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstance) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_instance_response.go b/services/observability/model_instance_response.go index 1ee65eacb..9d906ed77 100644 --- a/services/observability/model_instance_response.go +++ b/services/observability/model_instance_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &InstanceResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceResponseGetMessageAttributeTypeOk(arg InstanceResponseGetMessageAttributeType) (ret InstanceResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getInstanceResponseGetMessageAttributeTypeOk(arg InstanceResponseGetMessage return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceResponseGetMessageAttributeType(arg *InstanceResponseGetMessageAttributeType, val InstanceResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceResponseGetMessageRetType = string // InstanceResponse struct for InstanceResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceResponse struct { // REQUIRED Message InstanceResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _InstanceResponse InstanceResponse // NewInstanceResponse instantiates a new InstanceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceResponse(message InstanceResponseGetMessageArgType) *InstanceResponse { this := InstanceResponse{} setInstanceResponseGetMessageAttributeType(&this.Message, message) @@ -59,12 +69,14 @@ func NewInstanceResponse(message InstanceResponseGetMessageArgType) *InstanceRes // NewInstanceResponseWithDefaults instantiates a new InstanceResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceResponseWithDefaults() *InstanceResponse { this := InstanceResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceResponse) GetMessage() (ret InstanceResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -72,15 +84,18 @@ func (o *InstanceResponse) GetMessage() (ret InstanceResponseGetMessageRetType) // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceResponse) GetMessageOk() (ret InstanceResponseGetMessageRetType, ok bool) { return getInstanceResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceResponse) SetMessage(v InstanceResponseGetMessageRetType) { setInstanceResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o InstanceResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -89,37 +104,45 @@ func (o InstanceResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceResponse struct { value *InstanceResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceResponse) Get() *InstanceResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceResponse) Set(val *InstanceResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceResponse(val *InstanceResponse) *NullableInstanceResponse { return &NullableInstanceResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_instance_sensitive_data.go b/services/observability/model_instance_sensitive_data.go index 2e748f0ff..587308903 100644 --- a/services/observability/model_instance_sensitive_data.go +++ b/services/observability/model_instance_sensitive_data.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &InstanceSensitiveData{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetAlertingUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetAlertingUrlAttributeTypeOk(arg InstanceSensitiveDataGetAlertingUrlAttributeType) (ret InstanceSensitiveDataGetAlertingUrlRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getInstanceSensitiveDataGetAlertingUrlAttributeTypeOk(arg InstanceSensitive return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetAlertingUrlAttributeType(arg *InstanceSensitiveDataGetAlertingUrlAttributeType, val InstanceSensitiveDataGetAlertingUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetAlertingUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetAlertingUrlRetType = string /* @@ -43,8 +50,10 @@ type InstanceSensitiveDataGetAlertingUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetClusterAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetClusterAttributeTypeOk(arg InstanceSensitiveDataGetClusterAttributeType) (ret InstanceSensitiveDataGetClusterRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getInstanceSensitiveDataGetClusterAttributeTypeOk(arg InstanceSensitiveData return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetClusterAttributeType(arg *InstanceSensitiveDataGetClusterAttributeType, val InstanceSensitiveDataGetClusterRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetClusterArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetClusterRetType = string /* @@ -64,8 +77,10 @@ type InstanceSensitiveDataGetClusterRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetDashboardUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetDashboardUrlAttributeTypeOk(arg InstanceSensitiveDataGetDashboardUrlAttributeType) (ret InstanceSensitiveDataGetDashboardUrlRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getInstanceSensitiveDataGetDashboardUrlAttributeTypeOk(arg InstanceSensitiv return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetDashboardUrlAttributeType(arg *InstanceSensitiveDataGetDashboardUrlAttributeType, val InstanceSensitiveDataGetDashboardUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetDashboardUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetDashboardUrlRetType = string /* @@ -85,10 +104,16 @@ type InstanceSensitiveDataGetDashboardUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaAdminEnabledAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaAdminEnabledArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaAdminEnabledRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDatagetGrafanaAdminEnabledAttributeTypeOk(arg InstanceSensitiveDatagetGrafanaAdminEnabledAttributeType) (ret InstanceSensitiveDatagetGrafanaAdminEnabledRetType, ok bool) { if arg == nil { return ret, false @@ -96,6 +121,7 @@ func getInstanceSensitiveDatagetGrafanaAdminEnabledAttributeTypeOk(arg InstanceS return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDatagetGrafanaAdminEnabledAttributeType(arg *InstanceSensitiveDatagetGrafanaAdminEnabledAttributeType, val InstanceSensitiveDatagetGrafanaAdminEnabledRetType) { *arg = &val } @@ -105,8 +131,10 @@ func setInstanceSensitiveDatagetGrafanaAdminEnabledAttributeType(arg *InstanceSe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaAdminPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetGrafanaAdminPasswordAttributeTypeOk(arg InstanceSensitiveDataGetGrafanaAdminPasswordAttributeType) (ret InstanceSensitiveDataGetGrafanaAdminPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -114,11 +142,15 @@ func getInstanceSensitiveDataGetGrafanaAdminPasswordAttributeTypeOk(arg Instance return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetGrafanaAdminPasswordAttributeType(arg *InstanceSensitiveDataGetGrafanaAdminPasswordAttributeType, val InstanceSensitiveDataGetGrafanaAdminPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaAdminPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaAdminPasswordRetType = string /* @@ -126,8 +158,10 @@ type InstanceSensitiveDataGetGrafanaAdminPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaAdminUserAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetGrafanaAdminUserAttributeTypeOk(arg InstanceSensitiveDataGetGrafanaAdminUserAttributeType) (ret InstanceSensitiveDataGetGrafanaAdminUserRetType, ok bool) { if arg == nil { return ret, false @@ -135,11 +169,15 @@ func getInstanceSensitiveDataGetGrafanaAdminUserAttributeTypeOk(arg InstanceSens return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetGrafanaAdminUserAttributeType(arg *InstanceSensitiveDataGetGrafanaAdminUserAttributeType, val InstanceSensitiveDataGetGrafanaAdminUserRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaAdminUserArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaAdminUserRetType = string /* @@ -147,10 +185,16 @@ type InstanceSensitiveDataGetGrafanaAdminUserRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaPublicReadAccessArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaPublicReadAccessRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeTypeOk(arg InstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType) (ret InstanceSensitiveDatagetGrafanaPublicReadAccessRetType, ok bool) { if arg == nil { return ret, false @@ -158,6 +202,7 @@ func getInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeTypeOk(arg Insta return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType(arg *InstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType, val InstanceSensitiveDatagetGrafanaPublicReadAccessRetType) { *arg = &val } @@ -167,8 +212,10 @@ func setInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType(arg *Instan */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetGrafanaUrlAttributeTypeOk(arg InstanceSensitiveDataGetGrafanaUrlAttributeType) (ret InstanceSensitiveDataGetGrafanaUrlRetType, ok bool) { if arg == nil { return ret, false @@ -176,11 +223,15 @@ func getInstanceSensitiveDataGetGrafanaUrlAttributeTypeOk(arg InstanceSensitiveD return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetGrafanaUrlAttributeType(arg *InstanceSensitiveDataGetGrafanaUrlAttributeType, val InstanceSensitiveDataGetGrafanaUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetGrafanaUrlRetType = string /* @@ -188,10 +239,16 @@ type InstanceSensitiveDataGetGrafanaUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaUseStackitSsoArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDatagetGrafanaUseStackitSsoRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeTypeOk(arg InstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType) (ret InstanceSensitiveDatagetGrafanaUseStackitSsoRetType, ok bool) { if arg == nil { return ret, false @@ -199,6 +256,7 @@ func getInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeTypeOk(arg Instance return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType(arg *InstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType, val InstanceSensitiveDatagetGrafanaUseStackitSsoRetType) { *arg = &val } @@ -208,8 +266,10 @@ func setInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType(arg *InstanceS */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetInstanceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetInstanceAttributeTypeOk(arg InstanceSensitiveDataGetInstanceAttributeType) (ret InstanceSensitiveDataGetInstanceRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +277,15 @@ func getInstanceSensitiveDataGetInstanceAttributeTypeOk(arg InstanceSensitiveDat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetInstanceAttributeType(arg *InstanceSensitiveDataGetInstanceAttributeType, val InstanceSensitiveDataGetInstanceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetInstanceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetInstanceRetType = string /* @@ -229,8 +293,10 @@ type InstanceSensitiveDataGetInstanceRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerHttpTracesUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetJaegerHttpTracesUrlAttributeTypeOk(arg InstanceSensitiveDataGetJaegerHttpTracesUrlAttributeType) (ret InstanceSensitiveDataGetJaegerHttpTracesUrlRetType, ok bool) { if arg == nil { return ret, false @@ -238,11 +304,15 @@ func getInstanceSensitiveDataGetJaegerHttpTracesUrlAttributeTypeOk(arg InstanceS return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetJaegerHttpTracesUrlAttributeType(arg *InstanceSensitiveDataGetJaegerHttpTracesUrlAttributeType, val InstanceSensitiveDataGetJaegerHttpTracesUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerHttpTracesUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerHttpTracesUrlRetType = string /* @@ -250,8 +320,10 @@ type InstanceSensitiveDataGetJaegerHttpTracesUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerHttpUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetJaegerHttpUrlAttributeTypeOk(arg InstanceSensitiveDataGetJaegerHttpUrlAttributeType) (ret InstanceSensitiveDataGetJaegerHttpUrlRetType, ok bool) { if arg == nil { return ret, false @@ -259,11 +331,15 @@ func getInstanceSensitiveDataGetJaegerHttpUrlAttributeTypeOk(arg InstanceSensiti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetJaegerHttpUrlAttributeType(arg *InstanceSensitiveDataGetJaegerHttpUrlAttributeType, val InstanceSensitiveDataGetJaegerHttpUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerHttpUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerHttpUrlRetType = string /* @@ -271,8 +347,10 @@ type InstanceSensitiveDataGetJaegerHttpUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerTracesUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetJaegerTracesUrlAttributeTypeOk(arg InstanceSensitiveDataGetJaegerTracesUrlAttributeType) (ret InstanceSensitiveDataGetJaegerTracesUrlRetType, ok bool) { if arg == nil { return ret, false @@ -280,11 +358,15 @@ func getInstanceSensitiveDataGetJaegerTracesUrlAttributeTypeOk(arg InstanceSensi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetJaegerTracesUrlAttributeType(arg *InstanceSensitiveDataGetJaegerTracesUrlAttributeType, val InstanceSensitiveDataGetJaegerTracesUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerTracesUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerTracesUrlRetType = string /* @@ -292,8 +374,10 @@ type InstanceSensitiveDataGetJaegerTracesUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerUiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetJaegerUiUrlAttributeTypeOk(arg InstanceSensitiveDataGetJaegerUiUrlAttributeType) (ret InstanceSensitiveDataGetJaegerUiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -301,11 +385,15 @@ func getInstanceSensitiveDataGetJaegerUiUrlAttributeTypeOk(arg InstanceSensitive return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetJaegerUiUrlAttributeType(arg *InstanceSensitiveDataGetJaegerUiUrlAttributeType, val InstanceSensitiveDataGetJaegerUiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerUiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetJaegerUiUrlRetType = string /* @@ -313,8 +401,10 @@ type InstanceSensitiveDataGetJaegerUiUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetLogsPushUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetLogsPushUrlAttributeTypeOk(arg InstanceSensitiveDataGetLogsPushUrlAttributeType) (ret InstanceSensitiveDataGetLogsPushUrlRetType, ok bool) { if arg == nil { return ret, false @@ -322,11 +412,15 @@ func getInstanceSensitiveDataGetLogsPushUrlAttributeTypeOk(arg InstanceSensitive return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetLogsPushUrlAttributeType(arg *InstanceSensitiveDataGetLogsPushUrlAttributeType, val InstanceSensitiveDataGetLogsPushUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetLogsPushUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetLogsPushUrlRetType = string /* @@ -334,8 +428,10 @@ type InstanceSensitiveDataGetLogsPushUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetLogsUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetLogsUrlAttributeTypeOk(arg InstanceSensitiveDataGetLogsUrlAttributeType) (ret InstanceSensitiveDataGetLogsUrlRetType, ok bool) { if arg == nil { return ret, false @@ -343,11 +439,15 @@ func getInstanceSensitiveDataGetLogsUrlAttributeTypeOk(arg InstanceSensitiveData return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetLogsUrlAttributeType(arg *InstanceSensitiveDataGetLogsUrlAttributeType, val InstanceSensitiveDataGetLogsUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetLogsUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetLogsUrlRetType = string /* @@ -355,8 +455,10 @@ type InstanceSensitiveDataGetLogsUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsEndpointUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetMetricsEndpointUrlAttributeTypeOk(arg InstanceSensitiveDataGetMetricsEndpointUrlAttributeType) (ret InstanceSensitiveDataGetMetricsEndpointUrlRetType, ok bool) { if arg == nil { return ret, false @@ -364,11 +466,15 @@ func getInstanceSensitiveDataGetMetricsEndpointUrlAttributeTypeOk(arg InstanceSe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetMetricsEndpointUrlAttributeType(arg *InstanceSensitiveDataGetMetricsEndpointUrlAttributeType, val InstanceSensitiveDataGetMetricsEndpointUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsEndpointUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsEndpointUrlRetType = string /* @@ -376,10 +482,16 @@ type InstanceSensitiveDataGetMetricsEndpointUrlRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTime1hAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTime1hArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTime1hRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetMetricsRetentionTime1hAttributeTypeOk(arg InstanceSensitiveDataGetMetricsRetentionTime1hAttributeType) (ret InstanceSensitiveDataGetMetricsRetentionTime1hRetType, ok bool) { if arg == nil { return ret, false @@ -387,6 +499,7 @@ func getInstanceSensitiveDataGetMetricsRetentionTime1hAttributeTypeOk(arg Instan return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetMetricsRetentionTime1hAttributeType(arg *InstanceSensitiveDataGetMetricsRetentionTime1hAttributeType, val InstanceSensitiveDataGetMetricsRetentionTime1hRetType) { *arg = &val } @@ -396,10 +509,16 @@ func setInstanceSensitiveDataGetMetricsRetentionTime1hAttributeType(arg *Instanc */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTime5mAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTime5mArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTime5mRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetMetricsRetentionTime5mAttributeTypeOk(arg InstanceSensitiveDataGetMetricsRetentionTime5mAttributeType) (ret InstanceSensitiveDataGetMetricsRetentionTime5mRetType, ok bool) { if arg == nil { return ret, false @@ -407,6 +526,7 @@ func getInstanceSensitiveDataGetMetricsRetentionTime5mAttributeTypeOk(arg Instan return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetMetricsRetentionTime5mAttributeType(arg *InstanceSensitiveDataGetMetricsRetentionTime5mAttributeType, val InstanceSensitiveDataGetMetricsRetentionTime5mRetType) { *arg = &val } @@ -416,10 +536,16 @@ func setInstanceSensitiveDataGetMetricsRetentionTime5mAttributeType(arg *Instanc */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTimeRawAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTimeRawArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsRetentionTimeRawRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetMetricsRetentionTimeRawAttributeTypeOk(arg InstanceSensitiveDataGetMetricsRetentionTimeRawAttributeType) (ret InstanceSensitiveDataGetMetricsRetentionTimeRawRetType, ok bool) { if arg == nil { return ret, false @@ -427,6 +553,7 @@ func getInstanceSensitiveDataGetMetricsRetentionTimeRawAttributeTypeOk(arg Insta return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetMetricsRetentionTimeRawAttributeType(arg *InstanceSensitiveDataGetMetricsRetentionTimeRawAttributeType, val InstanceSensitiveDataGetMetricsRetentionTimeRawRetType) { *arg = &val } @@ -436,8 +563,10 @@ func setInstanceSensitiveDataGetMetricsRetentionTimeRawAttributeType(arg *Instan */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetMetricsUrlAttributeTypeOk(arg InstanceSensitiveDataGetMetricsUrlAttributeType) (ret InstanceSensitiveDataGetMetricsUrlRetType, ok bool) { if arg == nil { return ret, false @@ -445,11 +574,15 @@ func getInstanceSensitiveDataGetMetricsUrlAttributeTypeOk(arg InstanceSensitiveD return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetMetricsUrlAttributeType(arg *InstanceSensitiveDataGetMetricsUrlAttributeType, val InstanceSensitiveDataGetMetricsUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetMetricsUrlRetType = string /* @@ -457,8 +590,10 @@ type InstanceSensitiveDataGetMetricsUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetNameAttributeTypeOk(arg InstanceSensitiveDataGetNameAttributeType) (ret InstanceSensitiveDataGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -466,11 +601,15 @@ func getInstanceSensitiveDataGetNameAttributeTypeOk(arg InstanceSensitiveDataGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetNameAttributeType(arg *InstanceSensitiveDataGetNameAttributeType, val InstanceSensitiveDataGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetNameRetType = string /* @@ -478,8 +617,10 @@ type InstanceSensitiveDataGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeTypeOk(arg InstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeType) (ret InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType, ok bool) { if arg == nil { return ret, false @@ -487,11 +628,15 @@ func getInstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeTypeOk(arg InstanceSen return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeType(arg *InstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeType, val InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpGrpcTracesUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType = string /* @@ -499,8 +644,10 @@ type InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpHttpTracesUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetOtlpHttpTracesUrlAttributeTypeOk(arg InstanceSensitiveDataGetOtlpHttpTracesUrlAttributeType) (ret InstanceSensitiveDataGetOtlpHttpTracesUrlRetType, ok bool) { if arg == nil { return ret, false @@ -508,11 +655,15 @@ func getInstanceSensitiveDataGetOtlpHttpTracesUrlAttributeTypeOk(arg InstanceSen return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetOtlpHttpTracesUrlAttributeType(arg *InstanceSensitiveDataGetOtlpHttpTracesUrlAttributeType, val InstanceSensitiveDataGetOtlpHttpTracesUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpHttpTracesUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpHttpTracesUrlRetType = string /* @@ -520,8 +671,10 @@ type InstanceSensitiveDataGetOtlpHttpTracesUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpTracesUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetOtlpTracesUrlAttributeTypeOk(arg InstanceSensitiveDataGetOtlpTracesUrlAttributeType) (ret InstanceSensitiveDataGetOtlpTracesUrlRetType, ok bool) { if arg == nil { return ret, false @@ -529,11 +682,15 @@ func getInstanceSensitiveDataGetOtlpTracesUrlAttributeTypeOk(arg InstanceSensiti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetOtlpTracesUrlAttributeType(arg *InstanceSensitiveDataGetOtlpTracesUrlAttributeType, val InstanceSensitiveDataGetOtlpTracesUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpTracesUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetOtlpTracesUrlRetType = string /* @@ -541,10 +698,16 @@ type InstanceSensitiveDataGetOtlpTracesUrlRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetPlanAttributeType = *PlanModel + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetPlanArgType = PlanModel + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetPlanRetType = PlanModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetPlanAttributeTypeOk(arg InstanceSensitiveDataGetPlanAttributeType) (ret InstanceSensitiveDataGetPlanRetType, ok bool) { if arg == nil { return ret, false @@ -552,6 +715,7 @@ func getInstanceSensitiveDataGetPlanAttributeTypeOk(arg InstanceSensitiveDataGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetPlanAttributeType(arg *InstanceSensitiveDataGetPlanAttributeType, val InstanceSensitiveDataGetPlanRetType) { *arg = &val } @@ -561,8 +725,10 @@ func setInstanceSensitiveDataGetPlanAttributeType(arg *InstanceSensitiveDataGetP */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetPushMetricsUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetPushMetricsUrlAttributeTypeOk(arg InstanceSensitiveDataGetPushMetricsUrlAttributeType) (ret InstanceSensitiveDataGetPushMetricsUrlRetType, ok bool) { if arg == nil { return ret, false @@ -570,11 +736,15 @@ func getInstanceSensitiveDataGetPushMetricsUrlAttributeTypeOk(arg InstanceSensit return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetPushMetricsUrlAttributeType(arg *InstanceSensitiveDataGetPushMetricsUrlAttributeType, val InstanceSensitiveDataGetPushMetricsUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetPushMetricsUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetPushMetricsUrlRetType = string /* @@ -582,8 +752,10 @@ type InstanceSensitiveDataGetPushMetricsUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetTargetsUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetTargetsUrlAttributeTypeOk(arg InstanceSensitiveDataGetTargetsUrlAttributeType) (ret InstanceSensitiveDataGetTargetsUrlRetType, ok bool) { if arg == nil { return ret, false @@ -591,11 +763,15 @@ func getInstanceSensitiveDataGetTargetsUrlAttributeTypeOk(arg InstanceSensitiveD return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetTargetsUrlAttributeType(arg *InstanceSensitiveDataGetTargetsUrlAttributeType, val InstanceSensitiveDataGetTargetsUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetTargetsUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetTargetsUrlRetType = string /* @@ -603,8 +779,10 @@ type InstanceSensitiveDataGetTargetsUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetZipkinSpansUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSensitiveDataGetZipkinSpansUrlAttributeTypeOk(arg InstanceSensitiveDataGetZipkinSpansUrlAttributeType) (ret InstanceSensitiveDataGetZipkinSpansUrlRetType, ok bool) { if arg == nil { return ret, false @@ -612,14 +790,19 @@ func getInstanceSensitiveDataGetZipkinSpansUrlAttributeTypeOk(arg InstanceSensit return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSensitiveDataGetZipkinSpansUrlAttributeType(arg *InstanceSensitiveDataGetZipkinSpansUrlAttributeType, val InstanceSensitiveDataGetZipkinSpansUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetZipkinSpansUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetZipkinSpansUrlRetType = string // InstanceSensitiveData struct for InstanceSensitiveData +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveData struct { // REQUIRED AlertingUrl InstanceSensitiveDataGetAlertingUrlAttributeType `json:"alertingUrl" required:"true"` @@ -682,12 +865,14 @@ type InstanceSensitiveData struct { ZipkinSpansUrl InstanceSensitiveDataGetZipkinSpansUrlAttributeType `json:"zipkinSpansUrl" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _InstanceSensitiveData InstanceSensitiveData // NewInstanceSensitiveData instantiates a new InstanceSensitiveData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceSensitiveData(alertingUrl InstanceSensitiveDataGetAlertingUrlArgType, cluster InstanceSensitiveDataGetClusterArgType, dashboardUrl InstanceSensitiveDataGetDashboardUrlArgType, grafanaAdminEnabled InstanceSensitiveDatagetGrafanaAdminEnabledArgType, grafanaAdminPassword InstanceSensitiveDataGetGrafanaAdminPasswordArgType, grafanaAdminUser InstanceSensitiveDataGetGrafanaAdminUserArgType, grafanaPublicReadAccess InstanceSensitiveDatagetGrafanaPublicReadAccessArgType, grafanaUrl InstanceSensitiveDataGetGrafanaUrlArgType, grafanaUseStackitSso InstanceSensitiveDatagetGrafanaUseStackitSsoArgType, instance InstanceSensitiveDataGetInstanceArgType, jaegerHttpUrl InstanceSensitiveDataGetJaegerHttpUrlArgType, jaegerTracesUrl InstanceSensitiveDataGetJaegerTracesUrlArgType, jaegerUiUrl InstanceSensitiveDataGetJaegerUiUrlArgType, logsPushUrl InstanceSensitiveDataGetLogsPushUrlArgType, logsUrl InstanceSensitiveDataGetLogsUrlArgType, metricsEndpointUrl InstanceSensitiveDataGetMetricsEndpointUrlArgType, metricsRetentionTime1h InstanceSensitiveDataGetMetricsRetentionTime1hArgType, metricsRetentionTime5m InstanceSensitiveDataGetMetricsRetentionTime5mArgType, metricsRetentionTimeRaw InstanceSensitiveDataGetMetricsRetentionTimeRawArgType, metricsUrl InstanceSensitiveDataGetMetricsUrlArgType, otlpGrpcTracesUrl InstanceSensitiveDataGetOtlpGrpcTracesUrlArgType, otlpHttpTracesUrl InstanceSensitiveDataGetOtlpHttpTracesUrlArgType, otlpTracesUrl InstanceSensitiveDataGetOtlpTracesUrlArgType, plan InstanceSensitiveDataGetPlanArgType, pushMetricsUrl InstanceSensitiveDataGetPushMetricsUrlArgType, targetsUrl InstanceSensitiveDataGetTargetsUrlArgType, zipkinSpansUrl InstanceSensitiveDataGetZipkinSpansUrlArgType) *InstanceSensitiveData { this := InstanceSensitiveData{} setInstanceSensitiveDataGetAlertingUrlAttributeType(&this.AlertingUrl, alertingUrl) @@ -723,6 +908,7 @@ func NewInstanceSensitiveData(alertingUrl InstanceSensitiveDataGetAlertingUrlArg // NewInstanceSensitiveDataWithDefaults instantiates a new InstanceSensitiveData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceSensitiveDataWithDefaults() *InstanceSensitiveData { this := InstanceSensitiveData{} var grafanaAdminEnabled bool = true @@ -733,6 +919,7 @@ func NewInstanceSensitiveDataWithDefaults() *InstanceSensitiveData { } // GetAlertingUrl returns the AlertingUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetAlertingUrl() (ret InstanceSensitiveDataGetAlertingUrlRetType) { ret, _ = o.GetAlertingUrlOk() return ret @@ -740,16 +927,19 @@ func (o *InstanceSensitiveData) GetAlertingUrl() (ret InstanceSensitiveDataGetAl // GetAlertingUrlOk returns a tuple with the AlertingUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetAlertingUrlOk() (ret InstanceSensitiveDataGetAlertingUrlRetType, ok bool) { return getInstanceSensitiveDataGetAlertingUrlAttributeTypeOk(o.AlertingUrl) } // SetAlertingUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetAlertingUrl(v InstanceSensitiveDataGetAlertingUrlRetType) { setInstanceSensitiveDataGetAlertingUrlAttributeType(&o.AlertingUrl, v) } // GetCluster returns the Cluster field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetCluster() (ret InstanceSensitiveDataGetClusterRetType) { ret, _ = o.GetClusterOk() return ret @@ -757,16 +947,19 @@ func (o *InstanceSensitiveData) GetCluster() (ret InstanceSensitiveDataGetCluste // GetClusterOk returns a tuple with the Cluster field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetClusterOk() (ret InstanceSensitiveDataGetClusterRetType, ok bool) { return getInstanceSensitiveDataGetClusterAttributeTypeOk(o.Cluster) } // SetCluster sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetCluster(v InstanceSensitiveDataGetClusterRetType) { setInstanceSensitiveDataGetClusterAttributeType(&o.Cluster, v) } // GetDashboardUrl returns the DashboardUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetDashboardUrl() (ret InstanceSensitiveDataGetDashboardUrlRetType) { ret, _ = o.GetDashboardUrlOk() return ret @@ -774,16 +967,19 @@ func (o *InstanceSensitiveData) GetDashboardUrl() (ret InstanceSensitiveDataGetD // GetDashboardUrlOk returns a tuple with the DashboardUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetDashboardUrlOk() (ret InstanceSensitiveDataGetDashboardUrlRetType, ok bool) { return getInstanceSensitiveDataGetDashboardUrlAttributeTypeOk(o.DashboardUrl) } // SetDashboardUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetDashboardUrl(v InstanceSensitiveDataGetDashboardUrlRetType) { setInstanceSensitiveDataGetDashboardUrlAttributeType(&o.DashboardUrl, v) } // GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminEnabled() (ret InstanceSensitiveDatagetGrafanaAdminEnabledRetType) { ret, _ = o.GetGrafanaAdminEnabledOk() return ret @@ -791,17 +987,19 @@ func (o *InstanceSensitiveData) GetGrafanaAdminEnabled() (ret InstanceSensitiveD // GetGrafanaAdminEnabledOk returns a tuple with the GrafanaAdminEnabled field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminEnabledOk() (ret InstanceSensitiveDatagetGrafanaAdminEnabledRetType, ok bool) { return getInstanceSensitiveDatagetGrafanaAdminEnabledAttributeTypeOk(o.GrafanaAdminEnabled) } // SetGrafanaAdminEnabled sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaAdminEnabled(v InstanceSensitiveDatagetGrafanaAdminEnabledRetType) { setInstanceSensitiveDatagetGrafanaAdminEnabledAttributeType(&o.GrafanaAdminEnabled, v) } // GetGrafanaAdminPassword returns the GrafanaAdminPassword field value -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminPassword() (ret InstanceSensitiveDataGetGrafanaAdminPasswordRetType) { ret, _ = o.GetGrafanaAdminPasswordOk() return ret @@ -809,19 +1007,19 @@ func (o *InstanceSensitiveData) GetGrafanaAdminPassword() (ret InstanceSensitive // GetGrafanaAdminPasswordOk returns a tuple with the GrafanaAdminPassword field value // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminPasswordOk() (ret InstanceSensitiveDataGetGrafanaAdminPasswordRetType, ok bool) { return getInstanceSensitiveDataGetGrafanaAdminPasswordAttributeTypeOk(o.GrafanaAdminPassword) } // SetGrafanaAdminPassword sets field value -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaAdminPassword(v InstanceSensitiveDataGetGrafanaAdminPasswordRetType) { setInstanceSensitiveDataGetGrafanaAdminPasswordAttributeType(&o.GrafanaAdminPassword, v) } // GetGrafanaAdminUser returns the GrafanaAdminUser field value -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminUser() (ret InstanceSensitiveDataGetGrafanaAdminUserRetType) { ret, _ = o.GetGrafanaAdminUserOk() return ret @@ -829,18 +1027,19 @@ func (o *InstanceSensitiveData) GetGrafanaAdminUser() (ret InstanceSensitiveData // GetGrafanaAdminUserOk returns a tuple with the GrafanaAdminUser field value // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminUserOk() (ret InstanceSensitiveDataGetGrafanaAdminUserRetType, ok bool) { return getInstanceSensitiveDataGetGrafanaAdminUserAttributeTypeOk(o.GrafanaAdminUser) } // SetGrafanaAdminUser sets field value -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaAdminUser(v InstanceSensitiveDataGetGrafanaAdminUserRetType) { setInstanceSensitiveDataGetGrafanaAdminUserAttributeType(&o.GrafanaAdminUser, v) } // GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaPublicReadAccess() (ret InstanceSensitiveDatagetGrafanaPublicReadAccessRetType) { ret, _ = o.GetGrafanaPublicReadAccessOk() return ret @@ -848,16 +1047,19 @@ func (o *InstanceSensitiveData) GetGrafanaPublicReadAccess() (ret InstanceSensit // GetGrafanaPublicReadAccessOk returns a tuple with the GrafanaPublicReadAccess field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaPublicReadAccessOk() (ret InstanceSensitiveDatagetGrafanaPublicReadAccessRetType, ok bool) { return getInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeTypeOk(o.GrafanaPublicReadAccess) } // SetGrafanaPublicReadAccess sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaPublicReadAccess(v InstanceSensitiveDatagetGrafanaPublicReadAccessRetType) { setInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType(&o.GrafanaPublicReadAccess, v) } // GetGrafanaUrl returns the GrafanaUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaUrl() (ret InstanceSensitiveDataGetGrafanaUrlRetType) { ret, _ = o.GetGrafanaUrlOk() return ret @@ -865,16 +1067,19 @@ func (o *InstanceSensitiveData) GetGrafanaUrl() (ret InstanceSensitiveDataGetGra // GetGrafanaUrlOk returns a tuple with the GrafanaUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaUrlOk() (ret InstanceSensitiveDataGetGrafanaUrlRetType, ok bool) { return getInstanceSensitiveDataGetGrafanaUrlAttributeTypeOk(o.GrafanaUrl) } // SetGrafanaUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaUrl(v InstanceSensitiveDataGetGrafanaUrlRetType) { setInstanceSensitiveDataGetGrafanaUrlAttributeType(&o.GrafanaUrl, v) } // GetGrafanaUseStackitSso returns the GrafanaUseStackitSso field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaUseStackitSso() (ret InstanceSensitiveDatagetGrafanaUseStackitSsoRetType) { ret, _ = o.GetGrafanaUseStackitSsoOk() return ret @@ -882,16 +1087,19 @@ func (o *InstanceSensitiveData) GetGrafanaUseStackitSso() (ret InstanceSensitive // GetGrafanaUseStackitSsoOk returns a tuple with the GrafanaUseStackitSso field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaUseStackitSsoOk() (ret InstanceSensitiveDatagetGrafanaUseStackitSsoRetType, ok bool) { return getInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeTypeOk(o.GrafanaUseStackitSso) } // SetGrafanaUseStackitSso sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaUseStackitSso(v InstanceSensitiveDatagetGrafanaUseStackitSsoRetType) { setInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType(&o.GrafanaUseStackitSso, v) } // GetInstance returns the Instance field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetInstance() (ret InstanceSensitiveDataGetInstanceRetType) { ret, _ = o.GetInstanceOk() return ret @@ -899,17 +1107,19 @@ func (o *InstanceSensitiveData) GetInstance() (ret InstanceSensitiveDataGetInsta // GetInstanceOk returns a tuple with the Instance field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetInstanceOk() (ret InstanceSensitiveDataGetInstanceRetType, ok bool) { return getInstanceSensitiveDataGetInstanceAttributeTypeOk(o.Instance) } // SetInstance sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetInstance(v InstanceSensitiveDataGetInstanceRetType) { setInstanceSensitiveDataGetInstanceAttributeType(&o.Instance, v) } // GetJaegerHttpTracesUrl returns the JaegerHttpTracesUrl field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerHttpTracesUrl() (res InstanceSensitiveDataGetJaegerHttpTracesUrlRetType) { res, _ = o.GetJaegerHttpTracesUrlOk() return @@ -917,24 +1127,26 @@ func (o *InstanceSensitiveData) GetJaegerHttpTracesUrl() (res InstanceSensitiveD // GetJaegerHttpTracesUrlOk returns a tuple with the JaegerHttpTracesUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerHttpTracesUrlOk() (ret InstanceSensitiveDataGetJaegerHttpTracesUrlRetType, ok bool) { return getInstanceSensitiveDataGetJaegerHttpTracesUrlAttributeTypeOk(o.JaegerHttpTracesUrl) } // HasJaegerHttpTracesUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) HasJaegerHttpTracesUrl() bool { _, ok := o.GetJaegerHttpTracesUrlOk() return ok } // SetJaegerHttpTracesUrl gets a reference to the given string and assigns it to the JaegerHttpTracesUrl field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetJaegerHttpTracesUrl(v InstanceSensitiveDataGetJaegerHttpTracesUrlRetType) { setInstanceSensitiveDataGetJaegerHttpTracesUrlAttributeType(&o.JaegerHttpTracesUrl, v) } // GetJaegerHttpUrl returns the JaegerHttpUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerHttpUrl() (ret InstanceSensitiveDataGetJaegerHttpUrlRetType) { ret, _ = o.GetJaegerHttpUrlOk() return ret @@ -942,16 +1154,19 @@ func (o *InstanceSensitiveData) GetJaegerHttpUrl() (ret InstanceSensitiveDataGet // GetJaegerHttpUrlOk returns a tuple with the JaegerHttpUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerHttpUrlOk() (ret InstanceSensitiveDataGetJaegerHttpUrlRetType, ok bool) { return getInstanceSensitiveDataGetJaegerHttpUrlAttributeTypeOk(o.JaegerHttpUrl) } // SetJaegerHttpUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetJaegerHttpUrl(v InstanceSensitiveDataGetJaegerHttpUrlRetType) { setInstanceSensitiveDataGetJaegerHttpUrlAttributeType(&o.JaegerHttpUrl, v) } // GetJaegerTracesUrl returns the JaegerTracesUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerTracesUrl() (ret InstanceSensitiveDataGetJaegerTracesUrlRetType) { ret, _ = o.GetJaegerTracesUrlOk() return ret @@ -959,16 +1174,19 @@ func (o *InstanceSensitiveData) GetJaegerTracesUrl() (ret InstanceSensitiveDataG // GetJaegerTracesUrlOk returns a tuple with the JaegerTracesUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerTracesUrlOk() (ret InstanceSensitiveDataGetJaegerTracesUrlRetType, ok bool) { return getInstanceSensitiveDataGetJaegerTracesUrlAttributeTypeOk(o.JaegerTracesUrl) } // SetJaegerTracesUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetJaegerTracesUrl(v InstanceSensitiveDataGetJaegerTracesUrlRetType) { setInstanceSensitiveDataGetJaegerTracesUrlAttributeType(&o.JaegerTracesUrl, v) } // GetJaegerUiUrl returns the JaegerUiUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerUiUrl() (ret InstanceSensitiveDataGetJaegerUiUrlRetType) { ret, _ = o.GetJaegerUiUrlOk() return ret @@ -976,16 +1194,19 @@ func (o *InstanceSensitiveData) GetJaegerUiUrl() (ret InstanceSensitiveDataGetJa // GetJaegerUiUrlOk returns a tuple with the JaegerUiUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetJaegerUiUrlOk() (ret InstanceSensitiveDataGetJaegerUiUrlRetType, ok bool) { return getInstanceSensitiveDataGetJaegerUiUrlAttributeTypeOk(o.JaegerUiUrl) } // SetJaegerUiUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetJaegerUiUrl(v InstanceSensitiveDataGetJaegerUiUrlRetType) { setInstanceSensitiveDataGetJaegerUiUrlAttributeType(&o.JaegerUiUrl, v) } // GetLogsPushUrl returns the LogsPushUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetLogsPushUrl() (ret InstanceSensitiveDataGetLogsPushUrlRetType) { ret, _ = o.GetLogsPushUrlOk() return ret @@ -993,16 +1214,19 @@ func (o *InstanceSensitiveData) GetLogsPushUrl() (ret InstanceSensitiveDataGetLo // GetLogsPushUrlOk returns a tuple with the LogsPushUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetLogsPushUrlOk() (ret InstanceSensitiveDataGetLogsPushUrlRetType, ok bool) { return getInstanceSensitiveDataGetLogsPushUrlAttributeTypeOk(o.LogsPushUrl) } // SetLogsPushUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetLogsPushUrl(v InstanceSensitiveDataGetLogsPushUrlRetType) { setInstanceSensitiveDataGetLogsPushUrlAttributeType(&o.LogsPushUrl, v) } // GetLogsUrl returns the LogsUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetLogsUrl() (ret InstanceSensitiveDataGetLogsUrlRetType) { ret, _ = o.GetLogsUrlOk() return ret @@ -1010,16 +1234,19 @@ func (o *InstanceSensitiveData) GetLogsUrl() (ret InstanceSensitiveDataGetLogsUr // GetLogsUrlOk returns a tuple with the LogsUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetLogsUrlOk() (ret InstanceSensitiveDataGetLogsUrlRetType, ok bool) { return getInstanceSensitiveDataGetLogsUrlAttributeTypeOk(o.LogsUrl) } // SetLogsUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetLogsUrl(v InstanceSensitiveDataGetLogsUrlRetType) { setInstanceSensitiveDataGetLogsUrlAttributeType(&o.LogsUrl, v) } // GetMetricsEndpointUrl returns the MetricsEndpointUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsEndpointUrl() (ret InstanceSensitiveDataGetMetricsEndpointUrlRetType) { ret, _ = o.GetMetricsEndpointUrlOk() return ret @@ -1027,16 +1254,19 @@ func (o *InstanceSensitiveData) GetMetricsEndpointUrl() (ret InstanceSensitiveDa // GetMetricsEndpointUrlOk returns a tuple with the MetricsEndpointUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsEndpointUrlOk() (ret InstanceSensitiveDataGetMetricsEndpointUrlRetType, ok bool) { return getInstanceSensitiveDataGetMetricsEndpointUrlAttributeTypeOk(o.MetricsEndpointUrl) } // SetMetricsEndpointUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetMetricsEndpointUrl(v InstanceSensitiveDataGetMetricsEndpointUrlRetType) { setInstanceSensitiveDataGetMetricsEndpointUrlAttributeType(&o.MetricsEndpointUrl, v) } // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsRetentionTime1h() (ret InstanceSensitiveDataGetMetricsRetentionTime1hRetType) { ret, _ = o.GetMetricsRetentionTime1hOk() return ret @@ -1044,16 +1274,19 @@ func (o *InstanceSensitiveData) GetMetricsRetentionTime1h() (ret InstanceSensiti // GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsRetentionTime1hOk() (ret InstanceSensitiveDataGetMetricsRetentionTime1hRetType, ok bool) { return getInstanceSensitiveDataGetMetricsRetentionTime1hAttributeTypeOk(o.MetricsRetentionTime1h) } // SetMetricsRetentionTime1h sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetMetricsRetentionTime1h(v InstanceSensitiveDataGetMetricsRetentionTime1hRetType) { setInstanceSensitiveDataGetMetricsRetentionTime1hAttributeType(&o.MetricsRetentionTime1h, v) } // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsRetentionTime5m() (ret InstanceSensitiveDataGetMetricsRetentionTime5mRetType) { ret, _ = o.GetMetricsRetentionTime5mOk() return ret @@ -1061,16 +1294,19 @@ func (o *InstanceSensitiveData) GetMetricsRetentionTime5m() (ret InstanceSensiti // GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsRetentionTime5mOk() (ret InstanceSensitiveDataGetMetricsRetentionTime5mRetType, ok bool) { return getInstanceSensitiveDataGetMetricsRetentionTime5mAttributeTypeOk(o.MetricsRetentionTime5m) } // SetMetricsRetentionTime5m sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetMetricsRetentionTime5m(v InstanceSensitiveDataGetMetricsRetentionTime5mRetType) { setInstanceSensitiveDataGetMetricsRetentionTime5mAttributeType(&o.MetricsRetentionTime5m, v) } // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsRetentionTimeRaw() (ret InstanceSensitiveDataGetMetricsRetentionTimeRawRetType) { ret, _ = o.GetMetricsRetentionTimeRawOk() return ret @@ -1078,16 +1314,19 @@ func (o *InstanceSensitiveData) GetMetricsRetentionTimeRaw() (ret InstanceSensit // GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsRetentionTimeRawOk() (ret InstanceSensitiveDataGetMetricsRetentionTimeRawRetType, ok bool) { return getInstanceSensitiveDataGetMetricsRetentionTimeRawAttributeTypeOk(o.MetricsRetentionTimeRaw) } // SetMetricsRetentionTimeRaw sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetMetricsRetentionTimeRaw(v InstanceSensitiveDataGetMetricsRetentionTimeRawRetType) { setInstanceSensitiveDataGetMetricsRetentionTimeRawAttributeType(&o.MetricsRetentionTimeRaw, v) } // GetMetricsUrl returns the MetricsUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsUrl() (ret InstanceSensitiveDataGetMetricsUrlRetType) { ret, _ = o.GetMetricsUrlOk() return ret @@ -1095,16 +1334,19 @@ func (o *InstanceSensitiveData) GetMetricsUrl() (ret InstanceSensitiveDataGetMet // GetMetricsUrlOk returns a tuple with the MetricsUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetMetricsUrlOk() (ret InstanceSensitiveDataGetMetricsUrlRetType, ok bool) { return getInstanceSensitiveDataGetMetricsUrlAttributeTypeOk(o.MetricsUrl) } // SetMetricsUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetMetricsUrl(v InstanceSensitiveDataGetMetricsUrlRetType) { setInstanceSensitiveDataGetMetricsUrlAttributeType(&o.MetricsUrl, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetName() (res InstanceSensitiveDataGetNameRetType) { res, _ = o.GetNameOk() return @@ -1112,22 +1354,26 @@ func (o *InstanceSensitiveData) GetName() (res InstanceSensitiveDataGetNameRetTy // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetNameOk() (ret InstanceSensitiveDataGetNameRetType, ok bool) { return getInstanceSensitiveDataGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetName(v InstanceSensitiveDataGetNameRetType) { setInstanceSensitiveDataGetNameAttributeType(&o.Name, v) } // GetOtlpGrpcTracesUrl returns the OtlpGrpcTracesUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetOtlpGrpcTracesUrl() (ret InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType) { ret, _ = o.GetOtlpGrpcTracesUrlOk() return ret @@ -1135,16 +1381,19 @@ func (o *InstanceSensitiveData) GetOtlpGrpcTracesUrl() (ret InstanceSensitiveDat // GetOtlpGrpcTracesUrlOk returns a tuple with the OtlpGrpcTracesUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetOtlpGrpcTracesUrlOk() (ret InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType, ok bool) { return getInstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeTypeOk(o.OtlpGrpcTracesUrl) } // SetOtlpGrpcTracesUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetOtlpGrpcTracesUrl(v InstanceSensitiveDataGetOtlpGrpcTracesUrlRetType) { setInstanceSensitiveDataGetOtlpGrpcTracesUrlAttributeType(&o.OtlpGrpcTracesUrl, v) } // GetOtlpHttpTracesUrl returns the OtlpHttpTracesUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetOtlpHttpTracesUrl() (ret InstanceSensitiveDataGetOtlpHttpTracesUrlRetType) { ret, _ = o.GetOtlpHttpTracesUrlOk() return ret @@ -1152,16 +1401,19 @@ func (o *InstanceSensitiveData) GetOtlpHttpTracesUrl() (ret InstanceSensitiveDat // GetOtlpHttpTracesUrlOk returns a tuple with the OtlpHttpTracesUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetOtlpHttpTracesUrlOk() (ret InstanceSensitiveDataGetOtlpHttpTracesUrlRetType, ok bool) { return getInstanceSensitiveDataGetOtlpHttpTracesUrlAttributeTypeOk(o.OtlpHttpTracesUrl) } // SetOtlpHttpTracesUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetOtlpHttpTracesUrl(v InstanceSensitiveDataGetOtlpHttpTracesUrlRetType) { setInstanceSensitiveDataGetOtlpHttpTracesUrlAttributeType(&o.OtlpHttpTracesUrl, v) } // GetOtlpTracesUrl returns the OtlpTracesUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetOtlpTracesUrl() (ret InstanceSensitiveDataGetOtlpTracesUrlRetType) { ret, _ = o.GetOtlpTracesUrlOk() return ret @@ -1169,16 +1421,19 @@ func (o *InstanceSensitiveData) GetOtlpTracesUrl() (ret InstanceSensitiveDataGet // GetOtlpTracesUrlOk returns a tuple with the OtlpTracesUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetOtlpTracesUrlOk() (ret InstanceSensitiveDataGetOtlpTracesUrlRetType, ok bool) { return getInstanceSensitiveDataGetOtlpTracesUrlAttributeTypeOk(o.OtlpTracesUrl) } // SetOtlpTracesUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetOtlpTracesUrl(v InstanceSensitiveDataGetOtlpTracesUrlRetType) { setInstanceSensitiveDataGetOtlpTracesUrlAttributeType(&o.OtlpTracesUrl, v) } // GetPlan returns the Plan field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetPlan() (ret InstanceSensitiveDataGetPlanRetType) { ret, _ = o.GetPlanOk() return ret @@ -1186,16 +1441,19 @@ func (o *InstanceSensitiveData) GetPlan() (ret InstanceSensitiveDataGetPlanRetTy // GetPlanOk returns a tuple with the Plan field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetPlanOk() (ret InstanceSensitiveDataGetPlanRetType, ok bool) { return getInstanceSensitiveDataGetPlanAttributeTypeOk(o.Plan) } // SetPlan sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetPlan(v InstanceSensitiveDataGetPlanRetType) { setInstanceSensitiveDataGetPlanAttributeType(&o.Plan, v) } // GetPushMetricsUrl returns the PushMetricsUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetPushMetricsUrl() (ret InstanceSensitiveDataGetPushMetricsUrlRetType) { ret, _ = o.GetPushMetricsUrlOk() return ret @@ -1203,16 +1461,19 @@ func (o *InstanceSensitiveData) GetPushMetricsUrl() (ret InstanceSensitiveDataGe // GetPushMetricsUrlOk returns a tuple with the PushMetricsUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetPushMetricsUrlOk() (ret InstanceSensitiveDataGetPushMetricsUrlRetType, ok bool) { return getInstanceSensitiveDataGetPushMetricsUrlAttributeTypeOk(o.PushMetricsUrl) } // SetPushMetricsUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetPushMetricsUrl(v InstanceSensitiveDataGetPushMetricsUrlRetType) { setInstanceSensitiveDataGetPushMetricsUrlAttributeType(&o.PushMetricsUrl, v) } // GetTargetsUrl returns the TargetsUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetTargetsUrl() (ret InstanceSensitiveDataGetTargetsUrlRetType) { ret, _ = o.GetTargetsUrlOk() return ret @@ -1220,16 +1481,19 @@ func (o *InstanceSensitiveData) GetTargetsUrl() (ret InstanceSensitiveDataGetTar // GetTargetsUrlOk returns a tuple with the TargetsUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetTargetsUrlOk() (ret InstanceSensitiveDataGetTargetsUrlRetType, ok bool) { return getInstanceSensitiveDataGetTargetsUrlAttributeTypeOk(o.TargetsUrl) } // SetTargetsUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetTargetsUrl(v InstanceSensitiveDataGetTargetsUrlRetType) { setInstanceSensitiveDataGetTargetsUrlAttributeType(&o.TargetsUrl, v) } // GetZipkinSpansUrl returns the ZipkinSpansUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetZipkinSpansUrl() (ret InstanceSensitiveDataGetZipkinSpansUrlRetType) { ret, _ = o.GetZipkinSpansUrlOk() return ret @@ -1237,15 +1501,18 @@ func (o *InstanceSensitiveData) GetZipkinSpansUrl() (ret InstanceSensitiveDataGe // GetZipkinSpansUrlOk returns a tuple with the ZipkinSpansUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetZipkinSpansUrlOk() (ret InstanceSensitiveDataGetZipkinSpansUrlRetType, ok bool) { return getInstanceSensitiveDataGetZipkinSpansUrlAttributeTypeOk(o.ZipkinSpansUrl) } // SetZipkinSpansUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetZipkinSpansUrl(v InstanceSensitiveDataGetZipkinSpansUrlRetType) { setInstanceSensitiveDataGetZipkinSpansUrlAttributeType(&o.ZipkinSpansUrl, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o InstanceSensitiveData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceSensitiveDataGetAlertingUrlAttributeTypeOk(o.AlertingUrl); ok { @@ -1338,37 +1605,45 @@ func (o InstanceSensitiveData) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceSensitiveData struct { value *InstanceSensitiveData isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceSensitiveData) Get() *InstanceSensitiveData { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceSensitiveData) Set(val *InstanceSensitiveData) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceSensitiveData) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceSensitiveData) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceSensitiveData(val *InstanceSensitiveData) *NullableInstanceSensitiveData { return &NullableInstanceSensitiveData{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceSensitiveData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceSensitiveData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_job.go b/services/observability/model_job.go index 8083a0ca3..933b55d82 100644 --- a/services/observability/model_job.go +++ b/services/observability/model_job.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,10 +24,16 @@ var _ MappedNullable = &Job{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetBasicAuthAttributeType = *BasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetBasicAuthArgType = BasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetBasicAuthRetType = BasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetBasicAuthAttributeTypeOk(arg JobGetBasicAuthAttributeType) (ret JobGetBasicAuthRetType, ok bool) { if arg == nil { return ret, false @@ -34,6 +41,7 @@ func getJobGetBasicAuthAttributeTypeOk(arg JobGetBasicAuthAttributeType) (ret Jo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetBasicAuthAttributeType(arg *JobGetBasicAuthAttributeType, val JobGetBasicAuthRetType) { *arg = &val } @@ -43,8 +51,10 @@ func setJobGetBasicAuthAttributeType(arg *JobGetBasicAuthAttributeType, val JobG */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetBearerTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetBearerTokenAttributeTypeOk(arg JobGetBearerTokenAttributeType) (ret JobGetBearerTokenRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +62,15 @@ func getJobGetBearerTokenAttributeTypeOk(arg JobGetBearerTokenAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetBearerTokenAttributeType(arg *JobGetBearerTokenAttributeType, val JobGetBearerTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetBearerTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetBearerTokenRetType = string /* @@ -64,10 +78,16 @@ type JobGetBearerTokenRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobgetHonorLabelsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobgetHonorLabelsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobgetHonorLabelsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobgetHonorLabelsAttributeTypeOk(arg JobgetHonorLabelsAttributeType) (ret JobgetHonorLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +95,7 @@ func getJobgetHonorLabelsAttributeTypeOk(arg JobgetHonorLabelsAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobgetHonorLabelsAttributeType(arg *JobgetHonorLabelsAttributeType, val JobgetHonorLabelsRetType) { *arg = &val } @@ -84,10 +105,16 @@ func setJobgetHonorLabelsAttributeType(arg *JobgetHonorLabelsAttributeType, val */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobgetHonorTimeStampsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobgetHonorTimeStampsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobgetHonorTimeStampsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobgetHonorTimeStampsAttributeTypeOk(arg JobgetHonorTimeStampsAttributeType) (ret JobgetHonorTimeStampsRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +122,7 @@ func getJobgetHonorTimeStampsAttributeTypeOk(arg JobgetHonorTimeStampsAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobgetHonorTimeStampsAttributeType(arg *JobgetHonorTimeStampsAttributeType, val JobgetHonorTimeStampsRetType) { *arg = &val } @@ -104,10 +132,16 @@ func setJobgetHonorTimeStampsAttributeType(arg *JobgetHonorTimeStampsAttributeTy */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetHttpSdConfigsAttributeType = *[]HTTPServiceSD + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetHttpSdConfigsArgType = []HTTPServiceSD + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetHttpSdConfigsRetType = []HTTPServiceSD +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetHttpSdConfigsAttributeTypeOk(arg JobGetHttpSdConfigsAttributeType) (ret JobGetHttpSdConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +149,7 @@ func getJobGetHttpSdConfigsAttributeTypeOk(arg JobGetHttpSdConfigsAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetHttpSdConfigsAttributeType(arg *JobGetHttpSdConfigsAttributeType, val JobGetHttpSdConfigsRetType) { *arg = &val } @@ -124,8 +159,10 @@ func setJobGetHttpSdConfigsAttributeType(arg *JobGetHttpSdConfigsAttributeType, */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetJobNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetJobNameAttributeTypeOk(arg JobGetJobNameAttributeType) (ret JobGetJobNameRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +170,15 @@ func getJobGetJobNameAttributeTypeOk(arg JobGetJobNameAttributeType) (ret JobGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetJobNameAttributeType(arg *JobGetJobNameAttributeType, val JobGetJobNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetJobNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetJobNameRetType = string /* @@ -145,8 +186,10 @@ type JobGetJobNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetMetricsPathAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetMetricsPathAttributeTypeOk(arg JobGetMetricsPathAttributeType) (ret JobGetMetricsPathRetType, ok bool) { if arg == nil { return ret, false @@ -154,11 +197,15 @@ func getJobGetMetricsPathAttributeTypeOk(arg JobGetMetricsPathAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetMetricsPathAttributeType(arg *JobGetMetricsPathAttributeType, val JobGetMetricsPathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetMetricsPathArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetMetricsPathRetType = string /* @@ -166,10 +213,16 @@ type JobGetMetricsPathRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetMetricsRelabelConfigsAttributeType = *[]MetricsRelabelConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetMetricsRelabelConfigsArgType = []MetricsRelabelConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetMetricsRelabelConfigsRetType = []MetricsRelabelConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetMetricsRelabelConfigsAttributeTypeOk(arg JobGetMetricsRelabelConfigsAttributeType) (ret JobGetMetricsRelabelConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -177,6 +230,7 @@ func getJobGetMetricsRelabelConfigsAttributeTypeOk(arg JobGetMetricsRelabelConfi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetMetricsRelabelConfigsAttributeType(arg *JobGetMetricsRelabelConfigsAttributeType, val JobGetMetricsRelabelConfigsRetType) { *arg = &val } @@ -186,10 +240,16 @@ func setJobGetMetricsRelabelConfigsAttributeType(arg *JobGetMetricsRelabelConfig */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetOauth2AttributeType = *OAuth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetOauth2ArgType = OAuth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetOauth2RetType = OAuth2 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetOauth2AttributeTypeOk(arg JobGetOauth2AttributeType) (ret JobGetOauth2RetType, ok bool) { if arg == nil { return ret, false @@ -197,6 +257,7 @@ func getJobGetOauth2AttributeTypeOk(arg JobGetOauth2AttributeType) (ret JobGetOa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetOauth2AttributeType(arg *JobGetOauth2AttributeType, val JobGetOauth2RetType) { *arg = &val } @@ -206,10 +267,16 @@ func setJobGetOauth2AttributeType(arg *JobGetOauth2AttributeType, val JobGetOaut */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetParamsAttributeType = *map[string][]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetParamsArgType = map[string][]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetParamsRetType = map[string][]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetParamsAttributeTypeOk(arg JobGetParamsAttributeType) (ret JobGetParamsRetType, ok bool) { if arg == nil { return ret, false @@ -217,6 +284,7 @@ func getJobGetParamsAttributeTypeOk(arg JobGetParamsAttributeType) (ret JobGetPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetParamsAttributeType(arg *JobGetParamsAttributeType, val JobGetParamsRetType) { *arg = &val } @@ -226,10 +294,16 @@ func setJobGetParamsAttributeType(arg *JobGetParamsAttributeType, val JobGetPara */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetSampleLimitAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetSampleLimitArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetSampleLimitRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetSampleLimitAttributeTypeOk(arg JobGetSampleLimitAttributeType) (ret JobGetSampleLimitRetType, ok bool) { if arg == nil { return ret, false @@ -237,6 +311,7 @@ func getJobGetSampleLimitAttributeTypeOk(arg JobGetSampleLimitAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetSampleLimitAttributeType(arg *JobGetSampleLimitAttributeType, val JobGetSampleLimitRetType) { *arg = &val } @@ -249,20 +324,25 @@ func setJobGetSampleLimitAttributeType(arg *JobGetSampleLimitAttributeType, val // JobScheme the model 'Job' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobScheme string // List of Scheme const ( - JOBSCHEME_HTTP JobScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + JOBSCHEME_HTTP JobScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead JOBSCHEME_HTTPS JobScheme = "https" ) // All allowed values of Job enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedJobSchemeEnumValues = []JobScheme{ "http", "https", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *JobScheme) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -290,6 +370,7 @@ func (v *JobScheme) UnmarshalJSON(src []byte) error { // NewJobSchemeFromValue returns a pointer to a valid JobScheme // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewJobSchemeFromValue(v JobScheme) (*JobScheme, error) { ev := JobScheme(v) if ev.IsValid() { @@ -300,6 +381,7 @@ func NewJobSchemeFromValue(v JobScheme) (*JobScheme, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v JobScheme) IsValid() bool { for _, existing := range AllowedJobSchemeEnumValues { if existing == v { @@ -310,50 +392,65 @@ func (v JobScheme) IsValid() bool { } // Ptr returns reference to SchemeScheme value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v JobScheme) Ptr() *JobScheme { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableJobScheme struct { value *JobScheme isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableJobScheme) Get() *JobScheme { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableJobScheme) Set(val *JobScheme) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableJobScheme) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableJobScheme) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableJobScheme(val *JobScheme) *NullableJobScheme { return &NullableJobScheme{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableJobScheme) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableJobScheme) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetSchemeAttributeType = *JobScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetSchemeArgType = JobScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetSchemeRetType = JobScheme +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetSchemeAttributeTypeOk(arg JobGetSchemeAttributeType) (ret JobGetSchemeRetType, ok bool) { if arg == nil { return ret, false @@ -361,6 +458,7 @@ func getJobGetSchemeAttributeTypeOk(arg JobGetSchemeAttributeType) (ret JobGetSc return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetSchemeAttributeType(arg *JobGetSchemeAttributeType, val JobGetSchemeRetType) { *arg = &val } @@ -370,8 +468,10 @@ func setJobGetSchemeAttributeType(arg *JobGetSchemeAttributeType, val JobGetSche */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetScrapeIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetScrapeIntervalAttributeTypeOk(arg JobGetScrapeIntervalAttributeType) (ret JobGetScrapeIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -379,11 +479,15 @@ func getJobGetScrapeIntervalAttributeTypeOk(arg JobGetScrapeIntervalAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetScrapeIntervalAttributeType(arg *JobGetScrapeIntervalAttributeType, val JobGetScrapeIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetScrapeIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetScrapeIntervalRetType = string /* @@ -391,8 +495,10 @@ type JobGetScrapeIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetScrapeTimeoutAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetScrapeTimeoutAttributeTypeOk(arg JobGetScrapeTimeoutAttributeType) (ret JobGetScrapeTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -400,11 +506,15 @@ func getJobGetScrapeTimeoutAttributeTypeOk(arg JobGetScrapeTimeoutAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetScrapeTimeoutAttributeType(arg *JobGetScrapeTimeoutAttributeType, val JobGetScrapeTimeoutRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetScrapeTimeoutArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetScrapeTimeoutRetType = string /* @@ -412,10 +522,16 @@ type JobGetScrapeTimeoutRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetStaticConfigsAttributeType = *[]StaticConfigs + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetStaticConfigsArgType = []StaticConfigs + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetStaticConfigsRetType = []StaticConfigs +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetStaticConfigsAttributeTypeOk(arg JobGetStaticConfigsAttributeType) (ret JobGetStaticConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -423,6 +539,7 @@ func getJobGetStaticConfigsAttributeTypeOk(arg JobGetStaticConfigsAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetStaticConfigsAttributeType(arg *JobGetStaticConfigsAttributeType, val JobGetStaticConfigsRetType) { *arg = &val } @@ -432,10 +549,16 @@ func setJobGetStaticConfigsAttributeType(arg *JobGetStaticConfigsAttributeType, */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetTlsConfigAttributeType = *TLSConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetTlsConfigArgType = TLSConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type JobGetTlsConfigRetType = TLSConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getJobGetTlsConfigAttributeTypeOk(arg JobGetTlsConfigAttributeType) (ret JobGetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -443,11 +566,13 @@ func getJobGetTlsConfigAttributeTypeOk(arg JobGetTlsConfigAttributeType) (ret Jo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setJobGetTlsConfigAttributeType(arg *JobGetTlsConfigAttributeType, val JobGetTlsConfigRetType) { *arg = &val } // Job struct for Job +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Job struct { BasicAuth JobGetBasicAuthAttributeType `json:"basicAuth,omitempty"` BearerToken JobGetBearerTokenAttributeType `json:"bearerToken,omitempty"` @@ -471,12 +596,14 @@ type Job struct { TlsConfig JobGetTlsConfigAttributeType `json:"tlsConfig,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Job Job // NewJob instantiates a new Job object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewJob(jobName JobGetJobNameArgType, scrapeInterval JobGetScrapeIntervalArgType, scrapeTimeout JobGetScrapeTimeoutArgType, staticConfigs JobGetStaticConfigsArgType) *Job { this := Job{} setJobGetJobNameAttributeType(&this.JobName, jobName) @@ -489,6 +616,7 @@ func NewJob(jobName JobGetJobNameArgType, scrapeInterval JobGetScrapeIntervalArg // NewJobWithDefaults instantiates a new Job object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewJobWithDefaults() *Job { this := Job{} var honorLabels bool = false @@ -503,6 +631,7 @@ func NewJobWithDefaults() *Job { } // GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetBasicAuth() (res JobGetBasicAuthRetType) { res, _ = o.GetBasicAuthOk() return @@ -510,22 +639,26 @@ func (o *Job) GetBasicAuth() (res JobGetBasicAuthRetType) { // GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetBasicAuthOk() (ret JobGetBasicAuthRetType, ok bool) { return getJobGetBasicAuthAttributeTypeOk(o.BasicAuth) } // HasBasicAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasBasicAuth() bool { _, ok := o.GetBasicAuthOk() return ok } // SetBasicAuth gets a reference to the given BasicAuth and assigns it to the BasicAuth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetBasicAuth(v JobGetBasicAuthRetType) { setJobGetBasicAuthAttributeType(&o.BasicAuth, v) } // GetBearerToken returns the BearerToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetBearerToken() (res JobGetBearerTokenRetType) { res, _ = o.GetBearerTokenOk() return @@ -533,22 +666,26 @@ func (o *Job) GetBearerToken() (res JobGetBearerTokenRetType) { // GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetBearerTokenOk() (ret JobGetBearerTokenRetType, ok bool) { return getJobGetBearerTokenAttributeTypeOk(o.BearerToken) } // HasBearerToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasBearerToken() bool { _, ok := o.GetBearerTokenOk() return ok } // SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetBearerToken(v JobGetBearerTokenRetType) { setJobGetBearerTokenAttributeType(&o.BearerToken, v) } // GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetHonorLabels() (res JobgetHonorLabelsRetType) { res, _ = o.GetHonorLabelsOk() return @@ -556,22 +693,26 @@ func (o *Job) GetHonorLabels() (res JobgetHonorLabelsRetType) { // GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetHonorLabelsOk() (ret JobgetHonorLabelsRetType, ok bool) { return getJobgetHonorLabelsAttributeTypeOk(o.HonorLabels) } // HasHonorLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasHonorLabels() bool { _, ok := o.GetHonorLabelsOk() return ok } // SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetHonorLabels(v JobgetHonorLabelsRetType) { setJobgetHonorLabelsAttributeType(&o.HonorLabels, v) } // GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetHonorTimeStamps() (res JobgetHonorTimeStampsRetType) { res, _ = o.GetHonorTimeStampsOk() return @@ -579,22 +720,26 @@ func (o *Job) GetHonorTimeStamps() (res JobgetHonorTimeStampsRetType) { // GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetHonorTimeStampsOk() (ret JobgetHonorTimeStampsRetType, ok bool) { return getJobgetHonorTimeStampsAttributeTypeOk(o.HonorTimeStamps) } // HasHonorTimeStamps returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasHonorTimeStamps() bool { _, ok := o.GetHonorTimeStampsOk() return ok } // SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetHonorTimeStamps(v JobgetHonorTimeStampsRetType) { setJobgetHonorTimeStampsAttributeType(&o.HonorTimeStamps, v) } // GetHttpSdConfigs returns the HttpSdConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetHttpSdConfigs() (res JobGetHttpSdConfigsRetType) { res, _ = o.GetHttpSdConfigsOk() return @@ -602,22 +747,26 @@ func (o *Job) GetHttpSdConfigs() (res JobGetHttpSdConfigsRetType) { // GetHttpSdConfigsOk returns a tuple with the HttpSdConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetHttpSdConfigsOk() (ret JobGetHttpSdConfigsRetType, ok bool) { return getJobGetHttpSdConfigsAttributeTypeOk(o.HttpSdConfigs) } // HasHttpSdConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasHttpSdConfigs() bool { _, ok := o.GetHttpSdConfigsOk() return ok } // SetHttpSdConfigs gets a reference to the given []HTTPServiceSD and assigns it to the HttpSdConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetHttpSdConfigs(v JobGetHttpSdConfigsRetType) { setJobGetHttpSdConfigsAttributeType(&o.HttpSdConfigs, v) } // GetJobName returns the JobName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetJobName() (ret JobGetJobNameRetType) { ret, _ = o.GetJobNameOk() return ret @@ -625,16 +774,19 @@ func (o *Job) GetJobName() (ret JobGetJobNameRetType) { // GetJobNameOk returns a tuple with the JobName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetJobNameOk() (ret JobGetJobNameRetType, ok bool) { return getJobGetJobNameAttributeTypeOk(o.JobName) } // SetJobName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetJobName(v JobGetJobNameRetType) { setJobGetJobNameAttributeType(&o.JobName, v) } // GetMetricsPath returns the MetricsPath field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetMetricsPath() (res JobGetMetricsPathRetType) { res, _ = o.GetMetricsPathOk() return @@ -642,22 +794,26 @@ func (o *Job) GetMetricsPath() (res JobGetMetricsPathRetType) { // GetMetricsPathOk returns a tuple with the MetricsPath field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetMetricsPathOk() (ret JobGetMetricsPathRetType, ok bool) { return getJobGetMetricsPathAttributeTypeOk(o.MetricsPath) } // HasMetricsPath returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasMetricsPath() bool { _, ok := o.GetMetricsPathOk() return ok } // SetMetricsPath gets a reference to the given string and assigns it to the MetricsPath field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetMetricsPath(v JobGetMetricsPathRetType) { setJobGetMetricsPathAttributeType(&o.MetricsPath, v) } // GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetMetricsRelabelConfigs() (res JobGetMetricsRelabelConfigsRetType) { res, _ = o.GetMetricsRelabelConfigsOk() return @@ -665,22 +821,26 @@ func (o *Job) GetMetricsRelabelConfigs() (res JobGetMetricsRelabelConfigsRetType // GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetMetricsRelabelConfigsOk() (ret JobGetMetricsRelabelConfigsRetType, ok bool) { return getJobGetMetricsRelabelConfigsAttributeTypeOk(o.MetricsRelabelConfigs) } // HasMetricsRelabelConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasMetricsRelabelConfigs() bool { _, ok := o.GetMetricsRelabelConfigsOk() return ok } // SetMetricsRelabelConfigs gets a reference to the given []MetricsRelabelConfig and assigns it to the MetricsRelabelConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetMetricsRelabelConfigs(v JobGetMetricsRelabelConfigsRetType) { setJobGetMetricsRelabelConfigsAttributeType(&o.MetricsRelabelConfigs, v) } // GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetOauth2() (res JobGetOauth2RetType) { res, _ = o.GetOauth2Ok() return @@ -688,22 +848,26 @@ func (o *Job) GetOauth2() (res JobGetOauth2RetType) { // GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetOauth2Ok() (ret JobGetOauth2RetType, ok bool) { return getJobGetOauth2AttributeTypeOk(o.Oauth2) } // HasOauth2 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasOauth2() bool { _, ok := o.GetOauth2Ok() return ok } // SetOauth2 gets a reference to the given OAuth2 and assigns it to the Oauth2 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetOauth2(v JobGetOauth2RetType) { setJobGetOauth2AttributeType(&o.Oauth2, v) } // GetParams returns the Params field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetParams() (res JobGetParamsRetType) { res, _ = o.GetParamsOk() return @@ -711,22 +875,26 @@ func (o *Job) GetParams() (res JobGetParamsRetType) { // GetParamsOk returns a tuple with the Params field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetParamsOk() (ret JobGetParamsRetType, ok bool) { return getJobGetParamsAttributeTypeOk(o.Params) } // HasParams returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasParams() bool { _, ok := o.GetParamsOk() return ok } // SetParams gets a reference to the given map[string][]string and assigns it to the Params field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetParams(v JobGetParamsRetType) { setJobGetParamsAttributeType(&o.Params, v) } // GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetSampleLimit() (res JobGetSampleLimitRetType) { res, _ = o.GetSampleLimitOk() return @@ -734,22 +902,26 @@ func (o *Job) GetSampleLimit() (res JobGetSampleLimitRetType) { // GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetSampleLimitOk() (ret JobGetSampleLimitRetType, ok bool) { return getJobGetSampleLimitAttributeTypeOk(o.SampleLimit) } // HasSampleLimit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasSampleLimit() bool { _, ok := o.GetSampleLimitOk() return ok } // SetSampleLimit gets a reference to the given int64 and assigns it to the SampleLimit field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetSampleLimit(v JobGetSampleLimitRetType) { setJobGetSampleLimitAttributeType(&o.SampleLimit, v) } // GetScheme returns the Scheme field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetScheme() (res JobGetSchemeRetType) { res, _ = o.GetSchemeOk() return @@ -757,22 +929,26 @@ func (o *Job) GetScheme() (res JobGetSchemeRetType) { // GetSchemeOk returns a tuple with the Scheme field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetSchemeOk() (ret JobGetSchemeRetType, ok bool) { return getJobGetSchemeAttributeTypeOk(o.Scheme) } // HasScheme returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasScheme() bool { _, ok := o.GetSchemeOk() return ok } // SetScheme gets a reference to the given string and assigns it to the Scheme field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetScheme(v JobGetSchemeRetType) { setJobGetSchemeAttributeType(&o.Scheme, v) } // GetScrapeInterval returns the ScrapeInterval field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetScrapeInterval() (ret JobGetScrapeIntervalRetType) { ret, _ = o.GetScrapeIntervalOk() return ret @@ -780,16 +956,19 @@ func (o *Job) GetScrapeInterval() (ret JobGetScrapeIntervalRetType) { // GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetScrapeIntervalOk() (ret JobGetScrapeIntervalRetType, ok bool) { return getJobGetScrapeIntervalAttributeTypeOk(o.ScrapeInterval) } // SetScrapeInterval sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetScrapeInterval(v JobGetScrapeIntervalRetType) { setJobGetScrapeIntervalAttributeType(&o.ScrapeInterval, v) } // GetScrapeTimeout returns the ScrapeTimeout field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetScrapeTimeout() (ret JobGetScrapeTimeoutRetType) { ret, _ = o.GetScrapeTimeoutOk() return ret @@ -797,16 +976,19 @@ func (o *Job) GetScrapeTimeout() (ret JobGetScrapeTimeoutRetType) { // GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetScrapeTimeoutOk() (ret JobGetScrapeTimeoutRetType, ok bool) { return getJobGetScrapeTimeoutAttributeTypeOk(o.ScrapeTimeout) } // SetScrapeTimeout sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetScrapeTimeout(v JobGetScrapeTimeoutRetType) { setJobGetScrapeTimeoutAttributeType(&o.ScrapeTimeout, v) } // GetStaticConfigs returns the StaticConfigs field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetStaticConfigs() (ret JobGetStaticConfigsRetType) { ret, _ = o.GetStaticConfigsOk() return ret @@ -814,16 +996,19 @@ func (o *Job) GetStaticConfigs() (ret JobGetStaticConfigsRetType) { // GetStaticConfigsOk returns a tuple with the StaticConfigs field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetStaticConfigsOk() (ret JobGetStaticConfigsRetType, ok bool) { return getJobGetStaticConfigsAttributeTypeOk(o.StaticConfigs) } // SetStaticConfigs sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetStaticConfigs(v JobGetStaticConfigsRetType) { setJobGetStaticConfigsAttributeType(&o.StaticConfigs, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetTlsConfig() (res JobGetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -831,21 +1016,25 @@ func (o *Job) GetTlsConfig() (res JobGetTlsConfigRetType) { // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) GetTlsConfigOk() (ret JobGetTlsConfigRetType, ok bool) { return getJobGetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given TLSConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Job) SetTlsConfig(v JobGetTlsConfigRetType) { setJobGetTlsConfigAttributeType(&o.TlsConfig, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getJobGetBasicAuthAttributeTypeOk(o.BasicAuth); ok { @@ -899,37 +1088,45 @@ func (o Job) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableJob struct { value *Job isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableJob) Get() *Job { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableJob) Set(val *Job) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableJob) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableJob) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableJob(val *Job) *NullableJob { return &NullableJob{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableJob) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableJob) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_list_acl_response.go b/services/observability/model_list_acl_response.go index 9c80c4dd1..ef3fb3139 100644 --- a/services/observability/model_list_acl_response.go +++ b/services/observability/model_list_acl_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListACLResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponseGetAclAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponseGetAclArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponseGetAclRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListACLResponseGetAclAttributeTypeOk(arg ListACLResponseGetAclAttributeType) (ret ListACLResponseGetAclRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListACLResponseGetAclAttributeTypeOk(arg ListACLResponseGetAclAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListACLResponseGetAclAttributeType(arg *ListACLResponseGetAclAttributeType, val ListACLResponseGetAclRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListACLResponseGetAclAttributeType(arg *ListACLResponseGetAclAttributeTy */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListACLResponseGetMessageAttributeTypeOk(arg ListACLResponseGetMessageAttributeType) (ret ListACLResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListACLResponseGetMessageAttributeTypeOk(arg ListACLResponseGetMessageAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListACLResponseGetMessageAttributeType(arg *ListACLResponseGetMessageAttributeType, val ListACLResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponseGetMessageRetType = string // ListACLResponse struct for ListACLResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListACLResponse struct { // REQUIRED Acl ListACLResponseGetAclAttributeType `json:"acl" required:"true"` @@ -66,12 +81,14 @@ type ListACLResponse struct { Message ListACLResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListACLResponse ListACLResponse // NewListACLResponse instantiates a new ListACLResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListACLResponse(acl ListACLResponseGetAclArgType, message ListACLResponseGetMessageArgType) *ListACLResponse { this := ListACLResponse{} setListACLResponseGetAclAttributeType(&this.Acl, acl) @@ -82,12 +99,14 @@ func NewListACLResponse(acl ListACLResponseGetAclArgType, message ListACLRespons // NewListACLResponseWithDefaults instantiates a new ListACLResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListACLResponseWithDefaults() *ListACLResponse { this := ListACLResponse{} return &this } // GetAcl returns the Acl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListACLResponse) GetAcl() (ret ListACLResponseGetAclRetType) { ret, _ = o.GetAclOk() return ret @@ -95,16 +114,19 @@ func (o *ListACLResponse) GetAcl() (ret ListACLResponseGetAclRetType) { // GetAclOk returns a tuple with the Acl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListACLResponse) GetAclOk() (ret ListACLResponseGetAclRetType, ok bool) { return getListACLResponseGetAclAttributeTypeOk(o.Acl) } // SetAcl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListACLResponse) SetAcl(v ListACLResponseGetAclRetType) { setListACLResponseGetAclAttributeType(&o.Acl, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListACLResponse) GetMessage() (ret ListACLResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *ListACLResponse) GetMessage() (ret ListACLResponseGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListACLResponse) GetMessageOk() (ret ListACLResponseGetMessageRetType, ok bool) { return getListACLResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListACLResponse) SetMessage(v ListACLResponseGetMessageRetType) { setListACLResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListACLResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListACLResponseGetAclAttributeTypeOk(o.Acl); ok { @@ -132,37 +157,45 @@ func (o ListACLResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListACLResponse struct { value *ListACLResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListACLResponse) Get() *ListACLResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListACLResponse) Set(val *ListACLResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListACLResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListACLResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListACLResponse(val *ListACLResponse) *NullableListACLResponse { return &NullableListACLResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListACLResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListACLResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_list_credentials_response.go b/services/observability/model_list_credentials_response.go index 4c5aef436..7d568cb45 100644 --- a/services/observability/model_list_credentials_response.go +++ b/services/observability/model_list_credentials_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListCredentialsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetCredentialsAttributeType = *[]ServiceKeysList + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetCredentialsArgType = []ServiceKeysList + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetCredentialsRetType = []ServiceKeysList +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListCredentialsResponseGetCredentialsAttributeTypeOk(arg ListCredentialsResponseGetCredentialsAttributeType) (ret ListCredentialsResponseGetCredentialsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListCredentialsResponseGetCredentialsAttributeTypeOk(arg ListCredentials return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListCredentialsResponseGetCredentialsAttributeType(arg *ListCredentialsResponseGetCredentialsAttributeType, val ListCredentialsResponseGetCredentialsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListCredentialsResponseGetCredentialsAttributeType(arg *ListCredentialsR */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListCredentialsResponseGetMessageAttributeTypeOk(arg ListCredentialsResponseGetMessageAttributeType) (ret ListCredentialsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListCredentialsResponseGetMessageAttributeTypeOk(arg ListCredentialsResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListCredentialsResponseGetMessageAttributeType(arg *ListCredentialsResponseGetMessageAttributeType, val ListCredentialsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetMessageRetType = string // ListCredentialsResponse struct for ListCredentialsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponse struct { // REQUIRED Credentials ListCredentialsResponseGetCredentialsAttributeType `json:"credentials" required:"true"` @@ -66,12 +81,14 @@ type ListCredentialsResponse struct { Message ListCredentialsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListCredentialsResponse ListCredentialsResponse // NewListCredentialsResponse instantiates a new ListCredentialsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListCredentialsResponse(credentials ListCredentialsResponseGetCredentialsArgType, message ListCredentialsResponseGetMessageArgType) *ListCredentialsResponse { this := ListCredentialsResponse{} setListCredentialsResponseGetCredentialsAttributeType(&this.Credentials, credentials) @@ -82,12 +99,14 @@ func NewListCredentialsResponse(credentials ListCredentialsResponseGetCredential // NewListCredentialsResponseWithDefaults instantiates a new ListCredentialsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { this := ListCredentialsResponse{} return &this } // GetCredentials returns the Credentials field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) GetCredentials() (ret ListCredentialsResponseGetCredentialsRetType) { ret, _ = o.GetCredentialsOk() return ret @@ -95,16 +114,19 @@ func (o *ListCredentialsResponse) GetCredentials() (ret ListCredentialsResponseG // GetCredentialsOk returns a tuple with the Credentials field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) GetCredentialsOk() (ret ListCredentialsResponseGetCredentialsRetType, ok bool) { return getListCredentialsResponseGetCredentialsAttributeTypeOk(o.Credentials) } // SetCredentials sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) SetCredentials(v ListCredentialsResponseGetCredentialsRetType) { setListCredentialsResponseGetCredentialsAttributeType(&o.Credentials, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) GetMessage() (ret ListCredentialsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *ListCredentialsResponse) GetMessage() (ret ListCredentialsResponseGetMe // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) GetMessageOk() (ret ListCredentialsResponseGetMessageRetType, ok bool) { return getListCredentialsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) SetMessage(v ListCredentialsResponseGetMessageRetType) { setListCredentialsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListCredentialsResponseGetCredentialsAttributeTypeOk(o.Credentials); ok { @@ -132,37 +157,45 @@ func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListCredentialsResponse struct { value *ListCredentialsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListCredentialsResponse) Get() *ListCredentialsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListCredentialsResponse) Set(val *ListCredentialsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListCredentialsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListCredentialsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListCredentialsResponse(val *ListCredentialsResponse) *NullableListCredentialsResponse { return &NullableListCredentialsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListCredentialsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListCredentialsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_list_instances_response.go b/services/observability/model_list_instances_response.go index 553689d2a..d8ec453b7 100644 --- a/services/observability/model_list_instances_response.go +++ b/services/observability/model_list_instances_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListInstancesResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetInstancesAttributeType = *[]ProjectInstanceFull + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetInstancesArgType = []ProjectInstanceFull + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetInstancesRetType = []ProjectInstanceFull +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListInstancesResponseGetInstancesAttributeTypeOk(arg ListInstancesResponseGetInstancesAttributeType) (ret ListInstancesResponseGetInstancesRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListInstancesResponseGetInstancesAttributeTypeOk(arg ListInstancesRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesResponseGetInstancesAttributeType, val ListInstancesResponseGetInstancesRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesRespons */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListInstancesResponseGetMessageAttributeTypeOk(arg ListInstancesResponseGetMessageAttributeType) (ret ListInstancesResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListInstancesResponseGetMessageAttributeTypeOk(arg ListInstancesResponse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListInstancesResponseGetMessageAttributeType(arg *ListInstancesResponseGetMessageAttributeType, val ListInstancesResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetMessageRetType = string // ListInstancesResponse struct for ListInstancesResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponse struct { // REQUIRED Instances ListInstancesResponseGetInstancesAttributeType `json:"instances" required:"true"` @@ -66,12 +81,14 @@ type ListInstancesResponse struct { Message ListInstancesResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListInstancesResponse ListInstancesResponse // NewListInstancesResponse instantiates a new ListInstancesResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListInstancesResponse(instances ListInstancesResponseGetInstancesArgType, message ListInstancesResponseGetMessageArgType) *ListInstancesResponse { this := ListInstancesResponse{} setListInstancesResponseGetInstancesAttributeType(&this.Instances, instances) @@ -82,12 +99,14 @@ func NewListInstancesResponse(instances ListInstancesResponseGetInstancesArgType // NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListInstancesResponseWithDefaults() *ListInstancesResponse { this := ListInstancesResponse{} return &this } // GetInstances returns the Instances field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) GetInstances() (ret ListInstancesResponseGetInstancesRetType) { ret, _ = o.GetInstancesOk() return ret @@ -95,16 +114,19 @@ func (o *ListInstancesResponse) GetInstances() (ret ListInstancesResponseGetInst // GetInstancesOk returns a tuple with the Instances field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) GetInstancesOk() (ret ListInstancesResponseGetInstancesRetType, ok bool) { return getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances) } // SetInstances sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) SetInstances(v ListInstancesResponseGetInstancesRetType) { setListInstancesResponseGetInstancesAttributeType(&o.Instances, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) GetMessage() (ret ListInstancesResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *ListInstancesResponse) GetMessage() (ret ListInstancesResponseGetMessag // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) GetMessageOk() (ret ListInstancesResponseGetMessageRetType, ok bool) { return getListInstancesResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) SetMessage(v ListInstancesResponseGetMessageRetType) { setListInstancesResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances); ok { @@ -132,37 +157,45 @@ func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListInstancesResponse struct { value *ListInstancesResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListInstancesResponse) Get() *ListInstancesResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListInstancesResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListInstancesResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse { return &NullableListInstancesResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_list_scrape_configs_response.go b/services/observability/model_list_scrape_configs_response.go index d211113f0..620fc3ff7 100644 --- a/services/observability/model_list_scrape_configs_response.go +++ b/services/observability/model_list_scrape_configs_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListScrapeConfigsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponseGetDataAttributeType = *[]Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponseGetDataArgType = []Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponseGetDataRetType = []Job +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListScrapeConfigsResponseGetDataAttributeTypeOk(arg ListScrapeConfigsResponseGetDataAttributeType) (ret ListScrapeConfigsResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListScrapeConfigsResponseGetDataAttributeTypeOk(arg ListScrapeConfigsRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListScrapeConfigsResponseGetDataAttributeType(arg *ListScrapeConfigsResponseGetDataAttributeType, val ListScrapeConfigsResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListScrapeConfigsResponseGetDataAttributeType(arg *ListScrapeConfigsResp */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListScrapeConfigsResponseGetMessageAttributeTypeOk(arg ListScrapeConfigsResponseGetMessageAttributeType) (ret ListScrapeConfigsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListScrapeConfigsResponseGetMessageAttributeTypeOk(arg ListScrapeConfigs return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListScrapeConfigsResponseGetMessageAttributeType(arg *ListScrapeConfigsResponseGetMessageAttributeType, val ListScrapeConfigsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponseGetMessageRetType = string // ListScrapeConfigsResponse struct for ListScrapeConfigsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListScrapeConfigsResponse struct { // REQUIRED Data ListScrapeConfigsResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type ListScrapeConfigsResponse struct { Message ListScrapeConfigsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListScrapeConfigsResponse ListScrapeConfigsResponse // NewListScrapeConfigsResponse instantiates a new ListScrapeConfigsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListScrapeConfigsResponse(data ListScrapeConfigsResponseGetDataArgType, message ListScrapeConfigsResponseGetMessageArgType) *ListScrapeConfigsResponse { this := ListScrapeConfigsResponse{} setListScrapeConfigsResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewListScrapeConfigsResponse(data ListScrapeConfigsResponseGetDataArgType, // NewListScrapeConfigsResponseWithDefaults instantiates a new ListScrapeConfigsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListScrapeConfigsResponseWithDefaults() *ListScrapeConfigsResponse { this := ListScrapeConfigsResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListScrapeConfigsResponse) GetData() (ret ListScrapeConfigsResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *ListScrapeConfigsResponse) GetData() (ret ListScrapeConfigsResponseGetD // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListScrapeConfigsResponse) GetDataOk() (ret ListScrapeConfigsResponseGetDataRetType, ok bool) { return getListScrapeConfigsResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListScrapeConfigsResponse) SetData(v ListScrapeConfigsResponseGetDataRetType) { setListScrapeConfigsResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListScrapeConfigsResponse) GetMessage() (ret ListScrapeConfigsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *ListScrapeConfigsResponse) GetMessage() (ret ListScrapeConfigsResponseG // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListScrapeConfigsResponse) GetMessageOk() (ret ListScrapeConfigsResponseGetMessageRetType, ok bool) { return getListScrapeConfigsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListScrapeConfigsResponse) SetMessage(v ListScrapeConfigsResponseGetMessageRetType) { setListScrapeConfigsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListScrapeConfigsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListScrapeConfigsResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o ListScrapeConfigsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListScrapeConfigsResponse struct { value *ListScrapeConfigsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListScrapeConfigsResponse) Get() *ListScrapeConfigsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListScrapeConfigsResponse) Set(val *ListScrapeConfigsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListScrapeConfigsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListScrapeConfigsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListScrapeConfigsResponse(val *ListScrapeConfigsResponse) *NullableListScrapeConfigsResponse { return &NullableListScrapeConfigsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListScrapeConfigsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListScrapeConfigsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_logs_config.go b/services/observability/model_logs_config.go index 9255df9fe..74105c737 100644 --- a/services/observability/model_logs_config.go +++ b/services/observability/model_logs_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &LogsConfig{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigGetRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getLogsConfigGetRetentionAttributeTypeOk(arg LogsConfigGetRetentionAttributeType) (ret LogsConfigGetRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getLogsConfigGetRetentionAttributeTypeOk(arg LogsConfigGetRetentionAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setLogsConfigGetRetentionAttributeType(arg *LogsConfigGetRetentionAttributeType, val LogsConfigGetRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigGetRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigGetRetentionRetType = string // LogsConfig struct for LogsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfig struct { // REQUIRED Retention LogsConfigGetRetentionAttributeType `json:"retention" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _LogsConfig LogsConfig // NewLogsConfig instantiates a new LogsConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewLogsConfig(retention LogsConfigGetRetentionArgType) *LogsConfig { this := LogsConfig{} setLogsConfigGetRetentionAttributeType(&this.Retention, retention) @@ -59,12 +69,14 @@ func NewLogsConfig(retention LogsConfigGetRetentionArgType) *LogsConfig { // NewLogsConfigWithDefaults instantiates a new LogsConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewLogsConfigWithDefaults() *LogsConfig { this := LogsConfig{} return &this } // GetRetention returns the Retention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfig) GetRetention() (ret LogsConfigGetRetentionRetType) { ret, _ = o.GetRetentionOk() return ret @@ -72,15 +84,18 @@ func (o *LogsConfig) GetRetention() (ret LogsConfigGetRetentionRetType) { // GetRetentionOk returns a tuple with the Retention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfig) GetRetentionOk() (ret LogsConfigGetRetentionRetType, ok bool) { return getLogsConfigGetRetentionAttributeTypeOk(o.Retention) } // SetRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfig) SetRetention(v LogsConfigGetRetentionRetType) { setLogsConfigGetRetentionAttributeType(&o.Retention, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o LogsConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getLogsConfigGetRetentionAttributeTypeOk(o.Retention); ok { @@ -89,37 +104,45 @@ func (o LogsConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableLogsConfig struct { value *LogsConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableLogsConfig) Get() *LogsConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableLogsConfig) Set(val *LogsConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableLogsConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableLogsConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableLogsConfig(val *LogsConfig) *NullableLogsConfig { return &NullableLogsConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableLogsConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableLogsConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_logs_config_response.go b/services/observability/model_logs_config_response.go index 5d05831f5..ed5987b9c 100644 --- a/services/observability/model_logs_config_response.go +++ b/services/observability/model_logs_config_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &LogsConfigResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponseGetConfigAttributeType = *LogsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponseGetConfigArgType = LogsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponseGetConfigRetType = LogsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getLogsConfigResponseGetConfigAttributeTypeOk(arg LogsConfigResponseGetConfigAttributeType) (ret LogsConfigResponseGetConfigRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getLogsConfigResponseGetConfigAttributeTypeOk(arg LogsConfigResponseGetConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setLogsConfigResponseGetConfigAttributeType(arg *LogsConfigResponseGetConfigAttributeType, val LogsConfigResponseGetConfigRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setLogsConfigResponseGetConfigAttributeType(arg *LogsConfigResponseGetConfi */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getLogsConfigResponseGetMessageAttributeTypeOk(arg LogsConfigResponseGetMessageAttributeType) (ret LogsConfigResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getLogsConfigResponseGetMessageAttributeTypeOk(arg LogsConfigResponseGetMes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setLogsConfigResponseGetMessageAttributeType(arg *LogsConfigResponseGetMessageAttributeType, val LogsConfigResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponseGetMessageRetType = string // LogsConfigResponse struct for LogsConfigResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LogsConfigResponse struct { // REQUIRED Config LogsConfigResponseGetConfigAttributeType `json:"config" required:"true"` @@ -66,12 +81,14 @@ type LogsConfigResponse struct { Message LogsConfigResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _LogsConfigResponse LogsConfigResponse // NewLogsConfigResponse instantiates a new LogsConfigResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewLogsConfigResponse(config LogsConfigResponseGetConfigArgType, message LogsConfigResponseGetMessageArgType) *LogsConfigResponse { this := LogsConfigResponse{} setLogsConfigResponseGetConfigAttributeType(&this.Config, config) @@ -82,12 +99,14 @@ func NewLogsConfigResponse(config LogsConfigResponseGetConfigArgType, message Lo // NewLogsConfigResponseWithDefaults instantiates a new LogsConfigResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewLogsConfigResponseWithDefaults() *LogsConfigResponse { this := LogsConfigResponse{} return &this } // GetConfig returns the Config field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfigResponse) GetConfig() (ret LogsConfigResponseGetConfigRetType) { ret, _ = o.GetConfigOk() return ret @@ -95,16 +114,19 @@ func (o *LogsConfigResponse) GetConfig() (ret LogsConfigResponseGetConfigRetType // GetConfigOk returns a tuple with the Config field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfigResponse) GetConfigOk() (ret LogsConfigResponseGetConfigRetType, ok bool) { return getLogsConfigResponseGetConfigAttributeTypeOk(o.Config) } // SetConfig sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfigResponse) SetConfig(v LogsConfigResponseGetConfigRetType) { setLogsConfigResponseGetConfigAttributeType(&o.Config, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfigResponse) GetMessage() (ret LogsConfigResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *LogsConfigResponse) GetMessage() (ret LogsConfigResponseGetMessageRetTy // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfigResponse) GetMessageOk() (ret LogsConfigResponseGetMessageRetType, ok bool) { return getLogsConfigResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *LogsConfigResponse) SetMessage(v LogsConfigResponseGetMessageRetType) { setLogsConfigResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o LogsConfigResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getLogsConfigResponseGetConfigAttributeTypeOk(o.Config); ok { @@ -132,37 +157,45 @@ func (o LogsConfigResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableLogsConfigResponse struct { value *LogsConfigResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableLogsConfigResponse) Get() *LogsConfigResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableLogsConfigResponse) Set(val *LogsConfigResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableLogsConfigResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableLogsConfigResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableLogsConfigResponse(val *LogsConfigResponse) *NullableLogsConfigResponse { return &NullableLogsConfigResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableLogsConfigResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableLogsConfigResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_message.go b/services/observability/model_message.go index 3870fe863..69a27711b 100644 --- a/services/observability/model_message.go +++ b/services/observability/model_message.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Message{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMessageGetMessageAttributeTypeOk(arg MessageGetMessageAttributeType) (ret MessageGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getMessageGetMessageAttributeTypeOk(arg MessageGetMessageAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMessageGetMessageAttributeType(arg *MessageGetMessageAttributeType, val MessageGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageGetMessageRetType = string // Message struct for Message +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Message struct { // REQUIRED Message MessageGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Message Message // NewMessage instantiates a new Message object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMessage(message MessageGetMessageArgType) *Message { this := Message{} setMessageGetMessageAttributeType(&this.Message, message) @@ -59,12 +69,14 @@ func NewMessage(message MessageGetMessageArgType) *Message { // NewMessageWithDefaults instantiates a new Message object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMessageWithDefaults() *Message { this := Message{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Message) GetMessage() (ret MessageGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -72,15 +84,18 @@ func (o *Message) GetMessage() (ret MessageGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Message) GetMessageOk() (ret MessageGetMessageRetType, ok bool) { return getMessageGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Message) SetMessage(v MessageGetMessageRetType) { setMessageGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Message) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMessageGetMessageAttributeTypeOk(o.Message); ok { @@ -89,37 +104,45 @@ func (o Message) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMessage struct { value *Message isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMessage) Get() *Message { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMessage) Set(val *Message) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMessage) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMessage) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMessage(val *Message) *NullableMessage { return &NullableMessage{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMessage) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMessage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_metrics_relabel_config.go b/services/observability/model_metrics_relabel_config.go index 4b2cba8e4..7f8d50cf3 100644 --- a/services/observability/model_metrics_relabel_config.go +++ b/services/observability/model_metrics_relabel_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -26,20 +27,29 @@ var _ MappedNullable = &MetricsRelabelConfig{} // MetricsRelabelConfigAction the model 'MetricsRelabelConfig' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigAction string // List of Action const ( - METRICSRELABELCONFIGACTION_REPLACE MetricsRelabelConfigAction = "replace" - METRICSRELABELCONFIGACTION_KEEP MetricsRelabelConfigAction = "keep" - METRICSRELABELCONFIGACTION_DROP MetricsRelabelConfigAction = "drop" - METRICSRELABELCONFIGACTION_HASHMOD MetricsRelabelConfigAction = "hashmod" - METRICSRELABELCONFIGACTION_LABELMAP MetricsRelabelConfigAction = "labelmap" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + METRICSRELABELCONFIGACTION_REPLACE MetricsRelabelConfigAction = "replace" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + METRICSRELABELCONFIGACTION_KEEP MetricsRelabelConfigAction = "keep" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + METRICSRELABELCONFIGACTION_DROP MetricsRelabelConfigAction = "drop" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + METRICSRELABELCONFIGACTION_HASHMOD MetricsRelabelConfigAction = "hashmod" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + METRICSRELABELCONFIGACTION_LABELMAP MetricsRelabelConfigAction = "labelmap" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead METRICSRELABELCONFIGACTION_LABELDROP MetricsRelabelConfigAction = "labeldrop" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead METRICSRELABELCONFIGACTION_LABELKEEP MetricsRelabelConfigAction = "labelkeep" ) // All allowed values of MetricsRelabelConfig enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedMetricsRelabelConfigActionEnumValues = []MetricsRelabelConfigAction{ "replace", "keep", @@ -50,6 +60,7 @@ var AllowedMetricsRelabelConfigActionEnumValues = []MetricsRelabelConfigAction{ "labelkeep", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *MetricsRelabelConfigAction) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -77,6 +88,7 @@ func (v *MetricsRelabelConfigAction) UnmarshalJSON(src []byte) error { // NewMetricsRelabelConfigActionFromValue returns a pointer to a valid MetricsRelabelConfigAction // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMetricsRelabelConfigActionFromValue(v MetricsRelabelConfigAction) (*MetricsRelabelConfigAction, error) { ev := MetricsRelabelConfigAction(v) if ev.IsValid() { @@ -87,6 +99,7 @@ func NewMetricsRelabelConfigActionFromValue(v MetricsRelabelConfigAction) (*Metr } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v MetricsRelabelConfigAction) IsValid() bool { for _, existing := range AllowedMetricsRelabelConfigActionEnumValues { if existing == v { @@ -97,50 +110,65 @@ func (v MetricsRelabelConfigAction) IsValid() bool { } // Ptr returns reference to ActionAction value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v MetricsRelabelConfigAction) Ptr() *MetricsRelabelConfigAction { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMetricsRelabelConfigAction struct { value *MetricsRelabelConfigAction isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMetricsRelabelConfigAction) Get() *MetricsRelabelConfigAction { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMetricsRelabelConfigAction) Set(val *MetricsRelabelConfigAction) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMetricsRelabelConfigAction) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMetricsRelabelConfigAction) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMetricsRelabelConfigAction(val *MetricsRelabelConfigAction) *NullableMetricsRelabelConfigAction { return &NullableMetricsRelabelConfigAction{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMetricsRelabelConfigAction) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMetricsRelabelConfigAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetActionAttributeType = *MetricsRelabelConfigAction + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetActionArgType = MetricsRelabelConfigAction + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetActionRetType = MetricsRelabelConfigAction +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetActionAttributeTypeOk(arg MetricsRelabelConfigGetActionAttributeType) (ret MetricsRelabelConfigGetActionRetType, ok bool) { if arg == nil { return ret, false @@ -148,6 +176,7 @@ func getMetricsRelabelConfigGetActionAttributeTypeOk(arg MetricsRelabelConfigGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetActionAttributeType(arg *MetricsRelabelConfigGetActionAttributeType, val MetricsRelabelConfigGetActionRetType) { *arg = &val } @@ -157,10 +186,16 @@ func setMetricsRelabelConfigGetActionAttributeType(arg *MetricsRelabelConfigGetA */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetModulusAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetModulusArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetModulusRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetModulusAttributeTypeOk(arg MetricsRelabelConfigGetModulusAttributeType) (ret MetricsRelabelConfigGetModulusRetType, ok bool) { if arg == nil { return ret, false @@ -168,6 +203,7 @@ func getMetricsRelabelConfigGetModulusAttributeTypeOk(arg MetricsRelabelConfigGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetModulusAttributeType(arg *MetricsRelabelConfigGetModulusAttributeType, val MetricsRelabelConfigGetModulusRetType) { *arg = &val } @@ -177,8 +213,10 @@ func setMetricsRelabelConfigGetModulusAttributeType(arg *MetricsRelabelConfigGet */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetRegexAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetRegexAttributeTypeOk(arg MetricsRelabelConfigGetRegexAttributeType) (ret MetricsRelabelConfigGetRegexRetType, ok bool) { if arg == nil { return ret, false @@ -186,11 +224,15 @@ func getMetricsRelabelConfigGetRegexAttributeTypeOk(arg MetricsRelabelConfigGetR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetRegexAttributeType(arg *MetricsRelabelConfigGetRegexAttributeType, val MetricsRelabelConfigGetRegexRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetRegexArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetRegexRetType = string /* @@ -198,8 +240,10 @@ type MetricsRelabelConfigGetRegexRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetReplacementAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetReplacementAttributeTypeOk(arg MetricsRelabelConfigGetReplacementAttributeType) (ret MetricsRelabelConfigGetReplacementRetType, ok bool) { if arg == nil { return ret, false @@ -207,11 +251,15 @@ func getMetricsRelabelConfigGetReplacementAttributeTypeOk(arg MetricsRelabelConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetReplacementAttributeType(arg *MetricsRelabelConfigGetReplacementAttributeType, val MetricsRelabelConfigGetReplacementRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetReplacementArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetReplacementRetType = string /* @@ -219,8 +267,10 @@ type MetricsRelabelConfigGetReplacementRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetSeparatorAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetSeparatorAttributeTypeOk(arg MetricsRelabelConfigGetSeparatorAttributeType) (ret MetricsRelabelConfigGetSeparatorRetType, ok bool) { if arg == nil { return ret, false @@ -228,11 +278,15 @@ func getMetricsRelabelConfigGetSeparatorAttributeTypeOk(arg MetricsRelabelConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetSeparatorAttributeType(arg *MetricsRelabelConfigGetSeparatorAttributeType, val MetricsRelabelConfigGetSeparatorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetSeparatorArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetSeparatorRetType = string /* @@ -240,10 +294,16 @@ type MetricsRelabelConfigGetSeparatorRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetSourceLabelsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetSourceLabelsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetSourceLabelsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetSourceLabelsAttributeTypeOk(arg MetricsRelabelConfigGetSourceLabelsAttributeType) (ret MetricsRelabelConfigGetSourceLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -251,6 +311,7 @@ func getMetricsRelabelConfigGetSourceLabelsAttributeTypeOk(arg MetricsRelabelCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetSourceLabelsAttributeType(arg *MetricsRelabelConfigGetSourceLabelsAttributeType, val MetricsRelabelConfigGetSourceLabelsRetType) { *arg = &val } @@ -260,8 +321,10 @@ func setMetricsRelabelConfigGetSourceLabelsAttributeType(arg *MetricsRelabelConf */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetTargetLabelAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMetricsRelabelConfigGetTargetLabelAttributeTypeOk(arg MetricsRelabelConfigGetTargetLabelAttributeType) (ret MetricsRelabelConfigGetTargetLabelRetType, ok bool) { if arg == nil { return ret, false @@ -269,14 +332,19 @@ func getMetricsRelabelConfigGetTargetLabelAttributeTypeOk(arg MetricsRelabelConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMetricsRelabelConfigGetTargetLabelAttributeType(arg *MetricsRelabelConfigGetTargetLabelAttributeType, val MetricsRelabelConfigGetTargetLabelRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetTargetLabelArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfigGetTargetLabelRetType = string // MetricsRelabelConfig struct for MetricsRelabelConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MetricsRelabelConfig struct { Action MetricsRelabelConfigGetActionAttributeType `json:"action,omitempty"` Modulus MetricsRelabelConfigGetModulusAttributeType `json:"modulus,omitempty"` @@ -288,12 +356,14 @@ type MetricsRelabelConfig struct { TargetLabel MetricsRelabelConfigGetTargetLabelAttributeType `json:"targetLabel,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _MetricsRelabelConfig MetricsRelabelConfig // NewMetricsRelabelConfig instantiates a new MetricsRelabelConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMetricsRelabelConfig(sourceLabels MetricsRelabelConfigGetSourceLabelsArgType) *MetricsRelabelConfig { this := MetricsRelabelConfig{} setMetricsRelabelConfigGetSourceLabelsAttributeType(&this.SourceLabels, sourceLabels) @@ -303,6 +373,7 @@ func NewMetricsRelabelConfig(sourceLabels MetricsRelabelConfigGetSourceLabelsArg // NewMetricsRelabelConfigWithDefaults instantiates a new MetricsRelabelConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMetricsRelabelConfigWithDefaults() *MetricsRelabelConfig { this := MetricsRelabelConfig{} var action MetricsRelabelConfigAction = "replace" @@ -317,6 +388,7 @@ func NewMetricsRelabelConfigWithDefaults() *MetricsRelabelConfig { } // GetAction returns the Action field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetAction() (res MetricsRelabelConfigGetActionRetType) { res, _ = o.GetActionOk() return @@ -324,22 +396,26 @@ func (o *MetricsRelabelConfig) GetAction() (res MetricsRelabelConfigGetActionRet // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetActionOk() (ret MetricsRelabelConfigGetActionRetType, ok bool) { return getMetricsRelabelConfigGetActionAttributeTypeOk(o.Action) } // HasAction returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) HasAction() bool { _, ok := o.GetActionOk() return ok } // SetAction gets a reference to the given string and assigns it to the Action field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetAction(v MetricsRelabelConfigGetActionRetType) { setMetricsRelabelConfigGetActionAttributeType(&o.Action, v) } // GetModulus returns the Modulus field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetModulus() (res MetricsRelabelConfigGetModulusRetType) { res, _ = o.GetModulusOk() return @@ -347,22 +423,26 @@ func (o *MetricsRelabelConfig) GetModulus() (res MetricsRelabelConfigGetModulusR // GetModulusOk returns a tuple with the Modulus field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetModulusOk() (ret MetricsRelabelConfigGetModulusRetType, ok bool) { return getMetricsRelabelConfigGetModulusAttributeTypeOk(o.Modulus) } // HasModulus returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) HasModulus() bool { _, ok := o.GetModulusOk() return ok } // SetModulus gets a reference to the given int64 and assigns it to the Modulus field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetModulus(v MetricsRelabelConfigGetModulusRetType) { setMetricsRelabelConfigGetModulusAttributeType(&o.Modulus, v) } // GetRegex returns the Regex field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetRegex() (res MetricsRelabelConfigGetRegexRetType) { res, _ = o.GetRegexOk() return @@ -370,22 +450,26 @@ func (o *MetricsRelabelConfig) GetRegex() (res MetricsRelabelConfigGetRegexRetTy // GetRegexOk returns a tuple with the Regex field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetRegexOk() (ret MetricsRelabelConfigGetRegexRetType, ok bool) { return getMetricsRelabelConfigGetRegexAttributeTypeOk(o.Regex) } // HasRegex returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) HasRegex() bool { _, ok := o.GetRegexOk() return ok } // SetRegex gets a reference to the given string and assigns it to the Regex field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetRegex(v MetricsRelabelConfigGetRegexRetType) { setMetricsRelabelConfigGetRegexAttributeType(&o.Regex, v) } // GetReplacement returns the Replacement field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetReplacement() (res MetricsRelabelConfigGetReplacementRetType) { res, _ = o.GetReplacementOk() return @@ -393,22 +477,26 @@ func (o *MetricsRelabelConfig) GetReplacement() (res MetricsRelabelConfigGetRepl // GetReplacementOk returns a tuple with the Replacement field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetReplacementOk() (ret MetricsRelabelConfigGetReplacementRetType, ok bool) { return getMetricsRelabelConfigGetReplacementAttributeTypeOk(o.Replacement) } // HasReplacement returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) HasReplacement() bool { _, ok := o.GetReplacementOk() return ok } // SetReplacement gets a reference to the given string and assigns it to the Replacement field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetReplacement(v MetricsRelabelConfigGetReplacementRetType) { setMetricsRelabelConfigGetReplacementAttributeType(&o.Replacement, v) } // GetSeparator returns the Separator field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetSeparator() (res MetricsRelabelConfigGetSeparatorRetType) { res, _ = o.GetSeparatorOk() return @@ -416,22 +504,26 @@ func (o *MetricsRelabelConfig) GetSeparator() (res MetricsRelabelConfigGetSepara // GetSeparatorOk returns a tuple with the Separator field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetSeparatorOk() (ret MetricsRelabelConfigGetSeparatorRetType, ok bool) { return getMetricsRelabelConfigGetSeparatorAttributeTypeOk(o.Separator) } // HasSeparator returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) HasSeparator() bool { _, ok := o.GetSeparatorOk() return ok } // SetSeparator gets a reference to the given string and assigns it to the Separator field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetSeparator(v MetricsRelabelConfigGetSeparatorRetType) { setMetricsRelabelConfigGetSeparatorAttributeType(&o.Separator, v) } // GetSourceLabels returns the SourceLabels field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetSourceLabels() (ret MetricsRelabelConfigGetSourceLabelsRetType) { ret, _ = o.GetSourceLabelsOk() return ret @@ -439,16 +531,19 @@ func (o *MetricsRelabelConfig) GetSourceLabels() (ret MetricsRelabelConfigGetSou // GetSourceLabelsOk returns a tuple with the SourceLabels field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetSourceLabelsOk() (ret MetricsRelabelConfigGetSourceLabelsRetType, ok bool) { return getMetricsRelabelConfigGetSourceLabelsAttributeTypeOk(o.SourceLabels) } // SetSourceLabels sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetSourceLabels(v MetricsRelabelConfigGetSourceLabelsRetType) { setMetricsRelabelConfigGetSourceLabelsAttributeType(&o.SourceLabels, v) } // GetTargetLabel returns the TargetLabel field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetTargetLabel() (res MetricsRelabelConfigGetTargetLabelRetType) { res, _ = o.GetTargetLabelOk() return @@ -456,21 +551,25 @@ func (o *MetricsRelabelConfig) GetTargetLabel() (res MetricsRelabelConfigGetTarg // GetTargetLabelOk returns a tuple with the TargetLabel field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) GetTargetLabelOk() (ret MetricsRelabelConfigGetTargetLabelRetType, ok bool) { return getMetricsRelabelConfigGetTargetLabelAttributeTypeOk(o.TargetLabel) } // HasTargetLabel returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) HasTargetLabel() bool { _, ok := o.GetTargetLabelOk() return ok } // SetTargetLabel gets a reference to the given string and assigns it to the TargetLabel field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MetricsRelabelConfig) SetTargetLabel(v MetricsRelabelConfigGetTargetLabelRetType) { setMetricsRelabelConfigGetTargetLabelAttributeType(&o.TargetLabel, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o MetricsRelabelConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMetricsRelabelConfigGetActionAttributeTypeOk(o.Action); ok { @@ -497,37 +596,45 @@ func (o MetricsRelabelConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMetricsRelabelConfig struct { value *MetricsRelabelConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMetricsRelabelConfig) Get() *MetricsRelabelConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMetricsRelabelConfig) Set(val *MetricsRelabelConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMetricsRelabelConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMetricsRelabelConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMetricsRelabelConfig(val *MetricsRelabelConfig) *NullableMetricsRelabelConfig { return &NullableMetricsRelabelConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMetricsRelabelConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMetricsRelabelConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_mongodb_check_child_response.go b/services/observability/model_mongodb_check_child_response.go index b0c34a2e0..72863cc3f 100644 --- a/services/observability/model_mongodb_check_child_response.go +++ b/services/observability/model_mongodb_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &MongodbCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMongodbCheckChildResponseGetIdAttributeTypeOk(arg MongodbCheckChildResponseGetIdAttributeType) (ret MongodbCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getMongodbCheckChildResponseGetIdAttributeTypeOk(arg MongodbCheckChildRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMongodbCheckChildResponseGetIdAttributeType(arg *MongodbCheckChildResponseGetIdAttributeType, val MongodbCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type MongodbCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponseGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMongodbCheckChildResponseGetServerAttributeTypeOk(arg MongodbCheckChildResponseGetServerAttributeType) (ret MongodbCheckChildResponseGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getMongodbCheckChildResponseGetServerAttributeTypeOk(arg MongodbCheckChildR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMongodbCheckChildResponseGetServerAttributeType(arg *MongodbCheckChildResponseGetServerAttributeType, val MongodbCheckChildResponseGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponseGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponseGetServerRetType = string // MongodbCheckChildResponse struct for MongodbCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckChildResponse struct { // REQUIRED Id MongodbCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -67,12 +81,14 @@ type MongodbCheckChildResponse struct { Server MongodbCheckChildResponseGetServerAttributeType `json:"server" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _MongodbCheckChildResponse MongodbCheckChildResponse // NewMongodbCheckChildResponse instantiates a new MongodbCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMongodbCheckChildResponse(id MongodbCheckChildResponseGetIdArgType, server MongodbCheckChildResponseGetServerArgType) *MongodbCheckChildResponse { this := MongodbCheckChildResponse{} setMongodbCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -83,12 +99,14 @@ func NewMongodbCheckChildResponse(id MongodbCheckChildResponseGetIdArgType, serv // NewMongodbCheckChildResponseWithDefaults instantiates a new MongodbCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMongodbCheckChildResponseWithDefaults() *MongodbCheckChildResponse { this := MongodbCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckChildResponse) GetId() (ret MongodbCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -96,16 +114,19 @@ func (o *MongodbCheckChildResponse) GetId() (ret MongodbCheckChildResponseGetIdR // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckChildResponse) GetIdOk() (ret MongodbCheckChildResponseGetIdRetType, ok bool) { return getMongodbCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckChildResponse) SetId(v MongodbCheckChildResponseGetIdRetType) { setMongodbCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckChildResponse) GetServer() (ret MongodbCheckChildResponseGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -113,15 +134,18 @@ func (o *MongodbCheckChildResponse) GetServer() (ret MongodbCheckChildResponseGe // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckChildResponse) GetServerOk() (ret MongodbCheckChildResponseGetServerRetType, ok bool) { return getMongodbCheckChildResponseGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckChildResponse) SetServer(v MongodbCheckChildResponseGetServerRetType) { setMongodbCheckChildResponseGetServerAttributeType(&o.Server, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o MongodbCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMongodbCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -133,37 +157,45 @@ func (o MongodbCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMongodbCheckChildResponse struct { value *MongodbCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMongodbCheckChildResponse) Get() *MongodbCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMongodbCheckChildResponse) Set(val *MongodbCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMongodbCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMongodbCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMongodbCheckChildResponse(val *MongodbCheckChildResponse) *NullableMongodbCheckChildResponse { return &NullableMongodbCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMongodbCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMongodbCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_mongodb_check_response.go b/services/observability/model_mongodb_check_response.go index ab4e48f5f..4a8c5c3c3 100644 --- a/services/observability/model_mongodb_check_response.go +++ b/services/observability/model_mongodb_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &MongodbCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMongodbCheckResponseGetMessageAttributeTypeOk(arg MongodbCheckResponseGetMessageAttributeType) (ret MongodbCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getMongodbCheckResponseGetMessageAttributeTypeOk(arg MongodbCheckResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMongodbCheckResponseGetMessageAttributeType(arg *MongodbCheckResponseGetMessageAttributeType, val MongodbCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type MongodbCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMongodbCheckAttributeType = *MongodbCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMongodbCheckArgType = MongodbCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMongodbCheckRetType = MongodbCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMongodbCheckResponseGetMongodbCheckAttributeTypeOk(arg MongodbCheckResponseGetMongodbCheckAttributeType) (ret MongodbCheckResponseGetMongodbCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getMongodbCheckResponseGetMongodbCheckAttributeTypeOk(arg MongodbCheckRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMongodbCheckResponseGetMongodbCheckAttributeType(arg *MongodbCheckResponseGetMongodbCheckAttributeType, val MongodbCheckResponseGetMongodbCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setMongodbCheckResponseGetMongodbCheckAttributeType(arg *MongodbCheckRespon */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMongodbChecksAttributeType = *[]MongodbCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMongodbChecksArgType = []MongodbCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponseGetMongodbChecksRetType = []MongodbCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMongodbCheckResponseGetMongodbChecksAttributeTypeOk(arg MongodbCheckResponseGetMongodbChecksAttributeType) (ret MongodbCheckResponseGetMongodbChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getMongodbCheckResponseGetMongodbChecksAttributeTypeOk(arg MongodbCheckResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMongodbCheckResponseGetMongodbChecksAttributeType(arg *MongodbCheckResponseGetMongodbChecksAttributeType, val MongodbCheckResponseGetMongodbChecksRetType) { *arg = &val } // MongodbCheckResponse struct for MongodbCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MongodbCheckResponse struct { // REQUIRED Message MongodbCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type MongodbCheckResponse struct { MongodbChecks MongodbCheckResponseGetMongodbChecksAttributeType `json:"mongodbChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _MongodbCheckResponse MongodbCheckResponse // NewMongodbCheckResponse instantiates a new MongodbCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMongodbCheckResponse(message MongodbCheckResponseGetMessageArgType, mongodbChecks MongodbCheckResponseGetMongodbChecksArgType) *MongodbCheckResponse { this := MongodbCheckResponse{} setMongodbCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewMongodbCheckResponse(message MongodbCheckResponseGetMessageArgType, mong // NewMongodbCheckResponseWithDefaults instantiates a new MongodbCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMongodbCheckResponseWithDefaults() *MongodbCheckResponse { this := MongodbCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) GetMessage() (ret MongodbCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *MongodbCheckResponse) GetMessage() (ret MongodbCheckResponseGetMessageR // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) GetMessageOk() (ret MongodbCheckResponseGetMessageRetType, ok bool) { return getMongodbCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) SetMessage(v MongodbCheckResponseGetMessageRetType) { setMongodbCheckResponseGetMessageAttributeType(&o.Message, v) } // GetMongodbCheck returns the MongodbCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) GetMongodbCheck() (res MongodbCheckResponseGetMongodbCheckRetType) { res, _ = o.GetMongodbCheckOk() return @@ -133,22 +162,26 @@ func (o *MongodbCheckResponse) GetMongodbCheck() (res MongodbCheckResponseGetMon // GetMongodbCheckOk returns a tuple with the MongodbCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) GetMongodbCheckOk() (ret MongodbCheckResponseGetMongodbCheckRetType, ok bool) { return getMongodbCheckResponseGetMongodbCheckAttributeTypeOk(o.MongodbCheck) } // HasMongodbCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) HasMongodbCheck() bool { _, ok := o.GetMongodbCheckOk() return ok } // SetMongodbCheck gets a reference to the given MongodbCheckChildResponse and assigns it to the MongodbCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) SetMongodbCheck(v MongodbCheckResponseGetMongodbCheckRetType) { setMongodbCheckResponseGetMongodbCheckAttributeType(&o.MongodbCheck, v) } // GetMongodbChecks returns the MongodbChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) GetMongodbChecks() (ret MongodbCheckResponseGetMongodbChecksRetType) { ret, _ = o.GetMongodbChecksOk() return ret @@ -156,15 +189,18 @@ func (o *MongodbCheckResponse) GetMongodbChecks() (ret MongodbCheckResponseGetMo // GetMongodbChecksOk returns a tuple with the MongodbChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) GetMongodbChecksOk() (ret MongodbCheckResponseGetMongodbChecksRetType, ok bool) { return getMongodbCheckResponseGetMongodbChecksAttributeTypeOk(o.MongodbChecks) } // SetMongodbChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MongodbCheckResponse) SetMongodbChecks(v MongodbCheckResponseGetMongodbChecksRetType) { setMongodbCheckResponseGetMongodbChecksAttributeType(&o.MongodbChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o MongodbCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMongodbCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o MongodbCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMongodbCheckResponse struct { value *MongodbCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMongodbCheckResponse) Get() *MongodbCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMongodbCheckResponse) Set(val *MongodbCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMongodbCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMongodbCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMongodbCheckResponse(val *MongodbCheckResponse) *NullableMongodbCheckResponse { return &NullableMongodbCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMongodbCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMongodbCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_mysql_check_child_response.go b/services/observability/model_mysql_check_child_response.go index 24c1fc369..294c55700 100644 --- a/services/observability/model_mysql_check_child_response.go +++ b/services/observability/model_mysql_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &MysqlCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMysqlCheckChildResponseGetIdAttributeTypeOk(arg MysqlCheckChildResponseGetIdAttributeType) (ret MysqlCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getMysqlCheckChildResponseGetIdAttributeTypeOk(arg MysqlCheckChildResponseG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMysqlCheckChildResponseGetIdAttributeType(arg *MysqlCheckChildResponseGetIdAttributeType, val MysqlCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type MysqlCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponseGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMysqlCheckChildResponseGetServerAttributeTypeOk(arg MysqlCheckChildResponseGetServerAttributeType) (ret MysqlCheckChildResponseGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getMysqlCheckChildResponseGetServerAttributeTypeOk(arg MysqlCheckChildRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMysqlCheckChildResponseGetServerAttributeType(arg *MysqlCheckChildResponseGetServerAttributeType, val MysqlCheckChildResponseGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponseGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponseGetServerRetType = string // MysqlCheckChildResponse struct for MysqlCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckChildResponse struct { // REQUIRED Id MysqlCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -67,12 +81,14 @@ type MysqlCheckChildResponse struct { Server MysqlCheckChildResponseGetServerAttributeType `json:"server" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _MysqlCheckChildResponse MysqlCheckChildResponse // NewMysqlCheckChildResponse instantiates a new MysqlCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMysqlCheckChildResponse(id MysqlCheckChildResponseGetIdArgType, server MysqlCheckChildResponseGetServerArgType) *MysqlCheckChildResponse { this := MysqlCheckChildResponse{} setMysqlCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -83,12 +99,14 @@ func NewMysqlCheckChildResponse(id MysqlCheckChildResponseGetIdArgType, server M // NewMysqlCheckChildResponseWithDefaults instantiates a new MysqlCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMysqlCheckChildResponseWithDefaults() *MysqlCheckChildResponse { this := MysqlCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckChildResponse) GetId() (ret MysqlCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -96,16 +114,19 @@ func (o *MysqlCheckChildResponse) GetId() (ret MysqlCheckChildResponseGetIdRetTy // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckChildResponse) GetIdOk() (ret MysqlCheckChildResponseGetIdRetType, ok bool) { return getMysqlCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckChildResponse) SetId(v MysqlCheckChildResponseGetIdRetType) { setMysqlCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckChildResponse) GetServer() (ret MysqlCheckChildResponseGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -113,15 +134,18 @@ func (o *MysqlCheckChildResponse) GetServer() (ret MysqlCheckChildResponseGetSer // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckChildResponse) GetServerOk() (ret MysqlCheckChildResponseGetServerRetType, ok bool) { return getMysqlCheckChildResponseGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckChildResponse) SetServer(v MysqlCheckChildResponseGetServerRetType) { setMysqlCheckChildResponseGetServerAttributeType(&o.Server, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o MysqlCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMysqlCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -133,37 +157,45 @@ func (o MysqlCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMysqlCheckChildResponse struct { value *MysqlCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMysqlCheckChildResponse) Get() *MysqlCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMysqlCheckChildResponse) Set(val *MysqlCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMysqlCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMysqlCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMysqlCheckChildResponse(val *MysqlCheckChildResponse) *NullableMysqlCheckChildResponse { return &NullableMysqlCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMysqlCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMysqlCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_mysql_check_response.go b/services/observability/model_mysql_check_response.go index d7c8ad93c..552cc56c2 100644 --- a/services/observability/model_mysql_check_response.go +++ b/services/observability/model_mysql_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &MysqlCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMysqlCheckResponseGetMessageAttributeTypeOk(arg MysqlCheckResponseGetMessageAttributeType) (ret MysqlCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getMysqlCheckResponseGetMessageAttributeTypeOk(arg MysqlCheckResponseGetMes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMysqlCheckResponseGetMessageAttributeType(arg *MysqlCheckResponseGetMessageAttributeType, val MysqlCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type MysqlCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMysqlCheckAttributeType = *MysqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMysqlCheckArgType = MysqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMysqlCheckRetType = MysqlCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMysqlCheckResponseGetMysqlCheckAttributeTypeOk(arg MysqlCheckResponseGetMysqlCheckAttributeType) (ret MysqlCheckResponseGetMysqlCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getMysqlCheckResponseGetMysqlCheckAttributeTypeOk(arg MysqlCheckResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMysqlCheckResponseGetMysqlCheckAttributeType(arg *MysqlCheckResponseGetMysqlCheckAttributeType, val MysqlCheckResponseGetMysqlCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setMysqlCheckResponseGetMysqlCheckAttributeType(arg *MysqlCheckResponseGetM */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMysqlChecksAttributeType = *[]MysqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMysqlChecksArgType = []MysqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponseGetMysqlChecksRetType = []MysqlCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMysqlCheckResponseGetMysqlChecksAttributeTypeOk(arg MysqlCheckResponseGetMysqlChecksAttributeType) (ret MysqlCheckResponseGetMysqlChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getMysqlCheckResponseGetMysqlChecksAttributeTypeOk(arg MysqlCheckResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMysqlCheckResponseGetMysqlChecksAttributeType(arg *MysqlCheckResponseGetMysqlChecksAttributeType, val MysqlCheckResponseGetMysqlChecksRetType) { *arg = &val } // MysqlCheckResponse struct for MysqlCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MysqlCheckResponse struct { // REQUIRED Message MysqlCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type MysqlCheckResponse struct { MysqlChecks MysqlCheckResponseGetMysqlChecksAttributeType `json:"mysqlChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _MysqlCheckResponse MysqlCheckResponse // NewMysqlCheckResponse instantiates a new MysqlCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMysqlCheckResponse(message MysqlCheckResponseGetMessageArgType, mysqlChecks MysqlCheckResponseGetMysqlChecksArgType) *MysqlCheckResponse { this := MysqlCheckResponse{} setMysqlCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewMysqlCheckResponse(message MysqlCheckResponseGetMessageArgType, mysqlChe // NewMysqlCheckResponseWithDefaults instantiates a new MysqlCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMysqlCheckResponseWithDefaults() *MysqlCheckResponse { this := MysqlCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) GetMessage() (ret MysqlCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *MysqlCheckResponse) GetMessage() (ret MysqlCheckResponseGetMessageRetTy // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) GetMessageOk() (ret MysqlCheckResponseGetMessageRetType, ok bool) { return getMysqlCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) SetMessage(v MysqlCheckResponseGetMessageRetType) { setMysqlCheckResponseGetMessageAttributeType(&o.Message, v) } // GetMysqlCheck returns the MysqlCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) GetMysqlCheck() (res MysqlCheckResponseGetMysqlCheckRetType) { res, _ = o.GetMysqlCheckOk() return @@ -133,22 +162,26 @@ func (o *MysqlCheckResponse) GetMysqlCheck() (res MysqlCheckResponseGetMysqlChec // GetMysqlCheckOk returns a tuple with the MysqlCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) GetMysqlCheckOk() (ret MysqlCheckResponseGetMysqlCheckRetType, ok bool) { return getMysqlCheckResponseGetMysqlCheckAttributeTypeOk(o.MysqlCheck) } // HasMysqlCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) HasMysqlCheck() bool { _, ok := o.GetMysqlCheckOk() return ok } // SetMysqlCheck gets a reference to the given MysqlCheckChildResponse and assigns it to the MysqlCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) SetMysqlCheck(v MysqlCheckResponseGetMysqlCheckRetType) { setMysqlCheckResponseGetMysqlCheckAttributeType(&o.MysqlCheck, v) } // GetMysqlChecks returns the MysqlChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) GetMysqlChecks() (ret MysqlCheckResponseGetMysqlChecksRetType) { ret, _ = o.GetMysqlChecksOk() return ret @@ -156,15 +189,18 @@ func (o *MysqlCheckResponse) GetMysqlChecks() (ret MysqlCheckResponseGetMysqlChe // GetMysqlChecksOk returns a tuple with the MysqlChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) GetMysqlChecksOk() (ret MysqlCheckResponseGetMysqlChecksRetType, ok bool) { return getMysqlCheckResponseGetMysqlChecksAttributeTypeOk(o.MysqlChecks) } // SetMysqlChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MysqlCheckResponse) SetMysqlChecks(v MysqlCheckResponseGetMysqlChecksRetType) { setMysqlCheckResponseGetMysqlChecksAttributeType(&o.MysqlChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o MysqlCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMysqlCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o MysqlCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMysqlCheckResponse struct { value *MysqlCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMysqlCheckResponse) Get() *MysqlCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMysqlCheckResponse) Set(val *MysqlCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMysqlCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMysqlCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMysqlCheckResponse(val *MysqlCheckResponse) *NullableMysqlCheckResponse { return &NullableMysqlCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMysqlCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMysqlCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_network_check_child_response.go b/services/observability/model_network_check_child_response.go index 35aaddb4c..c71f7e348 100644 --- a/services/observability/model_network_check_child_response.go +++ b/services/observability/model_network_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &NetworkCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponseGetAddressAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getNetworkCheckChildResponseGetAddressAttributeTypeOk(arg NetworkCheckChildResponseGetAddressAttributeType) (ret NetworkCheckChildResponseGetAddressRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getNetworkCheckChildResponseGetAddressAttributeTypeOk(arg NetworkCheckChild return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setNetworkCheckChildResponseGetAddressAttributeType(arg *NetworkCheckChildResponseGetAddressAttributeType, val NetworkCheckChildResponseGetAddressRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponseGetAddressArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponseGetAddressRetType = string /* @@ -43,8 +50,10 @@ type NetworkCheckChildResponseGetAddressRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getNetworkCheckChildResponseGetIdAttributeTypeOk(arg NetworkCheckChildResponseGetIdAttributeType) (ret NetworkCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getNetworkCheckChildResponseGetIdAttributeTypeOk(arg NetworkCheckChildRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setNetworkCheckChildResponseGetIdAttributeType(arg *NetworkCheckChildResponseGetIdAttributeType, val NetworkCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponseGetIdRetType = string // NetworkCheckChildResponse struct for NetworkCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckChildResponse struct { // REQUIRED Address NetworkCheckChildResponseGetAddressAttributeType `json:"address" required:"true"` @@ -67,12 +81,14 @@ type NetworkCheckChildResponse struct { Id NetworkCheckChildResponseGetIdAttributeType `json:"id" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _NetworkCheckChildResponse NetworkCheckChildResponse // NewNetworkCheckChildResponse instantiates a new NetworkCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNetworkCheckChildResponse(address NetworkCheckChildResponseGetAddressArgType, id NetworkCheckChildResponseGetIdArgType) *NetworkCheckChildResponse { this := NetworkCheckChildResponse{} setNetworkCheckChildResponseGetAddressAttributeType(&this.Address, address) @@ -83,12 +99,14 @@ func NewNetworkCheckChildResponse(address NetworkCheckChildResponseGetAddressArg // NewNetworkCheckChildResponseWithDefaults instantiates a new NetworkCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNetworkCheckChildResponseWithDefaults() *NetworkCheckChildResponse { this := NetworkCheckChildResponse{} return &this } // GetAddress returns the Address field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckChildResponse) GetAddress() (ret NetworkCheckChildResponseGetAddressRetType) { ret, _ = o.GetAddressOk() return ret @@ -96,16 +114,19 @@ func (o *NetworkCheckChildResponse) GetAddress() (ret NetworkCheckChildResponseG // GetAddressOk returns a tuple with the Address field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckChildResponse) GetAddressOk() (ret NetworkCheckChildResponseGetAddressRetType, ok bool) { return getNetworkCheckChildResponseGetAddressAttributeTypeOk(o.Address) } // SetAddress sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckChildResponse) SetAddress(v NetworkCheckChildResponseGetAddressRetType) { setNetworkCheckChildResponseGetAddressAttributeType(&o.Address, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckChildResponse) GetId() (ret NetworkCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -113,15 +134,18 @@ func (o *NetworkCheckChildResponse) GetId() (ret NetworkCheckChildResponseGetIdR // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckChildResponse) GetIdOk() (ret NetworkCheckChildResponseGetIdRetType, ok bool) { return getNetworkCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckChildResponse) SetId(v NetworkCheckChildResponseGetIdRetType) { setNetworkCheckChildResponseGetIdAttributeType(&o.Id, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o NetworkCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getNetworkCheckChildResponseGetAddressAttributeTypeOk(o.Address); ok { @@ -133,37 +157,45 @@ func (o NetworkCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableNetworkCheckChildResponse struct { value *NetworkCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableNetworkCheckChildResponse) Get() *NetworkCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableNetworkCheckChildResponse) Set(val *NetworkCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableNetworkCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableNetworkCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableNetworkCheckChildResponse(val *NetworkCheckChildResponse) *NullableNetworkCheckChildResponse { return &NullableNetworkCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableNetworkCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableNetworkCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_network_check_response.go b/services/observability/model_network_check_response.go index b54461128..d2454cdad 100644 --- a/services/observability/model_network_check_response.go +++ b/services/observability/model_network_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &NetworkCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getNetworkCheckResponseGetMessageAttributeTypeOk(arg NetworkCheckResponseGetMessageAttributeType) (ret NetworkCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getNetworkCheckResponseGetMessageAttributeTypeOk(arg NetworkCheckResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setNetworkCheckResponseGetMessageAttributeType(arg *NetworkCheckResponseGetMessageAttributeType, val NetworkCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type NetworkCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetNetworkCheckAttributeType = *NetworkCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetNetworkCheckArgType = NetworkCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetNetworkCheckRetType = NetworkCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getNetworkCheckResponseGetNetworkCheckAttributeTypeOk(arg NetworkCheckResponseGetNetworkCheckAttributeType) (ret NetworkCheckResponseGetNetworkCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getNetworkCheckResponseGetNetworkCheckAttributeTypeOk(arg NetworkCheckRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setNetworkCheckResponseGetNetworkCheckAttributeType(arg *NetworkCheckResponseGetNetworkCheckAttributeType, val NetworkCheckResponseGetNetworkCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setNetworkCheckResponseGetNetworkCheckAttributeType(arg *NetworkCheckRespon */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetNetworkChecksAttributeType = *[]NetworkCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetNetworkChecksArgType = []NetworkCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponseGetNetworkChecksRetType = []NetworkCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getNetworkCheckResponseGetNetworkChecksAttributeTypeOk(arg NetworkCheckResponseGetNetworkChecksAttributeType) (ret NetworkCheckResponseGetNetworkChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getNetworkCheckResponseGetNetworkChecksAttributeTypeOk(arg NetworkCheckResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setNetworkCheckResponseGetNetworkChecksAttributeType(arg *NetworkCheckResponseGetNetworkChecksAttributeType, val NetworkCheckResponseGetNetworkChecksRetType) { *arg = &val } // NetworkCheckResponse struct for NetworkCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NetworkCheckResponse struct { // REQUIRED Message NetworkCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type NetworkCheckResponse struct { NetworkChecks NetworkCheckResponseGetNetworkChecksAttributeType `json:"networkChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _NetworkCheckResponse NetworkCheckResponse // NewNetworkCheckResponse instantiates a new NetworkCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNetworkCheckResponse(message NetworkCheckResponseGetMessageArgType, networkChecks NetworkCheckResponseGetNetworkChecksArgType) *NetworkCheckResponse { this := NetworkCheckResponse{} setNetworkCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewNetworkCheckResponse(message NetworkCheckResponseGetMessageArgType, netw // NewNetworkCheckResponseWithDefaults instantiates a new NetworkCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNetworkCheckResponseWithDefaults() *NetworkCheckResponse { this := NetworkCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) GetMessage() (ret NetworkCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *NetworkCheckResponse) GetMessage() (ret NetworkCheckResponseGetMessageR // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) GetMessageOk() (ret NetworkCheckResponseGetMessageRetType, ok bool) { return getNetworkCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) SetMessage(v NetworkCheckResponseGetMessageRetType) { setNetworkCheckResponseGetMessageAttributeType(&o.Message, v) } // GetNetworkCheck returns the NetworkCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) GetNetworkCheck() (res NetworkCheckResponseGetNetworkCheckRetType) { res, _ = o.GetNetworkCheckOk() return @@ -133,22 +162,26 @@ func (o *NetworkCheckResponse) GetNetworkCheck() (res NetworkCheckResponseGetNet // GetNetworkCheckOk returns a tuple with the NetworkCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) GetNetworkCheckOk() (ret NetworkCheckResponseGetNetworkCheckRetType, ok bool) { return getNetworkCheckResponseGetNetworkCheckAttributeTypeOk(o.NetworkCheck) } // HasNetworkCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) HasNetworkCheck() bool { _, ok := o.GetNetworkCheckOk() return ok } // SetNetworkCheck gets a reference to the given NetworkCheckChildResponse and assigns it to the NetworkCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) SetNetworkCheck(v NetworkCheckResponseGetNetworkCheckRetType) { setNetworkCheckResponseGetNetworkCheckAttributeType(&o.NetworkCheck, v) } // GetNetworkChecks returns the NetworkChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) GetNetworkChecks() (ret NetworkCheckResponseGetNetworkChecksRetType) { ret, _ = o.GetNetworkChecksOk() return ret @@ -156,15 +189,18 @@ func (o *NetworkCheckResponse) GetNetworkChecks() (ret NetworkCheckResponseGetNe // GetNetworkChecksOk returns a tuple with the NetworkChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) GetNetworkChecksOk() (ret NetworkCheckResponseGetNetworkChecksRetType, ok bool) { return getNetworkCheckResponseGetNetworkChecksAttributeTypeOk(o.NetworkChecks) } // SetNetworkChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *NetworkCheckResponse) SetNetworkChecks(v NetworkCheckResponseGetNetworkChecksRetType) { setNetworkCheckResponseGetNetworkChecksAttributeType(&o.NetworkChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o NetworkCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getNetworkCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o NetworkCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableNetworkCheckResponse struct { value *NetworkCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableNetworkCheckResponse) Get() *NetworkCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableNetworkCheckResponse) Set(val *NetworkCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableNetworkCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableNetworkCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableNetworkCheckResponse(val *NetworkCheckResponse) *NullableNetworkCheckResponse { return &NullableNetworkCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableNetworkCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableNetworkCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_o_auth2.go b/services/observability/model_o_auth2.go index e21d23fc4..b670b5f13 100644 --- a/services/observability/model_o_auth2.go +++ b/services/observability/model_o_auth2.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &OAuth2{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetClientIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOAuth2GetClientIdAttributeTypeOk(arg OAuth2GetClientIdAttributeType) (ret OAuth2GetClientIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getOAuth2GetClientIdAttributeTypeOk(arg OAuth2GetClientIdAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOAuth2GetClientIdAttributeType(arg *OAuth2GetClientIdAttributeType, val OAuth2GetClientIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetClientIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetClientIdRetType = string /* @@ -43,8 +50,10 @@ type OAuth2GetClientIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetClientSecretAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOAuth2GetClientSecretAttributeTypeOk(arg OAuth2GetClientSecretAttributeType) (ret OAuth2GetClientSecretRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getOAuth2GetClientSecretAttributeTypeOk(arg OAuth2GetClientSecretAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOAuth2GetClientSecretAttributeType(arg *OAuth2GetClientSecretAttributeType, val OAuth2GetClientSecretRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetClientSecretArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetClientSecretRetType = string /* @@ -64,10 +77,16 @@ type OAuth2GetClientSecretRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetScopesAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetScopesArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetScopesRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOAuth2GetScopesAttributeTypeOk(arg OAuth2GetScopesAttributeType) (ret OAuth2GetScopesRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +94,7 @@ func getOAuth2GetScopesAttributeTypeOk(arg OAuth2GetScopesAttributeType) (ret OA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOAuth2GetScopesAttributeType(arg *OAuth2GetScopesAttributeType, val OAuth2GetScopesRetType) { *arg = &val } @@ -84,10 +104,16 @@ func setOAuth2GetScopesAttributeType(arg *OAuth2GetScopesAttributeType, val OAut */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetTlsConfigAttributeType = *TLSConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetTlsConfigArgType = TLSConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetTlsConfigRetType = TLSConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOAuth2GetTlsConfigAttributeTypeOk(arg OAuth2GetTlsConfigAttributeType) (ret OAuth2GetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +121,7 @@ func getOAuth2GetTlsConfigAttributeTypeOk(arg OAuth2GetTlsConfigAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOAuth2GetTlsConfigAttributeType(arg *OAuth2GetTlsConfigAttributeType, val OAuth2GetTlsConfigRetType) { *arg = &val } @@ -104,8 +131,10 @@ func setOAuth2GetTlsConfigAttributeType(arg *OAuth2GetTlsConfigAttributeType, va */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetTokenUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOAuth2GetTokenUrlAttributeTypeOk(arg OAuth2GetTokenUrlAttributeType) (ret OAuth2GetTokenUrlRetType, ok bool) { if arg == nil { return ret, false @@ -113,14 +142,19 @@ func getOAuth2GetTokenUrlAttributeTypeOk(arg OAuth2GetTokenUrlAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOAuth2GetTokenUrlAttributeType(arg *OAuth2GetTokenUrlAttributeType, val OAuth2GetTokenUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetTokenUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2GetTokenUrlRetType = string // OAuth2 struct for OAuth2 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OAuth2 struct { // REQUIRED ClientId OAuth2GetClientIdAttributeType `json:"clientId" required:"true"` @@ -132,12 +166,14 @@ type OAuth2 struct { TokenUrl OAuth2GetTokenUrlAttributeType `json:"tokenUrl" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _OAuth2 OAuth2 // NewOAuth2 instantiates a new OAuth2 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOAuth2(clientId OAuth2GetClientIdArgType, clientSecret OAuth2GetClientSecretArgType, tokenUrl OAuth2GetTokenUrlArgType) *OAuth2 { this := OAuth2{} setOAuth2GetClientIdAttributeType(&this.ClientId, clientId) @@ -149,12 +185,14 @@ func NewOAuth2(clientId OAuth2GetClientIdArgType, clientSecret OAuth2GetClientSe // NewOAuth2WithDefaults instantiates a new OAuth2 object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOAuth2WithDefaults() *OAuth2 { this := OAuth2{} return &this } // GetClientId returns the ClientId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetClientId() (ret OAuth2GetClientIdRetType) { ret, _ = o.GetClientIdOk() return ret @@ -162,16 +200,19 @@ func (o *OAuth2) GetClientId() (ret OAuth2GetClientIdRetType) { // GetClientIdOk returns a tuple with the ClientId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetClientIdOk() (ret OAuth2GetClientIdRetType, ok bool) { return getOAuth2GetClientIdAttributeTypeOk(o.ClientId) } // SetClientId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) SetClientId(v OAuth2GetClientIdRetType) { setOAuth2GetClientIdAttributeType(&o.ClientId, v) } // GetClientSecret returns the ClientSecret field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetClientSecret() (ret OAuth2GetClientSecretRetType) { ret, _ = o.GetClientSecretOk() return ret @@ -179,16 +220,19 @@ func (o *OAuth2) GetClientSecret() (ret OAuth2GetClientSecretRetType) { // GetClientSecretOk returns a tuple with the ClientSecret field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetClientSecretOk() (ret OAuth2GetClientSecretRetType, ok bool) { return getOAuth2GetClientSecretAttributeTypeOk(o.ClientSecret) } // SetClientSecret sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) SetClientSecret(v OAuth2GetClientSecretRetType) { setOAuth2GetClientSecretAttributeType(&o.ClientSecret, v) } // GetScopes returns the Scopes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetScopes() (res OAuth2GetScopesRetType) { res, _ = o.GetScopesOk() return @@ -196,22 +240,26 @@ func (o *OAuth2) GetScopes() (res OAuth2GetScopesRetType) { // GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetScopesOk() (ret OAuth2GetScopesRetType, ok bool) { return getOAuth2GetScopesAttributeTypeOk(o.Scopes) } // HasScopes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) HasScopes() bool { _, ok := o.GetScopesOk() return ok } // SetScopes gets a reference to the given []string and assigns it to the Scopes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) SetScopes(v OAuth2GetScopesRetType) { setOAuth2GetScopesAttributeType(&o.Scopes, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetTlsConfig() (res OAuth2GetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -219,22 +267,26 @@ func (o *OAuth2) GetTlsConfig() (res OAuth2GetTlsConfigRetType) { // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetTlsConfigOk() (ret OAuth2GetTlsConfigRetType, ok bool) { return getOAuth2GetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given TLSConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) SetTlsConfig(v OAuth2GetTlsConfigRetType) { setOAuth2GetTlsConfigAttributeType(&o.TlsConfig, v) } // GetTokenUrl returns the TokenUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetTokenUrl() (ret OAuth2GetTokenUrlRetType) { ret, _ = o.GetTokenUrlOk() return ret @@ -242,15 +294,18 @@ func (o *OAuth2) GetTokenUrl() (ret OAuth2GetTokenUrlRetType) { // GetTokenUrlOk returns a tuple with the TokenUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) GetTokenUrlOk() (ret OAuth2GetTokenUrlRetType, ok bool) { return getOAuth2GetTokenUrlAttributeTypeOk(o.TokenUrl) } // SetTokenUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OAuth2) SetTokenUrl(v OAuth2GetTokenUrlRetType) { setOAuth2GetTokenUrlAttributeType(&o.TokenUrl, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o OAuth2) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getOAuth2GetClientIdAttributeTypeOk(o.ClientId); ok { @@ -271,37 +326,45 @@ func (o OAuth2) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableOAuth2 struct { value *OAuth2 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOAuth2) Get() *OAuth2 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOAuth2) Set(val *OAuth2) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOAuth2) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOAuth2) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableOAuth2(val *OAuth2) *NullableOAuth2 { return &NullableOAuth2{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOAuth2) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOAuth2) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_offerings.go b/services/observability/model_offerings.go index d1568eb29..ada3217d6 100644 --- a/services/observability/model_offerings.go +++ b/services/observability/model_offerings.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Offerings{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingsGetDescriptionAttributeTypeOk(arg OfferingsGetDescriptionAttributeType) (ret OfferingsGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getOfferingsGetDescriptionAttributeTypeOk(arg OfferingsGetDescriptionAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingsGetDescriptionAttributeType(arg *OfferingsGetDescriptionAttributeType, val OfferingsGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type OfferingsGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetDocumentationUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingsGetDocumentationUrlAttributeTypeOk(arg OfferingsGetDocumentationUrlAttributeType) (ret OfferingsGetDocumentationUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getOfferingsGetDocumentationUrlAttributeTypeOk(arg OfferingsGetDocumentatio return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingsGetDocumentationUrlAttributeType(arg *OfferingsGetDocumentationUrlAttributeType, val OfferingsGetDocumentationUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetDocumentationUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetDocumentationUrlRetType = string /* @@ -64,8 +77,10 @@ type OfferingsGetDocumentationUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetImageUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingsGetImageUrlAttributeTypeOk(arg OfferingsGetImageUrlAttributeType) (ret OfferingsGetImageUrlRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getOfferingsGetImageUrlAttributeTypeOk(arg OfferingsGetImageUrlAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingsGetImageUrlAttributeType(arg *OfferingsGetImageUrlAttributeType, val OfferingsGetImageUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetImageUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetImageUrlRetType = string /* @@ -85,8 +104,10 @@ type OfferingsGetImageUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingsGetNameAttributeTypeOk(arg OfferingsGetNameAttributeType) (ret OfferingsGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +115,15 @@ func getOfferingsGetNameAttributeTypeOk(arg OfferingsGetNameAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingsGetNameAttributeType(arg *OfferingsGetNameAttributeType, val OfferingsGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetNameRetType = string /* @@ -106,10 +131,16 @@ type OfferingsGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetPlansAttributeType = *[]Plan + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetPlansArgType = []Plan + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetPlansRetType = []Plan +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingsGetPlansAttributeTypeOk(arg OfferingsGetPlansAttributeType) (ret OfferingsGetPlansRetType, ok bool) { if arg == nil { return ret, false @@ -117,6 +148,7 @@ func getOfferingsGetPlansAttributeTypeOk(arg OfferingsGetPlansAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingsGetPlansAttributeType(arg *OfferingsGetPlansAttributeType, val OfferingsGetPlansRetType) { *arg = &val } @@ -126,10 +158,16 @@ func setOfferingsGetPlansAttributeType(arg *OfferingsGetPlansAttributeType, val */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetTagsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetTagsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingsGetTagsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingsGetTagsAttributeTypeOk(arg OfferingsGetTagsAttributeType) (ret OfferingsGetTagsRetType, ok bool) { if arg == nil { return ret, false @@ -137,11 +175,13 @@ func getOfferingsGetTagsAttributeTypeOk(arg OfferingsGetTagsAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingsGetTagsAttributeType(arg *OfferingsGetTagsAttributeType, val OfferingsGetTagsRetType) { *arg = &val } // Offerings struct for Offerings +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Offerings struct { // REQUIRED Description OfferingsGetDescriptionAttributeType `json:"description" required:"true"` @@ -157,12 +197,14 @@ type Offerings struct { Tags OfferingsGetTagsAttributeType `json:"tags" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Offerings Offerings // NewOfferings instantiates a new Offerings object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOfferings(description OfferingsGetDescriptionArgType, documentationUrl OfferingsGetDocumentationUrlArgType, imageUrl OfferingsGetImageUrlArgType, name OfferingsGetNameArgType, plans OfferingsGetPlansArgType, tags OfferingsGetTagsArgType) *Offerings { this := Offerings{} setOfferingsGetDescriptionAttributeType(&this.Description, description) @@ -177,12 +219,14 @@ func NewOfferings(description OfferingsGetDescriptionArgType, documentationUrl O // NewOfferingsWithDefaults instantiates a new Offerings object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOfferingsWithDefaults() *Offerings { this := Offerings{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetDescription() (ret OfferingsGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -190,16 +234,19 @@ func (o *Offerings) GetDescription() (ret OfferingsGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetDescriptionOk() (ret OfferingsGetDescriptionRetType, ok bool) { return getOfferingsGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) SetDescription(v OfferingsGetDescriptionRetType) { setOfferingsGetDescriptionAttributeType(&o.Description, v) } // GetDocumentationUrl returns the DocumentationUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetDocumentationUrl() (ret OfferingsGetDocumentationUrlRetType) { ret, _ = o.GetDocumentationUrlOk() return ret @@ -207,16 +254,19 @@ func (o *Offerings) GetDocumentationUrl() (ret OfferingsGetDocumentationUrlRetTy // GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetDocumentationUrlOk() (ret OfferingsGetDocumentationUrlRetType, ok bool) { return getOfferingsGetDocumentationUrlAttributeTypeOk(o.DocumentationUrl) } // SetDocumentationUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) SetDocumentationUrl(v OfferingsGetDocumentationUrlRetType) { setOfferingsGetDocumentationUrlAttributeType(&o.DocumentationUrl, v) } // GetImageUrl returns the ImageUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetImageUrl() (ret OfferingsGetImageUrlRetType) { ret, _ = o.GetImageUrlOk() return ret @@ -224,16 +274,19 @@ func (o *Offerings) GetImageUrl() (ret OfferingsGetImageUrlRetType) { // GetImageUrlOk returns a tuple with the ImageUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetImageUrlOk() (ret OfferingsGetImageUrlRetType, ok bool) { return getOfferingsGetImageUrlAttributeTypeOk(o.ImageUrl) } // SetImageUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) SetImageUrl(v OfferingsGetImageUrlRetType) { setOfferingsGetImageUrlAttributeType(&o.ImageUrl, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetName() (ret OfferingsGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -241,16 +294,19 @@ func (o *Offerings) GetName() (ret OfferingsGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetNameOk() (ret OfferingsGetNameRetType, ok bool) { return getOfferingsGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) SetName(v OfferingsGetNameRetType) { setOfferingsGetNameAttributeType(&o.Name, v) } // GetPlans returns the Plans field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetPlans() (ret OfferingsGetPlansRetType) { ret, _ = o.GetPlansOk() return ret @@ -258,16 +314,19 @@ func (o *Offerings) GetPlans() (ret OfferingsGetPlansRetType) { // GetPlansOk returns a tuple with the Plans field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetPlansOk() (ret OfferingsGetPlansRetType, ok bool) { return getOfferingsGetPlansAttributeTypeOk(o.Plans) } // SetPlans sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) SetPlans(v OfferingsGetPlansRetType) { setOfferingsGetPlansAttributeType(&o.Plans, v) } // GetTags returns the Tags field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetTags() (ret OfferingsGetTagsRetType) { ret, _ = o.GetTagsOk() return ret @@ -275,15 +334,18 @@ func (o *Offerings) GetTags() (ret OfferingsGetTagsRetType) { // GetTagsOk returns a tuple with the Tags field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) GetTagsOk() (ret OfferingsGetTagsRetType, ok bool) { return getOfferingsGetTagsAttributeTypeOk(o.Tags) } // SetTags sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offerings) SetTags(v OfferingsGetTagsRetType) { setOfferingsGetTagsAttributeType(&o.Tags, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Offerings) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getOfferingsGetDescriptionAttributeTypeOk(o.Description); ok { @@ -307,37 +369,45 @@ func (o Offerings) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableOfferings struct { value *Offerings isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOfferings) Get() *Offerings { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOfferings) Set(val *Offerings) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOfferings) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOfferings) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableOfferings(val *Offerings) *NullableOfferings { return &NullableOfferings{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOfferings) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOfferings) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_opsgenie_config.go b/services/observability/model_opsgenie_config.go index c6d3c753f..7084a55e9 100644 --- a/services/observability/model_opsgenie_config.go +++ b/services/observability/model_opsgenie_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &OpsgenieConfig{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetApiKeyAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOpsgenieConfigGetApiKeyAttributeTypeOk(arg OpsgenieConfigGetApiKeyAttributeType) (ret OpsgenieConfigGetApiKeyRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getOpsgenieConfigGetApiKeyAttributeTypeOk(arg OpsgenieConfigGetApiKeyAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOpsgenieConfigGetApiKeyAttributeType(arg *OpsgenieConfigGetApiKeyAttributeType, val OpsgenieConfigGetApiKeyRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetApiKeyArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetApiKeyRetType = string /* @@ -43,8 +50,10 @@ type OpsgenieConfigGetApiKeyRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetApiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOpsgenieConfigGetApiUrlAttributeTypeOk(arg OpsgenieConfigGetApiUrlAttributeType) (ret OpsgenieConfigGetApiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getOpsgenieConfigGetApiUrlAttributeTypeOk(arg OpsgenieConfigGetApiUrlAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOpsgenieConfigGetApiUrlAttributeType(arg *OpsgenieConfigGetApiUrlAttributeType, val OpsgenieConfigGetApiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetApiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetApiUrlRetType = string /* @@ -64,8 +77,10 @@ type OpsgenieConfigGetApiUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetPriorityAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOpsgenieConfigGetPriorityAttributeTypeOk(arg OpsgenieConfigGetPriorityAttributeType) (ret OpsgenieConfigGetPriorityRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getOpsgenieConfigGetPriorityAttributeTypeOk(arg OpsgenieConfigGetPriorityAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOpsgenieConfigGetPriorityAttributeType(arg *OpsgenieConfigGetPriorityAttributeType, val OpsgenieConfigGetPriorityRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetPriorityArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetPriorityRetType = string /* @@ -85,10 +104,16 @@ type OpsgenieConfigGetPriorityRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfiggetSendResolvedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfiggetSendResolvedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfiggetSendResolvedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOpsgenieConfiggetSendResolvedAttributeTypeOk(arg OpsgenieConfiggetSendResolvedAttributeType) (ret OpsgenieConfiggetSendResolvedRetType, ok bool) { if arg == nil { return ret, false @@ -96,6 +121,7 @@ func getOpsgenieConfiggetSendResolvedAttributeTypeOk(arg OpsgenieConfiggetSendRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOpsgenieConfiggetSendResolvedAttributeType(arg *OpsgenieConfiggetSendResolvedAttributeType, val OpsgenieConfiggetSendResolvedRetType) { *arg = &val } @@ -105,8 +131,10 @@ func setOpsgenieConfiggetSendResolvedAttributeType(arg *OpsgenieConfiggetSendRes */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetTagsAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOpsgenieConfigGetTagsAttributeTypeOk(arg OpsgenieConfigGetTagsAttributeType) (ret OpsgenieConfigGetTagsRetType, ok bool) { if arg == nil { return ret, false @@ -114,14 +142,19 @@ func getOpsgenieConfigGetTagsAttributeTypeOk(arg OpsgenieConfigGetTagsAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOpsgenieConfigGetTagsAttributeType(arg *OpsgenieConfigGetTagsAttributeType, val OpsgenieConfigGetTagsRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetTagsArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfigGetTagsRetType = string // OpsgenieConfig struct for OpsgenieConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OpsgenieConfig struct { ApiKey OpsgenieConfigGetApiKeyAttributeType `json:"apiKey,omitempty"` ApiUrl OpsgenieConfigGetApiUrlAttributeType `json:"apiUrl,omitempty"` @@ -134,6 +167,7 @@ type OpsgenieConfig struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOpsgenieConfig() *OpsgenieConfig { this := OpsgenieConfig{} return &this @@ -142,6 +176,7 @@ func NewOpsgenieConfig() *OpsgenieConfig { // NewOpsgenieConfigWithDefaults instantiates a new OpsgenieConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOpsgenieConfigWithDefaults() *OpsgenieConfig { this := OpsgenieConfig{} var sendResolved bool = true @@ -150,6 +185,7 @@ func NewOpsgenieConfigWithDefaults() *OpsgenieConfig { } // GetApiKey returns the ApiKey field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetApiKey() (res OpsgenieConfigGetApiKeyRetType) { res, _ = o.GetApiKeyOk() return @@ -157,22 +193,26 @@ func (o *OpsgenieConfig) GetApiKey() (res OpsgenieConfigGetApiKeyRetType) { // GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetApiKeyOk() (ret OpsgenieConfigGetApiKeyRetType, ok bool) { return getOpsgenieConfigGetApiKeyAttributeTypeOk(o.ApiKey) } // HasApiKey returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) HasApiKey() bool { _, ok := o.GetApiKeyOk() return ok } // SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) SetApiKey(v OpsgenieConfigGetApiKeyRetType) { setOpsgenieConfigGetApiKeyAttributeType(&o.ApiKey, v) } // GetApiUrl returns the ApiUrl field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetApiUrl() (res OpsgenieConfigGetApiUrlRetType) { res, _ = o.GetApiUrlOk() return @@ -180,22 +220,26 @@ func (o *OpsgenieConfig) GetApiUrl() (res OpsgenieConfigGetApiUrlRetType) { // GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetApiUrlOk() (ret OpsgenieConfigGetApiUrlRetType, ok bool) { return getOpsgenieConfigGetApiUrlAttributeTypeOk(o.ApiUrl) } // HasApiUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) HasApiUrl() bool { _, ok := o.GetApiUrlOk() return ok } // SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) SetApiUrl(v OpsgenieConfigGetApiUrlRetType) { setOpsgenieConfigGetApiUrlAttributeType(&o.ApiUrl, v) } // GetPriority returns the Priority field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetPriority() (res OpsgenieConfigGetPriorityRetType) { res, _ = o.GetPriorityOk() return @@ -203,22 +247,26 @@ func (o *OpsgenieConfig) GetPriority() (res OpsgenieConfigGetPriorityRetType) { // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetPriorityOk() (ret OpsgenieConfigGetPriorityRetType, ok bool) { return getOpsgenieConfigGetPriorityAttributeTypeOk(o.Priority) } // HasPriority returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) HasPriority() bool { _, ok := o.GetPriorityOk() return ok } // SetPriority gets a reference to the given string and assigns it to the Priority field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) SetPriority(v OpsgenieConfigGetPriorityRetType) { setOpsgenieConfigGetPriorityAttributeType(&o.Priority, v) } // GetSendResolved returns the SendResolved field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetSendResolved() (res OpsgenieConfiggetSendResolvedRetType) { res, _ = o.GetSendResolvedOk() return @@ -226,22 +274,26 @@ func (o *OpsgenieConfig) GetSendResolved() (res OpsgenieConfiggetSendResolvedRet // GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetSendResolvedOk() (ret OpsgenieConfiggetSendResolvedRetType, ok bool) { return getOpsgenieConfiggetSendResolvedAttributeTypeOk(o.SendResolved) } // HasSendResolved returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) HasSendResolved() bool { _, ok := o.GetSendResolvedOk() return ok } // SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) SetSendResolved(v OpsgenieConfiggetSendResolvedRetType) { setOpsgenieConfiggetSendResolvedAttributeType(&o.SendResolved, v) } // GetTags returns the Tags field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetTags() (res OpsgenieConfigGetTagsRetType) { res, _ = o.GetTagsOk() return @@ -249,21 +301,25 @@ func (o *OpsgenieConfig) GetTags() (res OpsgenieConfigGetTagsRetType) { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) GetTagsOk() (ret OpsgenieConfigGetTagsRetType, ok bool) { return getOpsgenieConfigGetTagsAttributeTypeOk(o.Tags) } // HasTags returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) HasTags() bool { _, ok := o.GetTagsOk() return ok } // SetTags gets a reference to the given string and assigns it to the Tags field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *OpsgenieConfig) SetTags(v OpsgenieConfigGetTagsRetType) { setOpsgenieConfigGetTagsAttributeType(&o.Tags, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o OpsgenieConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getOpsgenieConfigGetApiKeyAttributeTypeOk(o.ApiKey); ok { @@ -284,37 +340,45 @@ func (o OpsgenieConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableOpsgenieConfig struct { value *OpsgenieConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOpsgenieConfig) Get() *OpsgenieConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOpsgenieConfig) Set(val *OpsgenieConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOpsgenieConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOpsgenieConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableOpsgenieConfig(val *OpsgenieConfig) *NullableOpsgenieConfig { return &NullableOpsgenieConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOpsgenieConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOpsgenieConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_alert_records_request_inner.go b/services/observability/model_partial_update_alert_records_request_inner.go index bc8c8f6e6..3c6eebde2 100644 --- a/services/observability/model_partial_update_alert_records_request_inner.go +++ b/services/observability/model_partial_update_alert_records_request_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateAlertRecordsRequestInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertRecordsRequestInnerGetExprAttributeTypeOk(arg PartialUpdateAlertRecordsRequestInnerGetExprAttributeType) (ret PartialUpdateAlertRecordsRequestInnerGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPartialUpdateAlertRecordsRequestInnerGetExprAttributeTypeOk(arg PartialU return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertRecordsRequestInnerGetExprAttributeType(arg *PartialUpdateAlertRecordsRequestInnerGetExprAttributeType, val PartialUpdateAlertRecordsRequestInnerGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetExprRetType = string /* @@ -43,10 +50,16 @@ type PartialUpdateAlertRecordsRequestInnerGetExprRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertRecordsRequestInnerGetLabelsAttributeTypeOk(arg PartialUpdateAlertRecordsRequestInnerGetLabelsAttributeType) (ret PartialUpdateAlertRecordsRequestInnerGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getPartialUpdateAlertRecordsRequestInnerGetLabelsAttributeTypeOk(arg Partia return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertRecordsRequestInnerGetLabelsAttributeType(arg *PartialUpdateAlertRecordsRequestInnerGetLabelsAttributeType, val PartialUpdateAlertRecordsRequestInnerGetLabelsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setPartialUpdateAlertRecordsRequestInnerGetLabelsAttributeType(arg *Partial */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetRecordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertRecordsRequestInnerGetRecordAttributeTypeOk(arg PartialUpdateAlertRecordsRequestInnerGetRecordAttributeType) (ret PartialUpdateAlertRecordsRequestInnerGetRecordRetType, ok bool) { if arg == nil { return ret, false @@ -72,14 +88,19 @@ func getPartialUpdateAlertRecordsRequestInnerGetRecordAttributeTypeOk(arg Partia return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertRecordsRequestInnerGetRecordAttributeType(arg *PartialUpdateAlertRecordsRequestInnerGetRecordAttributeType, val PartialUpdateAlertRecordsRequestInnerGetRecordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetRecordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInnerGetRecordRetType = string // PartialUpdateAlertRecordsRequestInner Record. `Additional Validators:` * total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertRecordsRequestInner struct { // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. // REQUIRED @@ -91,12 +112,14 @@ type PartialUpdateAlertRecordsRequestInner struct { Record PartialUpdateAlertRecordsRequestInnerGetRecordAttributeType `json:"record" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PartialUpdateAlertRecordsRequestInner PartialUpdateAlertRecordsRequestInner // NewPartialUpdateAlertRecordsRequestInner instantiates a new PartialUpdateAlertRecordsRequestInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateAlertRecordsRequestInner(expr PartialUpdateAlertRecordsRequestInnerGetExprArgType, record PartialUpdateAlertRecordsRequestInnerGetRecordArgType) *PartialUpdateAlertRecordsRequestInner { this := PartialUpdateAlertRecordsRequestInner{} setPartialUpdateAlertRecordsRequestInnerGetExprAttributeType(&this.Expr, expr) @@ -107,12 +130,14 @@ func NewPartialUpdateAlertRecordsRequestInner(expr PartialUpdateAlertRecordsRequ // NewPartialUpdateAlertRecordsRequestInnerWithDefaults instantiates a new PartialUpdateAlertRecordsRequestInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateAlertRecordsRequestInnerWithDefaults() *PartialUpdateAlertRecordsRequestInner { this := PartialUpdateAlertRecordsRequestInner{} return &this } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) GetExpr() (ret PartialUpdateAlertRecordsRequestInnerGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -120,16 +145,19 @@ func (o *PartialUpdateAlertRecordsRequestInner) GetExpr() (ret PartialUpdateAler // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) GetExprOk() (ret PartialUpdateAlertRecordsRequestInnerGetExprRetType, ok bool) { return getPartialUpdateAlertRecordsRequestInnerGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) SetExpr(v PartialUpdateAlertRecordsRequestInnerGetExprRetType) { setPartialUpdateAlertRecordsRequestInnerGetExprAttributeType(&o.Expr, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) GetLabels() (res PartialUpdateAlertRecordsRequestInnerGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -137,22 +165,26 @@ func (o *PartialUpdateAlertRecordsRequestInner) GetLabels() (res PartialUpdateAl // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) GetLabelsOk() (ret PartialUpdateAlertRecordsRequestInnerGetLabelsRetType, ok bool) { return getPartialUpdateAlertRecordsRequestInnerGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) SetLabels(v PartialUpdateAlertRecordsRequestInnerGetLabelsRetType) { setPartialUpdateAlertRecordsRequestInnerGetLabelsAttributeType(&o.Labels, v) } // GetRecord returns the Record field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) GetRecord() (ret PartialUpdateAlertRecordsRequestInnerGetRecordRetType) { ret, _ = o.GetRecordOk() return ret @@ -160,15 +192,18 @@ func (o *PartialUpdateAlertRecordsRequestInner) GetRecord() (ret PartialUpdateAl // GetRecordOk returns a tuple with the Record field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) GetRecordOk() (ret PartialUpdateAlertRecordsRequestInnerGetRecordRetType, ok bool) { return getPartialUpdateAlertRecordsRequestInnerGetRecordAttributeTypeOk(o.Record) } // SetRecord sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertRecordsRequestInner) SetRecord(v PartialUpdateAlertRecordsRequestInnerGetRecordRetType) { setPartialUpdateAlertRecordsRequestInnerGetRecordAttributeType(&o.Record, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateAlertRecordsRequestInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateAlertRecordsRequestInnerGetExprAttributeTypeOk(o.Expr); ok { @@ -183,37 +218,45 @@ func (o PartialUpdateAlertRecordsRequestInner) ToMap() (map[string]interface{}, return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateAlertRecordsRequestInner struct { value *PartialUpdateAlertRecordsRequestInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateAlertRecordsRequestInner) Get() *PartialUpdateAlertRecordsRequestInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateAlertRecordsRequestInner) Set(val *PartialUpdateAlertRecordsRequestInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateAlertRecordsRequestInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateAlertRecordsRequestInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateAlertRecordsRequestInner(val *PartialUpdateAlertRecordsRequestInner) *NullablePartialUpdateAlertRecordsRequestInner { return &NullablePartialUpdateAlertRecordsRequestInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateAlertRecordsRequestInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateAlertRecordsRequestInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_alertrules_request_inner.go b/services/observability/model_partial_update_alertrules_request_inner.go index 4d3094dc3..85ab930bb 100644 --- a/services/observability/model_partial_update_alertrules_request_inner.go +++ b/services/observability/model_partial_update_alertrules_request_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateAlertrulesRequestInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetAlertAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertrulesRequestInnerGetAlertAttributeTypeOk(arg PartialUpdateAlertrulesRequestInnerGetAlertAttributeType) (ret PartialUpdateAlertrulesRequestInnerGetAlertRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPartialUpdateAlertrulesRequestInnerGetAlertAttributeTypeOk(arg PartialUp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertrulesRequestInnerGetAlertAttributeType(arg *PartialUpdateAlertrulesRequestInnerGetAlertAttributeType, val PartialUpdateAlertrulesRequestInnerGetAlertRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetAlertArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetAlertRetType = string /* @@ -43,10 +50,16 @@ type PartialUpdateAlertrulesRequestInnerGetAlertRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetAnnotationsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetAnnotationsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeTypeOk(arg PartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeType) (ret PartialUpdateAlertrulesRequestInnerGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getPartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeTypeOk(arg Par return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeType(arg *PartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeType, val PartialUpdateAlertrulesRequestInnerGetAnnotationsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setPartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeType(arg *Part */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertrulesRequestInnerGetExprAttributeTypeOk(arg PartialUpdateAlertrulesRequestInnerGetExprAttributeType) (ret PartialUpdateAlertrulesRequestInnerGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getPartialUpdateAlertrulesRequestInnerGetExprAttributeTypeOk(arg PartialUpd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertrulesRequestInnerGetExprAttributeType(arg *PartialUpdateAlertrulesRequestInnerGetExprAttributeType, val PartialUpdateAlertrulesRequestInnerGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetExprRetType = string /* @@ -84,8 +104,10 @@ type PartialUpdateAlertrulesRequestInnerGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertrulesRequestInnerGetForAttributeTypeOk(arg PartialUpdateAlertrulesRequestInnerGetForAttributeType) (ret PartialUpdateAlertrulesRequestInnerGetForRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getPartialUpdateAlertrulesRequestInnerGetForAttributeTypeOk(arg PartialUpda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertrulesRequestInnerGetForAttributeType(arg *PartialUpdateAlertrulesRequestInnerGetForAttributeType, val PartialUpdateAlertrulesRequestInnerGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetForRetType = string /* @@ -105,10 +131,16 @@ type PartialUpdateAlertrulesRequestInnerGetForRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInnerGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateAlertrulesRequestInnerGetLabelsAttributeTypeOk(arg PartialUpdateAlertrulesRequestInnerGetLabelsAttributeType) (ret PartialUpdateAlertrulesRequestInnerGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -116,11 +148,13 @@ func getPartialUpdateAlertrulesRequestInnerGetLabelsAttributeTypeOk(arg PartialU return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateAlertrulesRequestInnerGetLabelsAttributeType(arg *PartialUpdateAlertrulesRequestInnerGetLabelsAttributeType, val PartialUpdateAlertrulesRequestInnerGetLabelsRetType) { *arg = &val } // PartialUpdateAlertrulesRequestInner 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateAlertrulesRequestInner struct { // 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- // REQUIRED @@ -136,12 +170,14 @@ type PartialUpdateAlertrulesRequestInner struct { Labels PartialUpdateAlertrulesRequestInnerGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PartialUpdateAlertrulesRequestInner PartialUpdateAlertrulesRequestInner // NewPartialUpdateAlertrulesRequestInner instantiates a new PartialUpdateAlertrulesRequestInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateAlertrulesRequestInner(alert PartialUpdateAlertrulesRequestInnerGetAlertArgType, expr PartialUpdateAlertrulesRequestInnerGetExprArgType) *PartialUpdateAlertrulesRequestInner { this := PartialUpdateAlertrulesRequestInner{} setPartialUpdateAlertrulesRequestInnerGetAlertAttributeType(&this.Alert, alert) @@ -152,6 +188,7 @@ func NewPartialUpdateAlertrulesRequestInner(alert PartialUpdateAlertrulesRequest // NewPartialUpdateAlertrulesRequestInnerWithDefaults instantiates a new PartialUpdateAlertrulesRequestInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateAlertrulesRequestInnerWithDefaults() *PartialUpdateAlertrulesRequestInner { this := PartialUpdateAlertrulesRequestInner{} var for_ string = "0s" @@ -160,6 +197,7 @@ func NewPartialUpdateAlertrulesRequestInnerWithDefaults() *PartialUpdateAlertrul } // GetAlert returns the Alert field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetAlert() (ret PartialUpdateAlertrulesRequestInnerGetAlertRetType) { ret, _ = o.GetAlertOk() return ret @@ -167,16 +205,19 @@ func (o *PartialUpdateAlertrulesRequestInner) GetAlert() (ret PartialUpdateAlert // GetAlertOk returns a tuple with the Alert field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetAlertOk() (ret PartialUpdateAlertrulesRequestInnerGetAlertRetType, ok bool) { return getPartialUpdateAlertrulesRequestInnerGetAlertAttributeTypeOk(o.Alert) } // SetAlert sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) SetAlert(v PartialUpdateAlertrulesRequestInnerGetAlertRetType) { setPartialUpdateAlertrulesRequestInnerGetAlertAttributeType(&o.Alert, v) } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetAnnotations() (res PartialUpdateAlertrulesRequestInnerGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -184,22 +225,26 @@ func (o *PartialUpdateAlertrulesRequestInner) GetAnnotations() (res PartialUpdat // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetAnnotationsOk() (ret PartialUpdateAlertrulesRequestInnerGetAnnotationsRetType, ok bool) { return getPartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) SetAnnotations(v PartialUpdateAlertrulesRequestInnerGetAnnotationsRetType) { setPartialUpdateAlertrulesRequestInnerGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetExpr() (ret PartialUpdateAlertrulesRequestInnerGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -207,16 +252,19 @@ func (o *PartialUpdateAlertrulesRequestInner) GetExpr() (ret PartialUpdateAlertr // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetExprOk() (ret PartialUpdateAlertrulesRequestInnerGetExprRetType, ok bool) { return getPartialUpdateAlertrulesRequestInnerGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) SetExpr(v PartialUpdateAlertrulesRequestInnerGetExprRetType) { setPartialUpdateAlertrulesRequestInnerGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetFor() (res PartialUpdateAlertrulesRequestInnerGetForRetType) { res, _ = o.GetForOk() return @@ -224,22 +272,26 @@ func (o *PartialUpdateAlertrulesRequestInner) GetFor() (res PartialUpdateAlertru // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetForOk() (ret PartialUpdateAlertrulesRequestInnerGetForRetType, ok bool) { return getPartialUpdateAlertrulesRequestInnerGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) SetFor(v PartialUpdateAlertrulesRequestInnerGetForRetType) { setPartialUpdateAlertrulesRequestInnerGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetLabels() (res PartialUpdateAlertrulesRequestInnerGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -247,21 +299,25 @@ func (o *PartialUpdateAlertrulesRequestInner) GetLabels() (res PartialUpdateAler // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) GetLabelsOk() (ret PartialUpdateAlertrulesRequestInnerGetLabelsRetType, ok bool) { return getPartialUpdateAlertrulesRequestInnerGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateAlertrulesRequestInner) SetLabels(v PartialUpdateAlertrulesRequestInnerGetLabelsRetType) { setPartialUpdateAlertrulesRequestInnerGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateAlertrulesRequestInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateAlertrulesRequestInnerGetAlertAttributeTypeOk(o.Alert); ok { @@ -282,37 +338,45 @@ func (o PartialUpdateAlertrulesRequestInner) ToMap() (map[string]interface{}, er return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateAlertrulesRequestInner struct { value *PartialUpdateAlertrulesRequestInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateAlertrulesRequestInner) Get() *PartialUpdateAlertrulesRequestInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateAlertrulesRequestInner) Set(val *PartialUpdateAlertrulesRequestInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateAlertrulesRequestInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateAlertrulesRequestInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateAlertrulesRequestInner(val *PartialUpdateAlertrulesRequestInner) *NullablePartialUpdateAlertrulesRequestInner { return &NullablePartialUpdateAlertrulesRequestInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateAlertrulesRequestInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateAlertrulesRequestInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner.go b/services/observability/model_partial_update_scrape_configs_request_inner.go index 288509273..da649c05d 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,10 +24,16 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInner{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType = *PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetBasicAuthArgType = PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetBasicAuthRetType = PartialUpdateScrapeConfigsRequestInnerBasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetBasicAuthRetType, ok bool) { if arg == nil { return ret, false @@ -34,6 +41,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeTypeOk(arg Pa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetBasicAuthRetType) { *arg = &val } @@ -43,8 +51,10 @@ func setPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType(arg *Par */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +62,15 @@ func getPartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetBearerTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType = string /* @@ -64,10 +78,16 @@ type PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnergetHonorLabelsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnergetHonorLabelsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnergetHonorLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +95,7 @@ func getPartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeType, val PartialUpdateScrapeConfigsRequestInnergetHonorLabelsRetType) { *arg = &val } @@ -84,10 +105,16 @@ func setPartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeType(arg *P */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +122,7 @@ func getPartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeTypeOk( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeType, val PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsRetType) { *arg = &val } @@ -104,10 +132,16 @@ func setPartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeType(ar */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +149,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeTypeOk(ar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsRetType) { *arg = &val } @@ -124,8 +159,10 @@ func setPartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeType(arg */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +170,15 @@ func getPartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeTypeOk(arg Part return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetJobNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType = string /* @@ -145,8 +186,10 @@ type PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType, ok bool) { if arg == nil { return ret, false @@ -154,11 +197,15 @@ func getPartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetMetricsPathArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType = string /* @@ -166,10 +213,16 @@ type PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -177,6 +230,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsRetType) { *arg = &val } @@ -186,10 +240,16 @@ func setPartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeT */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetOauth2ArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetOauth2RetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetOauth2RetType, ok bool) { if arg == nil { return ret, false @@ -197,6 +257,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeTypeOk(arg Parti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeType, val PartialUpdateScrapeConfigsRequestInnerGetOauth2RetType) { *arg = &val } @@ -206,10 +267,16 @@ func setPartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeType(arg *Partia */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetParamsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetParamsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetParamsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetParamsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetParamsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetParamsRetType, ok bool) { if arg == nil { return ret, false @@ -217,6 +284,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetParamsAttributeTypeOk(arg Parti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetParamsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetParamsAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetParamsRetType) { *arg = &val } @@ -226,10 +294,16 @@ func setPartialUpdateScrapeConfigsRequestInnerGetParamsAttributeType(arg *Partia */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetSampleLimitArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetSampleLimitRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetSampleLimitRetType, ok bool) { if arg == nil { return ret, false @@ -237,6 +311,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetSampleLimitRetType) { *arg = &val } @@ -249,20 +324,25 @@ func setPartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeType(arg *P // PartialUpdateScrapeConfigsRequestInnerScheme Configures the protocol scheme used for requests. https or http // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerScheme string // List of Scheme const ( - PARTIALUPDATESCRAPECONFIGSREQUESTINNERSCHEME_HTTP PartialUpdateScrapeConfigsRequestInnerScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTIALUPDATESCRAPECONFIGSREQUESTINNERSCHEME_HTTP PartialUpdateScrapeConfigsRequestInnerScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PARTIALUPDATESCRAPECONFIGSREQUESTINNERSCHEME_HTTPS PartialUpdateScrapeConfigsRequestInnerScheme = "https" ) // All allowed values of PartialUpdateScrapeConfigsRequestInner enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedPartialUpdateScrapeConfigsRequestInnerSchemeEnumValues = []PartialUpdateScrapeConfigsRequestInnerScheme{ "http", "https", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *PartialUpdateScrapeConfigsRequestInnerScheme) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -290,6 +370,7 @@ func (v *PartialUpdateScrapeConfigsRequestInnerScheme) UnmarshalJSON(src []byte) // NewPartialUpdateScrapeConfigsRequestInnerSchemeFromValue returns a pointer to a valid PartialUpdateScrapeConfigsRequestInnerScheme // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerSchemeFromValue(v PartialUpdateScrapeConfigsRequestInnerScheme) (*PartialUpdateScrapeConfigsRequestInnerScheme, error) { ev := PartialUpdateScrapeConfigsRequestInnerScheme(v) if ev.IsValid() { @@ -300,6 +381,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerSchemeFromValue(v PartialUpdateScr } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartialUpdateScrapeConfigsRequestInnerScheme) IsValid() bool { for _, existing := range AllowedPartialUpdateScrapeConfigsRequestInnerSchemeEnumValues { if existing == v { @@ -310,50 +392,65 @@ func (v PartialUpdateScrapeConfigsRequestInnerScheme) IsValid() bool { } // Ptr returns reference to SchemeScheme value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartialUpdateScrapeConfigsRequestInnerScheme) Ptr() *PartialUpdateScrapeConfigsRequestInnerScheme { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerScheme struct { value *PartialUpdateScrapeConfigsRequestInnerScheme isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerScheme) Get() *PartialUpdateScrapeConfigsRequestInnerScheme { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerScheme) Set(val *PartialUpdateScrapeConfigsRequestInnerScheme) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerScheme) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerScheme) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerScheme(val *PartialUpdateScrapeConfigsRequestInnerScheme) *NullablePartialUpdateScrapeConfigsRequestInnerScheme { return &NullablePartialUpdateScrapeConfigsRequestInnerScheme{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerScheme) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerScheme) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeType = *PartialUpdateScrapeConfigsRequestInnerScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetSchemeArgType = PartialUpdateScrapeConfigsRequestInnerScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetSchemeRetType = PartialUpdateScrapeConfigsRequestInnerScheme +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetSchemeRetType, ok bool) { if arg == nil { return ret, false @@ -361,6 +458,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeTypeOk(arg Parti return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetSchemeRetType) { *arg = &val } @@ -370,8 +468,10 @@ func setPartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeType(arg *Partia */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -379,11 +479,15 @@ func getPartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeTypeOk(a return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType = string /* @@ -391,8 +495,10 @@ type PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -400,11 +506,15 @@ func getPartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeTypeOk(ar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType = string /* @@ -412,10 +522,16 @@ type PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -423,6 +539,7 @@ func getPartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeTypeOk(ar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsRetType) { *arg = &val } @@ -432,10 +549,16 @@ func setPartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeType(arg */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetTlsConfigArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerGetTlsConfigRetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerGetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -443,11 +566,13 @@ func getPartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeTypeOk(arg Pa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeType, val PartialUpdateScrapeConfigsRequestInnerGetTlsConfigRetType) { *arg = &val } // PartialUpdateScrapeConfigsRequestInner struct for PartialUpdateScrapeConfigsRequestInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInner struct { BasicAuth PartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType `json:"basicAuth,omitempty"` // Sets the 'Authorization' header on every scrape request with the configured bearer token. It is mutually exclusive with 'bearer_token_file'. `Additional Validators:` * needs to be a valid bearer token * if bearerToken is in the body no other authentication method should be in the body @@ -485,12 +610,14 @@ type PartialUpdateScrapeConfigsRequestInner struct { TlsConfig PartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeType `json:"tlsConfig,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PartialUpdateScrapeConfigsRequestInner PartialUpdateScrapeConfigsRequestInner // NewPartialUpdateScrapeConfigsRequestInner instantiates a new PartialUpdateScrapeConfigsRequestInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInner(jobName PartialUpdateScrapeConfigsRequestInnerGetJobNameArgType, scheme PartialUpdateScrapeConfigsRequestInnerGetSchemeArgType, scrapeInterval PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalArgType, scrapeTimeout PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutArgType, staticConfigs PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsArgType) *PartialUpdateScrapeConfigsRequestInner { this := PartialUpdateScrapeConfigsRequestInner{} setPartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeType(&this.JobName, jobName) @@ -504,6 +631,7 @@ func NewPartialUpdateScrapeConfigsRequestInner(jobName PartialUpdateScrapeConfig // NewPartialUpdateScrapeConfigsRequestInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInner { this := PartialUpdateScrapeConfigsRequestInner{} var honorLabels bool = false @@ -516,6 +644,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerWithDefaults() *PartialUpdateScrap } // GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetBasicAuth() (res PartialUpdateScrapeConfigsRequestInnerGetBasicAuthRetType) { res, _ = o.GetBasicAuthOk() return @@ -523,22 +652,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetBasicAuth() (res PartialUpda // GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetBasicAuthOk() (ret PartialUpdateScrapeConfigsRequestInnerGetBasicAuthRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeTypeOk(o.BasicAuth) } // HasBasicAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasBasicAuth() bool { _, ok := o.GetBasicAuthOk() return ok } // SetBasicAuth gets a reference to the given PartialUpdateScrapeConfigsRequestInnerBasicAuth and assigns it to the BasicAuth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetBasicAuth(v PartialUpdateScrapeConfigsRequestInnerGetBasicAuthRetType) { setPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeType(&o.BasicAuth, v) } // GetBearerToken returns the BearerToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetBearerToken() (res PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType) { res, _ = o.GetBearerTokenOk() return @@ -546,22 +679,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetBearerToken() (res PartialUp // GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetBearerTokenOk() (ret PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeTypeOk(o.BearerToken) } // HasBearerToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasBearerToken() bool { _, ok := o.GetBearerTokenOk() return ok } // SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetBearerToken(v PartialUpdateScrapeConfigsRequestInnerGetBearerTokenRetType) { setPartialUpdateScrapeConfigsRequestInnerGetBearerTokenAttributeType(&o.BearerToken, v) } // GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorLabels() (res PartialUpdateScrapeConfigsRequestInnergetHonorLabelsRetType) { res, _ = o.GetHonorLabelsOk() return @@ -569,22 +706,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorLabels() (res PartialUp // GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorLabelsOk() (ret PartialUpdateScrapeConfigsRequestInnergetHonorLabelsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeTypeOk(o.HonorLabels) } // HasHonorLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasHonorLabels() bool { _, ok := o.GetHonorLabelsOk() return ok } // SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetHonorLabels(v PartialUpdateScrapeConfigsRequestInnergetHonorLabelsRetType) { setPartialUpdateScrapeConfigsRequestInnergetHonorLabelsAttributeType(&o.HonorLabels, v) } // GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorTimeStamps() (res PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsRetType) { res, _ = o.GetHonorTimeStampsOk() return @@ -592,22 +733,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorTimeStamps() (res Parti // GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorTimeStampsOk() (ret PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeTypeOk(o.HonorTimeStamps) } // HasHonorTimeStamps returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasHonorTimeStamps() bool { _, ok := o.GetHonorTimeStampsOk() return ok } // SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetHonorTimeStamps(v PartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsRetType) { setPartialUpdateScrapeConfigsRequestInnergetHonorTimeStampsAttributeType(&o.HonorTimeStamps, v) } // GetHttpSdConfigs returns the HttpSdConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetHttpSdConfigs() (res PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsRetType) { res, _ = o.GetHttpSdConfigsOk() return @@ -615,22 +760,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetHttpSdConfigs() (res Partial // GetHttpSdConfigsOk returns a tuple with the HttpSdConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetHttpSdConfigsOk() (ret PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeTypeOk(o.HttpSdConfigs) } // HasHttpSdConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasHttpSdConfigs() bool { _, ok := o.GetHttpSdConfigsOk() return ok } // SetHttpSdConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner and assigns it to the HttpSdConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetHttpSdConfigs(v PartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsRetType) { setPartialUpdateScrapeConfigsRequestInnerGetHttpSdConfigsAttributeType(&o.HttpSdConfigs, v) } // GetJobName returns the JobName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetJobName() (ret PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType) { ret, _ = o.GetJobNameOk() return ret @@ -638,16 +787,19 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetJobName() (ret PartialUpdate // GetJobNameOk returns a tuple with the JobName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetJobNameOk() (ret PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeTypeOk(o.JobName) } // SetJobName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetJobName(v PartialUpdateScrapeConfigsRequestInnerGetJobNameRetType) { setPartialUpdateScrapeConfigsRequestInnerGetJobNameAttributeType(&o.JobName, v) } // GetMetricsPath returns the MetricsPath field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsPath() (res PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType) { res, _ = o.GetMetricsPathOk() return @@ -655,22 +807,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsPath() (res PartialUp // GetMetricsPathOk returns a tuple with the MetricsPath field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsPathOk() (ret PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeTypeOk(o.MetricsPath) } // HasMetricsPath returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasMetricsPath() bool { _, ok := o.GetMetricsPathOk() return ok } // SetMetricsPath gets a reference to the given string and assigns it to the MetricsPath field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetMetricsPath(v PartialUpdateScrapeConfigsRequestInnerGetMetricsPathRetType) { setPartialUpdateScrapeConfigsRequestInnerGetMetricsPathAttributeType(&o.MetricsPath, v) } // GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsRelabelConfigs() (res PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsRetType) { res, _ = o.GetMetricsRelabelConfigsOk() return @@ -678,22 +834,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsRelabelConfigs() (res // GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsRelabelConfigsOk() (ret PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeTypeOk(o.MetricsRelabelConfigs) } // HasMetricsRelabelConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasMetricsRelabelConfigs() bool { _, ok := o.GetMetricsRelabelConfigsOk() return ok } // SetMetricsRelabelConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner and assigns it to the MetricsRelabelConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetMetricsRelabelConfigs(v PartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsRetType) { setPartialUpdateScrapeConfigsRequestInnerGetMetricsRelabelConfigsAttributeType(&o.MetricsRelabelConfigs, v) } // GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetOauth2() (res PartialUpdateScrapeConfigsRequestInnerGetOauth2RetType) { res, _ = o.GetOauth2Ok() return @@ -701,22 +861,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetOauth2() (res PartialUpdateS // GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetOauth2Ok() (ret PartialUpdateScrapeConfigsRequestInnerGetOauth2RetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeTypeOk(o.Oauth2) } // HasOauth2 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasOauth2() bool { _, ok := o.GetOauth2Ok() return ok } // SetOauth2 gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 and assigns it to the Oauth2 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetOauth2(v PartialUpdateScrapeConfigsRequestInnerGetOauth2RetType) { setPartialUpdateScrapeConfigsRequestInnerGetOauth2AttributeType(&o.Oauth2, v) } // GetParams returns the Params field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetParams() (res PartialUpdateScrapeConfigsRequestInnerGetParamsRetType) { res, _ = o.GetParamsOk() return @@ -724,22 +888,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetParams() (res PartialUpdateS // GetParamsOk returns a tuple with the Params field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetParamsOk() (ret PartialUpdateScrapeConfigsRequestInnerGetParamsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetParamsAttributeTypeOk(o.Params) } // HasParams returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasParams() bool { _, ok := o.GetParamsOk() return ok } // SetParams gets a reference to the given map[string]interface{} and assigns it to the Params field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetParams(v PartialUpdateScrapeConfigsRequestInnerGetParamsRetType) { setPartialUpdateScrapeConfigsRequestInnerGetParamsAttributeType(&o.Params, v) } // GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetSampleLimit() (res PartialUpdateScrapeConfigsRequestInnerGetSampleLimitRetType) { res, _ = o.GetSampleLimitOk() return @@ -747,22 +915,26 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetSampleLimit() (res PartialUp // GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetSampleLimitOk() (ret PartialUpdateScrapeConfigsRequestInnerGetSampleLimitRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeTypeOk(o.SampleLimit) } // HasSampleLimit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasSampleLimit() bool { _, ok := o.GetSampleLimitOk() return ok } // SetSampleLimit gets a reference to the given float64 and assigns it to the SampleLimit field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetSampleLimit(v PartialUpdateScrapeConfigsRequestInnerGetSampleLimitRetType) { setPartialUpdateScrapeConfigsRequestInnerGetSampleLimitAttributeType(&o.SampleLimit, v) } // GetScheme returns the Scheme field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetScheme() (ret PartialUpdateScrapeConfigsRequestInnerGetSchemeRetType) { ret, _ = o.GetSchemeOk() return ret @@ -770,16 +942,19 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetScheme() (ret PartialUpdateS // GetSchemeOk returns a tuple with the Scheme field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetSchemeOk() (ret PartialUpdateScrapeConfigsRequestInnerGetSchemeRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeTypeOk(o.Scheme) } // SetScheme sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetScheme(v PartialUpdateScrapeConfigsRequestInnerGetSchemeRetType) { setPartialUpdateScrapeConfigsRequestInnerGetSchemeAttributeType(&o.Scheme, v) } // GetScrapeInterval returns the ScrapeInterval field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeInterval() (ret PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType) { ret, _ = o.GetScrapeIntervalOk() return ret @@ -787,16 +962,19 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeInterval() (ret Partia // GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeIntervalOk() (ret PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeTypeOk(o.ScrapeInterval) } // SetScrapeInterval sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetScrapeInterval(v PartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalRetType) { setPartialUpdateScrapeConfigsRequestInnerGetScrapeIntervalAttributeType(&o.ScrapeInterval, v) } // GetScrapeTimeout returns the ScrapeTimeout field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeTimeout() (ret PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType) { ret, _ = o.GetScrapeTimeoutOk() return ret @@ -804,16 +982,19 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeTimeout() (ret Partial // GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeTimeoutOk() (ret PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeTypeOk(o.ScrapeTimeout) } // SetScrapeTimeout sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetScrapeTimeout(v PartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutRetType) { setPartialUpdateScrapeConfigsRequestInnerGetScrapeTimeoutAttributeType(&o.ScrapeTimeout, v) } // GetStaticConfigs returns the StaticConfigs field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetStaticConfigs() (ret PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsRetType) { ret, _ = o.GetStaticConfigsOk() return ret @@ -821,16 +1002,19 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetStaticConfigs() (ret Partial // GetStaticConfigsOk returns a tuple with the StaticConfigs field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetStaticConfigsOk() (ret PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeTypeOk(o.StaticConfigs) } // SetStaticConfigs sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetStaticConfigs(v PartialUpdateScrapeConfigsRequestInnerGetStaticConfigsRetType) { setPartialUpdateScrapeConfigsRequestInnerGetStaticConfigsAttributeType(&o.StaticConfigs, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetTlsConfig() (res PartialUpdateScrapeConfigsRequestInnerGetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -838,21 +1022,25 @@ func (o *PartialUpdateScrapeConfigsRequestInner) GetTlsConfig() (res PartialUpda // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) GetTlsConfigOk() (ret PartialUpdateScrapeConfigsRequestInnerGetTlsConfigRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInner) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerGetTlsConfigRetType) { setPartialUpdateScrapeConfigsRequestInnerGetTlsConfigAttributeType(&o.TlsConfig, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerGetBasicAuthAttributeTypeOk(o.BasicAuth); ok { @@ -906,37 +1094,45 @@ func (o PartialUpdateScrapeConfigsRequestInner) ToMap() (map[string]interface{}, return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInner struct { value *PartialUpdateScrapeConfigsRequestInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInner) Get() *PartialUpdateScrapeConfigsRequestInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInner) Set(val *PartialUpdateScrapeConfigsRequestInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInner(val *PartialUpdateScrapeConfigsRequestInner) *NullablePartialUpdateScrapeConfigsRequestInner { return &NullablePartialUpdateScrapeConfigsRequestInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner_basic_auth.go b/services/observability/model_partial_update_scrape_configs_request_inner_basic_auth.go index 434ccb4df..c103a6b46 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner_basic_auth.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner_basic_auth.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerBasicAuth{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeTypeO return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeType, val PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType = string /* @@ -43,8 +50,10 @@ type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeTypeO return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeType, val PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameRetType = string // PartialUpdateScrapeConfigsRequestInnerBasicAuth 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerBasicAuth struct { // password Password PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeType `json:"password,omitempty"` @@ -71,6 +85,7 @@ type PartialUpdateScrapeConfigsRequestInnerBasicAuth struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerBasicAuth() *PartialUpdateScrapeConfigsRequestInnerBasicAuth { this := PartialUpdateScrapeConfigsRequestInnerBasicAuth{} return &this @@ -79,12 +94,14 @@ func NewPartialUpdateScrapeConfigsRequestInnerBasicAuth() *PartialUpdateScrapeCo // NewPartialUpdateScrapeConfigsRequestInnerBasicAuthWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerBasicAuth object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerBasicAuthWithDefaults() *PartialUpdateScrapeConfigsRequestInnerBasicAuth { this := PartialUpdateScrapeConfigsRequestInnerBasicAuth{} return &this } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetPassword() (res PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -92,22 +109,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetPassword() (res Par // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetPasswordOk() (ret PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) SetPassword(v PartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordRetType) { setPartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeType(&o.Password, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetUsername() (res PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -115,21 +136,25 @@ func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetUsername() (res Par // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetUsernameOk() (ret PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) SetUsername(v PartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameRetType) { setPartialUpdateScrapeConfigsRequestInnerBasicAuthGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInnerBasicAuth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerBasicAuthGetPasswordAttributeTypeOk(o.Password); ok { @@ -141,37 +166,45 @@ func (o PartialUpdateScrapeConfigsRequestInnerBasicAuth) ToMap() (map[string]int return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth struct { value *PartialUpdateScrapeConfigsRequestInnerBasicAuth isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) Get() *PartialUpdateScrapeConfigsRequestInnerBasicAuth { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) Set(val *PartialUpdateScrapeConfigsRequestInnerBasicAuth) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerBasicAuth(val *PartialUpdateScrapeConfigsRequestInnerBasicAuth) *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth { return &NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go b/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go index f3b4b4749..bddba2bd1 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeType = *PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthArgType = PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthRetType = PartialUpdateScrapeConfigsRequestInnerBasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttr */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2ArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2RetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2RetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2Attribu return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2RetType) { *arg = &val } @@ -62,8 +77,10 @@ func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2Attribu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshInterv return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalRetType = string /* @@ -83,10 +104,16 @@ type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalR */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigRetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -94,6 +121,7 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigRetType) { *arg = &val } @@ -103,8 +131,10 @@ func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttr */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -112,14 +142,19 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlRetType = string // PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct for PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct { BasicAuth PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeType `json:"basicAuth,omitempty"` Oauth2 PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeType `json:"oauth2,omitempty"` @@ -131,12 +166,14 @@ type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct { Url PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner // NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner(url PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlArgType) *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{} setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType(&this.Url, url) @@ -146,6 +183,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner(url PartialUpda // NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{} var refreshInterval string = "60s" @@ -154,6 +192,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerWithDefaults() * } // GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetBasicAuth() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthRetType) { res, _ = o.GetBasicAuthOk() return @@ -161,22 +200,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetBasicAuth( // GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetBasicAuthOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeTypeOk(o.BasicAuth) } // HasBasicAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasBasicAuth() bool { _, ok := o.GetBasicAuthOk() return ok } // SetBasicAuth gets a reference to the given PartialUpdateScrapeConfigsRequestInnerBasicAuth and assigns it to the BasicAuth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetBasicAuth(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeType(&o.BasicAuth, v) } // GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetOauth2() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2RetType) { res, _ = o.GetOauth2Ok() return @@ -184,22 +227,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetOauth2() ( // GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetOauth2Ok() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2RetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeTypeOk(o.Oauth2) } // HasOauth2 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasOauth2() bool { _, ok := o.GetOauth2Ok() return ok } // SetOauth2 gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 and assigns it to the Oauth2 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetOauth2(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2RetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetOauth2AttributeType(&o.Oauth2, v) } // GetRefreshInterval returns the RefreshInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetRefreshInterval() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalRetType) { res, _ = o.GetRefreshIntervalOk() return @@ -207,22 +254,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetRefreshInt // GetRefreshIntervalOk returns a tuple with the RefreshInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetRefreshIntervalOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeTypeOk(o.RefreshInterval) } // HasRefreshInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasRefreshInterval() bool { _, ok := o.GetRefreshIntervalOk() return ok } // SetRefreshInterval gets a reference to the given string and assigns it to the RefreshInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetRefreshInterval(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetRefreshIntervalAttributeType(&o.RefreshInterval, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetTlsConfig() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -230,22 +281,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetTlsConfig( // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetTlsConfigOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetTlsConfigAttributeType(&o.TlsConfig, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetUrl() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -253,15 +308,18 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetUrl() (ret // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetUrlOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetUrl(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerGetBasicAuthAttributeTypeOk(o.BasicAuth); ok { @@ -282,37 +340,45 @@ func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) ToMap() (map[s return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct { value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go b/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go index d7d051b79..c07e51b48 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientI return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRetType = string /* @@ -43,8 +50,10 @@ type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientS return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretRetType = string /* @@ -64,10 +77,16 @@ type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecr */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +94,7 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesRetType) { *arg = &val } @@ -84,10 +104,16 @@ func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesA */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigRetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +121,7 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigRetType) { *arg = &val } @@ -104,8 +131,10 @@ func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConf */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlRetType, ok bool) { if arg == nil { return ret, false @@ -113,14 +142,19 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlRetType = string // PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 struct { // clientId // REQUIRED @@ -136,12 +170,14 @@ type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 struct { TokenUrl PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeType `json:"tokenUrl" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 // NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2(clientId PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdArgType, clientSecret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretArgType, tokenUrl PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlArgType) *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{} setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeType(&this.ClientId, clientId) @@ -153,12 +189,14 @@ func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2(clientId // NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2WithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2WithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{} return &this } // GetClientId returns the ClientId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientId() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRetType) { ret, _ = o.GetClientIdOk() return ret @@ -166,16 +204,19 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClie // GetClientIdOk returns a tuple with the ClientId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientIdOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeTypeOk(o.ClientId) } // SetClientId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetClientId(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeType(&o.ClientId, v) } // GetClientSecret returns the ClientSecret field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientSecret() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretRetType) { ret, _ = o.GetClientSecretOk() return ret @@ -183,16 +224,19 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClie // GetClientSecretOk returns a tuple with the ClientSecret field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientSecretOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeTypeOk(o.ClientSecret) } // SetClientSecret sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetClientSecret(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientSecretAttributeType(&o.ClientSecret, v) } // GetScopes returns the Scopes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetScopes() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesRetType) { res, _ = o.GetScopesOk() return @@ -200,22 +244,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetScop // GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetScopesOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeTypeOk(o.Scopes) } // HasScopes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) HasScopes() bool { _, ok := o.GetScopesOk() return ok } // SetScopes gets a reference to the given []string and assigns it to the Scopes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetScopes(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetScopesAttributeType(&o.Scopes, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTlsConfig() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -223,22 +271,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTlsC // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTlsConfigOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTlsConfigAttributeType(&o.TlsConfig, v) } // GetTokenUrl returns the TokenUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTokenUrl() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlRetType) { ret, _ = o.GetTokenUrlOk() return ret @@ -246,15 +298,18 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetToke // GetTokenUrlOk returns a tuple with the TokenUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTokenUrlOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeTypeOk(o.TokenUrl) } // SetTokenUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetTokenUrl(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetTokenUrlAttributeType(&o.TokenUrl, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2GetClientIdAttributeTypeOk(o.ClientId); ok { @@ -275,37 +330,45 @@ func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) ToMap() return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 struct { value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go b/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go index 49c280ce5..e03d80d88 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +40,13 @@ func getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfigg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeType, val PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyRetType) { *arg = &val } // PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig Configures the scrape request's TLS settings. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig struct { // Disable validation of the server certificate. InsecureSkipVerify PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeType `json:"insecureSkipVerify,omitempty"` @@ -47,6 +56,7 @@ type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig str // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{} return &this @@ -55,6 +65,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig( // NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfigWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfigWithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{} var insecureSkipVerify bool = false @@ -63,6 +74,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfigW } // GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) GetInsecureSkipVerify() (res PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyRetType) { res, _ = o.GetInsecureSkipVerifyOk() return @@ -70,21 +82,25 @@ func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig // GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) GetInsecureSkipVerifyOk() (ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeTypeOk(o.InsecureSkipVerify) } // HasInsecureSkipVerify returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) HasInsecureSkipVerify() bool { _, ok := o.GetInsecureSkipVerifyOk() return ok } // SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) SetInsecureSkipVerify(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyRetType) { setPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeType(&o.InsecureSkipVerify, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfiggetInsecureSkipVerifyAttributeTypeOk(o.InsecureSkipVerify); ok { @@ -93,37 +109,45 @@ func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig struct { value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go b/services/observability/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go index 1523897a8..aa7eb4fe3 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -26,20 +27,29 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConf // PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction Action to perform based on regex matching. `Additional Validators:` * if action is replace, targetLabel needs to be in body // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction string // List of Action const ( - PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_REPLACE PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "replace" - PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_KEEP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "keep" - PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_DROP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "drop" - PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_HASHMOD PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "hashmod" - PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_LABELMAP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "labelmap" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_REPLACE PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "replace" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_KEEP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "keep" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_DROP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "drop" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_HASHMOD PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "hashmod" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_LABELMAP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "labelmap" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_LABELDROP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "labeldrop" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PARTIALUPDATESCRAPECONFIGSREQUESTINNERMETRICSRELABELCONFIGSINNERACTION_LABELKEEP PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "labelkeep" ) // All allowed values of PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerActionEnumValues = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction{ "replace", "keep", @@ -50,6 +60,7 @@ var AllowedPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerActio "labelkeep", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -77,6 +88,7 @@ func (v *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) // NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerActionFromValue returns a pointer to a valid PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerActionFromValue(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) (*PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction, error) { ev := PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction(v) if ev.IsValid() { @@ -87,6 +99,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerActionFr } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) IsValid() bool { for _, existing := range AllowedPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerActionEnumValues { if existing == v { @@ -97,50 +110,65 @@ func (v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) } // Ptr returns reference to ActionAction value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) Ptr() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction struct { value *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) Get() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) Set(val *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction(val *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction { return &NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeType = *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionArgType = PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionRetType = PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionRetType, ok bool) { if arg == nil { return ret, false @@ -148,6 +176,7 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActio return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionRetType) { *arg = &val } @@ -157,10 +186,16 @@ func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActio */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusRetType, ok bool) { if arg == nil { return ret, false @@ -168,6 +203,7 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModul return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusRetType) { *arg = &val } @@ -177,8 +213,10 @@ func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModul */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRetType, ok bool) { if arg == nil { return ret, false @@ -186,11 +224,15 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegex return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRetType = string /* @@ -198,8 +240,10 @@ type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRet */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementRetType, ok bool) { if arg == nil { return ret, false @@ -207,11 +251,15 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRepla return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementRetType = string /* @@ -219,8 +267,10 @@ type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacem */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorRetType, ok bool) { if arg == nil { return ret, false @@ -228,11 +278,15 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSepar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorRetType = string /* @@ -240,10 +294,16 @@ type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparato */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -251,6 +311,7 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourc return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsRetType) { *arg = &val } @@ -260,8 +321,10 @@ func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourc */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelRetType, ok bool) { if arg == nil { return ret, false @@ -269,14 +332,19 @@ func getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTarge return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeType, val PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelRetType = string // PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct for PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct { // Action to perform based on regex matching. `Additional Validators:` * if action is replace, targetLabel needs to be in body Action PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeType `json:"action,omitempty"` @@ -298,6 +366,7 @@ type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { this := PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{} return &this @@ -306,6 +375,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner() *Part // NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { this := PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{} var action PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerAction = "replace" @@ -320,6 +390,7 @@ func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerWithDefa } // GetAction returns the Action field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetAction() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionRetType) { res, _ = o.GetActionOk() return @@ -327,22 +398,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetAc // GetActionOk returns a tuple with the Action field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetActionOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeTypeOk(o.Action) } // HasAction returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasAction() bool { _, ok := o.GetActionOk() return ok } // SetAction gets a reference to the given string and assigns it to the Action field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetAction(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeType(&o.Action, v) } // GetModulus returns the Modulus field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetModulus() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusRetType) { res, _ = o.GetModulusOk() return @@ -350,22 +425,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetMo // GetModulusOk returns a tuple with the Modulus field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetModulusOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeTypeOk(o.Modulus) } // HasModulus returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasModulus() bool { _, ok := o.GetModulusOk() return ok } // SetModulus gets a reference to the given float64 and assigns it to the Modulus field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetModulus(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetModulusAttributeType(&o.Modulus, v) } // GetRegex returns the Regex field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetRegex() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRetType) { res, _ = o.GetRegexOk() return @@ -373,22 +452,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetRe // GetRegexOk returns a tuple with the Regex field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetRegexOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeTypeOk(o.Regex) } // HasRegex returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasRegex() bool { _, ok := o.GetRegexOk() return ok } // SetRegex gets a reference to the given string and assigns it to the Regex field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetRegex(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetRegexAttributeType(&o.Regex, v) } // GetReplacement returns the Replacement field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetReplacement() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementRetType) { res, _ = o.GetReplacementOk() return @@ -396,22 +479,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetRe // GetReplacementOk returns a tuple with the Replacement field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetReplacementOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeTypeOk(o.Replacement) } // HasReplacement returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasReplacement() bool { _, ok := o.GetReplacementOk() return ok } // SetReplacement gets a reference to the given string and assigns it to the Replacement field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetReplacement(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetReplacementAttributeType(&o.Replacement, v) } // GetSeparator returns the Separator field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSeparator() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorRetType) { res, _ = o.GetSeparatorOk() return @@ -419,22 +506,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSe // GetSeparatorOk returns a tuple with the Separator field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSeparatorOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeTypeOk(o.Separator) } // HasSeparator returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasSeparator() bool { _, ok := o.GetSeparatorOk() return ok } // SetSeparator gets a reference to the given string and assigns it to the Separator field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetSeparator(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSeparatorAttributeType(&o.Separator, v) } // GetSourceLabels returns the SourceLabels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSourceLabels() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsRetType) { res, _ = o.GetSourceLabelsOk() return @@ -442,22 +533,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSo // GetSourceLabelsOk returns a tuple with the SourceLabels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSourceLabelsOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeTypeOk(o.SourceLabels) } // HasSourceLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasSourceLabels() bool { _, ok := o.GetSourceLabelsOk() return ok } // SetSourceLabels gets a reference to the given []string and assigns it to the SourceLabels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetSourceLabels(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetSourceLabelsAttributeType(&o.SourceLabels, v) } // GetTargetLabel returns the TargetLabel field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetTargetLabel() (res PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelRetType) { res, _ = o.GetTargetLabelOk() return @@ -465,21 +560,25 @@ func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetTa // GetTargetLabelOk returns a tuple with the TargetLabel field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetTargetLabelOk() (ret PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeTypeOk(o.TargetLabel) } // HasTargetLabel returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasTargetLabel() bool { _, ok := o.GetTargetLabelOk() return ok } // SetTargetLabel gets a reference to the given string and assigns it to the TargetLabel field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetTargetLabel(v PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelRetType) { setPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetTargetLabelAttributeType(&o.TargetLabel, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerGetActionAttributeTypeOk(o.Action); ok { @@ -506,37 +605,45 @@ func (o PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) ToMap( return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct { value *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) Get() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) Set(val *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner(val *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { return &NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_partial_update_scrape_configs_request_inner_static_configs_inner.go b/services/observability/model_partial_update_scrape_configs_request_inner_static_configs_inner.go index 2fa2f3023..50171be84 100644 --- a/services/observability/model_partial_update_scrape_configs_request_inner_static_configs_inner.go +++ b/services/observability/model_partial_update_scrape_configs_request_inner_static_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttribu return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeType, val PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttribu */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeTypeOk(arg PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType) (ret PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +67,13 @@ func getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType(arg *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType, val PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsRetType) { *arg = &val } // PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct for PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct { // Labels assigned to all metrics scraped from the targets. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters Labels PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeType `json:"labels,omitempty"` @@ -66,12 +82,14 @@ type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct { Targets PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType `json:"targets" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner // NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner instantiates a new PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner(targets PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsArgType) *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { this := PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{} setPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType(&this.Targets, targets) @@ -81,12 +99,14 @@ func NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner(targets Partial // NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { this := PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{} return &this } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetLabels() (res PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -94,22 +114,26 @@ func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetLabels() ( // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetLabelsOk() (ret PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) SetLabels(v PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsRetType) { setPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeType(&o.Labels, v) } // GetTargets returns the Targets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetTargets() (ret PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsRetType) { ret, _ = o.GetTargetsOk() return ret @@ -117,15 +141,18 @@ func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetTargets() // GetTargetsOk returns a tuple with the Targets field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetTargetsOk() (ret PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsRetType, ok bool) { return getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeTypeOk(o.Targets) } // SetTargets sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) SetTargets(v PartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsRetType) { setPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetTargetsAttributeType(&o.Targets, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerGetLabelsAttributeTypeOk(o.Labels); ok { @@ -137,37 +164,45 @@ func (o PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) ToMap() (map[s return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct { value *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) Get() *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) Set(val *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner(val *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { return &NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_permission_denied.go b/services/observability/model_permission_denied.go index a8e8960bb..99ad6933f 100644 --- a/services/observability/model_permission_denied.go +++ b/services/observability/model_permission_denied.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PermissionDenied{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PermissionDeniedGetDetailAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPermissionDeniedGetDetailAttributeTypeOk(arg PermissionDeniedGetDetailAttributeType) (ret PermissionDeniedGetDetailRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getPermissionDeniedGetDetailAttributeTypeOk(arg PermissionDeniedGetDetailAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPermissionDeniedGetDetailAttributeType(arg *PermissionDeniedGetDetailAttributeType, val PermissionDeniedGetDetailRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PermissionDeniedGetDetailArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PermissionDeniedGetDetailRetType = string // PermissionDenied struct for PermissionDenied +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PermissionDenied struct { // REQUIRED Detail PermissionDeniedGetDetailAttributeType `json:"detail" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PermissionDenied PermissionDenied // NewPermissionDenied instantiates a new PermissionDenied object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPermissionDenied(detail PermissionDeniedGetDetailArgType) *PermissionDenied { this := PermissionDenied{} setPermissionDeniedGetDetailAttributeType(&this.Detail, detail) @@ -59,12 +69,14 @@ func NewPermissionDenied(detail PermissionDeniedGetDetailArgType) *PermissionDen // NewPermissionDeniedWithDefaults instantiates a new PermissionDenied object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPermissionDeniedWithDefaults() *PermissionDenied { this := PermissionDenied{} return &this } // GetDetail returns the Detail field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PermissionDenied) GetDetail() (ret PermissionDeniedGetDetailRetType) { ret, _ = o.GetDetailOk() return ret @@ -72,15 +84,18 @@ func (o *PermissionDenied) GetDetail() (ret PermissionDeniedGetDetailRetType) { // GetDetailOk returns a tuple with the Detail field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PermissionDenied) GetDetailOk() (ret PermissionDeniedGetDetailRetType, ok bool) { return getPermissionDeniedGetDetailAttributeTypeOk(o.Detail) } // SetDetail sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PermissionDenied) SetDetail(v PermissionDeniedGetDetailRetType) { setPermissionDeniedGetDetailAttributeType(&o.Detail, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PermissionDenied) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPermissionDeniedGetDetailAttributeTypeOk(o.Detail); ok { @@ -89,37 +104,45 @@ func (o PermissionDenied) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePermissionDenied struct { value *PermissionDenied isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePermissionDenied) Get() *PermissionDenied { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePermissionDenied) Set(val *PermissionDenied) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePermissionDenied) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePermissionDenied) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePermissionDenied(val *PermissionDenied) *NullablePermissionDenied { return &NullablePermissionDenied{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePermissionDenied) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePermissionDenied) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_ping_check_child_response.go b/services/observability/model_ping_check_child_response.go index cf397e7c9..69f65261d 100644 --- a/services/observability/model_ping_check_child_response.go +++ b/services/observability/model_ping_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PingCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPingCheckChildResponseGetIdAttributeTypeOk(arg PingCheckChildResponseGetIdAttributeType) (ret PingCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPingCheckChildResponseGetIdAttributeTypeOk(arg PingCheckChildResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPingCheckChildResponseGetIdAttributeType(arg *PingCheckChildResponseGetIdAttributeType, val PingCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type PingCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponseGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPingCheckChildResponseGetUrlAttributeTypeOk(arg PingCheckChildResponseGetUrlAttributeType) (ret PingCheckChildResponseGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getPingCheckChildResponseGetUrlAttributeTypeOk(arg PingCheckChildResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPingCheckChildResponseGetUrlAttributeType(arg *PingCheckChildResponseGetUrlAttributeType, val PingCheckChildResponseGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponseGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponseGetUrlRetType = string // PingCheckChildResponse struct for PingCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckChildResponse struct { // REQUIRED Id PingCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -67,12 +81,14 @@ type PingCheckChildResponse struct { Url PingCheckChildResponseGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PingCheckChildResponse PingCheckChildResponse // NewPingCheckChildResponse instantiates a new PingCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPingCheckChildResponse(id PingCheckChildResponseGetIdArgType, url PingCheckChildResponseGetUrlArgType) *PingCheckChildResponse { this := PingCheckChildResponse{} setPingCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -83,12 +99,14 @@ func NewPingCheckChildResponse(id PingCheckChildResponseGetIdArgType, url PingCh // NewPingCheckChildResponseWithDefaults instantiates a new PingCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPingCheckChildResponseWithDefaults() *PingCheckChildResponse { this := PingCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckChildResponse) GetId() (ret PingCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -96,16 +114,19 @@ func (o *PingCheckChildResponse) GetId() (ret PingCheckChildResponseGetIdRetType // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckChildResponse) GetIdOk() (ret PingCheckChildResponseGetIdRetType, ok bool) { return getPingCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckChildResponse) SetId(v PingCheckChildResponseGetIdRetType) { setPingCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckChildResponse) GetUrl() (ret PingCheckChildResponseGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -113,15 +134,18 @@ func (o *PingCheckChildResponse) GetUrl() (ret PingCheckChildResponseGetUrlRetTy // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckChildResponse) GetUrlOk() (ret PingCheckChildResponseGetUrlRetType, ok bool) { return getPingCheckChildResponseGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckChildResponse) SetUrl(v PingCheckChildResponseGetUrlRetType) { setPingCheckChildResponseGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PingCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPingCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -133,37 +157,45 @@ func (o PingCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePingCheckChildResponse struct { value *PingCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePingCheckChildResponse) Get() *PingCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePingCheckChildResponse) Set(val *PingCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePingCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePingCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePingCheckChildResponse(val *PingCheckChildResponse) *NullablePingCheckChildResponse { return &NullablePingCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePingCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePingCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_ping_check_response.go b/services/observability/model_ping_check_response.go index 84598a078..df51b2433 100644 --- a/services/observability/model_ping_check_response.go +++ b/services/observability/model_ping_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PingCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPingCheckResponseGetMessageAttributeTypeOk(arg PingCheckResponseGetMessageAttributeType) (ret PingCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPingCheckResponseGetMessageAttributeTypeOk(arg PingCheckResponseGetMessa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPingCheckResponseGetMessageAttributeType(arg *PingCheckResponseGetMessageAttributeType, val PingCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type PingCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetPingCheckAttributeType = *PingCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetPingCheckArgType = PingCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetPingCheckRetType = PingCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPingCheckResponseGetPingCheckAttributeTypeOk(arg PingCheckResponseGetPingCheckAttributeType) (ret PingCheckResponseGetPingCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getPingCheckResponseGetPingCheckAttributeTypeOk(arg PingCheckResponseGetPin return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPingCheckResponseGetPingCheckAttributeType(arg *PingCheckResponseGetPingCheckAttributeType, val PingCheckResponseGetPingCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setPingCheckResponseGetPingCheckAttributeType(arg *PingCheckResponseGetPing */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetPingChecksAttributeType = *[]PingCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetPingChecksArgType = []PingCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponseGetPingChecksRetType = []PingCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPingCheckResponseGetPingChecksAttributeTypeOk(arg PingCheckResponseGetPingChecksAttributeType) (ret PingCheckResponseGetPingChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getPingCheckResponseGetPingChecksAttributeTypeOk(arg PingCheckResponseGetPi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPingCheckResponseGetPingChecksAttributeType(arg *PingCheckResponseGetPingChecksAttributeType, val PingCheckResponseGetPingChecksRetType) { *arg = &val } // PingCheckResponse struct for PingCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PingCheckResponse struct { // REQUIRED Message PingCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type PingCheckResponse struct { PingChecks PingCheckResponseGetPingChecksAttributeType `json:"pingChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PingCheckResponse PingCheckResponse // NewPingCheckResponse instantiates a new PingCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPingCheckResponse(message PingCheckResponseGetMessageArgType, pingChecks PingCheckResponseGetPingChecksArgType) *PingCheckResponse { this := PingCheckResponse{} setPingCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewPingCheckResponse(message PingCheckResponseGetMessageArgType, pingChecks // NewPingCheckResponseWithDefaults instantiates a new PingCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPingCheckResponseWithDefaults() *PingCheckResponse { this := PingCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) GetMessage() (ret PingCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *PingCheckResponse) GetMessage() (ret PingCheckResponseGetMessageRetType // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) GetMessageOk() (ret PingCheckResponseGetMessageRetType, ok bool) { return getPingCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) SetMessage(v PingCheckResponseGetMessageRetType) { setPingCheckResponseGetMessageAttributeType(&o.Message, v) } // GetPingCheck returns the PingCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) GetPingCheck() (res PingCheckResponseGetPingCheckRetType) { res, _ = o.GetPingCheckOk() return @@ -133,22 +162,26 @@ func (o *PingCheckResponse) GetPingCheck() (res PingCheckResponseGetPingCheckRet // GetPingCheckOk returns a tuple with the PingCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) GetPingCheckOk() (ret PingCheckResponseGetPingCheckRetType, ok bool) { return getPingCheckResponseGetPingCheckAttributeTypeOk(o.PingCheck) } // HasPingCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) HasPingCheck() bool { _, ok := o.GetPingCheckOk() return ok } // SetPingCheck gets a reference to the given PingCheckChildResponse and assigns it to the PingCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) SetPingCheck(v PingCheckResponseGetPingCheckRetType) { setPingCheckResponseGetPingCheckAttributeType(&o.PingCheck, v) } // GetPingChecks returns the PingChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) GetPingChecks() (ret PingCheckResponseGetPingChecksRetType) { ret, _ = o.GetPingChecksOk() return ret @@ -156,15 +189,18 @@ func (o *PingCheckResponse) GetPingChecks() (ret PingCheckResponseGetPingChecksR // GetPingChecksOk returns a tuple with the PingChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) GetPingChecksOk() (ret PingCheckResponseGetPingChecksRetType, ok bool) { return getPingCheckResponseGetPingChecksAttributeTypeOk(o.PingChecks) } // SetPingChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PingCheckResponse) SetPingChecks(v PingCheckResponseGetPingChecksRetType) { setPingCheckResponseGetPingChecksAttributeType(&o.PingChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PingCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPingCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o PingCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePingCheckResponse struct { value *PingCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePingCheckResponse) Get() *PingCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePingCheckResponse) Set(val *PingCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePingCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePingCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePingCheckResponse(val *PingCheckResponse) *NullablePingCheckResponse { return &NullablePingCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePingCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePingCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_plan.go b/services/observability/model_plan.go index 437e08fc8..88ed1fef5 100644 --- a/services/observability/model_plan.go +++ b/services/observability/model_plan.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Plan{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertMatchersAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertMatchersArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertMatchersRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetAlertMatchersAttributeTypeOk(arg PlanGetAlertMatchersAttributeType) (ret PlanGetAlertMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getPlanGetAlertMatchersAttributeTypeOk(arg PlanGetAlertMatchersAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetAlertMatchersAttributeType(arg *PlanGetAlertMatchersAttributeType, val PlanGetAlertMatchersRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setPlanGetAlertMatchersAttributeType(arg *PlanGetAlertMatchersAttributeType */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertReceiversAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertReceiversArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertReceiversRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetAlertReceiversAttributeTypeOk(arg PlanGetAlertReceiversAttributeType) (ret PlanGetAlertReceiversRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getPlanGetAlertReceiversAttributeTypeOk(arg PlanGetAlertReceiversAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetAlertReceiversAttributeType(arg *PlanGetAlertReceiversAttributeType, val PlanGetAlertReceiversRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setPlanGetAlertReceiversAttributeType(arg *PlanGetAlertReceiversAttributeTy */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertRulesAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertRulesArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAlertRulesRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetAlertRulesAttributeTypeOk(arg PlanGetAlertRulesAttributeType) (ret PlanGetAlertRulesRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getPlanGetAlertRulesAttributeTypeOk(arg PlanGetAlertRulesAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetAlertRulesAttributeType(arg *PlanGetAlertRulesAttributeType, val PlanGetAlertRulesRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setPlanGetAlertRulesAttributeType(arg *PlanGetAlertRulesAttributeType, val */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAmountAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAmountArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetAmountRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetAmountAttributeTypeOk(arg PlanGetAmountAttributeType) (ret PlanGetAmountRetType, ok bool) { if arg == nil { return ret, false @@ -93,6 +121,7 @@ func getPlanGetAmountAttributeTypeOk(arg PlanGetAmountAttributeType) (ret PlanGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetAmountAttributeType(arg *PlanGetAmountAttributeType, val PlanGetAmountRetType) { *arg = &val } @@ -102,10 +131,16 @@ func setPlanGetAmountAttributeType(arg *PlanGetAmountAttributeType, val PlanGetA */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetBucketSizeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetBucketSizeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetBucketSizeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetBucketSizeAttributeTypeOk(arg PlanGetBucketSizeAttributeType) (ret PlanGetBucketSizeRetType, ok bool) { if arg == nil { return ret, false @@ -113,6 +148,7 @@ func getPlanGetBucketSizeAttributeTypeOk(arg PlanGetBucketSizeAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetBucketSizeAttributeType(arg *PlanGetBucketSizeAttributeType, val PlanGetBucketSizeRetType) { *arg = &val } @@ -122,8 +158,10 @@ func setPlanGetBucketSizeAttributeType(arg *PlanGetBucketSizeAttributeType, val */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetDescriptionAttributeTypeOk(arg PlanGetDescriptionAttributeType) (ret PlanGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -131,11 +169,15 @@ func getPlanGetDescriptionAttributeTypeOk(arg PlanGetDescriptionAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetDescriptionAttributeType(arg *PlanGetDescriptionAttributeType, val PlanGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetDescriptionRetType = string /* @@ -143,10 +185,16 @@ type PlanGetDescriptionRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalDashboardsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalDashboardsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalDashboardsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetGrafanaGlobalDashboardsAttributeTypeOk(arg PlanGetGrafanaGlobalDashboardsAttributeType) (ret PlanGetGrafanaGlobalDashboardsRetType, ok bool) { if arg == nil { return ret, false @@ -154,6 +202,7 @@ func getPlanGetGrafanaGlobalDashboardsAttributeTypeOk(arg PlanGetGrafanaGlobalDa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetGrafanaGlobalDashboardsAttributeType(arg *PlanGetGrafanaGlobalDashboardsAttributeType, val PlanGetGrafanaGlobalDashboardsRetType) { *arg = &val } @@ -163,10 +212,16 @@ func setPlanGetGrafanaGlobalDashboardsAttributeType(arg *PlanGetGrafanaGlobalDas */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalOrgsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalOrgsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalOrgsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetGrafanaGlobalOrgsAttributeTypeOk(arg PlanGetGrafanaGlobalOrgsAttributeType) (ret PlanGetGrafanaGlobalOrgsRetType, ok bool) { if arg == nil { return ret, false @@ -174,6 +229,7 @@ func getPlanGetGrafanaGlobalOrgsAttributeTypeOk(arg PlanGetGrafanaGlobalOrgsAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetGrafanaGlobalOrgsAttributeType(arg *PlanGetGrafanaGlobalOrgsAttributeType, val PlanGetGrafanaGlobalOrgsRetType) { *arg = &val } @@ -183,10 +239,16 @@ func setPlanGetGrafanaGlobalOrgsAttributeType(arg *PlanGetGrafanaGlobalOrgsAttri */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalSessionsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalSessionsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalSessionsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetGrafanaGlobalSessionsAttributeTypeOk(arg PlanGetGrafanaGlobalSessionsAttributeType) (ret PlanGetGrafanaGlobalSessionsRetType, ok bool) { if arg == nil { return ret, false @@ -194,6 +256,7 @@ func getPlanGetGrafanaGlobalSessionsAttributeTypeOk(arg PlanGetGrafanaGlobalSess return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetGrafanaGlobalSessionsAttributeType(arg *PlanGetGrafanaGlobalSessionsAttributeType, val PlanGetGrafanaGlobalSessionsRetType) { *arg = &val } @@ -203,10 +266,16 @@ func setPlanGetGrafanaGlobalSessionsAttributeType(arg *PlanGetGrafanaGlobalSessi */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalUsersAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalUsersArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetGrafanaGlobalUsersRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetGrafanaGlobalUsersAttributeTypeOk(arg PlanGetGrafanaGlobalUsersAttributeType) (ret PlanGetGrafanaGlobalUsersRetType, ok bool) { if arg == nil { return ret, false @@ -214,6 +283,7 @@ func getPlanGetGrafanaGlobalUsersAttributeTypeOk(arg PlanGetGrafanaGlobalUsersAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetGrafanaGlobalUsersAttributeType(arg *PlanGetGrafanaGlobalUsersAttributeType, val PlanGetGrafanaGlobalUsersRetType) { *arg = &val } @@ -223,8 +293,10 @@ func setPlanGetGrafanaGlobalUsersAttributeType(arg *PlanGetGrafanaGlobalUsersAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetIdAttributeTypeOk(arg PlanGetIdAttributeType) (ret PlanGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -232,11 +304,15 @@ func getPlanGetIdAttributeTypeOk(arg PlanGetIdAttributeType) (ret PlanGetIdRetTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetIdAttributeType(arg *PlanGetIdAttributeType, val PlanGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetIdRetType = string /* @@ -244,10 +320,16 @@ type PlanGetIdRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetIsFreeAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetIsFreeArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetIsFreeRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlangetIsFreeAttributeTypeOk(arg PlangetIsFreeAttributeType) (ret PlangetIsFreeRetType, ok bool) { if arg == nil { return ret, false @@ -255,6 +337,7 @@ func getPlangetIsFreeAttributeTypeOk(arg PlangetIsFreeAttributeType) (ret Plange return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlangetIsFreeAttributeType(arg *PlangetIsFreeAttributeType, val PlangetIsFreeRetType) { *arg = &val } @@ -264,10 +347,16 @@ func setPlangetIsFreeAttributeType(arg *PlangetIsFreeAttributeType, val PlangetI */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetIsPublicAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetIsPublicArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetIsPublicRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlangetIsPublicAttributeTypeOk(arg PlangetIsPublicAttributeType) (ret PlangetIsPublicRetType, ok bool) { if arg == nil { return ret, false @@ -275,6 +364,7 @@ func getPlangetIsPublicAttributeTypeOk(arg PlangetIsPublicAttributeType) (ret Pl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlangetIsPublicAttributeType(arg *PlangetIsPublicAttributeType, val PlangetIsPublicRetType) { *arg = &val } @@ -284,10 +374,16 @@ func setPlangetIsPublicAttributeType(arg *PlangetIsPublicAttributeType, val Plan */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetLogsAlertAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetLogsAlertArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetLogsAlertRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetLogsAlertAttributeTypeOk(arg PlanGetLogsAlertAttributeType) (ret PlanGetLogsAlertRetType, ok bool) { if arg == nil { return ret, false @@ -295,6 +391,7 @@ func getPlanGetLogsAlertAttributeTypeOk(arg PlanGetLogsAlertAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetLogsAlertAttributeType(arg *PlanGetLogsAlertAttributeType, val PlanGetLogsAlertRetType) { *arg = &val } @@ -304,10 +401,16 @@ func setPlanGetLogsAlertAttributeType(arg *PlanGetLogsAlertAttributeType, val Pl */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetLogsStorageAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetLogsStorageArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetLogsStorageRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetLogsStorageAttributeTypeOk(arg PlanGetLogsStorageAttributeType) (ret PlanGetLogsStorageRetType, ok bool) { if arg == nil { return ret, false @@ -315,6 +418,7 @@ func getPlanGetLogsStorageAttributeTypeOk(arg PlanGetLogsStorageAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetLogsStorageAttributeType(arg *PlanGetLogsStorageAttributeType, val PlanGetLogsStorageRetType) { *arg = &val } @@ -324,8 +428,10 @@ func setPlanGetLogsStorageAttributeType(arg *PlanGetLogsStorageAttributeType, va */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetNameAttributeTypeOk(arg PlanGetNameAttributeType) (ret PlanGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -333,11 +439,15 @@ func getPlanGetNameAttributeTypeOk(arg PlanGetNameAttributeType) (ret PlanGetNam return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetNameAttributeType(arg *PlanGetNameAttributeType, val PlanGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetNameRetType = string /* @@ -345,8 +455,10 @@ type PlanGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetPlanIdAttributeTypeOk(arg PlanGetPlanIdAttributeType) (ret PlanGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -354,11 +466,15 @@ func getPlanGetPlanIdAttributeTypeOk(arg PlanGetPlanIdAttributeType) (ret PlanGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetPlanIdAttributeType(arg *PlanGetPlanIdAttributeType, val PlanGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetPlanIdRetType = string /* @@ -366,10 +482,16 @@ type PlanGetPlanIdRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSamplesPerScrapeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSamplesPerScrapeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSamplesPerScrapeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetSamplesPerScrapeAttributeTypeOk(arg PlanGetSamplesPerScrapeAttributeType) (ret PlanGetSamplesPerScrapeRetType, ok bool) { if arg == nil { return ret, false @@ -377,6 +499,7 @@ func getPlanGetSamplesPerScrapeAttributeTypeOk(arg PlanGetSamplesPerScrapeAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetSamplesPerScrapeAttributeType(arg *PlanGetSamplesPerScrapeAttributeType, val PlanGetSamplesPerScrapeRetType) { *arg = &val } @@ -386,8 +509,10 @@ func setPlanGetSamplesPerScrapeAttributeType(arg *PlanGetSamplesPerScrapeAttribu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSchemaAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetSchemaAttributeTypeOk(arg PlanGetSchemaAttributeType) (ret PlanGetSchemaRetType, ok bool) { if arg == nil { return ret, false @@ -395,11 +520,15 @@ func getPlanGetSchemaAttributeTypeOk(arg PlanGetSchemaAttributeType) (ret PlanGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetSchemaAttributeType(arg *PlanGetSchemaAttributeType, val PlanGetSchemaRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSchemaArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSchemaRetType = string /* @@ -407,10 +536,16 @@ type PlanGetSchemaRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTargetNumberAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTargetNumberArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTargetNumberRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetTargetNumberAttributeTypeOk(arg PlanGetTargetNumberAttributeType) (ret PlanGetTargetNumberRetType, ok bool) { if arg == nil { return ret, false @@ -418,6 +553,7 @@ func getPlanGetTargetNumberAttributeTypeOk(arg PlanGetTargetNumberAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetTargetNumberAttributeType(arg *PlanGetTargetNumberAttributeType, val PlanGetTargetNumberRetType) { *arg = &val } @@ -427,10 +563,16 @@ func setPlanGetTargetNumberAttributeType(arg *PlanGetTargetNumberAttributeType, */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTotalMetricSamplesAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTotalMetricSamplesArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTotalMetricSamplesRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetTotalMetricSamplesAttributeTypeOk(arg PlanGetTotalMetricSamplesAttributeType) (ret PlanGetTotalMetricSamplesRetType, ok bool) { if arg == nil { return ret, false @@ -438,6 +580,7 @@ func getPlanGetTotalMetricSamplesAttributeTypeOk(arg PlanGetTotalMetricSamplesAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetTotalMetricSamplesAttributeType(arg *PlanGetTotalMetricSamplesAttributeType, val PlanGetTotalMetricSamplesRetType) { *arg = &val } @@ -447,10 +590,16 @@ func setPlanGetTotalMetricSamplesAttributeType(arg *PlanGetTotalMetricSamplesAtt */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTracesStorageAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTracesStorageArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetTracesStorageRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetTracesStorageAttributeTypeOk(arg PlanGetTracesStorageAttributeType) (ret PlanGetTracesStorageRetType, ok bool) { if arg == nil { return ret, false @@ -458,11 +607,13 @@ func getPlanGetTracesStorageAttributeTypeOk(arg PlanGetTracesStorageAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetTracesStorageAttributeType(arg *PlanGetTracesStorageAttributeType, val PlanGetTracesStorageRetType) { *arg = &val } // Plan struct for Plan +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Plan struct { // REQUIRED AlertMatchers PlanGetAlertMatchersAttributeType `json:"alertMatchers" required:"true"` @@ -504,12 +655,14 @@ type Plan struct { TracesStorage PlanGetTracesStorageAttributeType `json:"tracesStorage" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Plan Plan // NewPlan instantiates a new Plan object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlan(alertMatchers PlanGetAlertMatchersArgType, alertReceivers PlanGetAlertReceiversArgType, alertRules PlanGetAlertRulesArgType, bucketSize PlanGetBucketSizeArgType, grafanaGlobalDashboards PlanGetGrafanaGlobalDashboardsArgType, grafanaGlobalOrgs PlanGetGrafanaGlobalOrgsArgType, grafanaGlobalSessions PlanGetGrafanaGlobalSessionsArgType, grafanaGlobalUsers PlanGetGrafanaGlobalUsersArgType, id PlanGetIdArgType, logsAlert PlanGetLogsAlertArgType, logsStorage PlanGetLogsStorageArgType, planId PlanGetPlanIdArgType, samplesPerScrape PlanGetSamplesPerScrapeArgType, targetNumber PlanGetTargetNumberArgType, totalMetricSamples PlanGetTotalMetricSamplesArgType, tracesStorage PlanGetTracesStorageArgType) *Plan { this := Plan{} setPlanGetAlertMatchersAttributeType(&this.AlertMatchers, alertMatchers) @@ -534,6 +687,7 @@ func NewPlan(alertMatchers PlanGetAlertMatchersArgType, alertReceivers PlanGetAl // NewPlanWithDefaults instantiates a new Plan object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlanWithDefaults() *Plan { this := Plan{} var isFree bool = false @@ -546,6 +700,7 @@ func NewPlanWithDefaults() *Plan { } // GetAlertMatchers returns the AlertMatchers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAlertMatchers() (ret PlanGetAlertMatchersRetType) { ret, _ = o.GetAlertMatchersOk() return ret @@ -553,16 +708,19 @@ func (o *Plan) GetAlertMatchers() (ret PlanGetAlertMatchersRetType) { // GetAlertMatchersOk returns a tuple with the AlertMatchers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAlertMatchersOk() (ret PlanGetAlertMatchersRetType, ok bool) { return getPlanGetAlertMatchersAttributeTypeOk(o.AlertMatchers) } // SetAlertMatchers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetAlertMatchers(v PlanGetAlertMatchersRetType) { setPlanGetAlertMatchersAttributeType(&o.AlertMatchers, v) } // GetAlertReceivers returns the AlertReceivers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAlertReceivers() (ret PlanGetAlertReceiversRetType) { ret, _ = o.GetAlertReceiversOk() return ret @@ -570,16 +728,19 @@ func (o *Plan) GetAlertReceivers() (ret PlanGetAlertReceiversRetType) { // GetAlertReceiversOk returns a tuple with the AlertReceivers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAlertReceiversOk() (ret PlanGetAlertReceiversRetType, ok bool) { return getPlanGetAlertReceiversAttributeTypeOk(o.AlertReceivers) } // SetAlertReceivers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetAlertReceivers(v PlanGetAlertReceiversRetType) { setPlanGetAlertReceiversAttributeType(&o.AlertReceivers, v) } // GetAlertRules returns the AlertRules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAlertRules() (ret PlanGetAlertRulesRetType) { ret, _ = o.GetAlertRulesOk() return ret @@ -587,16 +748,19 @@ func (o *Plan) GetAlertRules() (ret PlanGetAlertRulesRetType) { // GetAlertRulesOk returns a tuple with the AlertRules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAlertRulesOk() (ret PlanGetAlertRulesRetType, ok bool) { return getPlanGetAlertRulesAttributeTypeOk(o.AlertRules) } // SetAlertRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetAlertRules(v PlanGetAlertRulesRetType) { setPlanGetAlertRulesAttributeType(&o.AlertRules, v) } // GetAmount returns the Amount field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAmount() (res PlanGetAmountRetType) { res, _ = o.GetAmountOk() return @@ -604,22 +768,26 @@ func (o *Plan) GetAmount() (res PlanGetAmountRetType) { // GetAmountOk returns a tuple with the Amount field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetAmountOk() (ret PlanGetAmountRetType, ok bool) { return getPlanGetAmountAttributeTypeOk(o.Amount) } // HasAmount returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) HasAmount() bool { _, ok := o.GetAmountOk() return ok } // SetAmount gets a reference to the given float64 and assigns it to the Amount field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetAmount(v PlanGetAmountRetType) { setPlanGetAmountAttributeType(&o.Amount, v) } // GetBucketSize returns the BucketSize field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetBucketSize() (ret PlanGetBucketSizeRetType) { ret, _ = o.GetBucketSizeOk() return ret @@ -627,16 +795,19 @@ func (o *Plan) GetBucketSize() (ret PlanGetBucketSizeRetType) { // GetBucketSizeOk returns a tuple with the BucketSize field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetBucketSizeOk() (ret PlanGetBucketSizeRetType, ok bool) { return getPlanGetBucketSizeAttributeTypeOk(o.BucketSize) } // SetBucketSize sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetBucketSize(v PlanGetBucketSizeRetType) { setPlanGetBucketSizeAttributeType(&o.BucketSize, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetDescription() (res PlanGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -644,22 +815,26 @@ func (o *Plan) GetDescription() (res PlanGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetDescriptionOk() (ret PlanGetDescriptionRetType, ok bool) { return getPlanGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetDescription(v PlanGetDescriptionRetType) { setPlanGetDescriptionAttributeType(&o.Description, v) } // GetGrafanaGlobalDashboards returns the GrafanaGlobalDashboards field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalDashboards() (ret PlanGetGrafanaGlobalDashboardsRetType) { ret, _ = o.GetGrafanaGlobalDashboardsOk() return ret @@ -667,16 +842,19 @@ func (o *Plan) GetGrafanaGlobalDashboards() (ret PlanGetGrafanaGlobalDashboardsR // GetGrafanaGlobalDashboardsOk returns a tuple with the GrafanaGlobalDashboards field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalDashboardsOk() (ret PlanGetGrafanaGlobalDashboardsRetType, ok bool) { return getPlanGetGrafanaGlobalDashboardsAttributeTypeOk(o.GrafanaGlobalDashboards) } // SetGrafanaGlobalDashboards sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetGrafanaGlobalDashboards(v PlanGetGrafanaGlobalDashboardsRetType) { setPlanGetGrafanaGlobalDashboardsAttributeType(&o.GrafanaGlobalDashboards, v) } // GetGrafanaGlobalOrgs returns the GrafanaGlobalOrgs field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalOrgs() (ret PlanGetGrafanaGlobalOrgsRetType) { ret, _ = o.GetGrafanaGlobalOrgsOk() return ret @@ -684,16 +862,19 @@ func (o *Plan) GetGrafanaGlobalOrgs() (ret PlanGetGrafanaGlobalOrgsRetType) { // GetGrafanaGlobalOrgsOk returns a tuple with the GrafanaGlobalOrgs field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalOrgsOk() (ret PlanGetGrafanaGlobalOrgsRetType, ok bool) { return getPlanGetGrafanaGlobalOrgsAttributeTypeOk(o.GrafanaGlobalOrgs) } // SetGrafanaGlobalOrgs sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetGrafanaGlobalOrgs(v PlanGetGrafanaGlobalOrgsRetType) { setPlanGetGrafanaGlobalOrgsAttributeType(&o.GrafanaGlobalOrgs, v) } // GetGrafanaGlobalSessions returns the GrafanaGlobalSessions field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalSessions() (ret PlanGetGrafanaGlobalSessionsRetType) { ret, _ = o.GetGrafanaGlobalSessionsOk() return ret @@ -701,16 +882,19 @@ func (o *Plan) GetGrafanaGlobalSessions() (ret PlanGetGrafanaGlobalSessionsRetTy // GetGrafanaGlobalSessionsOk returns a tuple with the GrafanaGlobalSessions field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalSessionsOk() (ret PlanGetGrafanaGlobalSessionsRetType, ok bool) { return getPlanGetGrafanaGlobalSessionsAttributeTypeOk(o.GrafanaGlobalSessions) } // SetGrafanaGlobalSessions sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetGrafanaGlobalSessions(v PlanGetGrafanaGlobalSessionsRetType) { setPlanGetGrafanaGlobalSessionsAttributeType(&o.GrafanaGlobalSessions, v) } // GetGrafanaGlobalUsers returns the GrafanaGlobalUsers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalUsers() (ret PlanGetGrafanaGlobalUsersRetType) { ret, _ = o.GetGrafanaGlobalUsersOk() return ret @@ -718,16 +902,19 @@ func (o *Plan) GetGrafanaGlobalUsers() (ret PlanGetGrafanaGlobalUsersRetType) { // GetGrafanaGlobalUsersOk returns a tuple with the GrafanaGlobalUsers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetGrafanaGlobalUsersOk() (ret PlanGetGrafanaGlobalUsersRetType, ok bool) { return getPlanGetGrafanaGlobalUsersAttributeTypeOk(o.GrafanaGlobalUsers) } // SetGrafanaGlobalUsers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetGrafanaGlobalUsers(v PlanGetGrafanaGlobalUsersRetType) { setPlanGetGrafanaGlobalUsersAttributeType(&o.GrafanaGlobalUsers, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetId() (ret PlanGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -735,16 +922,19 @@ func (o *Plan) GetId() (ret PlanGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetIdOk() (ret PlanGetIdRetType, ok bool) { return getPlanGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetId(v PlanGetIdRetType) { setPlanGetIdAttributeType(&o.Id, v) } // GetIsFree returns the IsFree field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetIsFree() (res PlangetIsFreeRetType) { res, _ = o.GetIsFreeOk() return @@ -752,22 +942,26 @@ func (o *Plan) GetIsFree() (res PlangetIsFreeRetType) { // GetIsFreeOk returns a tuple with the IsFree field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetIsFreeOk() (ret PlangetIsFreeRetType, ok bool) { return getPlangetIsFreeAttributeTypeOk(o.IsFree) } // HasIsFree returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) HasIsFree() bool { _, ok := o.GetIsFreeOk() return ok } // SetIsFree gets a reference to the given bool and assigns it to the IsFree field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetIsFree(v PlangetIsFreeRetType) { setPlangetIsFreeAttributeType(&o.IsFree, v) } // GetIsPublic returns the IsPublic field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetIsPublic() (res PlangetIsPublicRetType) { res, _ = o.GetIsPublicOk() return @@ -775,22 +969,26 @@ func (o *Plan) GetIsPublic() (res PlangetIsPublicRetType) { // GetIsPublicOk returns a tuple with the IsPublic field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetIsPublicOk() (ret PlangetIsPublicRetType, ok bool) { return getPlangetIsPublicAttributeTypeOk(o.IsPublic) } // HasIsPublic returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) HasIsPublic() bool { _, ok := o.GetIsPublicOk() return ok } // SetIsPublic gets a reference to the given bool and assigns it to the IsPublic field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetIsPublic(v PlangetIsPublicRetType) { setPlangetIsPublicAttributeType(&o.IsPublic, v) } // GetLogsAlert returns the LogsAlert field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetLogsAlert() (ret PlanGetLogsAlertRetType) { ret, _ = o.GetLogsAlertOk() return ret @@ -798,16 +996,19 @@ func (o *Plan) GetLogsAlert() (ret PlanGetLogsAlertRetType) { // GetLogsAlertOk returns a tuple with the LogsAlert field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetLogsAlertOk() (ret PlanGetLogsAlertRetType, ok bool) { return getPlanGetLogsAlertAttributeTypeOk(o.LogsAlert) } // SetLogsAlert sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetLogsAlert(v PlanGetLogsAlertRetType) { setPlanGetLogsAlertAttributeType(&o.LogsAlert, v) } // GetLogsStorage returns the LogsStorage field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetLogsStorage() (ret PlanGetLogsStorageRetType) { ret, _ = o.GetLogsStorageOk() return ret @@ -815,16 +1016,19 @@ func (o *Plan) GetLogsStorage() (ret PlanGetLogsStorageRetType) { // GetLogsStorageOk returns a tuple with the LogsStorage field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetLogsStorageOk() (ret PlanGetLogsStorageRetType, ok bool) { return getPlanGetLogsStorageAttributeTypeOk(o.LogsStorage) } // SetLogsStorage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetLogsStorage(v PlanGetLogsStorageRetType) { setPlanGetLogsStorageAttributeType(&o.LogsStorage, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetName() (res PlanGetNameRetType) { res, _ = o.GetNameOk() return @@ -832,22 +1036,26 @@ func (o *Plan) GetName() (res PlanGetNameRetType) { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetNameOk() (ret PlanGetNameRetType, ok bool) { return getPlanGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetName(v PlanGetNameRetType) { setPlanGetNameAttributeType(&o.Name, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetPlanId() (ret PlanGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -855,16 +1063,19 @@ func (o *Plan) GetPlanId() (ret PlanGetPlanIdRetType) { // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetPlanIdOk() (ret PlanGetPlanIdRetType, ok bool) { return getPlanGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetPlanId(v PlanGetPlanIdRetType) { setPlanGetPlanIdAttributeType(&o.PlanId, v) } // GetSamplesPerScrape returns the SamplesPerScrape field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetSamplesPerScrape() (ret PlanGetSamplesPerScrapeRetType) { ret, _ = o.GetSamplesPerScrapeOk() return ret @@ -872,16 +1083,19 @@ func (o *Plan) GetSamplesPerScrape() (ret PlanGetSamplesPerScrapeRetType) { // GetSamplesPerScrapeOk returns a tuple with the SamplesPerScrape field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetSamplesPerScrapeOk() (ret PlanGetSamplesPerScrapeRetType, ok bool) { return getPlanGetSamplesPerScrapeAttributeTypeOk(o.SamplesPerScrape) } // SetSamplesPerScrape sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetSamplesPerScrape(v PlanGetSamplesPerScrapeRetType) { setPlanGetSamplesPerScrapeAttributeType(&o.SamplesPerScrape, v) } // GetSchema returns the Schema field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetSchema() (res PlanGetSchemaRetType) { res, _ = o.GetSchemaOk() return @@ -889,22 +1103,26 @@ func (o *Plan) GetSchema() (res PlanGetSchemaRetType) { // GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetSchemaOk() (ret PlanGetSchemaRetType, ok bool) { return getPlanGetSchemaAttributeTypeOk(o.Schema) } // HasSchema returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) HasSchema() bool { _, ok := o.GetSchemaOk() return ok } // SetSchema gets a reference to the given string and assigns it to the Schema field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetSchema(v PlanGetSchemaRetType) { setPlanGetSchemaAttributeType(&o.Schema, v) } // GetTargetNumber returns the TargetNumber field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetTargetNumber() (ret PlanGetTargetNumberRetType) { ret, _ = o.GetTargetNumberOk() return ret @@ -912,16 +1130,19 @@ func (o *Plan) GetTargetNumber() (ret PlanGetTargetNumberRetType) { // GetTargetNumberOk returns a tuple with the TargetNumber field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetTargetNumberOk() (ret PlanGetTargetNumberRetType, ok bool) { return getPlanGetTargetNumberAttributeTypeOk(o.TargetNumber) } // SetTargetNumber sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetTargetNumber(v PlanGetTargetNumberRetType) { setPlanGetTargetNumberAttributeType(&o.TargetNumber, v) } // GetTotalMetricSamples returns the TotalMetricSamples field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetTotalMetricSamples() (ret PlanGetTotalMetricSamplesRetType) { ret, _ = o.GetTotalMetricSamplesOk() return ret @@ -929,16 +1150,19 @@ func (o *Plan) GetTotalMetricSamples() (ret PlanGetTotalMetricSamplesRetType) { // GetTotalMetricSamplesOk returns a tuple with the TotalMetricSamples field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetTotalMetricSamplesOk() (ret PlanGetTotalMetricSamplesRetType, ok bool) { return getPlanGetTotalMetricSamplesAttributeTypeOk(o.TotalMetricSamples) } // SetTotalMetricSamples sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetTotalMetricSamples(v PlanGetTotalMetricSamplesRetType) { setPlanGetTotalMetricSamplesAttributeType(&o.TotalMetricSamples, v) } // GetTracesStorage returns the TracesStorage field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetTracesStorage() (ret PlanGetTracesStorageRetType) { ret, _ = o.GetTracesStorageOk() return ret @@ -946,15 +1170,18 @@ func (o *Plan) GetTracesStorage() (ret PlanGetTracesStorageRetType) { // GetTracesStorageOk returns a tuple with the TracesStorage field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetTracesStorageOk() (ret PlanGetTracesStorageRetType, ok bool) { return getPlanGetTracesStorageAttributeTypeOk(o.TracesStorage) } // SetTracesStorage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetTracesStorage(v PlanGetTracesStorageRetType) { setPlanGetTracesStorageAttributeType(&o.TracesStorage, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Plan) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPlanGetAlertMatchersAttributeTypeOk(o.AlertMatchers); ok { @@ -1026,37 +1253,45 @@ func (o Plan) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePlan struct { value *Plan isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlan) Get() *Plan { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlan) Set(val *Plan) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlan) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlan) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePlan(val *Plan) *NullablePlan { return &NullablePlan{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlan) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_plan_model.go b/services/observability/model_plan_model.go index 1e87c9ac0..6042566d8 100644 --- a/services/observability/model_plan_model.go +++ b/services/observability/model_plan_model.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &PlanModel{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertMatchersAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertMatchersArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertMatchersRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetAlertMatchersAttributeTypeOk(arg PlanModelGetAlertMatchersAttributeType) (ret PlanModelGetAlertMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getPlanModelGetAlertMatchersAttributeTypeOk(arg PlanModelGetAlertMatchersAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetAlertMatchersAttributeType(arg *PlanModelGetAlertMatchersAttributeType, val PlanModelGetAlertMatchersRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setPlanModelGetAlertMatchersAttributeType(arg *PlanModelGetAlertMatchersAtt */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertReceiversAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertReceiversArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertReceiversRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetAlertReceiversAttributeTypeOk(arg PlanModelGetAlertReceiversAttributeType) (ret PlanModelGetAlertReceiversRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getPlanModelGetAlertReceiversAttributeTypeOk(arg PlanModelGetAlertReceivers return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetAlertReceiversAttributeType(arg *PlanModelGetAlertReceiversAttributeType, val PlanModelGetAlertReceiversRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setPlanModelGetAlertReceiversAttributeType(arg *PlanModelGetAlertReceiversA */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertRulesAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertRulesArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAlertRulesRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetAlertRulesAttributeTypeOk(arg PlanModelGetAlertRulesAttributeType) (ret PlanModelGetAlertRulesRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getPlanModelGetAlertRulesAttributeTypeOk(arg PlanModelGetAlertRulesAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetAlertRulesAttributeType(arg *PlanModelGetAlertRulesAttributeType, val PlanModelGetAlertRulesRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setPlanModelGetAlertRulesAttributeType(arg *PlanModelGetAlertRulesAttribute */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAmountAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAmountArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetAmountRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetAmountAttributeTypeOk(arg PlanModelGetAmountAttributeType) (ret PlanModelGetAmountRetType, ok bool) { if arg == nil { return ret, false @@ -93,6 +121,7 @@ func getPlanModelGetAmountAttributeTypeOk(arg PlanModelGetAmountAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetAmountAttributeType(arg *PlanModelGetAmountAttributeType, val PlanModelGetAmountRetType) { *arg = &val } @@ -102,10 +131,16 @@ func setPlanModelGetAmountAttributeType(arg *PlanModelGetAmountAttributeType, va */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetBucketSizeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetBucketSizeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetBucketSizeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetBucketSizeAttributeTypeOk(arg PlanModelGetBucketSizeAttributeType) (ret PlanModelGetBucketSizeRetType, ok bool) { if arg == nil { return ret, false @@ -113,6 +148,7 @@ func getPlanModelGetBucketSizeAttributeTypeOk(arg PlanModelGetBucketSizeAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetBucketSizeAttributeType(arg *PlanModelGetBucketSizeAttributeType, val PlanModelGetBucketSizeRetType) { *arg = &val } @@ -122,8 +158,10 @@ func setPlanModelGetBucketSizeAttributeType(arg *PlanModelGetBucketSizeAttribute */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetDescriptionAttributeTypeOk(arg PlanModelGetDescriptionAttributeType) (ret PlanModelGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -131,11 +169,15 @@ func getPlanModelGetDescriptionAttributeTypeOk(arg PlanModelGetDescriptionAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetDescriptionAttributeType(arg *PlanModelGetDescriptionAttributeType, val PlanModelGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetDescriptionRetType = string /* @@ -143,10 +185,16 @@ type PlanModelGetDescriptionRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalDashboardsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalDashboardsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalDashboardsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetGrafanaGlobalDashboardsAttributeTypeOk(arg PlanModelGetGrafanaGlobalDashboardsAttributeType) (ret PlanModelGetGrafanaGlobalDashboardsRetType, ok bool) { if arg == nil { return ret, false @@ -154,6 +202,7 @@ func getPlanModelGetGrafanaGlobalDashboardsAttributeTypeOk(arg PlanModelGetGrafa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetGrafanaGlobalDashboardsAttributeType(arg *PlanModelGetGrafanaGlobalDashboardsAttributeType, val PlanModelGetGrafanaGlobalDashboardsRetType) { *arg = &val } @@ -163,10 +212,16 @@ func setPlanModelGetGrafanaGlobalDashboardsAttributeType(arg *PlanModelGetGrafan */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalOrgsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalOrgsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalOrgsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetGrafanaGlobalOrgsAttributeTypeOk(arg PlanModelGetGrafanaGlobalOrgsAttributeType) (ret PlanModelGetGrafanaGlobalOrgsRetType, ok bool) { if arg == nil { return ret, false @@ -174,6 +229,7 @@ func getPlanModelGetGrafanaGlobalOrgsAttributeTypeOk(arg PlanModelGetGrafanaGlob return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetGrafanaGlobalOrgsAttributeType(arg *PlanModelGetGrafanaGlobalOrgsAttributeType, val PlanModelGetGrafanaGlobalOrgsRetType) { *arg = &val } @@ -183,10 +239,16 @@ func setPlanModelGetGrafanaGlobalOrgsAttributeType(arg *PlanModelGetGrafanaGloba */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalSessionsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalSessionsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalSessionsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetGrafanaGlobalSessionsAttributeTypeOk(arg PlanModelGetGrafanaGlobalSessionsAttributeType) (ret PlanModelGetGrafanaGlobalSessionsRetType, ok bool) { if arg == nil { return ret, false @@ -194,6 +256,7 @@ func getPlanModelGetGrafanaGlobalSessionsAttributeTypeOk(arg PlanModelGetGrafana return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetGrafanaGlobalSessionsAttributeType(arg *PlanModelGetGrafanaGlobalSessionsAttributeType, val PlanModelGetGrafanaGlobalSessionsRetType) { *arg = &val } @@ -203,10 +266,16 @@ func setPlanModelGetGrafanaGlobalSessionsAttributeType(arg *PlanModelGetGrafanaG */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalUsersAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalUsersArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetGrafanaGlobalUsersRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetGrafanaGlobalUsersAttributeTypeOk(arg PlanModelGetGrafanaGlobalUsersAttributeType) (ret PlanModelGetGrafanaGlobalUsersRetType, ok bool) { if arg == nil { return ret, false @@ -214,6 +283,7 @@ func getPlanModelGetGrafanaGlobalUsersAttributeTypeOk(arg PlanModelGetGrafanaGlo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetGrafanaGlobalUsersAttributeType(arg *PlanModelGetGrafanaGlobalUsersAttributeType, val PlanModelGetGrafanaGlobalUsersRetType) { *arg = &val } @@ -223,8 +293,10 @@ func setPlanModelGetGrafanaGlobalUsersAttributeType(arg *PlanModelGetGrafanaGlob */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetIdAttributeTypeOk(arg PlanModelGetIdAttributeType) (ret PlanModelGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -232,11 +304,15 @@ func getPlanModelGetIdAttributeTypeOk(arg PlanModelGetIdAttributeType) (ret Plan return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetIdAttributeType(arg *PlanModelGetIdAttributeType, val PlanModelGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetIdRetType = string /* @@ -244,10 +320,16 @@ type PlanModelGetIdRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetLogsAlertAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetLogsAlertArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetLogsAlertRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetLogsAlertAttributeTypeOk(arg PlanModelGetLogsAlertAttributeType) (ret PlanModelGetLogsAlertRetType, ok bool) { if arg == nil { return ret, false @@ -255,6 +337,7 @@ func getPlanModelGetLogsAlertAttributeTypeOk(arg PlanModelGetLogsAlertAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetLogsAlertAttributeType(arg *PlanModelGetLogsAlertAttributeType, val PlanModelGetLogsAlertRetType) { *arg = &val } @@ -264,10 +347,16 @@ func setPlanModelGetLogsAlertAttributeType(arg *PlanModelGetLogsAlertAttributeTy */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetLogsStorageAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetLogsStorageArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetLogsStorageRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetLogsStorageAttributeTypeOk(arg PlanModelGetLogsStorageAttributeType) (ret PlanModelGetLogsStorageRetType, ok bool) { if arg == nil { return ret, false @@ -275,6 +364,7 @@ func getPlanModelGetLogsStorageAttributeTypeOk(arg PlanModelGetLogsStorageAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetLogsStorageAttributeType(arg *PlanModelGetLogsStorageAttributeType, val PlanModelGetLogsStorageRetType) { *arg = &val } @@ -284,8 +374,10 @@ func setPlanModelGetLogsStorageAttributeType(arg *PlanModelGetLogsStorageAttribu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetNameAttributeTypeOk(arg PlanModelGetNameAttributeType) (ret PlanModelGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -293,11 +385,15 @@ func getPlanModelGetNameAttributeTypeOk(arg PlanModelGetNameAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetNameAttributeType(arg *PlanModelGetNameAttributeType, val PlanModelGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetNameRetType = string /* @@ -305,8 +401,10 @@ type PlanModelGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetPlanIdAttributeTypeOk(arg PlanModelGetPlanIdAttributeType) (ret PlanModelGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -314,11 +412,15 @@ func getPlanModelGetPlanIdAttributeTypeOk(arg PlanModelGetPlanIdAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetPlanIdAttributeType(arg *PlanModelGetPlanIdAttributeType, val PlanModelGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetPlanIdRetType = string /* @@ -326,10 +428,16 @@ type PlanModelGetPlanIdRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetSamplesPerScrapeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetSamplesPerScrapeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetSamplesPerScrapeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetSamplesPerScrapeAttributeTypeOk(arg PlanModelGetSamplesPerScrapeAttributeType) (ret PlanModelGetSamplesPerScrapeRetType, ok bool) { if arg == nil { return ret, false @@ -337,6 +445,7 @@ func getPlanModelGetSamplesPerScrapeAttributeTypeOk(arg PlanModelGetSamplesPerSc return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetSamplesPerScrapeAttributeType(arg *PlanModelGetSamplesPerScrapeAttributeType, val PlanModelGetSamplesPerScrapeRetType) { *arg = &val } @@ -346,10 +455,16 @@ func setPlanModelGetSamplesPerScrapeAttributeType(arg *PlanModelGetSamplesPerScr */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTargetNumberAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTargetNumberArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTargetNumberRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetTargetNumberAttributeTypeOk(arg PlanModelGetTargetNumberAttributeType) (ret PlanModelGetTargetNumberRetType, ok bool) { if arg == nil { return ret, false @@ -357,6 +472,7 @@ func getPlanModelGetTargetNumberAttributeTypeOk(arg PlanModelGetTargetNumberAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetTargetNumberAttributeType(arg *PlanModelGetTargetNumberAttributeType, val PlanModelGetTargetNumberRetType) { *arg = &val } @@ -366,10 +482,16 @@ func setPlanModelGetTargetNumberAttributeType(arg *PlanModelGetTargetNumberAttri */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTotalMetricSamplesAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTotalMetricSamplesArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTotalMetricSamplesRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetTotalMetricSamplesAttributeTypeOk(arg PlanModelGetTotalMetricSamplesAttributeType) (ret PlanModelGetTotalMetricSamplesRetType, ok bool) { if arg == nil { return ret, false @@ -377,6 +499,7 @@ func getPlanModelGetTotalMetricSamplesAttributeTypeOk(arg PlanModelGetTotalMetri return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetTotalMetricSamplesAttributeType(arg *PlanModelGetTotalMetricSamplesAttributeType, val PlanModelGetTotalMetricSamplesRetType) { *arg = &val } @@ -386,10 +509,16 @@ func setPlanModelGetTotalMetricSamplesAttributeType(arg *PlanModelGetTotalMetric */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTracesStorageAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTracesStorageArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModelGetTracesStorageRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanModelGetTracesStorageAttributeTypeOk(arg PlanModelGetTracesStorageAttributeType) (ret PlanModelGetTracesStorageRetType, ok bool) { if arg == nil { return ret, false @@ -397,11 +526,13 @@ func getPlanModelGetTracesStorageAttributeTypeOk(arg PlanModelGetTracesStorageAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanModelGetTracesStorageAttributeType(arg *PlanModelGetTracesStorageAttributeType, val PlanModelGetTracesStorageRetType) { *arg = &val } // PlanModel struct for PlanModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanModel struct { // REQUIRED AlertMatchers PlanModelGetAlertMatchersAttributeType `json:"alertMatchers" required:"true"` @@ -440,12 +571,14 @@ type PlanModel struct { TracesStorage PlanModelGetTracesStorageAttributeType `json:"tracesStorage" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PlanModel PlanModel // NewPlanModel instantiates a new PlanModel object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlanModel(alertMatchers PlanModelGetAlertMatchersArgType, alertReceivers PlanModelGetAlertReceiversArgType, alertRules PlanModelGetAlertRulesArgType, bucketSize PlanModelGetBucketSizeArgType, grafanaGlobalDashboards PlanModelGetGrafanaGlobalDashboardsArgType, grafanaGlobalOrgs PlanModelGetGrafanaGlobalOrgsArgType, grafanaGlobalSessions PlanModelGetGrafanaGlobalSessionsArgType, grafanaGlobalUsers PlanModelGetGrafanaGlobalUsersArgType, id PlanModelGetIdArgType, logsAlert PlanModelGetLogsAlertArgType, logsStorage PlanModelGetLogsStorageArgType, planId PlanModelGetPlanIdArgType, samplesPerScrape PlanModelGetSamplesPerScrapeArgType, targetNumber PlanModelGetTargetNumberArgType, totalMetricSamples PlanModelGetTotalMetricSamplesArgType, tracesStorage PlanModelGetTracesStorageArgType) *PlanModel { this := PlanModel{} setPlanModelGetAlertMatchersAttributeType(&this.AlertMatchers, alertMatchers) @@ -470,12 +603,14 @@ func NewPlanModel(alertMatchers PlanModelGetAlertMatchersArgType, alertReceivers // NewPlanModelWithDefaults instantiates a new PlanModel object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlanModelWithDefaults() *PlanModel { this := PlanModel{} return &this } // GetAlertMatchers returns the AlertMatchers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAlertMatchers() (ret PlanModelGetAlertMatchersRetType) { ret, _ = o.GetAlertMatchersOk() return ret @@ -483,16 +618,19 @@ func (o *PlanModel) GetAlertMatchers() (ret PlanModelGetAlertMatchersRetType) { // GetAlertMatchersOk returns a tuple with the AlertMatchers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAlertMatchersOk() (ret PlanModelGetAlertMatchersRetType, ok bool) { return getPlanModelGetAlertMatchersAttributeTypeOk(o.AlertMatchers) } // SetAlertMatchers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetAlertMatchers(v PlanModelGetAlertMatchersRetType) { setPlanModelGetAlertMatchersAttributeType(&o.AlertMatchers, v) } // GetAlertReceivers returns the AlertReceivers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAlertReceivers() (ret PlanModelGetAlertReceiversRetType) { ret, _ = o.GetAlertReceiversOk() return ret @@ -500,16 +638,19 @@ func (o *PlanModel) GetAlertReceivers() (ret PlanModelGetAlertReceiversRetType) // GetAlertReceiversOk returns a tuple with the AlertReceivers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAlertReceiversOk() (ret PlanModelGetAlertReceiversRetType, ok bool) { return getPlanModelGetAlertReceiversAttributeTypeOk(o.AlertReceivers) } // SetAlertReceivers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetAlertReceivers(v PlanModelGetAlertReceiversRetType) { setPlanModelGetAlertReceiversAttributeType(&o.AlertReceivers, v) } // GetAlertRules returns the AlertRules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAlertRules() (ret PlanModelGetAlertRulesRetType) { ret, _ = o.GetAlertRulesOk() return ret @@ -517,16 +658,19 @@ func (o *PlanModel) GetAlertRules() (ret PlanModelGetAlertRulesRetType) { // GetAlertRulesOk returns a tuple with the AlertRules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAlertRulesOk() (ret PlanModelGetAlertRulesRetType, ok bool) { return getPlanModelGetAlertRulesAttributeTypeOk(o.AlertRules) } // SetAlertRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetAlertRules(v PlanModelGetAlertRulesRetType) { setPlanModelGetAlertRulesAttributeType(&o.AlertRules, v) } // GetAmount returns the Amount field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAmount() (res PlanModelGetAmountRetType) { res, _ = o.GetAmountOk() return @@ -534,22 +678,26 @@ func (o *PlanModel) GetAmount() (res PlanModelGetAmountRetType) { // GetAmountOk returns a tuple with the Amount field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetAmountOk() (ret PlanModelGetAmountRetType, ok bool) { return getPlanModelGetAmountAttributeTypeOk(o.Amount) } // HasAmount returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) HasAmount() bool { _, ok := o.GetAmountOk() return ok } // SetAmount gets a reference to the given float64 and assigns it to the Amount field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetAmount(v PlanModelGetAmountRetType) { setPlanModelGetAmountAttributeType(&o.Amount, v) } // GetBucketSize returns the BucketSize field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetBucketSize() (ret PlanModelGetBucketSizeRetType) { ret, _ = o.GetBucketSizeOk() return ret @@ -557,16 +705,19 @@ func (o *PlanModel) GetBucketSize() (ret PlanModelGetBucketSizeRetType) { // GetBucketSizeOk returns a tuple with the BucketSize field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetBucketSizeOk() (ret PlanModelGetBucketSizeRetType, ok bool) { return getPlanModelGetBucketSizeAttributeTypeOk(o.BucketSize) } // SetBucketSize sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetBucketSize(v PlanModelGetBucketSizeRetType) { setPlanModelGetBucketSizeAttributeType(&o.BucketSize, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetDescription() (res PlanModelGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -574,22 +725,26 @@ func (o *PlanModel) GetDescription() (res PlanModelGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetDescriptionOk() (ret PlanModelGetDescriptionRetType, ok bool) { return getPlanModelGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetDescription(v PlanModelGetDescriptionRetType) { setPlanModelGetDescriptionAttributeType(&o.Description, v) } // GetGrafanaGlobalDashboards returns the GrafanaGlobalDashboards field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalDashboards() (ret PlanModelGetGrafanaGlobalDashboardsRetType) { ret, _ = o.GetGrafanaGlobalDashboardsOk() return ret @@ -597,16 +752,19 @@ func (o *PlanModel) GetGrafanaGlobalDashboards() (ret PlanModelGetGrafanaGlobalD // GetGrafanaGlobalDashboardsOk returns a tuple with the GrafanaGlobalDashboards field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalDashboardsOk() (ret PlanModelGetGrafanaGlobalDashboardsRetType, ok bool) { return getPlanModelGetGrafanaGlobalDashboardsAttributeTypeOk(o.GrafanaGlobalDashboards) } // SetGrafanaGlobalDashboards sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetGrafanaGlobalDashboards(v PlanModelGetGrafanaGlobalDashboardsRetType) { setPlanModelGetGrafanaGlobalDashboardsAttributeType(&o.GrafanaGlobalDashboards, v) } // GetGrafanaGlobalOrgs returns the GrafanaGlobalOrgs field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalOrgs() (ret PlanModelGetGrafanaGlobalOrgsRetType) { ret, _ = o.GetGrafanaGlobalOrgsOk() return ret @@ -614,16 +772,19 @@ func (o *PlanModel) GetGrafanaGlobalOrgs() (ret PlanModelGetGrafanaGlobalOrgsRet // GetGrafanaGlobalOrgsOk returns a tuple with the GrafanaGlobalOrgs field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalOrgsOk() (ret PlanModelGetGrafanaGlobalOrgsRetType, ok bool) { return getPlanModelGetGrafanaGlobalOrgsAttributeTypeOk(o.GrafanaGlobalOrgs) } // SetGrafanaGlobalOrgs sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetGrafanaGlobalOrgs(v PlanModelGetGrafanaGlobalOrgsRetType) { setPlanModelGetGrafanaGlobalOrgsAttributeType(&o.GrafanaGlobalOrgs, v) } // GetGrafanaGlobalSessions returns the GrafanaGlobalSessions field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalSessions() (ret PlanModelGetGrafanaGlobalSessionsRetType) { ret, _ = o.GetGrafanaGlobalSessionsOk() return ret @@ -631,16 +792,19 @@ func (o *PlanModel) GetGrafanaGlobalSessions() (ret PlanModelGetGrafanaGlobalSes // GetGrafanaGlobalSessionsOk returns a tuple with the GrafanaGlobalSessions field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalSessionsOk() (ret PlanModelGetGrafanaGlobalSessionsRetType, ok bool) { return getPlanModelGetGrafanaGlobalSessionsAttributeTypeOk(o.GrafanaGlobalSessions) } // SetGrafanaGlobalSessions sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetGrafanaGlobalSessions(v PlanModelGetGrafanaGlobalSessionsRetType) { setPlanModelGetGrafanaGlobalSessionsAttributeType(&o.GrafanaGlobalSessions, v) } // GetGrafanaGlobalUsers returns the GrafanaGlobalUsers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalUsers() (ret PlanModelGetGrafanaGlobalUsersRetType) { ret, _ = o.GetGrafanaGlobalUsersOk() return ret @@ -648,16 +812,19 @@ func (o *PlanModel) GetGrafanaGlobalUsers() (ret PlanModelGetGrafanaGlobalUsersR // GetGrafanaGlobalUsersOk returns a tuple with the GrafanaGlobalUsers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetGrafanaGlobalUsersOk() (ret PlanModelGetGrafanaGlobalUsersRetType, ok bool) { return getPlanModelGetGrafanaGlobalUsersAttributeTypeOk(o.GrafanaGlobalUsers) } // SetGrafanaGlobalUsers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetGrafanaGlobalUsers(v PlanModelGetGrafanaGlobalUsersRetType) { setPlanModelGetGrafanaGlobalUsersAttributeType(&o.GrafanaGlobalUsers, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetId() (ret PlanModelGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -665,16 +832,19 @@ func (o *PlanModel) GetId() (ret PlanModelGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetIdOk() (ret PlanModelGetIdRetType, ok bool) { return getPlanModelGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetId(v PlanModelGetIdRetType) { setPlanModelGetIdAttributeType(&o.Id, v) } // GetLogsAlert returns the LogsAlert field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetLogsAlert() (ret PlanModelGetLogsAlertRetType) { ret, _ = o.GetLogsAlertOk() return ret @@ -682,16 +852,19 @@ func (o *PlanModel) GetLogsAlert() (ret PlanModelGetLogsAlertRetType) { // GetLogsAlertOk returns a tuple with the LogsAlert field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetLogsAlertOk() (ret PlanModelGetLogsAlertRetType, ok bool) { return getPlanModelGetLogsAlertAttributeTypeOk(o.LogsAlert) } // SetLogsAlert sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetLogsAlert(v PlanModelGetLogsAlertRetType) { setPlanModelGetLogsAlertAttributeType(&o.LogsAlert, v) } // GetLogsStorage returns the LogsStorage field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetLogsStorage() (ret PlanModelGetLogsStorageRetType) { ret, _ = o.GetLogsStorageOk() return ret @@ -699,16 +872,19 @@ func (o *PlanModel) GetLogsStorage() (ret PlanModelGetLogsStorageRetType) { // GetLogsStorageOk returns a tuple with the LogsStorage field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetLogsStorageOk() (ret PlanModelGetLogsStorageRetType, ok bool) { return getPlanModelGetLogsStorageAttributeTypeOk(o.LogsStorage) } // SetLogsStorage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetLogsStorage(v PlanModelGetLogsStorageRetType) { setPlanModelGetLogsStorageAttributeType(&o.LogsStorage, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetName() (res PlanModelGetNameRetType) { res, _ = o.GetNameOk() return @@ -716,22 +892,26 @@ func (o *PlanModel) GetName() (res PlanModelGetNameRetType) { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetNameOk() (ret PlanModelGetNameRetType, ok bool) { return getPlanModelGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetName(v PlanModelGetNameRetType) { setPlanModelGetNameAttributeType(&o.Name, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetPlanId() (ret PlanModelGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -739,16 +919,19 @@ func (o *PlanModel) GetPlanId() (ret PlanModelGetPlanIdRetType) { // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetPlanIdOk() (ret PlanModelGetPlanIdRetType, ok bool) { return getPlanModelGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetPlanId(v PlanModelGetPlanIdRetType) { setPlanModelGetPlanIdAttributeType(&o.PlanId, v) } // GetSamplesPerScrape returns the SamplesPerScrape field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetSamplesPerScrape() (ret PlanModelGetSamplesPerScrapeRetType) { ret, _ = o.GetSamplesPerScrapeOk() return ret @@ -756,16 +939,19 @@ func (o *PlanModel) GetSamplesPerScrape() (ret PlanModelGetSamplesPerScrapeRetTy // GetSamplesPerScrapeOk returns a tuple with the SamplesPerScrape field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetSamplesPerScrapeOk() (ret PlanModelGetSamplesPerScrapeRetType, ok bool) { return getPlanModelGetSamplesPerScrapeAttributeTypeOk(o.SamplesPerScrape) } // SetSamplesPerScrape sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetSamplesPerScrape(v PlanModelGetSamplesPerScrapeRetType) { setPlanModelGetSamplesPerScrapeAttributeType(&o.SamplesPerScrape, v) } // GetTargetNumber returns the TargetNumber field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetTargetNumber() (ret PlanModelGetTargetNumberRetType) { ret, _ = o.GetTargetNumberOk() return ret @@ -773,16 +959,19 @@ func (o *PlanModel) GetTargetNumber() (ret PlanModelGetTargetNumberRetType) { // GetTargetNumberOk returns a tuple with the TargetNumber field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetTargetNumberOk() (ret PlanModelGetTargetNumberRetType, ok bool) { return getPlanModelGetTargetNumberAttributeTypeOk(o.TargetNumber) } // SetTargetNumber sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetTargetNumber(v PlanModelGetTargetNumberRetType) { setPlanModelGetTargetNumberAttributeType(&o.TargetNumber, v) } // GetTotalMetricSamples returns the TotalMetricSamples field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetTotalMetricSamples() (ret PlanModelGetTotalMetricSamplesRetType) { ret, _ = o.GetTotalMetricSamplesOk() return ret @@ -790,16 +979,19 @@ func (o *PlanModel) GetTotalMetricSamples() (ret PlanModelGetTotalMetricSamplesR // GetTotalMetricSamplesOk returns a tuple with the TotalMetricSamples field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetTotalMetricSamplesOk() (ret PlanModelGetTotalMetricSamplesRetType, ok bool) { return getPlanModelGetTotalMetricSamplesAttributeTypeOk(o.TotalMetricSamples) } // SetTotalMetricSamples sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetTotalMetricSamples(v PlanModelGetTotalMetricSamplesRetType) { setPlanModelGetTotalMetricSamplesAttributeType(&o.TotalMetricSamples, v) } // GetTracesStorage returns the TracesStorage field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetTracesStorage() (ret PlanModelGetTracesStorageRetType) { ret, _ = o.GetTracesStorageOk() return ret @@ -807,15 +999,18 @@ func (o *PlanModel) GetTracesStorage() (ret PlanModelGetTracesStorageRetType) { // GetTracesStorageOk returns a tuple with the TracesStorage field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) GetTracesStorageOk() (ret PlanModelGetTracesStorageRetType, ok bool) { return getPlanModelGetTracesStorageAttributeTypeOk(o.TracesStorage) } // SetTracesStorage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlanModel) SetTracesStorage(v PlanModelGetTracesStorageRetType) { setPlanModelGetTracesStorageAttributeType(&o.TracesStorage, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PlanModel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPlanModelGetAlertMatchersAttributeTypeOk(o.AlertMatchers); ok { @@ -878,37 +1073,45 @@ func (o PlanModel) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePlanModel struct { value *PlanModel isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlanModel) Get() *PlanModel { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlanModel) Set(val *PlanModel) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlanModel) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlanModel) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePlanModel(val *PlanModel) *NullablePlanModel { return &NullablePlanModel{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlanModel) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlanModel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_plans_response.go b/services/observability/model_plans_response.go index 7e9ddb4f5..c4d7dc8ca 100644 --- a/services/observability/model_plans_response.go +++ b/services/observability/model_plans_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PlansResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlansResponseGetMessageAttributeTypeOk(arg PlansResponseGetMessageAttributeType) (ret PlansResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPlansResponseGetMessageAttributeTypeOk(arg PlansResponseGetMessageAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlansResponseGetMessageAttributeType(arg *PlansResponseGetMessageAttributeType, val PlansResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type PlansResponseGetMessageRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponseGetPlansAttributeType = *[]Plan + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponseGetPlansArgType = []Plan + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponseGetPlansRetType = []Plan +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlansResponseGetPlansAttributeTypeOk(arg PlansResponseGetPlansAttributeType) (ret PlansResponseGetPlansRetType, ok bool) { if arg == nil { return ret, false @@ -54,11 +67,13 @@ func getPlansResponseGetPlansAttributeTypeOk(arg PlansResponseGetPlansAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlansResponseGetPlansAttributeType(arg *PlansResponseGetPlansAttributeType, val PlansResponseGetPlansRetType) { *arg = &val } // PlansResponse struct for PlansResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlansResponse struct { // REQUIRED Message PlansResponseGetMessageAttributeType `json:"message" required:"true"` @@ -66,12 +81,14 @@ type PlansResponse struct { Plans PlansResponseGetPlansAttributeType `json:"plans" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PlansResponse PlansResponse // NewPlansResponse instantiates a new PlansResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlansResponse(message PlansResponseGetMessageArgType, plans PlansResponseGetPlansArgType) *PlansResponse { this := PlansResponse{} setPlansResponseGetMessageAttributeType(&this.Message, message) @@ -82,12 +99,14 @@ func NewPlansResponse(message PlansResponseGetMessageArgType, plans PlansRespons // NewPlansResponseWithDefaults instantiates a new PlansResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlansResponseWithDefaults() *PlansResponse { this := PlansResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlansResponse) GetMessage() (ret PlansResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -95,16 +114,19 @@ func (o *PlansResponse) GetMessage() (ret PlansResponseGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlansResponse) GetMessageOk() (ret PlansResponseGetMessageRetType, ok bool) { return getPlansResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlansResponse) SetMessage(v PlansResponseGetMessageRetType) { setPlansResponseGetMessageAttributeType(&o.Message, v) } // GetPlans returns the Plans field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlansResponse) GetPlans() (ret PlansResponseGetPlansRetType) { ret, _ = o.GetPlansOk() return ret @@ -112,15 +134,18 @@ func (o *PlansResponse) GetPlans() (ret PlansResponseGetPlansRetType) { // GetPlansOk returns a tuple with the Plans field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlansResponse) GetPlansOk() (ret PlansResponseGetPlansRetType, ok bool) { return getPlansResponseGetPlansAttributeTypeOk(o.Plans) } // SetPlans sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PlansResponse) SetPlans(v PlansResponseGetPlansRetType) { setPlansResponseGetPlansAttributeType(&o.Plans, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PlansResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPlansResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -132,37 +157,45 @@ func (o PlansResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePlansResponse struct { value *PlansResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlansResponse) Get() *PlansResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlansResponse) Set(val *PlansResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlansResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlansResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePlansResponse(val *PlansResponse) *NullablePlansResponse { return &NullablePlansResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlansResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlansResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_postgresql_check_child_response.go b/services/observability/model_postgresql_check_child_response.go index 2f0bb577a..cbccddff8 100644 --- a/services/observability/model_postgresql_check_child_response.go +++ b/services/observability/model_postgresql_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PostgresqlCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponseGetAddressAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPostgresqlCheckChildResponseGetAddressAttributeTypeOk(arg PostgresqlCheckChildResponseGetAddressAttributeType) (ret PostgresqlCheckChildResponseGetAddressRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPostgresqlCheckChildResponseGetAddressAttributeTypeOk(arg PostgresqlChec return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPostgresqlCheckChildResponseGetAddressAttributeType(arg *PostgresqlCheckChildResponseGetAddressAttributeType, val PostgresqlCheckChildResponseGetAddressRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponseGetAddressArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponseGetAddressRetType = string /* @@ -43,8 +50,10 @@ type PostgresqlCheckChildResponseGetAddressRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPostgresqlCheckChildResponseGetIdAttributeTypeOk(arg PostgresqlCheckChildResponseGetIdAttributeType) (ret PostgresqlCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getPostgresqlCheckChildResponseGetIdAttributeTypeOk(arg PostgresqlCheckChil return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPostgresqlCheckChildResponseGetIdAttributeType(arg *PostgresqlCheckChildResponseGetIdAttributeType, val PostgresqlCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponseGetIdRetType = string // PostgresqlCheckChildResponse struct for PostgresqlCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckChildResponse struct { // REQUIRED Address PostgresqlCheckChildResponseGetAddressAttributeType `json:"address" required:"true"` @@ -67,12 +81,14 @@ type PostgresqlCheckChildResponse struct { Id PostgresqlCheckChildResponseGetIdAttributeType `json:"id" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PostgresqlCheckChildResponse PostgresqlCheckChildResponse // NewPostgresqlCheckChildResponse instantiates a new PostgresqlCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPostgresqlCheckChildResponse(address PostgresqlCheckChildResponseGetAddressArgType, id PostgresqlCheckChildResponseGetIdArgType) *PostgresqlCheckChildResponse { this := PostgresqlCheckChildResponse{} setPostgresqlCheckChildResponseGetAddressAttributeType(&this.Address, address) @@ -83,12 +99,14 @@ func NewPostgresqlCheckChildResponse(address PostgresqlCheckChildResponseGetAddr // NewPostgresqlCheckChildResponseWithDefaults instantiates a new PostgresqlCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPostgresqlCheckChildResponseWithDefaults() *PostgresqlCheckChildResponse { this := PostgresqlCheckChildResponse{} return &this } // GetAddress returns the Address field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckChildResponse) GetAddress() (ret PostgresqlCheckChildResponseGetAddressRetType) { ret, _ = o.GetAddressOk() return ret @@ -96,16 +114,19 @@ func (o *PostgresqlCheckChildResponse) GetAddress() (ret PostgresqlCheckChildRes // GetAddressOk returns a tuple with the Address field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckChildResponse) GetAddressOk() (ret PostgresqlCheckChildResponseGetAddressRetType, ok bool) { return getPostgresqlCheckChildResponseGetAddressAttributeTypeOk(o.Address) } // SetAddress sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckChildResponse) SetAddress(v PostgresqlCheckChildResponseGetAddressRetType) { setPostgresqlCheckChildResponseGetAddressAttributeType(&o.Address, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckChildResponse) GetId() (ret PostgresqlCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -113,15 +134,18 @@ func (o *PostgresqlCheckChildResponse) GetId() (ret PostgresqlCheckChildResponse // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckChildResponse) GetIdOk() (ret PostgresqlCheckChildResponseGetIdRetType, ok bool) { return getPostgresqlCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckChildResponse) SetId(v PostgresqlCheckChildResponseGetIdRetType) { setPostgresqlCheckChildResponseGetIdAttributeType(&o.Id, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PostgresqlCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPostgresqlCheckChildResponseGetAddressAttributeTypeOk(o.Address); ok { @@ -133,37 +157,45 @@ func (o PostgresqlCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePostgresqlCheckChildResponse struct { value *PostgresqlCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePostgresqlCheckChildResponse) Get() *PostgresqlCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePostgresqlCheckChildResponse) Set(val *PostgresqlCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePostgresqlCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePostgresqlCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePostgresqlCheckChildResponse(val *PostgresqlCheckChildResponse) *NullablePostgresqlCheckChildResponse { return &NullablePostgresqlCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePostgresqlCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePostgresqlCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_postgresql_check_response.go b/services/observability/model_postgresql_check_response.go index 91e5475a4..39c02a84b 100644 --- a/services/observability/model_postgresql_check_response.go +++ b/services/observability/model_postgresql_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PostgresqlCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPostgresqlCheckResponseGetMessageAttributeTypeOk(arg PostgresqlCheckResponseGetMessageAttributeType) (ret PostgresqlCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPostgresqlCheckResponseGetMessageAttributeTypeOk(arg PostgresqlCheckResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPostgresqlCheckResponseGetMessageAttributeType(arg *PostgresqlCheckResponseGetMessageAttributeType, val PostgresqlCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type PostgresqlCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetPostgresqlCheckAttributeType = *PostgresqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetPostgresqlCheckArgType = PostgresqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetPostgresqlCheckRetType = PostgresqlCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPostgresqlCheckResponseGetPostgresqlCheckAttributeTypeOk(arg PostgresqlCheckResponseGetPostgresqlCheckAttributeType) (ret PostgresqlCheckResponseGetPostgresqlCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getPostgresqlCheckResponseGetPostgresqlCheckAttributeTypeOk(arg PostgresqlC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPostgresqlCheckResponseGetPostgresqlCheckAttributeType(arg *PostgresqlCheckResponseGetPostgresqlCheckAttributeType, val PostgresqlCheckResponseGetPostgresqlCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setPostgresqlCheckResponseGetPostgresqlCheckAttributeType(arg *PostgresqlCh */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetPostgresqlChecksAttributeType = *[]PostgresqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetPostgresqlChecksArgType = []PostgresqlCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponseGetPostgresqlChecksRetType = []PostgresqlCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPostgresqlCheckResponseGetPostgresqlChecksAttributeTypeOk(arg PostgresqlCheckResponseGetPostgresqlChecksAttributeType) (ret PostgresqlCheckResponseGetPostgresqlChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getPostgresqlCheckResponseGetPostgresqlChecksAttributeTypeOk(arg Postgresql return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPostgresqlCheckResponseGetPostgresqlChecksAttributeType(arg *PostgresqlCheckResponseGetPostgresqlChecksAttributeType, val PostgresqlCheckResponseGetPostgresqlChecksRetType) { *arg = &val } // PostgresqlCheckResponse struct for PostgresqlCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PostgresqlCheckResponse struct { // REQUIRED Message PostgresqlCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type PostgresqlCheckResponse struct { PostgresqlChecks PostgresqlCheckResponseGetPostgresqlChecksAttributeType `json:"postgresqlChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _PostgresqlCheckResponse PostgresqlCheckResponse // NewPostgresqlCheckResponse instantiates a new PostgresqlCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPostgresqlCheckResponse(message PostgresqlCheckResponseGetMessageArgType, postgresqlChecks PostgresqlCheckResponseGetPostgresqlChecksArgType) *PostgresqlCheckResponse { this := PostgresqlCheckResponse{} setPostgresqlCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewPostgresqlCheckResponse(message PostgresqlCheckResponseGetMessageArgType // NewPostgresqlCheckResponseWithDefaults instantiates a new PostgresqlCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPostgresqlCheckResponseWithDefaults() *PostgresqlCheckResponse { this := PostgresqlCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) GetMessage() (ret PostgresqlCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *PostgresqlCheckResponse) GetMessage() (ret PostgresqlCheckResponseGetMe // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) GetMessageOk() (ret PostgresqlCheckResponseGetMessageRetType, ok bool) { return getPostgresqlCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) SetMessage(v PostgresqlCheckResponseGetMessageRetType) { setPostgresqlCheckResponseGetMessageAttributeType(&o.Message, v) } // GetPostgresqlCheck returns the PostgresqlCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) GetPostgresqlCheck() (res PostgresqlCheckResponseGetPostgresqlCheckRetType) { res, _ = o.GetPostgresqlCheckOk() return @@ -133,22 +162,26 @@ func (o *PostgresqlCheckResponse) GetPostgresqlCheck() (res PostgresqlCheckRespo // GetPostgresqlCheckOk returns a tuple with the PostgresqlCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) GetPostgresqlCheckOk() (ret PostgresqlCheckResponseGetPostgresqlCheckRetType, ok bool) { return getPostgresqlCheckResponseGetPostgresqlCheckAttributeTypeOk(o.PostgresqlCheck) } // HasPostgresqlCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) HasPostgresqlCheck() bool { _, ok := o.GetPostgresqlCheckOk() return ok } // SetPostgresqlCheck gets a reference to the given PostgresqlCheckChildResponse and assigns it to the PostgresqlCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) SetPostgresqlCheck(v PostgresqlCheckResponseGetPostgresqlCheckRetType) { setPostgresqlCheckResponseGetPostgresqlCheckAttributeType(&o.PostgresqlCheck, v) } // GetPostgresqlChecks returns the PostgresqlChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) GetPostgresqlChecks() (ret PostgresqlCheckResponseGetPostgresqlChecksRetType) { ret, _ = o.GetPostgresqlChecksOk() return ret @@ -156,15 +189,18 @@ func (o *PostgresqlCheckResponse) GetPostgresqlChecks() (ret PostgresqlCheckResp // GetPostgresqlChecksOk returns a tuple with the PostgresqlChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) GetPostgresqlChecksOk() (ret PostgresqlCheckResponseGetPostgresqlChecksRetType, ok bool) { return getPostgresqlCheckResponseGetPostgresqlChecksAttributeTypeOk(o.PostgresqlChecks) } // SetPostgresqlChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PostgresqlCheckResponse) SetPostgresqlChecks(v PostgresqlCheckResponseGetPostgresqlChecksRetType) { setPostgresqlCheckResponseGetPostgresqlChecksAttributeType(&o.PostgresqlChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PostgresqlCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPostgresqlCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o PostgresqlCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePostgresqlCheckResponse struct { value *PostgresqlCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePostgresqlCheckResponse) Get() *PostgresqlCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePostgresqlCheckResponse) Set(val *PostgresqlCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePostgresqlCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePostgresqlCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePostgresqlCheckResponse(val *PostgresqlCheckResponse) *NullablePostgresqlCheckResponse { return &NullablePostgresqlCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePostgresqlCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePostgresqlCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_project_instance_full.go b/services/observability/model_project_instance_full.go index dd286b814..8cca042ff 100644 --- a/services/observability/model_project_instance_full.go +++ b/services/observability/model_project_instance_full.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,8 +24,10 @@ var _ MappedNullable = &ProjectInstanceFull{} */ // isNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetErrorAttributeType = *NullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetErrorAttributeTypeOk(arg ProjectInstanceFullGetErrorAttributeType) (ret ProjectInstanceFullGetErrorRetType, ok bool) { if arg == nil { return nil, false @@ -32,6 +35,7 @@ func getProjectInstanceFullGetErrorAttributeTypeOk(arg ProjectInstanceFullGetErr return arg.Get(), true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetErrorAttributeType(arg *ProjectInstanceFullGetErrorAttributeType, val ProjectInstanceFullGetErrorRetType) { if IsNil(*arg) { *arg = NewNullableString(val) @@ -40,7 +44,10 @@ func setProjectInstanceFullGetErrorAttributeType(arg *ProjectInstanceFullGetErro } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetErrorArgType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetErrorRetType = *string /* @@ -48,8 +55,10 @@ type ProjectInstanceFullGetErrorRetType = *string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetIdAttributeTypeOk(arg ProjectInstanceFullGetIdAttributeType) (ret ProjectInstanceFullGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -57,11 +66,15 @@ func getProjectInstanceFullGetIdAttributeTypeOk(arg ProjectInstanceFullGetIdAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetIdAttributeType(arg *ProjectInstanceFullGetIdAttributeType, val ProjectInstanceFullGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetIdRetType = string /* @@ -69,8 +82,10 @@ type ProjectInstanceFullGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetInstanceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetInstanceAttributeTypeOk(arg ProjectInstanceFullGetInstanceAttributeType) (ret ProjectInstanceFullGetInstanceRetType, ok bool) { if arg == nil { return ret, false @@ -78,11 +93,15 @@ func getProjectInstanceFullGetInstanceAttributeTypeOk(arg ProjectInstanceFullGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetInstanceAttributeType(arg *ProjectInstanceFullGetInstanceAttributeType, val ProjectInstanceFullGetInstanceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetInstanceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetInstanceRetType = string /* @@ -90,8 +109,10 @@ type ProjectInstanceFullGetInstanceRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetNameAttributeTypeOk(arg ProjectInstanceFullGetNameAttributeType) (ret ProjectInstanceFullGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -99,11 +120,15 @@ func getProjectInstanceFullGetNameAttributeTypeOk(arg ProjectInstanceFullGetName return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetNameAttributeType(arg *ProjectInstanceFullGetNameAttributeType, val ProjectInstanceFullGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetNameRetType = string /* @@ -111,8 +136,10 @@ type ProjectInstanceFullGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetPlanNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetPlanNameAttributeTypeOk(arg ProjectInstanceFullGetPlanNameAttributeType) (ret ProjectInstanceFullGetPlanNameRetType, ok bool) { if arg == nil { return ret, false @@ -120,11 +147,15 @@ func getProjectInstanceFullGetPlanNameAttributeTypeOk(arg ProjectInstanceFullGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetPlanNameAttributeType(arg *ProjectInstanceFullGetPlanNameAttributeType, val ProjectInstanceFullGetPlanNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetPlanNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetPlanNameRetType = string /* @@ -132,8 +163,10 @@ type ProjectInstanceFullGetPlanNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetServiceNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetServiceNameAttributeTypeOk(arg ProjectInstanceFullGetServiceNameAttributeType) (ret ProjectInstanceFullGetServiceNameRetType, ok bool) { if arg == nil { return ret, false @@ -141,11 +174,15 @@ func getProjectInstanceFullGetServiceNameAttributeTypeOk(arg ProjectInstanceFull return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetServiceNameAttributeType(arg *ProjectInstanceFullGetServiceNameAttributeType, val ProjectInstanceFullGetServiceNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetServiceNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetServiceNameRetType = string /* @@ -156,22 +193,33 @@ type ProjectInstanceFullGetServiceNameRetType = string // ProjectInstanceFullStatus the model 'ProjectInstanceFull' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullStatus string // List of Status const ( - PROJECTINSTANCEFULLSTATUS_CREATING ProjectInstanceFullStatus = "CREATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PROJECTINSTANCEFULLSTATUS_CREATING ProjectInstanceFullStatus = "CREATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PROJECTINSTANCEFULLSTATUS_CREATE_SUCCEEDED ProjectInstanceFullStatus = "CREATE_SUCCEEDED" - PROJECTINSTANCEFULLSTATUS_CREATE_FAILED ProjectInstanceFullStatus = "CREATE_FAILED" - PROJECTINSTANCEFULLSTATUS_DELETING ProjectInstanceFullStatus = "DELETING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PROJECTINSTANCEFULLSTATUS_CREATE_FAILED ProjectInstanceFullStatus = "CREATE_FAILED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PROJECTINSTANCEFULLSTATUS_DELETING ProjectInstanceFullStatus = "DELETING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PROJECTINSTANCEFULLSTATUS_DELETE_SUCCEEDED ProjectInstanceFullStatus = "DELETE_SUCCEEDED" - PROJECTINSTANCEFULLSTATUS_DELETE_FAILED ProjectInstanceFullStatus = "DELETE_FAILED" - PROJECTINSTANCEFULLSTATUS_UPDATING ProjectInstanceFullStatus = "UPDATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PROJECTINSTANCEFULLSTATUS_DELETE_FAILED ProjectInstanceFullStatus = "DELETE_FAILED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PROJECTINSTANCEFULLSTATUS_UPDATING ProjectInstanceFullStatus = "UPDATING" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PROJECTINSTANCEFULLSTATUS_UPDATE_SUCCEEDED ProjectInstanceFullStatus = "UPDATE_SUCCEEDED" - PROJECTINSTANCEFULLSTATUS_UPDATE_FAILED ProjectInstanceFullStatus = "UPDATE_FAILED" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PROJECTINSTANCEFULLSTATUS_UPDATE_FAILED ProjectInstanceFullStatus = "UPDATE_FAILED" ) // All allowed values of ProjectInstanceFull enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedProjectInstanceFullStatusEnumValues = []ProjectInstanceFullStatus{ "CREATING", "CREATE_SUCCEEDED", @@ -184,6 +232,7 @@ var AllowedProjectInstanceFullStatusEnumValues = []ProjectInstanceFullStatus{ "UPDATE_FAILED", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *ProjectInstanceFullStatus) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -211,6 +260,7 @@ func (v *ProjectInstanceFullStatus) UnmarshalJSON(src []byte) error { // NewProjectInstanceFullStatusFromValue returns a pointer to a valid ProjectInstanceFullStatus // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewProjectInstanceFullStatusFromValue(v ProjectInstanceFullStatus) (*ProjectInstanceFullStatus, error) { ev := ProjectInstanceFullStatus(v) if ev.IsValid() { @@ -221,6 +271,7 @@ func NewProjectInstanceFullStatusFromValue(v ProjectInstanceFullStatus) (*Projec } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ProjectInstanceFullStatus) IsValid() bool { for _, existing := range AllowedProjectInstanceFullStatusEnumValues { if existing == v { @@ -231,50 +282,65 @@ func (v ProjectInstanceFullStatus) IsValid() bool { } // Ptr returns reference to StatusStatus value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ProjectInstanceFullStatus) Ptr() *ProjectInstanceFullStatus { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableProjectInstanceFullStatus struct { value *ProjectInstanceFullStatus isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableProjectInstanceFullStatus) Get() *ProjectInstanceFullStatus { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableProjectInstanceFullStatus) Set(val *ProjectInstanceFullStatus) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableProjectInstanceFullStatus) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableProjectInstanceFullStatus) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableProjectInstanceFullStatus(val *ProjectInstanceFullStatus) *NullableProjectInstanceFullStatus { return &NullableProjectInstanceFullStatus{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableProjectInstanceFullStatus) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableProjectInstanceFullStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetStatusAttributeType = *ProjectInstanceFullStatus + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetStatusArgType = ProjectInstanceFullStatus + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFullGetStatusRetType = ProjectInstanceFullStatus +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getProjectInstanceFullGetStatusAttributeTypeOk(arg ProjectInstanceFullGetStatusAttributeType) (ret ProjectInstanceFullGetStatusRetType, ok bool) { if arg == nil { return ret, false @@ -282,11 +348,13 @@ func getProjectInstanceFullGetStatusAttributeTypeOk(arg ProjectInstanceFullGetSt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setProjectInstanceFullGetStatusAttributeType(arg *ProjectInstanceFullGetStatusAttributeType, val ProjectInstanceFullGetStatusRetType) { *arg = &val } // ProjectInstanceFull struct for ProjectInstanceFull +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ProjectInstanceFull struct { Error ProjectInstanceFullGetErrorAttributeType `json:"error,omitempty"` // REQUIRED @@ -302,12 +370,14 @@ type ProjectInstanceFull struct { Status ProjectInstanceFullGetStatusAttributeType `json:"status" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ProjectInstanceFull ProjectInstanceFull // NewProjectInstanceFull instantiates a new ProjectInstanceFull object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewProjectInstanceFull(id ProjectInstanceFullGetIdArgType, instance ProjectInstanceFullGetInstanceArgType, planName ProjectInstanceFullGetPlanNameArgType, serviceName ProjectInstanceFullGetServiceNameArgType, status ProjectInstanceFullGetStatusArgType) *ProjectInstanceFull { this := ProjectInstanceFull{} setProjectInstanceFullGetIdAttributeType(&this.Id, id) @@ -321,12 +391,14 @@ func NewProjectInstanceFull(id ProjectInstanceFullGetIdArgType, instance Project // NewProjectInstanceFullWithDefaults instantiates a new ProjectInstanceFull object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewProjectInstanceFullWithDefaults() *ProjectInstanceFull { this := ProjectInstanceFull{} return &this } // GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetError() (res ProjectInstanceFullGetErrorRetType) { res, _ = o.GetErrorOk() return @@ -335,32 +407,38 @@ func (o *ProjectInstanceFull) GetError() (res ProjectInstanceFullGetErrorRetType // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetErrorOk() (ret ProjectInstanceFullGetErrorRetType, ok bool) { return getProjectInstanceFullGetErrorAttributeTypeOk(o.Error) } // HasError returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) HasError() bool { _, ok := o.GetErrorOk() return ok } // SetError gets a reference to the given string and assigns it to the Error field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetError(v ProjectInstanceFullGetErrorRetType) { setProjectInstanceFullGetErrorAttributeType(&o.Error, v) } // SetErrorNil sets the value for Error to be an explicit nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetErrorNil() { o.Error = nil } // UnsetError ensures that no value is present for Error, not even an explicit nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) UnsetError() { o.Error = nil } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetId() (ret ProjectInstanceFullGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -368,16 +446,19 @@ func (o *ProjectInstanceFull) GetId() (ret ProjectInstanceFullGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetIdOk() (ret ProjectInstanceFullGetIdRetType, ok bool) { return getProjectInstanceFullGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetId(v ProjectInstanceFullGetIdRetType) { setProjectInstanceFullGetIdAttributeType(&o.Id, v) } // GetInstance returns the Instance field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetInstance() (ret ProjectInstanceFullGetInstanceRetType) { ret, _ = o.GetInstanceOk() return ret @@ -385,16 +466,19 @@ func (o *ProjectInstanceFull) GetInstance() (ret ProjectInstanceFullGetInstanceR // GetInstanceOk returns a tuple with the Instance field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetInstanceOk() (ret ProjectInstanceFullGetInstanceRetType, ok bool) { return getProjectInstanceFullGetInstanceAttributeTypeOk(o.Instance) } // SetInstance sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetInstance(v ProjectInstanceFullGetInstanceRetType) { setProjectInstanceFullGetInstanceAttributeType(&o.Instance, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetName() (res ProjectInstanceFullGetNameRetType) { res, _ = o.GetNameOk() return @@ -402,22 +486,26 @@ func (o *ProjectInstanceFull) GetName() (res ProjectInstanceFullGetNameRetType) // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetNameOk() (ret ProjectInstanceFullGetNameRetType, ok bool) { return getProjectInstanceFullGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetName(v ProjectInstanceFullGetNameRetType) { setProjectInstanceFullGetNameAttributeType(&o.Name, v) } // GetPlanName returns the PlanName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetPlanName() (ret ProjectInstanceFullGetPlanNameRetType) { ret, _ = o.GetPlanNameOk() return ret @@ -425,16 +513,19 @@ func (o *ProjectInstanceFull) GetPlanName() (ret ProjectInstanceFullGetPlanNameR // GetPlanNameOk returns a tuple with the PlanName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetPlanNameOk() (ret ProjectInstanceFullGetPlanNameRetType, ok bool) { return getProjectInstanceFullGetPlanNameAttributeTypeOk(o.PlanName) } // SetPlanName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetPlanName(v ProjectInstanceFullGetPlanNameRetType) { setProjectInstanceFullGetPlanNameAttributeType(&o.PlanName, v) } // GetServiceName returns the ServiceName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetServiceName() (ret ProjectInstanceFullGetServiceNameRetType) { ret, _ = o.GetServiceNameOk() return ret @@ -442,16 +533,19 @@ func (o *ProjectInstanceFull) GetServiceName() (ret ProjectInstanceFullGetServic // GetServiceNameOk returns a tuple with the ServiceName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetServiceNameOk() (ret ProjectInstanceFullGetServiceNameRetType, ok bool) { return getProjectInstanceFullGetServiceNameAttributeTypeOk(o.ServiceName) } // SetServiceName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetServiceName(v ProjectInstanceFullGetServiceNameRetType) { setProjectInstanceFullGetServiceNameAttributeType(&o.ServiceName, v) } // GetStatus returns the Status field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetStatus() (ret ProjectInstanceFullGetStatusRetType) { ret, _ = o.GetStatusOk() return ret @@ -459,15 +553,18 @@ func (o *ProjectInstanceFull) GetStatus() (ret ProjectInstanceFullGetStatusRetTy // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) GetStatusOk() (ret ProjectInstanceFullGetStatusRetType, ok bool) { return getProjectInstanceFullGetStatusAttributeTypeOk(o.Status) } // SetStatus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ProjectInstanceFull) SetStatus(v ProjectInstanceFullGetStatusRetType) { setProjectInstanceFullGetStatusAttributeType(&o.Status, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ProjectInstanceFull) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getProjectInstanceFullGetErrorAttributeTypeOk(o.Error); ok { @@ -494,37 +591,45 @@ func (o ProjectInstanceFull) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableProjectInstanceFull struct { value *ProjectInstanceFull isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableProjectInstanceFull) Get() *ProjectInstanceFull { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableProjectInstanceFull) Set(val *ProjectInstanceFull) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableProjectInstanceFull) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableProjectInstanceFull) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableProjectInstanceFull(val *ProjectInstanceFull) *NullableProjectInstanceFull { return &NullableProjectInstanceFull{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableProjectInstanceFull) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableProjectInstanceFull) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_rabbit_mq_check_child_response.go b/services/observability/model_rabbit_mq_check_child_response.go index 9a7ae6b95..9e8f5edbf 100644 --- a/services/observability/model_rabbit_mq_check_child_response.go +++ b/services/observability/model_rabbit_mq_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &RabbitMQCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitMQCheckChildResponseGetIdAttributeTypeOk(arg RabbitMQCheckChildResponseGetIdAttributeType) (ret RabbitMQCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getRabbitMQCheckChildResponseGetIdAttributeTypeOk(arg RabbitMQCheckChildRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitMQCheckChildResponseGetIdAttributeType(arg *RabbitMQCheckChildResponseGetIdAttributeType, val RabbitMQCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type RabbitMQCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitMQCheckChildResponseGetPasswordAttributeTypeOk(arg RabbitMQCheckChildResponseGetPasswordAttributeType) (ret RabbitMQCheckChildResponseGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getRabbitMQCheckChildResponseGetPasswordAttributeTypeOk(arg RabbitMQCheckCh return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitMQCheckChildResponseGetPasswordAttributeType(arg *RabbitMQCheckChildResponseGetPasswordAttributeType, val RabbitMQCheckChildResponseGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetPasswordRetType = string /* @@ -64,8 +77,10 @@ type RabbitMQCheckChildResponseGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitMQCheckChildResponseGetUrlAttributeTypeOk(arg RabbitMQCheckChildResponseGetUrlAttributeType) (ret RabbitMQCheckChildResponseGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getRabbitMQCheckChildResponseGetUrlAttributeTypeOk(arg RabbitMQCheckChildRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitMQCheckChildResponseGetUrlAttributeType(arg *RabbitMQCheckChildResponseGetUrlAttributeType, val RabbitMQCheckChildResponseGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetUrlRetType = string /* @@ -85,8 +104,10 @@ type RabbitMQCheckChildResponseGetUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitMQCheckChildResponseGetUsernameAttributeTypeOk(arg RabbitMQCheckChildResponseGetUsernameAttributeType) (ret RabbitMQCheckChildResponseGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -94,14 +115,19 @@ func getRabbitMQCheckChildResponseGetUsernameAttributeTypeOk(arg RabbitMQCheckCh return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitMQCheckChildResponseGetUsernameAttributeType(arg *RabbitMQCheckChildResponseGetUsernameAttributeType, val RabbitMQCheckChildResponseGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponseGetUsernameRetType = string // RabbitMQCheckChildResponse struct for RabbitMQCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitMQCheckChildResponse struct { // REQUIRED Id RabbitMQCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -111,12 +137,14 @@ type RabbitMQCheckChildResponse struct { Username RabbitMQCheckChildResponseGetUsernameAttributeType `json:"username,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _RabbitMQCheckChildResponse RabbitMQCheckChildResponse // NewRabbitMQCheckChildResponse instantiates a new RabbitMQCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRabbitMQCheckChildResponse(id RabbitMQCheckChildResponseGetIdArgType, url RabbitMQCheckChildResponseGetUrlArgType) *RabbitMQCheckChildResponse { this := RabbitMQCheckChildResponse{} setRabbitMQCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -127,12 +155,14 @@ func NewRabbitMQCheckChildResponse(id RabbitMQCheckChildResponseGetIdArgType, ur // NewRabbitMQCheckChildResponseWithDefaults instantiates a new RabbitMQCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRabbitMQCheckChildResponseWithDefaults() *RabbitMQCheckChildResponse { this := RabbitMQCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetId() (ret RabbitMQCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -140,16 +170,19 @@ func (o *RabbitMQCheckChildResponse) GetId() (ret RabbitMQCheckChildResponseGetI // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetIdOk() (ret RabbitMQCheckChildResponseGetIdRetType, ok bool) { return getRabbitMQCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) SetId(v RabbitMQCheckChildResponseGetIdRetType) { setRabbitMQCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetPassword() (res RabbitMQCheckChildResponseGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -157,22 +190,26 @@ func (o *RabbitMQCheckChildResponse) GetPassword() (res RabbitMQCheckChildRespon // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetPasswordOk() (ret RabbitMQCheckChildResponseGetPasswordRetType, ok bool) { return getRabbitMQCheckChildResponseGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) SetPassword(v RabbitMQCheckChildResponseGetPasswordRetType) { setRabbitMQCheckChildResponseGetPasswordAttributeType(&o.Password, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetUrl() (ret RabbitMQCheckChildResponseGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -180,16 +217,19 @@ func (o *RabbitMQCheckChildResponse) GetUrl() (ret RabbitMQCheckChildResponseGet // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetUrlOk() (ret RabbitMQCheckChildResponseGetUrlRetType, ok bool) { return getRabbitMQCheckChildResponseGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) SetUrl(v RabbitMQCheckChildResponseGetUrlRetType) { setRabbitMQCheckChildResponseGetUrlAttributeType(&o.Url, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetUsername() (res RabbitMQCheckChildResponseGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -197,21 +237,25 @@ func (o *RabbitMQCheckChildResponse) GetUsername() (res RabbitMQCheckChildRespon // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) GetUsernameOk() (ret RabbitMQCheckChildResponseGetUsernameRetType, ok bool) { return getRabbitMQCheckChildResponseGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitMQCheckChildResponse) SetUsername(v RabbitMQCheckChildResponseGetUsernameRetType) { setRabbitMQCheckChildResponseGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o RabbitMQCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRabbitMQCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -229,37 +273,45 @@ func (o RabbitMQCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRabbitMQCheckChildResponse struct { value *RabbitMQCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRabbitMQCheckChildResponse) Get() *RabbitMQCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRabbitMQCheckChildResponse) Set(val *RabbitMQCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRabbitMQCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRabbitMQCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRabbitMQCheckChildResponse(val *RabbitMQCheckChildResponse) *NullableRabbitMQCheckChildResponse { return &NullableRabbitMQCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRabbitMQCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRabbitMQCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_rabbitmq_check_response.go b/services/observability/model_rabbitmq_check_response.go index 186885927..4adc09f22 100644 --- a/services/observability/model_rabbitmq_check_response.go +++ b/services/observability/model_rabbitmq_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &RabbitmqCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitmqCheckResponseGetMessageAttributeTypeOk(arg RabbitmqCheckResponseGetMessageAttributeType) (ret RabbitmqCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getRabbitmqCheckResponseGetMessageAttributeTypeOk(arg RabbitmqCheckResponse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitmqCheckResponseGetMessageAttributeType(arg *RabbitmqCheckResponseGetMessageAttributeType, val RabbitmqCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type RabbitmqCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetRabbitmqCheckAttributeType = *RabbitMQCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetRabbitmqCheckArgType = RabbitMQCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetRabbitmqCheckRetType = RabbitMQCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitmqCheckResponseGetRabbitmqCheckAttributeTypeOk(arg RabbitmqCheckResponseGetRabbitmqCheckAttributeType) (ret RabbitmqCheckResponseGetRabbitmqCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getRabbitmqCheckResponseGetRabbitmqCheckAttributeTypeOk(arg RabbitmqCheckRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitmqCheckResponseGetRabbitmqCheckAttributeType(arg *RabbitmqCheckResponseGetRabbitmqCheckAttributeType, val RabbitmqCheckResponseGetRabbitmqCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setRabbitmqCheckResponseGetRabbitmqCheckAttributeType(arg *RabbitmqCheckRes */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetRabbitmqChecksAttributeType = *[]RabbitMQCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetRabbitmqChecksArgType = []RabbitMQCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponseGetRabbitmqChecksRetType = []RabbitMQCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRabbitmqCheckResponseGetRabbitmqChecksAttributeTypeOk(arg RabbitmqCheckResponseGetRabbitmqChecksAttributeType) (ret RabbitmqCheckResponseGetRabbitmqChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getRabbitmqCheckResponseGetRabbitmqChecksAttributeTypeOk(arg RabbitmqCheckR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRabbitmqCheckResponseGetRabbitmqChecksAttributeType(arg *RabbitmqCheckResponseGetRabbitmqChecksAttributeType, val RabbitmqCheckResponseGetRabbitmqChecksRetType) { *arg = &val } // RabbitmqCheckResponse struct for RabbitmqCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RabbitmqCheckResponse struct { // REQUIRED Message RabbitmqCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type RabbitmqCheckResponse struct { RabbitmqChecks RabbitmqCheckResponseGetRabbitmqChecksAttributeType `json:"rabbitmqChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _RabbitmqCheckResponse RabbitmqCheckResponse // NewRabbitmqCheckResponse instantiates a new RabbitmqCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRabbitmqCheckResponse(message RabbitmqCheckResponseGetMessageArgType, rabbitmqChecks RabbitmqCheckResponseGetRabbitmqChecksArgType) *RabbitmqCheckResponse { this := RabbitmqCheckResponse{} setRabbitmqCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewRabbitmqCheckResponse(message RabbitmqCheckResponseGetMessageArgType, ra // NewRabbitmqCheckResponseWithDefaults instantiates a new RabbitmqCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRabbitmqCheckResponseWithDefaults() *RabbitmqCheckResponse { this := RabbitmqCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) GetMessage() (ret RabbitmqCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *RabbitmqCheckResponse) GetMessage() (ret RabbitmqCheckResponseGetMessag // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) GetMessageOk() (ret RabbitmqCheckResponseGetMessageRetType, ok bool) { return getRabbitmqCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) SetMessage(v RabbitmqCheckResponseGetMessageRetType) { setRabbitmqCheckResponseGetMessageAttributeType(&o.Message, v) } // GetRabbitmqCheck returns the RabbitmqCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) GetRabbitmqCheck() (res RabbitmqCheckResponseGetRabbitmqCheckRetType) { res, _ = o.GetRabbitmqCheckOk() return @@ -133,22 +162,26 @@ func (o *RabbitmqCheckResponse) GetRabbitmqCheck() (res RabbitmqCheckResponseGet // GetRabbitmqCheckOk returns a tuple with the RabbitmqCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) GetRabbitmqCheckOk() (ret RabbitmqCheckResponseGetRabbitmqCheckRetType, ok bool) { return getRabbitmqCheckResponseGetRabbitmqCheckAttributeTypeOk(o.RabbitmqCheck) } // HasRabbitmqCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) HasRabbitmqCheck() bool { _, ok := o.GetRabbitmqCheckOk() return ok } // SetRabbitmqCheck gets a reference to the given RabbitMQCheckChildResponse and assigns it to the RabbitmqCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) SetRabbitmqCheck(v RabbitmqCheckResponseGetRabbitmqCheckRetType) { setRabbitmqCheckResponseGetRabbitmqCheckAttributeType(&o.RabbitmqCheck, v) } // GetRabbitmqChecks returns the RabbitmqChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) GetRabbitmqChecks() (ret RabbitmqCheckResponseGetRabbitmqChecksRetType) { ret, _ = o.GetRabbitmqChecksOk() return ret @@ -156,15 +189,18 @@ func (o *RabbitmqCheckResponse) GetRabbitmqChecks() (ret RabbitmqCheckResponseGe // GetRabbitmqChecksOk returns a tuple with the RabbitmqChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) GetRabbitmqChecksOk() (ret RabbitmqCheckResponseGetRabbitmqChecksRetType, ok bool) { return getRabbitmqCheckResponseGetRabbitmqChecksAttributeTypeOk(o.RabbitmqChecks) } // SetRabbitmqChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RabbitmqCheckResponse) SetRabbitmqChecks(v RabbitmqCheckResponseGetRabbitmqChecksRetType) { setRabbitmqCheckResponseGetRabbitmqChecksAttributeType(&o.RabbitmqChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o RabbitmqCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRabbitmqCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o RabbitmqCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRabbitmqCheckResponse struct { value *RabbitmqCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRabbitmqCheckResponse) Get() *RabbitmqCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRabbitmqCheckResponse) Set(val *RabbitmqCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRabbitmqCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRabbitmqCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRabbitmqCheckResponse(val *RabbitmqCheckResponse) *NullableRabbitmqCheckResponse { return &NullableRabbitmqCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRabbitmqCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRabbitmqCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_receiver.go b/services/observability/model_receiver.go index 237c5f32d..0a4c8ea15 100644 --- a/services/observability/model_receiver.go +++ b/services/observability/model_receiver.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Receiver{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiverGetDataAttributeType = *Receivers + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiverGetDataArgType = Receivers + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiverGetDataRetType = Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getReceiverGetDataAttributeTypeOk(arg ReceiverGetDataAttributeType) (ret ReceiverGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getReceiverGetDataAttributeTypeOk(arg ReceiverGetDataAttributeType) (ret Re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setReceiverGetDataAttributeType(arg *ReceiverGetDataAttributeType, val ReceiverGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setReceiverGetDataAttributeType(arg *ReceiverGetDataAttributeType, val Rece */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiverGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getReceiverGetMessageAttributeTypeOk(arg ReceiverGetMessageAttributeType) (ret ReceiverGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getReceiverGetMessageAttributeTypeOk(arg ReceiverGetMessageAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setReceiverGetMessageAttributeType(arg *ReceiverGetMessageAttributeType, val ReceiverGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiverGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiverGetMessageRetType = string // Receiver struct for Receiver +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Receiver struct { // REQUIRED Data ReceiverGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type Receiver struct { Message ReceiverGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Receiver Receiver // NewReceiver instantiates a new Receiver object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewReceiver(data ReceiverGetDataArgType, message ReceiverGetMessageArgType) *Receiver { this := Receiver{} setReceiverGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewReceiver(data ReceiverGetDataArgType, message ReceiverGetMessageArgType) // NewReceiverWithDefaults instantiates a new Receiver object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewReceiverWithDefaults() *Receiver { this := Receiver{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receiver) GetData() (ret ReceiverGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *Receiver) GetData() (ret ReceiverGetDataRetType) { // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receiver) GetDataOk() (ret ReceiverGetDataRetType, ok bool) { return getReceiverGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receiver) SetData(v ReceiverGetDataRetType) { setReceiverGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receiver) GetMessage() (ret ReceiverGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *Receiver) GetMessage() (ret ReceiverGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receiver) GetMessageOk() (ret ReceiverGetMessageRetType, ok bool) { return getReceiverGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receiver) SetMessage(v ReceiverGetMessageRetType) { setReceiverGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Receiver) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getReceiverGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o Receiver) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableReceiver struct { value *Receiver isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableReceiver) Get() *Receiver { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableReceiver) Set(val *Receiver) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableReceiver) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableReceiver) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableReceiver(val *Receiver) *NullableReceiver { return &NullableReceiver{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableReceiver) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableReceiver) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_receivers.go b/services/observability/model_receivers.go index 3422f2b53..24bbf8907 100644 --- a/services/observability/model_receivers.go +++ b/services/observability/model_receivers.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Receivers{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetEmailConfigsAttributeType = *[]EmailConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetEmailConfigsArgType = []EmailConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetEmailConfigsRetType = []EmailConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getReceiversGetEmailConfigsAttributeTypeOk(arg ReceiversGetEmailConfigsAttributeType) (ret ReceiversGetEmailConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getReceiversGetEmailConfigsAttributeTypeOk(arg ReceiversGetEmailConfigsAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setReceiversGetEmailConfigsAttributeType(arg *ReceiversGetEmailConfigsAttributeType, val ReceiversGetEmailConfigsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setReceiversGetEmailConfigsAttributeType(arg *ReceiversGetEmailConfigsAttri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getReceiversGetNameAttributeTypeOk(arg ReceiversGetNameAttributeType) (ret ReceiversGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getReceiversGetNameAttributeTypeOk(arg ReceiversGetNameAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setReceiversGetNameAttributeType(arg *ReceiversGetNameAttributeType, val ReceiversGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetNameRetType = string /* @@ -63,10 +77,16 @@ type ReceiversGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetOpsgenieConfigsAttributeType = *[]OpsgenieConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetOpsgenieConfigsArgType = []OpsgenieConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetOpsgenieConfigsRetType = []OpsgenieConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getReceiversGetOpsgenieConfigsAttributeTypeOk(arg ReceiversGetOpsgenieConfigsAttributeType) (ret ReceiversGetOpsgenieConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getReceiversGetOpsgenieConfigsAttributeTypeOk(arg ReceiversGetOpsgenieConfi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setReceiversGetOpsgenieConfigsAttributeType(arg *ReceiversGetOpsgenieConfigsAttributeType, val ReceiversGetOpsgenieConfigsRetType) { *arg = &val } @@ -83,10 +104,16 @@ func setReceiversGetOpsgenieConfigsAttributeType(arg *ReceiversGetOpsgenieConfig */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetWebHookConfigsAttributeType = *[]WebHook + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetWebHookConfigsArgType = []WebHook + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ReceiversGetWebHookConfigsRetType = []WebHook +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getReceiversGetWebHookConfigsAttributeTypeOk(arg ReceiversGetWebHookConfigsAttributeType) (ret ReceiversGetWebHookConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +121,13 @@ func getReceiversGetWebHookConfigsAttributeTypeOk(arg ReceiversGetWebHookConfigs return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setReceiversGetWebHookConfigsAttributeType(arg *ReceiversGetWebHookConfigsAttributeType, val ReceiversGetWebHookConfigsRetType) { *arg = &val } // Receivers struct for Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Receivers struct { EmailConfigs ReceiversGetEmailConfigsAttributeType `json:"emailConfigs,omitempty"` // REQUIRED @@ -107,12 +136,14 @@ type Receivers struct { WebHookConfigs ReceiversGetWebHookConfigsAttributeType `json:"webHookConfigs,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Receivers Receivers // NewReceivers instantiates a new Receivers object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewReceivers(name ReceiversGetNameArgType) *Receivers { this := Receivers{} setReceiversGetNameAttributeType(&this.Name, name) @@ -122,12 +153,14 @@ func NewReceivers(name ReceiversGetNameArgType) *Receivers { // NewReceiversWithDefaults instantiates a new Receivers object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewReceiversWithDefaults() *Receivers { this := Receivers{} return &this } // GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetEmailConfigs() (res ReceiversGetEmailConfigsRetType) { res, _ = o.GetEmailConfigsOk() return @@ -135,22 +168,26 @@ func (o *Receivers) GetEmailConfigs() (res ReceiversGetEmailConfigsRetType) { // GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetEmailConfigsOk() (ret ReceiversGetEmailConfigsRetType, ok bool) { return getReceiversGetEmailConfigsAttributeTypeOk(o.EmailConfigs) } // HasEmailConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) HasEmailConfigs() bool { _, ok := o.GetEmailConfigsOk() return ok } // SetEmailConfigs gets a reference to the given []EmailConfig and assigns it to the EmailConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) SetEmailConfigs(v ReceiversGetEmailConfigsRetType) { setReceiversGetEmailConfigsAttributeType(&o.EmailConfigs, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetName() (ret ReceiversGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -158,16 +195,19 @@ func (o *Receivers) GetName() (ret ReceiversGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetNameOk() (ret ReceiversGetNameRetType, ok bool) { return getReceiversGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) SetName(v ReceiversGetNameRetType) { setReceiversGetNameAttributeType(&o.Name, v) } // GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetOpsgenieConfigs() (res ReceiversGetOpsgenieConfigsRetType) { res, _ = o.GetOpsgenieConfigsOk() return @@ -175,22 +215,26 @@ func (o *Receivers) GetOpsgenieConfigs() (res ReceiversGetOpsgenieConfigsRetType // GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetOpsgenieConfigsOk() (ret ReceiversGetOpsgenieConfigsRetType, ok bool) { return getReceiversGetOpsgenieConfigsAttributeTypeOk(o.OpsgenieConfigs) } // HasOpsgenieConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) HasOpsgenieConfigs() bool { _, ok := o.GetOpsgenieConfigsOk() return ok } // SetOpsgenieConfigs gets a reference to the given []OpsgenieConfig and assigns it to the OpsgenieConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) SetOpsgenieConfigs(v ReceiversGetOpsgenieConfigsRetType) { setReceiversGetOpsgenieConfigsAttributeType(&o.OpsgenieConfigs, v) } // GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetWebHookConfigs() (res ReceiversGetWebHookConfigsRetType) { res, _ = o.GetWebHookConfigsOk() return @@ -198,21 +242,25 @@ func (o *Receivers) GetWebHookConfigs() (res ReceiversGetWebHookConfigsRetType) // GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) GetWebHookConfigsOk() (ret ReceiversGetWebHookConfigsRetType, ok bool) { return getReceiversGetWebHookConfigsAttributeTypeOk(o.WebHookConfigs) } // HasWebHookConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) HasWebHookConfigs() bool { _, ok := o.GetWebHookConfigsOk() return ok } // SetWebHookConfigs gets a reference to the given []WebHook and assigns it to the WebHookConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Receivers) SetWebHookConfigs(v ReceiversGetWebHookConfigsRetType) { setReceiversGetWebHookConfigsAttributeType(&o.WebHookConfigs, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Receivers) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getReceiversGetEmailConfigsAttributeTypeOk(o.EmailConfigs); ok { @@ -230,37 +278,45 @@ func (o Receivers) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableReceivers struct { value *Receivers isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableReceivers) Get() *Receivers { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableReceivers) Set(val *Receivers) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableReceivers) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableReceivers) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableReceivers(val *Receivers) *NullableReceivers { return &NullableReceivers{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableReceivers) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableReceivers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_redis_check_child_response.go b/services/observability/model_redis_check_child_response.go index 0f6338bac..188a4b63a 100644 --- a/services/observability/model_redis_check_child_response.go +++ b/services/observability/model_redis_check_child_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &RedisCheckChildResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckChildResponseGetIdAttributeTypeOk(arg RedisCheckChildResponseGetIdAttributeType) (ret RedisCheckChildResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getRedisCheckChildResponseGetIdAttributeTypeOk(arg RedisCheckChildResponseG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckChildResponseGetIdAttributeType(arg *RedisCheckChildResponseGetIdAttributeType, val RedisCheckChildResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetIdRetType = string /* @@ -43,8 +50,10 @@ type RedisCheckChildResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckChildResponseGetPasswordAttributeTypeOk(arg RedisCheckChildResponseGetPasswordAttributeType) (ret RedisCheckChildResponseGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getRedisCheckChildResponseGetPasswordAttributeTypeOk(arg RedisCheckChildRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckChildResponseGetPasswordAttributeType(arg *RedisCheckChildResponseGetPasswordAttributeType, val RedisCheckChildResponseGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetPasswordRetType = string /* @@ -64,8 +77,10 @@ type RedisCheckChildResponseGetPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetServerAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckChildResponseGetServerAttributeTypeOk(arg RedisCheckChildResponseGetServerAttributeType) (ret RedisCheckChildResponseGetServerRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getRedisCheckChildResponseGetServerAttributeTypeOk(arg RedisCheckChildRespo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckChildResponseGetServerAttributeType(arg *RedisCheckChildResponseGetServerAttributeType, val RedisCheckChildResponseGetServerRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetServerArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetServerRetType = string /* @@ -85,8 +104,10 @@ type RedisCheckChildResponseGetServerRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckChildResponseGetUsernameAttributeTypeOk(arg RedisCheckChildResponseGetUsernameAttributeType) (ret RedisCheckChildResponseGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -94,14 +115,19 @@ func getRedisCheckChildResponseGetUsernameAttributeTypeOk(arg RedisCheckChildRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckChildResponseGetUsernameAttributeType(arg *RedisCheckChildResponseGetUsernameAttributeType, val RedisCheckChildResponseGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponseGetUsernameRetType = string // RedisCheckChildResponse struct for RedisCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckChildResponse struct { // REQUIRED Id RedisCheckChildResponseGetIdAttributeType `json:"id" required:"true"` @@ -111,12 +137,14 @@ type RedisCheckChildResponse struct { Username RedisCheckChildResponseGetUsernameAttributeType `json:"username,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _RedisCheckChildResponse RedisCheckChildResponse // NewRedisCheckChildResponse instantiates a new RedisCheckChildResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRedisCheckChildResponse(id RedisCheckChildResponseGetIdArgType, server RedisCheckChildResponseGetServerArgType) *RedisCheckChildResponse { this := RedisCheckChildResponse{} setRedisCheckChildResponseGetIdAttributeType(&this.Id, id) @@ -127,12 +155,14 @@ func NewRedisCheckChildResponse(id RedisCheckChildResponseGetIdArgType, server R // NewRedisCheckChildResponseWithDefaults instantiates a new RedisCheckChildResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRedisCheckChildResponseWithDefaults() *RedisCheckChildResponse { this := RedisCheckChildResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetId() (ret RedisCheckChildResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -140,16 +170,19 @@ func (o *RedisCheckChildResponse) GetId() (ret RedisCheckChildResponseGetIdRetTy // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetIdOk() (ret RedisCheckChildResponseGetIdRetType, ok bool) { return getRedisCheckChildResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) SetId(v RedisCheckChildResponseGetIdRetType) { setRedisCheckChildResponseGetIdAttributeType(&o.Id, v) } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetPassword() (res RedisCheckChildResponseGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -157,22 +190,26 @@ func (o *RedisCheckChildResponse) GetPassword() (res RedisCheckChildResponseGetP // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetPasswordOk() (ret RedisCheckChildResponseGetPasswordRetType, ok bool) { return getRedisCheckChildResponseGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) SetPassword(v RedisCheckChildResponseGetPasswordRetType) { setRedisCheckChildResponseGetPasswordAttributeType(&o.Password, v) } // GetServer returns the Server field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetServer() (ret RedisCheckChildResponseGetServerRetType) { ret, _ = o.GetServerOk() return ret @@ -180,16 +217,19 @@ func (o *RedisCheckChildResponse) GetServer() (ret RedisCheckChildResponseGetSer // GetServerOk returns a tuple with the Server field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetServerOk() (ret RedisCheckChildResponseGetServerRetType, ok bool) { return getRedisCheckChildResponseGetServerAttributeTypeOk(o.Server) } // SetServer sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) SetServer(v RedisCheckChildResponseGetServerRetType) { setRedisCheckChildResponseGetServerAttributeType(&o.Server, v) } // GetUsername returns the Username field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetUsername() (res RedisCheckChildResponseGetUsernameRetType) { res, _ = o.GetUsernameOk() return @@ -197,21 +237,25 @@ func (o *RedisCheckChildResponse) GetUsername() (res RedisCheckChildResponseGetU // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) GetUsernameOk() (ret RedisCheckChildResponseGetUsernameRetType, ok bool) { return getRedisCheckChildResponseGetUsernameAttributeTypeOk(o.Username) } // HasUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) HasUsername() bool { _, ok := o.GetUsernameOk() return ok } // SetUsername gets a reference to the given string and assigns it to the Username field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckChildResponse) SetUsername(v RedisCheckChildResponseGetUsernameRetType) { setRedisCheckChildResponseGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o RedisCheckChildResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRedisCheckChildResponseGetIdAttributeTypeOk(o.Id); ok { @@ -229,37 +273,45 @@ func (o RedisCheckChildResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRedisCheckChildResponse struct { value *RedisCheckChildResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRedisCheckChildResponse) Get() *RedisCheckChildResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRedisCheckChildResponse) Set(val *RedisCheckChildResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRedisCheckChildResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRedisCheckChildResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRedisCheckChildResponse(val *RedisCheckChildResponse) *NullableRedisCheckChildResponse { return &NullableRedisCheckChildResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRedisCheckChildResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRedisCheckChildResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_redis_check_response.go b/services/observability/model_redis_check_response.go index 42d2b9ffd..7ede3249c 100644 --- a/services/observability/model_redis_check_response.go +++ b/services/observability/model_redis_check_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &RedisCheckResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckResponseGetMessageAttributeTypeOk(arg RedisCheckResponseGetMessageAttributeType) (ret RedisCheckResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getRedisCheckResponseGetMessageAttributeTypeOk(arg RedisCheckResponseGetMes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckResponseGetMessageAttributeType(arg *RedisCheckResponseGetMessageAttributeType, val RedisCheckResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type RedisCheckResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetRedisCheckAttributeType = *RedisCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetRedisCheckArgType = RedisCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetRedisCheckRetType = RedisCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckResponseGetRedisCheckAttributeTypeOk(arg RedisCheckResponseGetRedisCheckAttributeType) (ret RedisCheckResponseGetRedisCheckRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getRedisCheckResponseGetRedisCheckAttributeTypeOk(arg RedisCheckResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckResponseGetRedisCheckAttributeType(arg *RedisCheckResponseGetRedisCheckAttributeType, val RedisCheckResponseGetRedisCheckRetType) { *arg = &val } @@ -63,10 +77,16 @@ func setRedisCheckResponseGetRedisCheckAttributeType(arg *RedisCheckResponseGetR */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetRedisChecksAttributeType = *[]RedisCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetRedisChecksArgType = []RedisCheckChildResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponseGetRedisChecksRetType = []RedisCheckChildResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRedisCheckResponseGetRedisChecksAttributeTypeOk(arg RedisCheckResponseGetRedisChecksAttributeType) (ret RedisCheckResponseGetRedisChecksRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +94,13 @@ func getRedisCheckResponseGetRedisChecksAttributeTypeOk(arg RedisCheckResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRedisCheckResponseGetRedisChecksAttributeType(arg *RedisCheckResponseGetRedisChecksAttributeType, val RedisCheckResponseGetRedisChecksRetType) { *arg = &val } // RedisCheckResponse struct for RedisCheckResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RedisCheckResponse struct { // REQUIRED Message RedisCheckResponseGetMessageAttributeType `json:"message" required:"true"` @@ -87,12 +109,14 @@ type RedisCheckResponse struct { RedisChecks RedisCheckResponseGetRedisChecksAttributeType `json:"redisChecks" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _RedisCheckResponse RedisCheckResponse // NewRedisCheckResponse instantiates a new RedisCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRedisCheckResponse(message RedisCheckResponseGetMessageArgType, redisChecks RedisCheckResponseGetRedisChecksArgType) *RedisCheckResponse { this := RedisCheckResponse{} setRedisCheckResponseGetMessageAttributeType(&this.Message, message) @@ -103,12 +127,14 @@ func NewRedisCheckResponse(message RedisCheckResponseGetMessageArgType, redisChe // NewRedisCheckResponseWithDefaults instantiates a new RedisCheckResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRedisCheckResponseWithDefaults() *RedisCheckResponse { this := RedisCheckResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) GetMessage() (ret RedisCheckResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -116,16 +142,19 @@ func (o *RedisCheckResponse) GetMessage() (ret RedisCheckResponseGetMessageRetTy // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) GetMessageOk() (ret RedisCheckResponseGetMessageRetType, ok bool) { return getRedisCheckResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) SetMessage(v RedisCheckResponseGetMessageRetType) { setRedisCheckResponseGetMessageAttributeType(&o.Message, v) } // GetRedisCheck returns the RedisCheck field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) GetRedisCheck() (res RedisCheckResponseGetRedisCheckRetType) { res, _ = o.GetRedisCheckOk() return @@ -133,22 +162,26 @@ func (o *RedisCheckResponse) GetRedisCheck() (res RedisCheckResponseGetRedisChec // GetRedisCheckOk returns a tuple with the RedisCheck field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) GetRedisCheckOk() (ret RedisCheckResponseGetRedisCheckRetType, ok bool) { return getRedisCheckResponseGetRedisCheckAttributeTypeOk(o.RedisCheck) } // HasRedisCheck returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) HasRedisCheck() bool { _, ok := o.GetRedisCheckOk() return ok } // SetRedisCheck gets a reference to the given RedisCheckChildResponse and assigns it to the RedisCheck field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) SetRedisCheck(v RedisCheckResponseGetRedisCheckRetType) { setRedisCheckResponseGetRedisCheckAttributeType(&o.RedisCheck, v) } // GetRedisChecks returns the RedisChecks field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) GetRedisChecks() (ret RedisCheckResponseGetRedisChecksRetType) { ret, _ = o.GetRedisChecksOk() return ret @@ -156,15 +189,18 @@ func (o *RedisCheckResponse) GetRedisChecks() (ret RedisCheckResponseGetRedisChe // GetRedisChecksOk returns a tuple with the RedisChecks field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) GetRedisChecksOk() (ret RedisCheckResponseGetRedisChecksRetType, ok bool) { return getRedisCheckResponseGetRedisChecksAttributeTypeOk(o.RedisChecks) } // SetRedisChecks sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RedisCheckResponse) SetRedisChecks(v RedisCheckResponseGetRedisChecksRetType) { setRedisCheckResponseGetRedisChecksAttributeType(&o.RedisChecks, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o RedisCheckResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRedisCheckResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -179,37 +215,45 @@ func (o RedisCheckResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRedisCheckResponse struct { value *RedisCheckResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRedisCheckResponse) Get() *RedisCheckResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRedisCheckResponse) Set(val *RedisCheckResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRedisCheckResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRedisCheckResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRedisCheckResponse(val *RedisCheckResponse) *NullableRedisCheckResponse { return &NullableRedisCheckResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRedisCheckResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRedisCheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_route.go b/services/observability/model_route.go index 55333a73c..08dab76e3 100644 --- a/services/observability/model_route.go +++ b/services/observability/model_route.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Route{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RoutegetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RoutegetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RoutegetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRoutegetContinueAttributeTypeOk(arg RoutegetContinueAttributeType) (ret RoutegetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getRoutegetContinueAttributeTypeOk(arg RoutegetContinueAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRoutegetContinueAttributeType(arg *RoutegetContinueAttributeType, val RoutegetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setRoutegetContinueAttributeType(arg *RoutegetContinueAttributeType, val Ro */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetGroupByAttributeTypeOk(arg RouteGetGroupByAttributeType) (ret RouteGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getRouteGetGroupByAttributeTypeOk(arg RouteGetGroupByAttributeType) (ret Ro return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetGroupByAttributeType(arg *RouteGetGroupByAttributeType, val RouteGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setRouteGetGroupByAttributeType(arg *RouteGetGroupByAttributeType, val Rout */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetGroupIntervalAttributeTypeOk(arg RouteGetGroupIntervalAttributeType) (ret RouteGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getRouteGetGroupIntervalAttributeTypeOk(arg RouteGetGroupIntervalAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetGroupIntervalAttributeType(arg *RouteGetGroupIntervalAttributeType, val RouteGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type RouteGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetGroupWaitAttributeTypeOk(arg RouteGetGroupWaitAttributeType) (ret RouteGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getRouteGetGroupWaitAttributeTypeOk(arg RouteGetGroupWaitAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetGroupWaitAttributeType(arg *RouteGetGroupWaitAttributeType, val RouteGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type RouteGetGroupWaitRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetMatchAttributeTypeOk(arg RouteGetMatchAttributeType) (ret RouteGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getRouteGetMatchAttributeTypeOk(arg RouteGetMatchAttributeType) (ret RouteG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetMatchAttributeType(arg *RouteGetMatchAttributeType, val RouteGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setRouteGetMatchAttributeType(arg *RouteGetMatchAttributeType, val RouteGet */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchReAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchReArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchReRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetMatchReAttributeTypeOk(arg RouteGetMatchReAttributeType) (ret RouteGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getRouteGetMatchReAttributeTypeOk(arg RouteGetMatchReAttributeType) (ret Ro return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetMatchReAttributeType(arg *RouteGetMatchReAttributeType, val RouteGetMatchReRetType) { *arg = &val } @@ -144,10 +185,16 @@ func setRouteGetMatchReAttributeType(arg *RouteGetMatchReAttributeType, val Rout */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetMatchersAttributeTypeOk(arg RouteGetMatchersAttributeType) (ret RouteGetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -155,6 +202,7 @@ func getRouteGetMatchersAttributeTypeOk(arg RouteGetMatchersAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetMatchersAttributeType(arg *RouteGetMatchersAttributeType, val RouteGetMatchersRetType) { *arg = &val } @@ -164,8 +212,10 @@ func setRouteGetMatchersAttributeType(arg *RouteGetMatchersAttributeType, val Ro */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetReceiverAttributeTypeOk(arg RouteGetReceiverAttributeType) (ret RouteGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -173,11 +223,15 @@ func getRouteGetReceiverAttributeTypeOk(arg RouteGetReceiverAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetReceiverAttributeType(arg *RouteGetReceiverAttributeType, val RouteGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetReceiverRetType = string /* @@ -185,8 +239,10 @@ type RouteGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetRepeatIntervalAttributeTypeOk(arg RouteGetRepeatIntervalAttributeType) (ret RouteGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -194,11 +250,15 @@ func getRouteGetRepeatIntervalAttributeTypeOk(arg RouteGetRepeatIntervalAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetRepeatIntervalAttributeType(arg *RouteGetRepeatIntervalAttributeType, val RouteGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetRepeatIntervalRetType = string /* @@ -206,10 +266,16 @@ type RouteGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetRoutesAttributeType = *[]RouteSerializer + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetRoutesArgType = []RouteSerializer + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteGetRoutesRetType = []RouteSerializer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteGetRoutesAttributeTypeOk(arg RouteGetRoutesAttributeType) (ret RouteGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +283,13 @@ func getRouteGetRoutesAttributeTypeOk(arg RouteGetRoutesAttributeType) (ret Rout return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteGetRoutesAttributeType(arg *RouteGetRoutesAttributeType, val RouteGetRoutesRetType) { *arg = &val } // Route struct for Route +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Route struct { Continue RoutegetContinueAttributeType `json:"continue,omitempty"` GroupBy RouteGetGroupByAttributeType `json:"groupBy,omitempty"` @@ -236,12 +304,14 @@ type Route struct { Routes RouteGetRoutesAttributeType `json:"routes,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Route Route // NewRoute instantiates a new Route object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRoute(receiver RouteGetReceiverArgType) *Route { this := Route{} setRouteGetReceiverAttributeType(&this.Receiver, receiver) @@ -251,6 +321,7 @@ func NewRoute(receiver RouteGetReceiverArgType) *Route { // NewRouteWithDefaults instantiates a new Route object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRouteWithDefaults() *Route { this := Route{} var continue_ bool = false @@ -265,6 +336,7 @@ func NewRouteWithDefaults() *Route { } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetContinue() (res RoutegetContinueRetType) { res, _ = o.GetContinueOk() return @@ -272,22 +344,26 @@ func (o *Route) GetContinue() (res RoutegetContinueRetType) { // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetContinueOk() (ret RoutegetContinueRetType, ok bool) { return getRoutegetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetContinue(v RoutegetContinueRetType) { setRoutegetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetGroupBy() (res RouteGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -295,22 +371,26 @@ func (o *Route) GetGroupBy() (res RouteGetGroupByRetType) { // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetGroupByOk() (ret RouteGetGroupByRetType, ok bool) { return getRouteGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetGroupBy(v RouteGetGroupByRetType) { setRouteGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetGroupInterval() (res RouteGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -318,22 +398,26 @@ func (o *Route) GetGroupInterval() (res RouteGetGroupIntervalRetType) { // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetGroupIntervalOk() (ret RouteGetGroupIntervalRetType, ok bool) { return getRouteGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetGroupInterval(v RouteGetGroupIntervalRetType) { setRouteGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetGroupWait() (res RouteGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -341,22 +425,26 @@ func (o *Route) GetGroupWait() (res RouteGetGroupWaitRetType) { // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetGroupWaitOk() (ret RouteGetGroupWaitRetType, ok bool) { return getRouteGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetGroupWait(v RouteGetGroupWaitRetType) { setRouteGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetMatch() (res RouteGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -364,22 +452,26 @@ func (o *Route) GetMatch() (res RouteGetMatchRetType) { // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetMatchOk() (ret RouteGetMatchRetType, ok bool) { return getRouteGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]string and assigns it to the Match field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetMatch(v RouteGetMatchRetType) { setRouteGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetMatchRe() (res RouteGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -387,22 +479,26 @@ func (o *Route) GetMatchRe() (res RouteGetMatchReRetType) { // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetMatchReOk() (ret RouteGetMatchReRetType, ok bool) { return getRouteGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]string and assigns it to the MatchRe field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetMatchRe(v RouteGetMatchReRetType) { setRouteGetMatchReAttributeType(&o.MatchRe, v) } // GetMatchers returns the Matchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetMatchers() (res RouteGetMatchersRetType) { res, _ = o.GetMatchersOk() return @@ -410,22 +506,26 @@ func (o *Route) GetMatchers() (res RouteGetMatchersRetType) { // GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetMatchersOk() (ret RouteGetMatchersRetType, ok bool) { return getRouteGetMatchersAttributeTypeOk(o.Matchers) } // HasMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasMatchers() bool { _, ok := o.GetMatchersOk() return ok } // SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetMatchers(v RouteGetMatchersRetType) { setRouteGetMatchersAttributeType(&o.Matchers, v) } // GetReceiver returns the Receiver field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetReceiver() (ret RouteGetReceiverRetType) { ret, _ = o.GetReceiverOk() return ret @@ -433,16 +533,19 @@ func (o *Route) GetReceiver() (ret RouteGetReceiverRetType) { // GetReceiverOk returns a tuple with the Receiver field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetReceiverOk() (ret RouteGetReceiverRetType, ok bool) { return getRouteGetReceiverAttributeTypeOk(o.Receiver) } // SetReceiver sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetReceiver(v RouteGetReceiverRetType) { setRouteGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetRepeatInterval() (res RouteGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -450,22 +553,26 @@ func (o *Route) GetRepeatInterval() (res RouteGetRepeatIntervalRetType) { // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetRepeatIntervalOk() (ret RouteGetRepeatIntervalRetType, ok bool) { return getRouteGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetRepeatInterval(v RouteGetRepeatIntervalRetType) { setRouteGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetRoutes() (res RouteGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -473,21 +580,25 @@ func (o *Route) GetRoutes() (res RouteGetRoutesRetType) { // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) GetRoutesOk() (ret RouteGetRoutesRetType, ok bool) { return getRouteGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []RouteSerializer and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Route) SetRoutes(v RouteGetRoutesRetType) { setRouteGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Route) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRoutegetContinueAttributeTypeOk(o.Continue); ok { @@ -523,37 +634,45 @@ func (o Route) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRoute struct { value *Route isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRoute) Get() *Route { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRoute) Set(val *Route) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRoute) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRoute) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRoute(val *Route) *NullableRoute { return &NullableRoute{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRoute) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRoute) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_route_serializer.go b/services/observability/model_route_serializer.go index 0dbea6659..477e025c6 100644 --- a/services/observability/model_route_serializer.go +++ b/services/observability/model_route_serializer.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &RouteSerializer{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializergetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializergetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializergetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializergetContinueAttributeTypeOk(arg RouteSerializergetContinueAttributeType) (ret RouteSerializergetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getRouteSerializergetContinueAttributeTypeOk(arg RouteSerializergetContinue return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializergetContinueAttributeType(arg *RouteSerializergetContinueAttributeType, val RouteSerializergetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setRouteSerializergetContinueAttributeType(arg *RouteSerializergetContinueA */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetGroupByAttributeTypeOk(arg RouteSerializerGetGroupByAttributeType) (ret RouteSerializerGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getRouteSerializerGetGroupByAttributeTypeOk(arg RouteSerializerGetGroupByAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetGroupByAttributeType(arg *RouteSerializerGetGroupByAttributeType, val RouteSerializerGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setRouteSerializerGetGroupByAttributeType(arg *RouteSerializerGetGroupByAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetGroupIntervalAttributeTypeOk(arg RouteSerializerGetGroupIntervalAttributeType) (ret RouteSerializerGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getRouteSerializerGetGroupIntervalAttributeTypeOk(arg RouteSerializerGetGro return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetGroupIntervalAttributeType(arg *RouteSerializerGetGroupIntervalAttributeType, val RouteSerializerGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type RouteSerializerGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetGroupWaitAttributeTypeOk(arg RouteSerializerGetGroupWaitAttributeType) (ret RouteSerializerGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getRouteSerializerGetGroupWaitAttributeTypeOk(arg RouteSerializerGetGroupWa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetGroupWaitAttributeType(arg *RouteSerializerGetGroupWaitAttributeType, val RouteSerializerGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type RouteSerializerGetGroupWaitRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetMatchAttributeTypeOk(arg RouteSerializerGetMatchAttributeType) (ret RouteSerializerGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getRouteSerializerGetMatchAttributeTypeOk(arg RouteSerializerGetMatchAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetMatchAttributeType(arg *RouteSerializerGetMatchAttributeType, val RouteSerializerGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setRouteSerializerGetMatchAttributeType(arg *RouteSerializerGetMatchAttribu */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchReAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchReArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchReRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetMatchReAttributeTypeOk(arg RouteSerializerGetMatchReAttributeType) (ret RouteSerializerGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getRouteSerializerGetMatchReAttributeTypeOk(arg RouteSerializerGetMatchReAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetMatchReAttributeType(arg *RouteSerializerGetMatchReAttributeType, val RouteSerializerGetMatchReRetType) { *arg = &val } @@ -144,10 +185,16 @@ func setRouteSerializerGetMatchReAttributeType(arg *RouteSerializerGetMatchReAtt */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetMatchersAttributeTypeOk(arg RouteSerializerGetMatchersAttributeType) (ret RouteSerializerGetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -155,6 +202,7 @@ func getRouteSerializerGetMatchersAttributeTypeOk(arg RouteSerializerGetMatchers return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetMatchersAttributeType(arg *RouteSerializerGetMatchersAttributeType, val RouteSerializerGetMatchersRetType) { *arg = &val } @@ -164,8 +212,10 @@ func setRouteSerializerGetMatchersAttributeType(arg *RouteSerializerGetMatchersA */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetReceiverAttributeTypeOk(arg RouteSerializerGetReceiverAttributeType) (ret RouteSerializerGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -173,11 +223,15 @@ func getRouteSerializerGetReceiverAttributeTypeOk(arg RouteSerializerGetReceiver return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetReceiverAttributeType(arg *RouteSerializerGetReceiverAttributeType, val RouteSerializerGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetReceiverRetType = string /* @@ -185,8 +239,10 @@ type RouteSerializerGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetRepeatIntervalAttributeTypeOk(arg RouteSerializerGetRepeatIntervalAttributeType) (ret RouteSerializerGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -194,11 +250,15 @@ func getRouteSerializerGetRepeatIntervalAttributeTypeOk(arg RouteSerializerGetRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetRepeatIntervalAttributeType(arg *RouteSerializerGetRepeatIntervalAttributeType, val RouteSerializerGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetRepeatIntervalRetType = string /* @@ -206,10 +266,16 @@ type RouteSerializerGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetRoutesAttributeType = *[]map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetRoutesArgType = []map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializerGetRoutesRetType = []map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRouteSerializerGetRoutesAttributeTypeOk(arg RouteSerializerGetRoutesAttributeType) (ret RouteSerializerGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +283,13 @@ func getRouteSerializerGetRoutesAttributeTypeOk(arg RouteSerializerGetRoutesAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRouteSerializerGetRoutesAttributeType(arg *RouteSerializerGetRoutesAttributeType, val RouteSerializerGetRoutesRetType) { *arg = &val } // RouteSerializer struct for RouteSerializer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RouteSerializer struct { Continue RouteSerializergetContinueAttributeType `json:"continue,omitempty"` GroupBy RouteSerializerGetGroupByAttributeType `json:"groupBy,omitempty"` @@ -236,12 +304,14 @@ type RouteSerializer struct { Routes RouteSerializerGetRoutesAttributeType `json:"routes,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _RouteSerializer RouteSerializer // NewRouteSerializer instantiates a new RouteSerializer object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRouteSerializer(receiver RouteSerializerGetReceiverArgType) *RouteSerializer { this := RouteSerializer{} setRouteSerializerGetReceiverAttributeType(&this.Receiver, receiver) @@ -251,6 +321,7 @@ func NewRouteSerializer(receiver RouteSerializerGetReceiverArgType) *RouteSerial // NewRouteSerializerWithDefaults instantiates a new RouteSerializer object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRouteSerializerWithDefaults() *RouteSerializer { this := RouteSerializer{} var continue_ bool = false @@ -265,6 +336,7 @@ func NewRouteSerializerWithDefaults() *RouteSerializer { } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetContinue() (res RouteSerializergetContinueRetType) { res, _ = o.GetContinueOk() return @@ -272,22 +344,26 @@ func (o *RouteSerializer) GetContinue() (res RouteSerializergetContinueRetType) // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetContinueOk() (ret RouteSerializergetContinueRetType, ok bool) { return getRouteSerializergetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetContinue(v RouteSerializergetContinueRetType) { setRouteSerializergetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetGroupBy() (res RouteSerializerGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -295,22 +371,26 @@ func (o *RouteSerializer) GetGroupBy() (res RouteSerializerGetGroupByRetType) { // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetGroupByOk() (ret RouteSerializerGetGroupByRetType, ok bool) { return getRouteSerializerGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetGroupBy(v RouteSerializerGetGroupByRetType) { setRouteSerializerGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetGroupInterval() (res RouteSerializerGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -318,22 +398,26 @@ func (o *RouteSerializer) GetGroupInterval() (res RouteSerializerGetGroupInterva // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetGroupIntervalOk() (ret RouteSerializerGetGroupIntervalRetType, ok bool) { return getRouteSerializerGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetGroupInterval(v RouteSerializerGetGroupIntervalRetType) { setRouteSerializerGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetGroupWait() (res RouteSerializerGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -341,22 +425,26 @@ func (o *RouteSerializer) GetGroupWait() (res RouteSerializerGetGroupWaitRetType // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetGroupWaitOk() (ret RouteSerializerGetGroupWaitRetType, ok bool) { return getRouteSerializerGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetGroupWait(v RouteSerializerGetGroupWaitRetType) { setRouteSerializerGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetMatch() (res RouteSerializerGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -364,22 +452,26 @@ func (o *RouteSerializer) GetMatch() (res RouteSerializerGetMatchRetType) { // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetMatchOk() (ret RouteSerializerGetMatchRetType, ok bool) { return getRouteSerializerGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]string and assigns it to the Match field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetMatch(v RouteSerializerGetMatchRetType) { setRouteSerializerGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetMatchRe() (res RouteSerializerGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -387,22 +479,26 @@ func (o *RouteSerializer) GetMatchRe() (res RouteSerializerGetMatchReRetType) { // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetMatchReOk() (ret RouteSerializerGetMatchReRetType, ok bool) { return getRouteSerializerGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]string and assigns it to the MatchRe field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetMatchRe(v RouteSerializerGetMatchReRetType) { setRouteSerializerGetMatchReAttributeType(&o.MatchRe, v) } // GetMatchers returns the Matchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetMatchers() (res RouteSerializerGetMatchersRetType) { res, _ = o.GetMatchersOk() return @@ -410,22 +506,26 @@ func (o *RouteSerializer) GetMatchers() (res RouteSerializerGetMatchersRetType) // GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetMatchersOk() (ret RouteSerializerGetMatchersRetType, ok bool) { return getRouteSerializerGetMatchersAttributeTypeOk(o.Matchers) } // HasMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasMatchers() bool { _, ok := o.GetMatchersOk() return ok } // SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetMatchers(v RouteSerializerGetMatchersRetType) { setRouteSerializerGetMatchersAttributeType(&o.Matchers, v) } // GetReceiver returns the Receiver field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetReceiver() (ret RouteSerializerGetReceiverRetType) { ret, _ = o.GetReceiverOk() return ret @@ -433,16 +533,19 @@ func (o *RouteSerializer) GetReceiver() (ret RouteSerializerGetReceiverRetType) // GetReceiverOk returns a tuple with the Receiver field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetReceiverOk() (ret RouteSerializerGetReceiverRetType, ok bool) { return getRouteSerializerGetReceiverAttributeTypeOk(o.Receiver) } // SetReceiver sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetReceiver(v RouteSerializerGetReceiverRetType) { setRouteSerializerGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetRepeatInterval() (res RouteSerializerGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -450,22 +553,26 @@ func (o *RouteSerializer) GetRepeatInterval() (res RouteSerializerGetRepeatInter // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetRepeatIntervalOk() (ret RouteSerializerGetRepeatIntervalRetType, ok bool) { return getRouteSerializerGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetRepeatInterval(v RouteSerializerGetRepeatIntervalRetType) { setRouteSerializerGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetRoutes() (res RouteSerializerGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -473,21 +580,25 @@ func (o *RouteSerializer) GetRoutes() (res RouteSerializerGetRoutesRetType) { // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) GetRoutesOk() (ret RouteSerializerGetRoutesRetType, ok bool) { return getRouteSerializerGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []map[string]string and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RouteSerializer) SetRoutes(v RouteSerializerGetRoutesRetType) { setRouteSerializerGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o RouteSerializer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRouteSerializergetContinueAttributeTypeOk(o.Continue); ok { @@ -523,37 +634,45 @@ func (o RouteSerializer) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRouteSerializer struct { value *RouteSerializer isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRouteSerializer) Get() *RouteSerializer { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRouteSerializer) Set(val *RouteSerializer) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRouteSerializer) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRouteSerializer) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRouteSerializer(val *RouteSerializer) *NullableRouteSerializer { return &NullableRouteSerializer{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRouteSerializer) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRouteSerializer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_scrape_configs_response.go b/services/observability/model_scrape_configs_response.go index d9ace5844..7ff661b19 100644 --- a/services/observability/model_scrape_configs_response.go +++ b/services/observability/model_scrape_configs_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ScrapeConfigsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponseGetDataAttributeType = *[]Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponseGetDataArgType = []Job + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponseGetDataRetType = []Job +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getScrapeConfigsResponseGetDataAttributeTypeOk(arg ScrapeConfigsResponseGetDataAttributeType) (ret ScrapeConfigsResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getScrapeConfigsResponseGetDataAttributeTypeOk(arg ScrapeConfigsResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setScrapeConfigsResponseGetDataAttributeType(arg *ScrapeConfigsResponseGetDataAttributeType, val ScrapeConfigsResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setScrapeConfigsResponseGetDataAttributeType(arg *ScrapeConfigsResponseGetD */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getScrapeConfigsResponseGetMessageAttributeTypeOk(arg ScrapeConfigsResponseGetMessageAttributeType) (ret ScrapeConfigsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getScrapeConfigsResponseGetMessageAttributeTypeOk(arg ScrapeConfigsResponse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setScrapeConfigsResponseGetMessageAttributeType(arg *ScrapeConfigsResponseGetMessageAttributeType, val ScrapeConfigsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponseGetMessageRetType = string // ScrapeConfigsResponse struct for ScrapeConfigsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ScrapeConfigsResponse struct { // REQUIRED Data ScrapeConfigsResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type ScrapeConfigsResponse struct { Message ScrapeConfigsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ScrapeConfigsResponse ScrapeConfigsResponse // NewScrapeConfigsResponse instantiates a new ScrapeConfigsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewScrapeConfigsResponse(data ScrapeConfigsResponseGetDataArgType, message ScrapeConfigsResponseGetMessageArgType) *ScrapeConfigsResponse { this := ScrapeConfigsResponse{} setScrapeConfigsResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewScrapeConfigsResponse(data ScrapeConfigsResponseGetDataArgType, message // NewScrapeConfigsResponseWithDefaults instantiates a new ScrapeConfigsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewScrapeConfigsResponseWithDefaults() *ScrapeConfigsResponse { this := ScrapeConfigsResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ScrapeConfigsResponse) GetData() (ret ScrapeConfigsResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *ScrapeConfigsResponse) GetData() (ret ScrapeConfigsResponseGetDataRetTy // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ScrapeConfigsResponse) GetDataOk() (ret ScrapeConfigsResponseGetDataRetType, ok bool) { return getScrapeConfigsResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ScrapeConfigsResponse) SetData(v ScrapeConfigsResponseGetDataRetType) { setScrapeConfigsResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ScrapeConfigsResponse) GetMessage() (ret ScrapeConfigsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *ScrapeConfigsResponse) GetMessage() (ret ScrapeConfigsResponseGetMessag // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ScrapeConfigsResponse) GetMessageOk() (ret ScrapeConfigsResponseGetMessageRetType, ok bool) { return getScrapeConfigsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ScrapeConfigsResponse) SetMessage(v ScrapeConfigsResponseGetMessageRetType) { setScrapeConfigsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ScrapeConfigsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getScrapeConfigsResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o ScrapeConfigsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableScrapeConfigsResponse struct { value *ScrapeConfigsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableScrapeConfigsResponse) Get() *ScrapeConfigsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableScrapeConfigsResponse) Set(val *ScrapeConfigsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableScrapeConfigsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableScrapeConfigsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableScrapeConfigsResponse(val *ScrapeConfigsResponse) *NullableScrapeConfigsResponse { return &NullableScrapeConfigsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableScrapeConfigsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableScrapeConfigsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_service_keys_list.go b/services/observability/model_service_keys_list.go index 6cb313904..f53cec89e 100644 --- a/services/observability/model_service_keys_list.go +++ b/services/observability/model_service_keys_list.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ServiceKeysList{} */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetCredentialsInfoAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetCredentialsInfoArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetCredentialsInfoRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getServiceKeysListGetCredentialsInfoAttributeTypeOk(arg ServiceKeysListGetCredentialsInfoAttributeType) (ret ServiceKeysListGetCredentialsInfoRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getServiceKeysListGetCredentialsInfoAttributeTypeOk(arg ServiceKeysListGetC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setServiceKeysListGetCredentialsInfoAttributeType(arg *ServiceKeysListGetCredentialsInfoAttributeType, val ServiceKeysListGetCredentialsInfoRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setServiceKeysListGetCredentialsInfoAttributeType(arg *ServiceKeysListGetCr */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getServiceKeysListGetDescriptionAttributeTypeOk(arg ServiceKeysListGetDescriptionAttributeType) (ret ServiceKeysListGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getServiceKeysListGetDescriptionAttributeTypeOk(arg ServiceKeysListGetDescr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setServiceKeysListGetDescriptionAttributeType(arg *ServiceKeysListGetDescriptionAttributeType, val ServiceKeysListGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetDescriptionRetType = string /* @@ -63,8 +77,10 @@ type ServiceKeysListGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getServiceKeysListGetIdAttributeTypeOk(arg ServiceKeysListGetIdAttributeType) (ret ServiceKeysListGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getServiceKeysListGetIdAttributeTypeOk(arg ServiceKeysListGetIdAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setServiceKeysListGetIdAttributeType(arg *ServiceKeysListGetIdAttributeType, val ServiceKeysListGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetIdRetType = string /* @@ -84,8 +104,10 @@ type ServiceKeysListGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getServiceKeysListGetNameAttributeTypeOk(arg ServiceKeysListGetNameAttributeType) (ret ServiceKeysListGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -93,14 +115,19 @@ func getServiceKeysListGetNameAttributeTypeOk(arg ServiceKeysListGetNameAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setServiceKeysListGetNameAttributeType(arg *ServiceKeysListGetNameAttributeType, val ServiceKeysListGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysListGetNameRetType = string // ServiceKeysList struct for ServiceKeysList +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ServiceKeysList struct { CredentialsInfo ServiceKeysListGetCredentialsInfoAttributeType `json:"credentialsInfo,omitempty"` Description ServiceKeysListGetDescriptionAttributeType `json:"description,omitempty"` @@ -110,12 +137,14 @@ type ServiceKeysList struct { Name ServiceKeysListGetNameAttributeType `json:"name" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ServiceKeysList ServiceKeysList // NewServiceKeysList instantiates a new ServiceKeysList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewServiceKeysList(id ServiceKeysListGetIdArgType, name ServiceKeysListGetNameArgType) *ServiceKeysList { this := ServiceKeysList{} setServiceKeysListGetIdAttributeType(&this.Id, id) @@ -126,12 +155,14 @@ func NewServiceKeysList(id ServiceKeysListGetIdArgType, name ServiceKeysListGetN // NewServiceKeysListWithDefaults instantiates a new ServiceKeysList object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewServiceKeysListWithDefaults() *ServiceKeysList { this := ServiceKeysList{} return &this } // GetCredentialsInfo returns the CredentialsInfo field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetCredentialsInfo() (res ServiceKeysListGetCredentialsInfoRetType) { res, _ = o.GetCredentialsInfoOk() return @@ -139,22 +170,26 @@ func (o *ServiceKeysList) GetCredentialsInfo() (res ServiceKeysListGetCredential // GetCredentialsInfoOk returns a tuple with the CredentialsInfo field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetCredentialsInfoOk() (ret ServiceKeysListGetCredentialsInfoRetType, ok bool) { return getServiceKeysListGetCredentialsInfoAttributeTypeOk(o.CredentialsInfo) } // HasCredentialsInfo returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) HasCredentialsInfo() bool { _, ok := o.GetCredentialsInfoOk() return ok } // SetCredentialsInfo gets a reference to the given map[string]string and assigns it to the CredentialsInfo field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) SetCredentialsInfo(v ServiceKeysListGetCredentialsInfoRetType) { setServiceKeysListGetCredentialsInfoAttributeType(&o.CredentialsInfo, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetDescription() (res ServiceKeysListGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -162,22 +197,26 @@ func (o *ServiceKeysList) GetDescription() (res ServiceKeysListGetDescriptionRet // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetDescriptionOk() (ret ServiceKeysListGetDescriptionRetType, ok bool) { return getServiceKeysListGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) SetDescription(v ServiceKeysListGetDescriptionRetType) { setServiceKeysListGetDescriptionAttributeType(&o.Description, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetId() (ret ServiceKeysListGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -185,16 +224,19 @@ func (o *ServiceKeysList) GetId() (ret ServiceKeysListGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetIdOk() (ret ServiceKeysListGetIdRetType, ok bool) { return getServiceKeysListGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) SetId(v ServiceKeysListGetIdRetType) { setServiceKeysListGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetName() (ret ServiceKeysListGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -202,15 +244,18 @@ func (o *ServiceKeysList) GetName() (ret ServiceKeysListGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) GetNameOk() (ret ServiceKeysListGetNameRetType, ok bool) { return getServiceKeysListGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ServiceKeysList) SetName(v ServiceKeysListGetNameRetType) { setServiceKeysListGetNameAttributeType(&o.Name, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ServiceKeysList) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getServiceKeysListGetCredentialsInfoAttributeTypeOk(o.CredentialsInfo); ok { @@ -228,37 +273,45 @@ func (o ServiceKeysList) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableServiceKeysList struct { value *ServiceKeysList isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableServiceKeysList) Get() *ServiceKeysList { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableServiceKeysList) Set(val *ServiceKeysList) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableServiceKeysList) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableServiceKeysList) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableServiceKeysList(val *ServiceKeysList) *NullableServiceKeysList { return &NullableServiceKeysList{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableServiceKeysList) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableServiceKeysList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_static_configs.go b/services/observability/model_static_configs.go index 25f6dd8ec..219b3e4fb 100644 --- a/services/observability/model_static_configs.go +++ b/services/observability/model_static_configs.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &StaticConfigs{} */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigsGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigsGetLabelsArgType = map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigsGetLabelsRetType = map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getStaticConfigsGetLabelsAttributeTypeOk(arg StaticConfigsGetLabelsAttributeType) (ret StaticConfigsGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getStaticConfigsGetLabelsAttributeTypeOk(arg StaticConfigsGetLabelsAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setStaticConfigsGetLabelsAttributeType(arg *StaticConfigsGetLabelsAttributeType, val StaticConfigsGetLabelsRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setStaticConfigsGetLabelsAttributeType(arg *StaticConfigsGetLabelsAttribute */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigsGetTargetsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigsGetTargetsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigsGetTargetsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getStaticConfigsGetTargetsAttributeTypeOk(arg StaticConfigsGetTargetsAttributeType) (ret StaticConfigsGetTargetsRetType, ok bool) { if arg == nil { return ret, false @@ -53,23 +67,27 @@ func getStaticConfigsGetTargetsAttributeTypeOk(arg StaticConfigsGetTargetsAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setStaticConfigsGetTargetsAttributeType(arg *StaticConfigsGetTargetsAttributeType, val StaticConfigsGetTargetsRetType) { *arg = &val } // StaticConfigs struct for StaticConfigs +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type StaticConfigs struct { Labels StaticConfigsGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED Targets StaticConfigsGetTargetsAttributeType `json:"targets" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _StaticConfigs StaticConfigs // NewStaticConfigs instantiates a new StaticConfigs object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewStaticConfigs(targets StaticConfigsGetTargetsArgType) *StaticConfigs { this := StaticConfigs{} setStaticConfigsGetTargetsAttributeType(&this.Targets, targets) @@ -79,12 +97,14 @@ func NewStaticConfigs(targets StaticConfigsGetTargetsArgType) *StaticConfigs { // NewStaticConfigsWithDefaults instantiates a new StaticConfigs object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewStaticConfigsWithDefaults() *StaticConfigs { this := StaticConfigs{} return &this } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) GetLabels() (res StaticConfigsGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -92,22 +112,26 @@ func (o *StaticConfigs) GetLabels() (res StaticConfigsGetLabelsRetType) { // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) GetLabelsOk() (ret StaticConfigsGetLabelsRetType, ok bool) { return getStaticConfigsGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) SetLabels(v StaticConfigsGetLabelsRetType) { setStaticConfigsGetLabelsAttributeType(&o.Labels, v) } // GetTargets returns the Targets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) GetTargets() (ret StaticConfigsGetTargetsRetType) { ret, _ = o.GetTargetsOk() return ret @@ -115,15 +139,18 @@ func (o *StaticConfigs) GetTargets() (ret StaticConfigsGetTargetsRetType) { // GetTargetsOk returns a tuple with the Targets field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) GetTargetsOk() (ret StaticConfigsGetTargetsRetType, ok bool) { return getStaticConfigsGetTargetsAttributeTypeOk(o.Targets) } // SetTargets sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *StaticConfigs) SetTargets(v StaticConfigsGetTargetsRetType) { setStaticConfigsGetTargetsAttributeType(&o.Targets, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o StaticConfigs) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getStaticConfigsGetLabelsAttributeTypeOk(o.Labels); ok { @@ -135,37 +162,45 @@ func (o StaticConfigs) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableStaticConfigs struct { value *StaticConfigs isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableStaticConfigs) Get() *StaticConfigs { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableStaticConfigs) Set(val *StaticConfigs) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableStaticConfigs) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableStaticConfigs) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableStaticConfigs(val *StaticConfigs) *NullableStaticConfigs { return &NullableStaticConfigs{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableStaticConfigs) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableStaticConfigs) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_tls_config.go b/services/observability/model_tls_config.go index caac22b8c..67567f91b 100644 --- a/services/observability/model_tls_config.go +++ b/services/observability/model_tls_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &TLSConfig{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TLSConfiggetInsecureSkipVerifyAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TLSConfiggetInsecureSkipVerifyArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TLSConfiggetInsecureSkipVerifyRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTLSConfiggetInsecureSkipVerifyAttributeTypeOk(arg TLSConfiggetInsecureSkipVerifyAttributeType) (ret TLSConfiggetInsecureSkipVerifyRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +40,13 @@ func getTLSConfiggetInsecureSkipVerifyAttributeTypeOk(arg TLSConfiggetInsecureSk return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTLSConfiggetInsecureSkipVerifyAttributeType(arg *TLSConfiggetInsecureSkipVerifyAttributeType, val TLSConfiggetInsecureSkipVerifyRetType) { *arg = &val } // TLSConfig struct for TLSConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TLSConfig struct { InsecureSkipVerify TLSConfiggetInsecureSkipVerifyAttributeType `json:"insecureSkipVerify,omitempty"` } @@ -46,6 +55,7 @@ type TLSConfig struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTLSConfig() *TLSConfig { this := TLSConfig{} return &this @@ -54,6 +64,7 @@ func NewTLSConfig() *TLSConfig { // NewTLSConfigWithDefaults instantiates a new TLSConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTLSConfigWithDefaults() *TLSConfig { this := TLSConfig{} var insecureSkipVerify bool = false @@ -62,6 +73,7 @@ func NewTLSConfigWithDefaults() *TLSConfig { } // GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TLSConfig) GetInsecureSkipVerify() (res TLSConfiggetInsecureSkipVerifyRetType) { res, _ = o.GetInsecureSkipVerifyOk() return @@ -69,21 +81,25 @@ func (o *TLSConfig) GetInsecureSkipVerify() (res TLSConfiggetInsecureSkipVerifyR // GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TLSConfig) GetInsecureSkipVerifyOk() (ret TLSConfiggetInsecureSkipVerifyRetType, ok bool) { return getTLSConfiggetInsecureSkipVerifyAttributeTypeOk(o.InsecureSkipVerify) } // HasInsecureSkipVerify returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TLSConfig) HasInsecureSkipVerify() bool { _, ok := o.GetInsecureSkipVerifyOk() return ok } // SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TLSConfig) SetInsecureSkipVerify(v TLSConfiggetInsecureSkipVerifyRetType) { setTLSConfiggetInsecureSkipVerifyAttributeType(&o.InsecureSkipVerify, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o TLSConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getTLSConfiggetInsecureSkipVerifyAttributeTypeOk(o.InsecureSkipVerify); ok { @@ -92,37 +108,45 @@ func (o TLSConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTLSConfig struct { value *TLSConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTLSConfig) Get() *TLSConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTLSConfig) Set(val *TLSConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTLSConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTLSConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTLSConfig(val *TLSConfig) *NullableTLSConfig { return &NullableTLSConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTLSConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTLSConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_trace_config.go b/services/observability/model_trace_config.go index 66ac9c51e..4c886c763 100644 --- a/services/observability/model_trace_config.go +++ b/services/observability/model_trace_config.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &TraceConfig{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TraceConfigGetRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTraceConfigGetRetentionAttributeTypeOk(arg TraceConfigGetRetentionAttributeType) (ret TraceConfigGetRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getTraceConfigGetRetentionAttributeTypeOk(arg TraceConfigGetRetentionAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTraceConfigGetRetentionAttributeType(arg *TraceConfigGetRetentionAttributeType, val TraceConfigGetRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TraceConfigGetRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TraceConfigGetRetentionRetType = string // TraceConfig struct for TraceConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TraceConfig struct { // REQUIRED Retention TraceConfigGetRetentionAttributeType `json:"retention" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _TraceConfig TraceConfig // NewTraceConfig instantiates a new TraceConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTraceConfig(retention TraceConfigGetRetentionArgType) *TraceConfig { this := TraceConfig{} setTraceConfigGetRetentionAttributeType(&this.Retention, retention) @@ -59,12 +69,14 @@ func NewTraceConfig(retention TraceConfigGetRetentionArgType) *TraceConfig { // NewTraceConfigWithDefaults instantiates a new TraceConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTraceConfigWithDefaults() *TraceConfig { this := TraceConfig{} return &this } // GetRetention returns the Retention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TraceConfig) GetRetention() (ret TraceConfigGetRetentionRetType) { ret, _ = o.GetRetentionOk() return ret @@ -72,15 +84,18 @@ func (o *TraceConfig) GetRetention() (ret TraceConfigGetRetentionRetType) { // GetRetentionOk returns a tuple with the Retention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TraceConfig) GetRetentionOk() (ret TraceConfigGetRetentionRetType, ok bool) { return getTraceConfigGetRetentionAttributeTypeOk(o.Retention) } // SetRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TraceConfig) SetRetention(v TraceConfigGetRetentionRetType) { setTraceConfigGetRetentionAttributeType(&o.Retention, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o TraceConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getTraceConfigGetRetentionAttributeTypeOk(o.Retention); ok { @@ -89,37 +104,45 @@ func (o TraceConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTraceConfig struct { value *TraceConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTraceConfig) Get() *TraceConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTraceConfig) Set(val *TraceConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTraceConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTraceConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTraceConfig(val *TraceConfig) *NullableTraceConfig { return &NullableTraceConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTraceConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTraceConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_traces_config_response.go b/services/observability/model_traces_config_response.go index a737cad0a..6aca16df1 100644 --- a/services/observability/model_traces_config_response.go +++ b/services/observability/model_traces_config_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &TracesConfigResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponseGetConfigAttributeType = *TraceConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponseGetConfigArgType = TraceConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponseGetConfigRetType = TraceConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTracesConfigResponseGetConfigAttributeTypeOk(arg TracesConfigResponseGetConfigAttributeType) (ret TracesConfigResponseGetConfigRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getTracesConfigResponseGetConfigAttributeTypeOk(arg TracesConfigResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTracesConfigResponseGetConfigAttributeType(arg *TracesConfigResponseGetConfigAttributeType, val TracesConfigResponseGetConfigRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setTracesConfigResponseGetConfigAttributeType(arg *TracesConfigResponseGetC */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTracesConfigResponseGetMessageAttributeTypeOk(arg TracesConfigResponseGetMessageAttributeType) (ret TracesConfigResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getTracesConfigResponseGetMessageAttributeTypeOk(arg TracesConfigResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTracesConfigResponseGetMessageAttributeType(arg *TracesConfigResponseGetMessageAttributeType, val TracesConfigResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponseGetMessageRetType = string // TracesConfigResponse struct for TracesConfigResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TracesConfigResponse struct { // REQUIRED Config TracesConfigResponseGetConfigAttributeType `json:"config" required:"true"` @@ -66,12 +81,14 @@ type TracesConfigResponse struct { Message TracesConfigResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _TracesConfigResponse TracesConfigResponse // NewTracesConfigResponse instantiates a new TracesConfigResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTracesConfigResponse(config TracesConfigResponseGetConfigArgType, message TracesConfigResponseGetMessageArgType) *TracesConfigResponse { this := TracesConfigResponse{} setTracesConfigResponseGetConfigAttributeType(&this.Config, config) @@ -82,12 +99,14 @@ func NewTracesConfigResponse(config TracesConfigResponseGetConfigArgType, messag // NewTracesConfigResponseWithDefaults instantiates a new TracesConfigResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTracesConfigResponseWithDefaults() *TracesConfigResponse { this := TracesConfigResponse{} return &this } // GetConfig returns the Config field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TracesConfigResponse) GetConfig() (ret TracesConfigResponseGetConfigRetType) { ret, _ = o.GetConfigOk() return ret @@ -95,16 +114,19 @@ func (o *TracesConfigResponse) GetConfig() (ret TracesConfigResponseGetConfigRet // GetConfigOk returns a tuple with the Config field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TracesConfigResponse) GetConfigOk() (ret TracesConfigResponseGetConfigRetType, ok bool) { return getTracesConfigResponseGetConfigAttributeTypeOk(o.Config) } // SetConfig sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TracesConfigResponse) SetConfig(v TracesConfigResponseGetConfigRetType) { setTracesConfigResponseGetConfigAttributeType(&o.Config, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TracesConfigResponse) GetMessage() (ret TracesConfigResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *TracesConfigResponse) GetMessage() (ret TracesConfigResponseGetMessageR // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TracesConfigResponse) GetMessageOk() (ret TracesConfigResponseGetMessageRetType, ok bool) { return getTracesConfigResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TracesConfigResponse) SetMessage(v TracesConfigResponseGetMessageRetType) { setTracesConfigResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o TracesConfigResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getTracesConfigResponseGetConfigAttributeTypeOk(o.Config); ok { @@ -132,37 +157,45 @@ func (o TracesConfigResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTracesConfigResponse struct { value *TracesConfigResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTracesConfigResponse) Get() *TracesConfigResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTracesConfigResponse) Set(val *TracesConfigResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTracesConfigResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTracesConfigResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTracesConfigResponse(val *TracesConfigResponse) *NullableTracesConfigResponse { return &NullableTracesConfigResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTracesConfigResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTracesConfigResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_acl_payload.go b/services/observability/model_update_acl_payload.go index d17dc8dad..cdce13b45 100644 --- a/services/observability/model_update_acl_payload.go +++ b/services/observability/model_update_acl_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateACLPayload{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateACLPayloadGetAclAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateACLPayloadGetAclArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateACLPayloadGetAclRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateACLPayloadGetAclAttributeTypeOk(arg UpdateACLPayloadGetAclAttributeType) (ret UpdateACLPayloadGetAclRetType, ok bool) { if arg == nil { return ret, false @@ -33,23 +40,27 @@ func getUpdateACLPayloadGetAclAttributeTypeOk(arg UpdateACLPayloadGetAclAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateACLPayloadGetAclAttributeType(arg *UpdateACLPayloadGetAclAttributeType, val UpdateACLPayloadGetAclRetType) { *arg = &val } // UpdateACLPayload List of cidr. Send empty string to remove acl. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateACLPayload struct { // list of cidr // REQUIRED Acl UpdateACLPayloadGetAclAttributeType `json:"acl" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateACLPayload UpdateACLPayload // NewUpdateACLPayload instantiates a new UpdateACLPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateACLPayload(acl UpdateACLPayloadGetAclArgType) *UpdateACLPayload { this := UpdateACLPayload{} setUpdateACLPayloadGetAclAttributeType(&this.Acl, acl) @@ -59,12 +70,14 @@ func NewUpdateACLPayload(acl UpdateACLPayloadGetAclArgType) *UpdateACLPayload { // NewUpdateACLPayloadWithDefaults instantiates a new UpdateACLPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateACLPayloadWithDefaults() *UpdateACLPayload { this := UpdateACLPayload{} return &this } // GetAcl returns the Acl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateACLPayload) GetAcl() (ret UpdateACLPayloadGetAclRetType) { ret, _ = o.GetAclOk() return ret @@ -72,15 +85,18 @@ func (o *UpdateACLPayload) GetAcl() (ret UpdateACLPayloadGetAclRetType) { // GetAclOk returns a tuple with the Acl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateACLPayload) GetAclOk() (ret UpdateACLPayloadGetAclRetType, ok bool) { return getUpdateACLPayloadGetAclAttributeTypeOk(o.Acl) } // SetAcl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateACLPayload) SetAcl(v UpdateACLPayloadGetAclRetType) { setUpdateACLPayloadGetAclAttributeType(&o.Acl, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateACLPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateACLPayloadGetAclAttributeTypeOk(o.Acl); ok { @@ -89,37 +105,45 @@ func (o UpdateACLPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateACLPayload struct { value *UpdateACLPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateACLPayload) Get() *UpdateACLPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateACLPayload) Set(val *UpdateACLPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateACLPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateACLPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateACLPayload(val *UpdateACLPayload) *NullableUpdateACLPayload { return &NullableUpdateACLPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateACLPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateACLPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_config_receiver_payload.go b/services/observability/model_update_alert_config_receiver_payload.go index 343f3e77d..a32112124 100644 --- a/services/observability/model_update_alert_config_receiver_payload.go +++ b/services/observability/model_update_alert_config_receiver_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigReceiverPayload{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadEmailConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetEmailConfigsArgType = []CreateAlertConfigReceiverPayloadEmailConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetEmailConfigsRetType = []CreateAlertConfigReceiverPayloadEmailConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(arg UpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType) (ret UpdateAlertConfigReceiverPayloadGetEmailConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(arg Updat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType(arg *UpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType, val UpdateAlertConfigReceiverPayloadGetEmailConfigsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType(arg *Update */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigReceiverPayloadGetNameAttributeTypeOk(arg UpdateAlertConfigReceiverPayloadGetNameAttributeType) (ret UpdateAlertConfigReceiverPayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getUpdateAlertConfigReceiverPayloadGetNameAttributeTypeOk(arg UpdateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigReceiverPayloadGetNameAttributeType(arg *UpdateAlertConfigReceiverPayloadGetNameAttributeType, val UpdateAlertConfigReceiverPayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetNameRetType = string /* @@ -63,10 +77,16 @@ type UpdateAlertConfigReceiverPayloadGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsArgType = []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType = []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeTypeOk(arg UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType) (ret UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getUpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeTypeOk(arg Up return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType(arg *UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType, val UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType) { *arg = &val } @@ -83,10 +104,16 @@ func setUpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType(arg *Upd */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadWebHookConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetWebHookConfigsArgType = []CreateAlertConfigReceiverPayloadWebHookConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayloadGetWebHookConfigsRetType = []CreateAlertConfigReceiverPayloadWebHookConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeTypeOk(arg UpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType) (ret UpdateAlertConfigReceiverPayloadGetWebHookConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +121,13 @@ func getUpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeTypeOk(arg Upd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType(arg *UpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType, val UpdateAlertConfigReceiverPayloadGetWebHookConfigsRetType) { *arg = &val } // UpdateAlertConfigReceiverPayload Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigReceiverPayload struct { // Email configurations EmailConfigs UpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType `json:"emailConfigs,omitempty"` @@ -110,12 +139,14 @@ type UpdateAlertConfigReceiverPayload struct { WebHookConfigs UpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType `json:"webHookConfigs,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertConfigReceiverPayload UpdateAlertConfigReceiverPayload // NewUpdateAlertConfigReceiverPayload instantiates a new UpdateAlertConfigReceiverPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigReceiverPayload(name UpdateAlertConfigReceiverPayloadGetNameArgType) *UpdateAlertConfigReceiverPayload { this := UpdateAlertConfigReceiverPayload{} setUpdateAlertConfigReceiverPayloadGetNameAttributeType(&this.Name, name) @@ -125,12 +156,14 @@ func NewUpdateAlertConfigReceiverPayload(name UpdateAlertConfigReceiverPayloadGe // NewUpdateAlertConfigReceiverPayloadWithDefaults instantiates a new UpdateAlertConfigReceiverPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigReceiverPayloadWithDefaults() *UpdateAlertConfigReceiverPayload { this := UpdateAlertConfigReceiverPayload{} return &this } // GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetEmailConfigs() (res UpdateAlertConfigReceiverPayloadGetEmailConfigsRetType) { res, _ = o.GetEmailConfigsOk() return @@ -138,22 +171,26 @@ func (o *UpdateAlertConfigReceiverPayload) GetEmailConfigs() (res UpdateAlertCon // GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetEmailConfigsOk() (ret UpdateAlertConfigReceiverPayloadGetEmailConfigsRetType, ok bool) { return getUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(o.EmailConfigs) } // HasEmailConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) HasEmailConfigs() bool { _, ok := o.GetEmailConfigsOk() return ok } // SetEmailConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadEmailConfigsInner and assigns it to the EmailConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) SetEmailConfigs(v UpdateAlertConfigReceiverPayloadGetEmailConfigsRetType) { setUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeType(&o.EmailConfigs, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetName() (ret UpdateAlertConfigReceiverPayloadGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -161,16 +198,19 @@ func (o *UpdateAlertConfigReceiverPayload) GetName() (ret UpdateAlertConfigRecei // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetNameOk() (ret UpdateAlertConfigReceiverPayloadGetNameRetType, ok bool) { return getUpdateAlertConfigReceiverPayloadGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) SetName(v UpdateAlertConfigReceiverPayloadGetNameRetType) { setUpdateAlertConfigReceiverPayloadGetNameAttributeType(&o.Name, v) } // GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetOpsgenieConfigs() (res UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType) { res, _ = o.GetOpsgenieConfigsOk() return @@ -178,22 +218,26 @@ func (o *UpdateAlertConfigReceiverPayload) GetOpsgenieConfigs() (res UpdateAlert // GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetOpsgenieConfigsOk() (ret UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType, ok bool) { return getUpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeTypeOk(o.OpsgenieConfigs) } // HasOpsgenieConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) HasOpsgenieConfigs() bool { _, ok := o.GetOpsgenieConfigsOk() return ok } // SetOpsgenieConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner and assigns it to the OpsgenieConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) SetOpsgenieConfigs(v UpdateAlertConfigReceiverPayloadGetOpsgenieConfigsRetType) { setUpdateAlertConfigReceiverPayloadGetOpsgenieConfigsAttributeType(&o.OpsgenieConfigs, v) } // GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetWebHookConfigs() (res UpdateAlertConfigReceiverPayloadGetWebHookConfigsRetType) { res, _ = o.GetWebHookConfigsOk() return @@ -201,21 +245,25 @@ func (o *UpdateAlertConfigReceiverPayload) GetWebHookConfigs() (res UpdateAlertC // GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) GetWebHookConfigsOk() (ret UpdateAlertConfigReceiverPayloadGetWebHookConfigsRetType, ok bool) { return getUpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeTypeOk(o.WebHookConfigs) } // HasWebHookConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) HasWebHookConfigs() bool { _, ok := o.GetWebHookConfigsOk() return ok } // SetWebHookConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadWebHookConfigsInner and assigns it to the WebHookConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigReceiverPayload) SetWebHookConfigs(v UpdateAlertConfigReceiverPayloadGetWebHookConfigsRetType) { setUpdateAlertConfigReceiverPayloadGetWebHookConfigsAttributeType(&o.WebHookConfigs, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigReceiverPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigReceiverPayloadGetEmailConfigsAttributeTypeOk(o.EmailConfigs); ok { @@ -233,37 +281,45 @@ func (o UpdateAlertConfigReceiverPayload) ToMap() (map[string]interface{}, error return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigReceiverPayload struct { value *UpdateAlertConfigReceiverPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigReceiverPayload) Get() *UpdateAlertConfigReceiverPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigReceiverPayload) Set(val *UpdateAlertConfigReceiverPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigReceiverPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigReceiverPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigReceiverPayload(val *UpdateAlertConfigReceiverPayload) *NullableUpdateAlertConfigReceiverPayload { return &NullableUpdateAlertConfigReceiverPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigReceiverPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigReceiverPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_config_route_payload.go b/services/observability/model_update_alert_config_route_payload.go index 5769c5ea3..3e3e478d6 100644 --- a/services/observability/model_update_alert_config_route_payload.go +++ b/services/observability/model_update_alert_config_route_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigRoutePayload{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadgetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadgetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadgetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadgetContinueAttributeTypeOk(arg UpdateAlertConfigRoutePayloadgetContinueAttributeType) (ret UpdateAlertConfigRoutePayloadgetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigRoutePayloadgetContinueAttributeTypeOk(arg UpdateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadgetContinueAttributeType(arg *UpdateAlertConfigRoutePayloadgetContinueAttributeType, val UpdateAlertConfigRoutePayloadgetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateAlertConfigRoutePayloadgetContinueAttributeType(arg *UpdateAlertCo */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetGroupByAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetGroupByAttributeType) (ret UpdateAlertConfigRoutePayloadGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getUpdateAlertConfigRoutePayloadGetGroupByAttributeTypeOk(arg UpdateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetGroupByAttributeType(arg *UpdateAlertConfigRoutePayloadGetGroupByAttributeType, val UpdateAlertConfigRoutePayloadGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setUpdateAlertConfigRoutePayloadGetGroupByAttributeType(arg *UpdateAlertCon */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetGroupIntervalAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetGroupIntervalAttributeType) (ret UpdateAlertConfigRoutePayloadGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getUpdateAlertConfigRoutePayloadGetGroupIntervalAttributeTypeOk(arg UpdateA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetGroupIntervalAttributeType(arg *UpdateAlertConfigRoutePayloadGetGroupIntervalAttributeType, val UpdateAlertConfigRoutePayloadGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type UpdateAlertConfigRoutePayloadGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetGroupWaitAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetGroupWaitAttributeType) (ret UpdateAlertConfigRoutePayloadGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getUpdateAlertConfigRoutePayloadGetGroupWaitAttributeTypeOk(arg UpdateAlert return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetGroupWaitAttributeType(arg *UpdateAlertConfigRoutePayloadGetGroupWaitAttributeType, val UpdateAlertConfigRoutePayloadGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type UpdateAlertConfigRoutePayloadGetGroupWaitRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetMatchAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetMatchAttributeType) (ret UpdateAlertConfigRoutePayloadGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getUpdateAlertConfigRoutePayloadGetMatchAttributeTypeOk(arg UpdateAlertConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetMatchAttributeType(arg *UpdateAlertConfigRoutePayloadGetMatchAttributeType, val UpdateAlertConfigRoutePayloadGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setUpdateAlertConfigRoutePayloadGetMatchAttributeType(arg *UpdateAlertConfi */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetMatchReAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetMatchReAttributeType) (ret UpdateAlertConfigRoutePayloadGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getUpdateAlertConfigRoutePayloadGetMatchReAttributeTypeOk(arg UpdateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetMatchReAttributeType(arg *UpdateAlertConfigRoutePayloadGetMatchReAttributeType, val UpdateAlertConfigRoutePayloadGetMatchReRetType) { *arg = &val } @@ -144,10 +185,16 @@ func setUpdateAlertConfigRoutePayloadGetMatchReAttributeType(arg *UpdateAlertCon */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetMatchersAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetMatchersAttributeType) (ret UpdateAlertConfigRoutePayloadGetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -155,6 +202,7 @@ func getUpdateAlertConfigRoutePayloadGetMatchersAttributeTypeOk(arg UpdateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetMatchersAttributeType(arg *UpdateAlertConfigRoutePayloadGetMatchersAttributeType, val UpdateAlertConfigRoutePayloadGetMatchersRetType) { *arg = &val } @@ -164,8 +212,10 @@ func setUpdateAlertConfigRoutePayloadGetMatchersAttributeType(arg *UpdateAlertCo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetReceiverAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetReceiverAttributeType) (ret UpdateAlertConfigRoutePayloadGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -173,11 +223,15 @@ func getUpdateAlertConfigRoutePayloadGetReceiverAttributeTypeOk(arg UpdateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetReceiverAttributeType(arg *UpdateAlertConfigRoutePayloadGetReceiverAttributeType, val UpdateAlertConfigRoutePayloadGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetReceiverRetType = string /* @@ -185,8 +239,10 @@ type UpdateAlertConfigRoutePayloadGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeType) (ret UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -194,11 +250,15 @@ func getUpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeType(arg *UpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeType, val UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType = string /* @@ -206,10 +266,16 @@ type UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetRoutesAttributeType = *[]CreateAlertConfigRoutePayloadRoutesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetRoutesArgType = []CreateAlertConfigRoutePayloadRoutesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayloadGetRoutesRetType = []CreateAlertConfigRoutePayloadRoutesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigRoutePayloadGetRoutesAttributeTypeOk(arg UpdateAlertConfigRoutePayloadGetRoutesAttributeType) (ret UpdateAlertConfigRoutePayloadGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +283,13 @@ func getUpdateAlertConfigRoutePayloadGetRoutesAttributeTypeOk(arg UpdateAlertCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigRoutePayloadGetRoutesAttributeType(arg *UpdateAlertConfigRoutePayloadGetRoutesAttributeType, val UpdateAlertConfigRoutePayloadGetRoutesRetType) { *arg = &val } // UpdateAlertConfigRoutePayload The root node of the routing tree. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigRoutePayload struct { // The continue parameter cannot be set to true on the root route because there are no subsequent sibling nodes to match. It must always be false. Continue UpdateAlertConfigRoutePayloadgetContinueAttributeType `json:"continue,omitempty"` @@ -246,12 +314,14 @@ type UpdateAlertConfigRoutePayload struct { Routes UpdateAlertConfigRoutePayloadGetRoutesAttributeType `json:"routes,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertConfigRoutePayload UpdateAlertConfigRoutePayload // NewUpdateAlertConfigRoutePayload instantiates a new UpdateAlertConfigRoutePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigRoutePayload(receiver UpdateAlertConfigRoutePayloadGetReceiverArgType) *UpdateAlertConfigRoutePayload { this := UpdateAlertConfigRoutePayload{} setUpdateAlertConfigRoutePayloadGetReceiverAttributeType(&this.Receiver, receiver) @@ -261,6 +331,7 @@ func NewUpdateAlertConfigRoutePayload(receiver UpdateAlertConfigRoutePayloadGetR // NewUpdateAlertConfigRoutePayloadWithDefaults instantiates a new UpdateAlertConfigRoutePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigRoutePayloadWithDefaults() *UpdateAlertConfigRoutePayload { this := UpdateAlertConfigRoutePayload{} var continue_ bool = false @@ -275,6 +346,7 @@ func NewUpdateAlertConfigRoutePayloadWithDefaults() *UpdateAlertConfigRoutePaylo } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetContinue() (res UpdateAlertConfigRoutePayloadgetContinueRetType) { res, _ = o.GetContinueOk() return @@ -282,22 +354,26 @@ func (o *UpdateAlertConfigRoutePayload) GetContinue() (res UpdateAlertConfigRout // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetContinueOk() (ret UpdateAlertConfigRoutePayloadgetContinueRetType, ok bool) { return getUpdateAlertConfigRoutePayloadgetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetContinue(v UpdateAlertConfigRoutePayloadgetContinueRetType) { setUpdateAlertConfigRoutePayloadgetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetGroupBy() (res UpdateAlertConfigRoutePayloadGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -305,22 +381,26 @@ func (o *UpdateAlertConfigRoutePayload) GetGroupBy() (res UpdateAlertConfigRoute // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetGroupByOk() (ret UpdateAlertConfigRoutePayloadGetGroupByRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetGroupBy(v UpdateAlertConfigRoutePayloadGetGroupByRetType) { setUpdateAlertConfigRoutePayloadGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetGroupInterval() (res UpdateAlertConfigRoutePayloadGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -328,22 +408,26 @@ func (o *UpdateAlertConfigRoutePayload) GetGroupInterval() (res UpdateAlertConfi // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetGroupIntervalOk() (ret UpdateAlertConfigRoutePayloadGetGroupIntervalRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetGroupInterval(v UpdateAlertConfigRoutePayloadGetGroupIntervalRetType) { setUpdateAlertConfigRoutePayloadGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetGroupWait() (res UpdateAlertConfigRoutePayloadGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -351,23 +435,26 @@ func (o *UpdateAlertConfigRoutePayload) GetGroupWait() (res UpdateAlertConfigRou // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetGroupWaitOk() (ret UpdateAlertConfigRoutePayloadGetGroupWaitRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetGroupWait(v UpdateAlertConfigRoutePayloadGetGroupWaitRetType) { setUpdateAlertConfigRoutePayloadGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetMatch() (res UpdateAlertConfigRoutePayloadGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -375,25 +462,26 @@ func (o *UpdateAlertConfigRoutePayload) GetMatch() (res UpdateAlertConfigRoutePa // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetMatchOk() (ret UpdateAlertConfigRoutePayloadGetMatchRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetMatch(v UpdateAlertConfigRoutePayloadGetMatchRetType) { setUpdateAlertConfigRoutePayloadGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetMatchRe() (res UpdateAlertConfigRoutePayloadGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -401,24 +489,26 @@ func (o *UpdateAlertConfigRoutePayload) GetMatchRe() (res UpdateAlertConfigRoute // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetMatchReOk() (ret UpdateAlertConfigRoutePayloadGetMatchReRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetMatchRe(v UpdateAlertConfigRoutePayloadGetMatchReRetType) { setUpdateAlertConfigRoutePayloadGetMatchReAttributeType(&o.MatchRe, v) } // GetMatchers returns the Matchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetMatchers() (res UpdateAlertConfigRoutePayloadGetMatchersRetType) { res, _ = o.GetMatchersOk() return @@ -426,22 +516,26 @@ func (o *UpdateAlertConfigRoutePayload) GetMatchers() (res UpdateAlertConfigRout // GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetMatchersOk() (ret UpdateAlertConfigRoutePayloadGetMatchersRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetMatchersAttributeTypeOk(o.Matchers) } // HasMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasMatchers() bool { _, ok := o.GetMatchersOk() return ok } // SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetMatchers(v UpdateAlertConfigRoutePayloadGetMatchersRetType) { setUpdateAlertConfigRoutePayloadGetMatchersAttributeType(&o.Matchers, v) } // GetReceiver returns the Receiver field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetReceiver() (ret UpdateAlertConfigRoutePayloadGetReceiverRetType) { ret, _ = o.GetReceiverOk() return ret @@ -449,16 +543,19 @@ func (o *UpdateAlertConfigRoutePayload) GetReceiver() (ret UpdateAlertConfigRout // GetReceiverOk returns a tuple with the Receiver field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetReceiverOk() (ret UpdateAlertConfigRoutePayloadGetReceiverRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetReceiverAttributeTypeOk(o.Receiver) } // SetReceiver sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetReceiver(v UpdateAlertConfigRoutePayloadGetReceiverRetType) { setUpdateAlertConfigRoutePayloadGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetRepeatInterval() (res UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -466,22 +563,26 @@ func (o *UpdateAlertConfigRoutePayload) GetRepeatInterval() (res UpdateAlertConf // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetRepeatIntervalOk() (ret UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetRepeatInterval(v UpdateAlertConfigRoutePayloadGetRepeatIntervalRetType) { setUpdateAlertConfigRoutePayloadGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetRoutes() (res UpdateAlertConfigRoutePayloadGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -489,21 +590,25 @@ func (o *UpdateAlertConfigRoutePayload) GetRoutes() (res UpdateAlertConfigRouteP // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) GetRoutesOk() (ret UpdateAlertConfigRoutePayloadGetRoutesRetType, ok bool) { return getUpdateAlertConfigRoutePayloadGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []CreateAlertConfigRoutePayloadRoutesInner and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigRoutePayload) SetRoutes(v UpdateAlertConfigRoutePayloadGetRoutesRetType) { setUpdateAlertConfigRoutePayloadGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigRoutePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigRoutePayloadgetContinueAttributeTypeOk(o.Continue); ok { @@ -539,37 +644,45 @@ func (o UpdateAlertConfigRoutePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigRoutePayload struct { value *UpdateAlertConfigRoutePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigRoutePayload) Get() *UpdateAlertConfigRoutePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigRoutePayload) Set(val *UpdateAlertConfigRoutePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigRoutePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigRoutePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigRoutePayload(val *UpdateAlertConfigRoutePayload) *NullableUpdateAlertConfigRoutePayload { return &NullableUpdateAlertConfigRoutePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigRoutePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigRoutePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_payload.go b/services/observability/model_update_alert_configs_payload.go index 4a8053a74..aa5e43db1 100644 --- a/services/observability/model_update_alert_configs_payload.go +++ b/services/observability/model_update_alert_configs_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigsPayload{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetGlobalAttributeType = *UpdateAlertConfigsPayloadGlobal + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetGlobalArgType = UpdateAlertConfigsPayloadGlobal + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetGlobalRetType = UpdateAlertConfigsPayloadGlobal +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGetGlobalAttributeTypeOk(arg UpdateAlertConfigsPayloadGetGlobalAttributeType) (ret UpdateAlertConfigsPayloadGetGlobalRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigsPayloadGetGlobalAttributeTypeOk(arg UpdateAlertConfigs return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGetGlobalAttributeType(arg *UpdateAlertConfigsPayloadGetGlobalAttributeType, val UpdateAlertConfigsPayloadGetGlobalRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateAlertConfigsPayloadGetGlobalAttributeType(arg *UpdateAlertConfigsP */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetInhibitRulesAttributeType = *UpdateAlertConfigsPayloadInhibitRules + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetInhibitRulesArgType = UpdateAlertConfigsPayloadInhibitRules + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetInhibitRulesRetType = UpdateAlertConfigsPayloadInhibitRules +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGetInhibitRulesAttributeTypeOk(arg UpdateAlertConfigsPayloadGetInhibitRulesAttributeType) (ret UpdateAlertConfigsPayloadGetInhibitRulesRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getUpdateAlertConfigsPayloadGetInhibitRulesAttributeTypeOk(arg UpdateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGetInhibitRulesAttributeType(arg *UpdateAlertConfigsPayloadGetInhibitRulesAttributeType, val UpdateAlertConfigsPayloadGetInhibitRulesRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setUpdateAlertConfigsPayloadGetInhibitRulesAttributeType(arg *UpdateAlertCo */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetReceiversAttributeType = *[]UpdateAlertConfigsPayloadReceiversInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetReceiversArgType = []UpdateAlertConfigsPayloadReceiversInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetReceiversRetType = []UpdateAlertConfigsPayloadReceiversInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGetReceiversAttributeTypeOk(arg UpdateAlertConfigsPayloadGetReceiversAttributeType) (ret UpdateAlertConfigsPayloadGetReceiversRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getUpdateAlertConfigsPayloadGetReceiversAttributeTypeOk(arg UpdateAlertConf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGetReceiversAttributeType(arg *UpdateAlertConfigsPayloadGetReceiversAttributeType, val UpdateAlertConfigsPayloadGetReceiversRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setUpdateAlertConfigsPayloadGetReceiversAttributeType(arg *UpdateAlertConfi */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetRouteAttributeType = *UpdateAlertConfigsPayloadRoute + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetRouteArgType = UpdateAlertConfigsPayloadRoute + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGetRouteRetType = UpdateAlertConfigsPayloadRoute +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGetRouteAttributeTypeOk(arg UpdateAlertConfigsPayloadGetRouteAttributeType) (ret UpdateAlertConfigsPayloadGetRouteRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +121,13 @@ func getUpdateAlertConfigsPayloadGetRouteAttributeTypeOk(arg UpdateAlertConfigsP return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGetRouteAttributeType(arg *UpdateAlertConfigsPayloadGetRouteAttributeType, val UpdateAlertConfigsPayloadGetRouteRetType) { *arg = &val } // UpdateAlertConfigsPayload Alert config +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayload struct { Global UpdateAlertConfigsPayloadGetGlobalAttributeType `json:"global,omitempty"` InhibitRules UpdateAlertConfigsPayloadGetInhibitRulesAttributeType `json:"inhibitRules,omitempty"` @@ -108,12 +138,14 @@ type UpdateAlertConfigsPayload struct { Route UpdateAlertConfigsPayloadGetRouteAttributeType `json:"route" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertConfigsPayload UpdateAlertConfigsPayload // NewUpdateAlertConfigsPayload instantiates a new UpdateAlertConfigsPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayload(receivers UpdateAlertConfigsPayloadGetReceiversArgType, route UpdateAlertConfigsPayloadGetRouteArgType) *UpdateAlertConfigsPayload { this := UpdateAlertConfigsPayload{} setUpdateAlertConfigsPayloadGetReceiversAttributeType(&this.Receivers, receivers) @@ -124,12 +156,14 @@ func NewUpdateAlertConfigsPayload(receivers UpdateAlertConfigsPayloadGetReceiver // NewUpdateAlertConfigsPayloadWithDefaults instantiates a new UpdateAlertConfigsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadWithDefaults() *UpdateAlertConfigsPayload { this := UpdateAlertConfigsPayload{} return &this } // GetGlobal returns the Global field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetGlobal() (res UpdateAlertConfigsPayloadGetGlobalRetType) { res, _ = o.GetGlobalOk() return @@ -137,22 +171,26 @@ func (o *UpdateAlertConfigsPayload) GetGlobal() (res UpdateAlertConfigsPayloadGe // GetGlobalOk returns a tuple with the Global field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetGlobalOk() (ret UpdateAlertConfigsPayloadGetGlobalRetType, ok bool) { return getUpdateAlertConfigsPayloadGetGlobalAttributeTypeOk(o.Global) } // HasGlobal returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) HasGlobal() bool { _, ok := o.GetGlobalOk() return ok } // SetGlobal gets a reference to the given UpdateAlertConfigsPayloadGlobal and assigns it to the Global field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) SetGlobal(v UpdateAlertConfigsPayloadGetGlobalRetType) { setUpdateAlertConfigsPayloadGetGlobalAttributeType(&o.Global, v) } // GetInhibitRules returns the InhibitRules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetInhibitRules() (res UpdateAlertConfigsPayloadGetInhibitRulesRetType) { res, _ = o.GetInhibitRulesOk() return @@ -160,22 +198,26 @@ func (o *UpdateAlertConfigsPayload) GetInhibitRules() (res UpdateAlertConfigsPay // GetInhibitRulesOk returns a tuple with the InhibitRules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetInhibitRulesOk() (ret UpdateAlertConfigsPayloadGetInhibitRulesRetType, ok bool) { return getUpdateAlertConfigsPayloadGetInhibitRulesAttributeTypeOk(o.InhibitRules) } // HasInhibitRules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) HasInhibitRules() bool { _, ok := o.GetInhibitRulesOk() return ok } // SetInhibitRules gets a reference to the given UpdateAlertConfigsPayloadInhibitRules and assigns it to the InhibitRules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) SetInhibitRules(v UpdateAlertConfigsPayloadGetInhibitRulesRetType) { setUpdateAlertConfigsPayloadGetInhibitRulesAttributeType(&o.InhibitRules, v) } // GetReceivers returns the Receivers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetReceivers() (ret UpdateAlertConfigsPayloadGetReceiversRetType) { ret, _ = o.GetReceiversOk() return ret @@ -183,16 +225,19 @@ func (o *UpdateAlertConfigsPayload) GetReceivers() (ret UpdateAlertConfigsPayloa // GetReceiversOk returns a tuple with the Receivers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetReceiversOk() (ret UpdateAlertConfigsPayloadGetReceiversRetType, ok bool) { return getUpdateAlertConfigsPayloadGetReceiversAttributeTypeOk(o.Receivers) } // SetReceivers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) SetReceivers(v UpdateAlertConfigsPayloadGetReceiversRetType) { setUpdateAlertConfigsPayloadGetReceiversAttributeType(&o.Receivers, v) } // GetRoute returns the Route field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetRoute() (ret UpdateAlertConfigsPayloadGetRouteRetType) { ret, _ = o.GetRouteOk() return ret @@ -200,15 +245,18 @@ func (o *UpdateAlertConfigsPayload) GetRoute() (ret UpdateAlertConfigsPayloadGet // GetRouteOk returns a tuple with the Route field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) GetRouteOk() (ret UpdateAlertConfigsPayloadGetRouteRetType, ok bool) { return getUpdateAlertConfigsPayloadGetRouteAttributeTypeOk(o.Route) } // SetRoute sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayload) SetRoute(v UpdateAlertConfigsPayloadGetRouteRetType) { setUpdateAlertConfigsPayloadGetRouteAttributeType(&o.Route, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsPayloadGetGlobalAttributeTypeOk(o.Global); ok { @@ -226,37 +274,45 @@ func (o UpdateAlertConfigsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsPayload struct { value *UpdateAlertConfigsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayload) Get() *UpdateAlertConfigsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayload) Set(val *UpdateAlertConfigsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsPayload(val *UpdateAlertConfigsPayload) *NullableUpdateAlertConfigsPayload { return &NullableUpdateAlertConfigsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_payload_global.go b/services/observability/model_update_alert_configs_payload_global.go index b5248bba3..2f83022bd 100644 --- a/services/observability/model_update_alert_configs_payload_global.go +++ b/services/observability/model_update_alert_configs_payload_global.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateAlertConfigsPayloadGlobal{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeType, val UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType = string /* @@ -43,8 +50,10 @@ type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeType, val UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType = string /* @@ -64,8 +77,10 @@ type UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getUpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeType, val UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetResolveTimeoutArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType = string /* @@ -85,8 +104,10 @@ type UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +115,15 @@ func getUpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeTypeOk(arg Up return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeType, val UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType = string /* @@ -106,8 +131,10 @@ type UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +142,15 @@ func getUpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeTypeOk(arg Up return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeType, val UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType = string /* @@ -127,8 +158,10 @@ type UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -136,11 +169,15 @@ func getUpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeTypeOk(arg Up return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeType, val UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType = string /* @@ -148,8 +185,10 @@ type UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType, ok bool) { if arg == nil { return ret, false @@ -157,11 +196,15 @@ func getUpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeTypeOk(arg UpdateAler return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeType, val UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpFromArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType = string /* @@ -169,8 +212,10 @@ type UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeTypeOk(arg UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeType) (ret UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostRetType, ok bool) { if arg == nil { return ret, false @@ -178,14 +223,19 @@ func getUpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeTypeOk(arg Updat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeType(arg *UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeType, val UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostRetType = string // UpdateAlertConfigsPayloadGlobal Global config. If nothing passed the default argus config will be used. It is only possible to update the entire global part, not individual attributes. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadGlobal struct { // Opsgenie api key `Additional Validators:` * should only include the characters: a-zA-Z0-9- OpsgenieApiKey UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeType `json:"opsgenieApiKey,omitempty"` @@ -209,6 +259,7 @@ type UpdateAlertConfigsPayloadGlobal struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadGlobal() *UpdateAlertConfigsPayloadGlobal { this := UpdateAlertConfigsPayloadGlobal{} return &this @@ -217,6 +268,7 @@ func NewUpdateAlertConfigsPayloadGlobal() *UpdateAlertConfigsPayloadGlobal { // NewUpdateAlertConfigsPayloadGlobalWithDefaults instantiates a new UpdateAlertConfigsPayloadGlobal object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadGlobalWithDefaults() *UpdateAlertConfigsPayloadGlobal { this := UpdateAlertConfigsPayloadGlobal{} var resolveTimeout string = "5m" @@ -225,6 +277,7 @@ func NewUpdateAlertConfigsPayloadGlobalWithDefaults() *UpdateAlertConfigsPayload } // GetOpsgenieApiKey returns the OpsgenieApiKey field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiKey() (res UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType) { res, _ = o.GetOpsgenieApiKeyOk() return @@ -232,22 +285,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiKey() (res UpdateAlertCo // GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiKeyOk() (ret UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeTypeOk(o.OpsgenieApiKey) } // HasOpsgenieApiKey returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasOpsgenieApiKey() bool { _, ok := o.GetOpsgenieApiKeyOk() return ok } // SetOpsgenieApiKey gets a reference to the given string and assigns it to the OpsgenieApiKey field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetOpsgenieApiKey(v UpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyRetType) { setUpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeType(&o.OpsgenieApiKey, v) } // GetOpsgenieApiUrl returns the OpsgenieApiUrl field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiUrl() (res UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType) { res, _ = o.GetOpsgenieApiUrlOk() return @@ -255,22 +312,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiUrl() (res UpdateAlertCo // GetOpsgenieApiUrlOk returns a tuple with the OpsgenieApiUrl field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiUrlOk() (ret UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeTypeOk(o.OpsgenieApiUrl) } // HasOpsgenieApiUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasOpsgenieApiUrl() bool { _, ok := o.GetOpsgenieApiUrlOk() return ok } // SetOpsgenieApiUrl gets a reference to the given string and assigns it to the OpsgenieApiUrl field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetOpsgenieApiUrl(v UpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlRetType) { setUpdateAlertConfigsPayloadGlobalGetOpsgenieApiUrlAttributeType(&o.OpsgenieApiUrl, v) } // GetResolveTimeout returns the ResolveTimeout field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetResolveTimeout() (res UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType) { res, _ = o.GetResolveTimeoutOk() return @@ -278,22 +339,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetResolveTimeout() (res UpdateAlertCo // GetResolveTimeoutOk returns a tuple with the ResolveTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetResolveTimeoutOk() (ret UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeTypeOk(o.ResolveTimeout) } // HasResolveTimeout returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasResolveTimeout() bool { _, ok := o.GetResolveTimeoutOk() return ok } // SetResolveTimeout gets a reference to the given string and assigns it to the ResolveTimeout field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetResolveTimeout(v UpdateAlertConfigsPayloadGlobalGetResolveTimeoutRetType) { setUpdateAlertConfigsPayloadGlobalGetResolveTimeoutAttributeType(&o.ResolveTimeout, v) } // GetSmtpAuthIdentity returns the SmtpAuthIdentity field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthIdentity() (res UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType) { res, _ = o.GetSmtpAuthIdentityOk() return @@ -301,22 +366,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthIdentity() (res UpdateAlert // GetSmtpAuthIdentityOk returns a tuple with the SmtpAuthIdentity field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthIdentityOk() (ret UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeTypeOk(o.SmtpAuthIdentity) } // HasSmtpAuthIdentity returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthIdentity() bool { _, ok := o.GetSmtpAuthIdentityOk() return ok } // SetSmtpAuthIdentity gets a reference to the given string and assigns it to the SmtpAuthIdentity field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpAuthIdentity(v UpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityRetType) { setUpdateAlertConfigsPayloadGlobalGetSmtpAuthIdentityAttributeType(&o.SmtpAuthIdentity, v) } // GetSmtpAuthPassword returns the SmtpAuthPassword field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthPassword() (res UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType) { res, _ = o.GetSmtpAuthPasswordOk() return @@ -324,22 +393,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthPassword() (res UpdateAlert // GetSmtpAuthPasswordOk returns a tuple with the SmtpAuthPassword field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthPasswordOk() (ret UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeTypeOk(o.SmtpAuthPassword) } // HasSmtpAuthPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthPassword() bool { _, ok := o.GetSmtpAuthPasswordOk() return ok } // SetSmtpAuthPassword gets a reference to the given string and assigns it to the SmtpAuthPassword field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpAuthPassword(v UpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordRetType) { setUpdateAlertConfigsPayloadGlobalGetSmtpAuthPasswordAttributeType(&o.SmtpAuthPassword, v) } // GetSmtpAuthUsername returns the SmtpAuthUsername field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthUsername() (res UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType) { res, _ = o.GetSmtpAuthUsernameOk() return @@ -347,22 +420,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthUsername() (res UpdateAlert // GetSmtpAuthUsernameOk returns a tuple with the SmtpAuthUsername field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthUsernameOk() (ret UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeTypeOk(o.SmtpAuthUsername) } // HasSmtpAuthUsername returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthUsername() bool { _, ok := o.GetSmtpAuthUsernameOk() return ok } // SetSmtpAuthUsername gets a reference to the given string and assigns it to the SmtpAuthUsername field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpAuthUsername(v UpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameRetType) { setUpdateAlertConfigsPayloadGlobalGetSmtpAuthUsernameAttributeType(&o.SmtpAuthUsername, v) } // GetSmtpFrom returns the SmtpFrom field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpFrom() (res UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType) { res, _ = o.GetSmtpFromOk() return @@ -370,22 +447,26 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpFrom() (res UpdateAlertConfigsP // GetSmtpFromOk returns a tuple with the SmtpFrom field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpFromOk() (ret UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeTypeOk(o.SmtpFrom) } // HasSmtpFrom returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpFrom() bool { _, ok := o.GetSmtpFromOk() return ok } // SetSmtpFrom gets a reference to the given string and assigns it to the SmtpFrom field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpFrom(v UpdateAlertConfigsPayloadGlobalGetSmtpFromRetType) { setUpdateAlertConfigsPayloadGlobalGetSmtpFromAttributeType(&o.SmtpFrom, v) } // GetSmtpSmarthost returns the SmtpSmarthost field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpSmarthost() (res UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostRetType) { res, _ = o.GetSmtpSmarthostOk() return @@ -393,21 +474,25 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpSmarthost() (res UpdateAlertCon // GetSmtpSmarthostOk returns a tuple with the SmtpSmarthost field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpSmarthostOk() (ret UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostRetType, ok bool) { return getUpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeTypeOk(o.SmtpSmarthost) } // HasSmtpSmarthost returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpSmarthost() bool { _, ok := o.GetSmtpSmarthostOk() return ok } // SetSmtpSmarthost gets a reference to the given string and assigns it to the SmtpSmarthost field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpSmarthost(v UpdateAlertConfigsPayloadGlobalGetSmtpSmarthostRetType) { setUpdateAlertConfigsPayloadGlobalGetSmtpSmarthostAttributeType(&o.SmtpSmarthost, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsPayloadGlobal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsPayloadGlobalGetOpsgenieApiKeyAttributeTypeOk(o.OpsgenieApiKey); ok { @@ -437,37 +522,45 @@ func (o UpdateAlertConfigsPayloadGlobal) ToMap() (map[string]interface{}, error) return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsPayloadGlobal struct { value *UpdateAlertConfigsPayloadGlobal isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadGlobal) Get() *UpdateAlertConfigsPayloadGlobal { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadGlobal) Set(val *UpdateAlertConfigsPayloadGlobal) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadGlobal) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadGlobal) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsPayloadGlobal(val *UpdateAlertConfigsPayloadGlobal) *NullableUpdateAlertConfigsPayloadGlobal { return &NullableUpdateAlertConfigsPayloadGlobal{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadGlobal) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadGlobal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_payload_inhibit_rules.go b/services/observability/model_update_alert_configs_payload_inhibit_rules.go index d6df16641..f94224905 100644 --- a/services/observability/model_update_alert_configs_payload_inhibit_rules.go +++ b/services/observability/model_update_alert_configs_payload_inhibit_rules.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigsPayloadInhibitRules{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetEqualArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetEqualRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeTypeOk(arg UpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType) (ret UpdateAlertConfigsPayloadInhibitRulesGetEqualRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeTypeOk(arg UpdateA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType(arg *UpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType, val UpdateAlertConfigsPayloadInhibitRulesGetEqualRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType(arg *UpdateAl */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeTypeOk(arg UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeType) (ret UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeTypeOk(arg U return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeType(arg *UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeType, val UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeType(arg *Up */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeTypeOk(arg UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeType) (ret UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeType(arg *UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeType, val UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeType(arg * */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeTypeOk(arg UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeType) (ret UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -93,6 +121,7 @@ func getUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeTypeOk(arg U return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeType(arg *UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeType, val UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchRetType) { *arg = &val } @@ -102,10 +131,16 @@ func setUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeType(arg *Up */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeTypeOk(arg UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeType) (ret UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -113,11 +148,13 @@ func getUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeType(arg *UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeType, val UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReRetType) { *arg = &val } // UpdateAlertConfigsPayloadInhibitRules A list of inhibition rules. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadInhibitRules struct { // Labels that must have an equal value in the source and target alert for the inhibition to take effect. `Additional Validators:` * should only include the characters: a-zA-Z0-9_./@&?:- Equal UpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType `json:"equal,omitempty"` @@ -135,6 +172,7 @@ type UpdateAlertConfigsPayloadInhibitRules struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadInhibitRules() *UpdateAlertConfigsPayloadInhibitRules { this := UpdateAlertConfigsPayloadInhibitRules{} return &this @@ -143,12 +181,14 @@ func NewUpdateAlertConfigsPayloadInhibitRules() *UpdateAlertConfigsPayloadInhibi // NewUpdateAlertConfigsPayloadInhibitRulesWithDefaults instantiates a new UpdateAlertConfigsPayloadInhibitRules object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadInhibitRulesWithDefaults() *UpdateAlertConfigsPayloadInhibitRules { this := UpdateAlertConfigsPayloadInhibitRules{} return &this } // GetEqual returns the Equal field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetEqual() (res UpdateAlertConfigsPayloadInhibitRulesGetEqualRetType) { res, _ = o.GetEqualOk() return @@ -156,22 +196,26 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetEqual() (res UpdateAlertConfi // GetEqualOk returns a tuple with the Equal field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetEqualOk() (ret UpdateAlertConfigsPayloadInhibitRulesGetEqualRetType, ok bool) { return getUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeTypeOk(o.Equal) } // HasEqual returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) HasEqual() bool { _, ok := o.GetEqualOk() return ok } // SetEqual gets a reference to the given []string and assigns it to the Equal field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) SetEqual(v UpdateAlertConfigsPayloadInhibitRulesGetEqualRetType) { setUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeType(&o.Equal, v) } // GetSourceMatch returns the SourceMatch field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatch() (res UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchRetType) { res, _ = o.GetSourceMatchOk() return @@ -179,22 +223,26 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatch() (res UpdateAler // GetSourceMatchOk returns a tuple with the SourceMatch field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchOk() (ret UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchRetType, ok bool) { return getUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeTypeOk(o.SourceMatch) } // HasSourceMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) HasSourceMatch() bool { _, ok := o.GetSourceMatchOk() return ok } // SetSourceMatch gets a reference to the given map[string]interface{} and assigns it to the SourceMatch field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) SetSourceMatch(v UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchRetType) { setUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchAttributeType(&o.SourceMatch, v) } // GetSourceMatchRe returns the SourceMatchRe field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchRe() (res UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReRetType) { res, _ = o.GetSourceMatchReOk() return @@ -202,22 +250,26 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchRe() (res UpdateAl // GetSourceMatchReOk returns a tuple with the SourceMatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchReOk() (ret UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReRetType, ok bool) { return getUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeTypeOk(o.SourceMatchRe) } // HasSourceMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) HasSourceMatchRe() bool { _, ok := o.GetSourceMatchReOk() return ok } // SetSourceMatchRe gets a reference to the given map[string]interface{} and assigns it to the SourceMatchRe field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) SetSourceMatchRe(v UpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReRetType) { setUpdateAlertConfigsPayloadInhibitRulesGetSourceMatchReAttributeType(&o.SourceMatchRe, v) } // GetTargetMatch returns the TargetMatch field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatch() (res UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchRetType) { res, _ = o.GetTargetMatchOk() return @@ -225,22 +277,26 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatch() (res UpdateAler // GetTargetMatchOk returns a tuple with the TargetMatch field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchOk() (ret UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchRetType, ok bool) { return getUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeTypeOk(o.TargetMatch) } // HasTargetMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) HasTargetMatch() bool { _, ok := o.GetTargetMatchOk() return ok } // SetTargetMatch gets a reference to the given map[string]interface{} and assigns it to the TargetMatch field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) SetTargetMatch(v UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchRetType) { setUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchAttributeType(&o.TargetMatch, v) } // GetTargetMatchRe returns the TargetMatchRe field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchRe() (res UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReRetType) { res, _ = o.GetTargetMatchReOk() return @@ -248,21 +304,25 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchRe() (res UpdateAl // GetTargetMatchReOk returns a tuple with the TargetMatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchReOk() (ret UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReRetType, ok bool) { return getUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeTypeOk(o.TargetMatchRe) } // HasTargetMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) HasTargetMatchRe() bool { _, ok := o.GetTargetMatchReOk() return ok } // SetTargetMatchRe gets a reference to the given map[string]interface{} and assigns it to the TargetMatchRe field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadInhibitRules) SetTargetMatchRe(v UpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReRetType) { setUpdateAlertConfigsPayloadInhibitRulesGetTargetMatchReAttributeType(&o.TargetMatchRe, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsPayloadInhibitRules) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsPayloadInhibitRulesGetEqualAttributeTypeOk(o.Equal); ok { @@ -283,37 +343,45 @@ func (o UpdateAlertConfigsPayloadInhibitRules) ToMap() (map[string]interface{}, return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsPayloadInhibitRules struct { value *UpdateAlertConfigsPayloadInhibitRules isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadInhibitRules) Get() *UpdateAlertConfigsPayloadInhibitRules { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadInhibitRules) Set(val *UpdateAlertConfigsPayloadInhibitRules) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadInhibitRules) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadInhibitRules) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsPayloadInhibitRules(val *UpdateAlertConfigsPayloadInhibitRules) *NullableUpdateAlertConfigsPayloadInhibitRules { return &NullableUpdateAlertConfigsPayloadInhibitRules{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadInhibitRules) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadInhibitRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_payload_receivers_inner.go b/services/observability/model_update_alert_configs_payload_receivers_inner.go index a79f2bb06..d4d93fa33 100644 --- a/services/observability/model_update_alert_configs_payload_receivers_inner.go +++ b/services/observability/model_update_alert_configs_payload_receivers_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigsPayloadReceiversInner{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadEmailConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsArgType = []CreateAlertConfigReceiverPayloadEmailConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsRetType = []CreateAlertConfigReceiverPayloadEmailConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeTypeOk(arg UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType) (ret UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeTypeOk(ar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType(arg *UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType, val UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType(arg */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadReceiversInnerGetNameAttributeTypeOk(arg UpdateAlertConfigsPayloadReceiversInnerGetNameAttributeType) (ret UpdateAlertConfigsPayloadReceiversInnerGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getUpdateAlertConfigsPayloadReceiversInnerGetNameAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadReceiversInnerGetNameAttributeType(arg *UpdateAlertConfigsPayloadReceiversInnerGetNameAttributeType, val UpdateAlertConfigsPayloadReceiversInnerGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetNameRetType = string /* @@ -63,10 +77,16 @@ type UpdateAlertConfigsPayloadReceiversInnerGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsArgType = []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsRetType = []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeTypeOk(arg UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeType) (ret UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getUpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeTypeOk return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeType(arg *UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeType, val UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsRetType) { *arg = &val } @@ -83,10 +104,16 @@ func setUpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeType(a */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeType = *[]CreateAlertConfigReceiverPayloadWebHookConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsArgType = []CreateAlertConfigReceiverPayloadWebHookConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsRetType = []CreateAlertConfigReceiverPayloadWebHookConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeTypeOk(arg UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeType) (ret UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +121,13 @@ func getUpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeTypeOk( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeType(arg *UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeType, val UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsRetType) { *arg = &val } // UpdateAlertConfigsPayloadReceiversInner Receivers +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadReceiversInner struct { // Email configurations EmailConfigs UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType `json:"emailConfigs,omitempty"` @@ -110,12 +139,14 @@ type UpdateAlertConfigsPayloadReceiversInner struct { WebHookConfigs UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeType `json:"webHookConfigs,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertConfigsPayloadReceiversInner UpdateAlertConfigsPayloadReceiversInner // NewUpdateAlertConfigsPayloadReceiversInner instantiates a new UpdateAlertConfigsPayloadReceiversInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadReceiversInner(name UpdateAlertConfigsPayloadReceiversInnerGetNameArgType) *UpdateAlertConfigsPayloadReceiversInner { this := UpdateAlertConfigsPayloadReceiversInner{} setUpdateAlertConfigsPayloadReceiversInnerGetNameAttributeType(&this.Name, name) @@ -125,12 +156,14 @@ func NewUpdateAlertConfigsPayloadReceiversInner(name UpdateAlertConfigsPayloadRe // NewUpdateAlertConfigsPayloadReceiversInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadReceiversInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadReceiversInnerWithDefaults() *UpdateAlertConfigsPayloadReceiversInner { this := UpdateAlertConfigsPayloadReceiversInner{} return &this } // GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetEmailConfigs() (res UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsRetType) { res, _ = o.GetEmailConfigsOk() return @@ -138,22 +171,26 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetEmailConfigs() (res UpdateA // GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetEmailConfigsOk() (ret UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsRetType, ok bool) { return getUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeTypeOk(o.EmailConfigs) } // HasEmailConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) HasEmailConfigs() bool { _, ok := o.GetEmailConfigsOk() return ok } // SetEmailConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadEmailConfigsInner and assigns it to the EmailConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) SetEmailConfigs(v UpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsRetType) { setUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeType(&o.EmailConfigs, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetName() (ret UpdateAlertConfigsPayloadReceiversInnerGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -161,16 +198,19 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetName() (ret UpdateAlertConf // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetNameOk() (ret UpdateAlertConfigsPayloadReceiversInnerGetNameRetType, ok bool) { return getUpdateAlertConfigsPayloadReceiversInnerGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) SetName(v UpdateAlertConfigsPayloadReceiversInnerGetNameRetType) { setUpdateAlertConfigsPayloadReceiversInnerGetNameAttributeType(&o.Name, v) } // GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetOpsgenieConfigs() (res UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsRetType) { res, _ = o.GetOpsgenieConfigsOk() return @@ -178,22 +218,26 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetOpsgenieConfigs() (res Upda // GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetOpsgenieConfigsOk() (ret UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsRetType, ok bool) { return getUpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeTypeOk(o.OpsgenieConfigs) } // HasOpsgenieConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) HasOpsgenieConfigs() bool { _, ok := o.GetOpsgenieConfigsOk() return ok } // SetOpsgenieConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner and assigns it to the OpsgenieConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) SetOpsgenieConfigs(v UpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsRetType) { setUpdateAlertConfigsPayloadReceiversInnerGetOpsgenieConfigsAttributeType(&o.OpsgenieConfigs, v) } // GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetWebHookConfigs() (res UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsRetType) { res, _ = o.GetWebHookConfigsOk() return @@ -201,21 +245,25 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetWebHookConfigs() (res Updat // GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) GetWebHookConfigsOk() (ret UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsRetType, ok bool) { return getUpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeTypeOk(o.WebHookConfigs) } // HasWebHookConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) HasWebHookConfigs() bool { _, ok := o.GetWebHookConfigsOk() return ok } // SetWebHookConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadWebHookConfigsInner and assigns it to the WebHookConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadReceiversInner) SetWebHookConfigs(v UpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsRetType) { setUpdateAlertConfigsPayloadReceiversInnerGetWebHookConfigsAttributeType(&o.WebHookConfigs, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsPayloadReceiversInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsPayloadReceiversInnerGetEmailConfigsAttributeTypeOk(o.EmailConfigs); ok { @@ -233,37 +281,45 @@ func (o UpdateAlertConfigsPayloadReceiversInner) ToMap() (map[string]interface{} return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsPayloadReceiversInner struct { value *UpdateAlertConfigsPayloadReceiversInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadReceiversInner) Get() *UpdateAlertConfigsPayloadReceiversInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadReceiversInner) Set(val *UpdateAlertConfigsPayloadReceiversInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadReceiversInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadReceiversInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsPayloadReceiversInner(val *UpdateAlertConfigsPayloadReceiversInner) *NullableUpdateAlertConfigsPayloadReceiversInner { return &NullableUpdateAlertConfigsPayloadReceiversInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadReceiversInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadReceiversInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_payload_route.go b/services/observability/model_update_alert_configs_payload_route.go index e70660d96..c56abe3b4 100644 --- a/services/observability/model_update_alert_configs_payload_route.go +++ b/services/observability/model_update_alert_configs_payload_route.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigsPayloadRoute{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRoutegetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRoutegetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRoutegetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRoutegetContinueAttributeTypeOk(arg UpdateAlertConfigsPayloadRoutegetContinueAttributeType) (ret UpdateAlertConfigsPayloadRoutegetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigsPayloadRoutegetContinueAttributeTypeOk(arg UpdateAlert return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRoutegetContinueAttributeType(arg *UpdateAlertConfigsPayloadRoutegetContinueAttributeType, val UpdateAlertConfigsPayloadRoutegetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateAlertConfigsPayloadRoutegetContinueAttributeType(arg *UpdateAlertC */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetGroupByAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetGroupByAttributeType) (ret UpdateAlertConfigsPayloadRouteGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getUpdateAlertConfigsPayloadRouteGetGroupByAttributeTypeOk(arg UpdateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetGroupByAttributeType(arg *UpdateAlertConfigsPayloadRouteGetGroupByAttributeType, val UpdateAlertConfigsPayloadRouteGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setUpdateAlertConfigsPayloadRouteGetGroupByAttributeType(arg *UpdateAlertCo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeType) (ret UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getUpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeType(arg *UpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeType, val UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetGroupWaitAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetGroupWaitAttributeType) (ret UpdateAlertConfigsPayloadRouteGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getUpdateAlertConfigsPayloadRouteGetGroupWaitAttributeTypeOk(arg UpdateAler return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetGroupWaitAttributeType(arg *UpdateAlertConfigsPayloadRouteGetGroupWaitAttributeType, val UpdateAlertConfigsPayloadRouteGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type UpdateAlertConfigsPayloadRouteGetGroupWaitRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetMatchAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetMatchAttributeType) (ret UpdateAlertConfigsPayloadRouteGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getUpdateAlertConfigsPayloadRouteGetMatchAttributeTypeOk(arg UpdateAlertCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetMatchAttributeType(arg *UpdateAlertConfigsPayloadRouteGetMatchAttributeType, val UpdateAlertConfigsPayloadRouteGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setUpdateAlertConfigsPayloadRouteGetMatchAttributeType(arg *UpdateAlertConf */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetMatchReAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetMatchReAttributeType) (ret UpdateAlertConfigsPayloadRouteGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getUpdateAlertConfigsPayloadRouteGetMatchReAttributeTypeOk(arg UpdateAlertC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetMatchReAttributeType(arg *UpdateAlertConfigsPayloadRouteGetMatchReAttributeType, val UpdateAlertConfigsPayloadRouteGetMatchReRetType) { *arg = &val } @@ -144,8 +185,10 @@ func setUpdateAlertConfigsPayloadRouteGetMatchReAttributeType(arg *UpdateAlertCo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetReceiverAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetReceiverAttributeType) (ret UpdateAlertConfigsPayloadRouteGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -153,11 +196,15 @@ func getUpdateAlertConfigsPayloadRouteGetReceiverAttributeTypeOk(arg UpdateAlert return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetReceiverAttributeType(arg *UpdateAlertConfigsPayloadRouteGetReceiverAttributeType, val UpdateAlertConfigsPayloadRouteGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetReceiverRetType = string /* @@ -165,8 +212,10 @@ type UpdateAlertConfigsPayloadRouteGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeType) (ret UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -174,11 +223,15 @@ func getUpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeTypeOk(arg Updat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeType(arg *UpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeType, val UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType = string /* @@ -186,10 +239,16 @@ type UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetRoutesAttributeType = *[]UpdateAlertConfigsPayloadRouteRoutesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetRoutesArgType = []UpdateAlertConfigsPayloadRouteRoutesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteGetRoutesRetType = []UpdateAlertConfigsPayloadRouteRoutesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteGetRoutesAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteGetRoutesAttributeType) (ret UpdateAlertConfigsPayloadRouteGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -197,11 +256,13 @@ func getUpdateAlertConfigsPayloadRouteGetRoutesAttributeTypeOk(arg UpdateAlertCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteGetRoutesAttributeType(arg *UpdateAlertConfigsPayloadRouteGetRoutesAttributeType, val UpdateAlertConfigsPayloadRouteGetRoutesRetType) { *arg = &val } // UpdateAlertConfigsPayloadRoute The root node of the routing tree. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRoute struct { // The continue parameter cannot be set to true on the root route because there are no subsequent sibling nodes to match. It must always be false. Continue UpdateAlertConfigsPayloadRoutegetContinueAttributeType `json:"continue,omitempty"` @@ -224,12 +285,14 @@ type UpdateAlertConfigsPayloadRoute struct { Routes UpdateAlertConfigsPayloadRouteGetRoutesAttributeType `json:"routes,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertConfigsPayloadRoute UpdateAlertConfigsPayloadRoute // NewUpdateAlertConfigsPayloadRoute instantiates a new UpdateAlertConfigsPayloadRoute object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadRoute(receiver UpdateAlertConfigsPayloadRouteGetReceiverArgType) *UpdateAlertConfigsPayloadRoute { this := UpdateAlertConfigsPayloadRoute{} setUpdateAlertConfigsPayloadRouteGetReceiverAttributeType(&this.Receiver, receiver) @@ -239,6 +302,7 @@ func NewUpdateAlertConfigsPayloadRoute(receiver UpdateAlertConfigsPayloadRouteGe // NewUpdateAlertConfigsPayloadRouteWithDefaults instantiates a new UpdateAlertConfigsPayloadRoute object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadRouteWithDefaults() *UpdateAlertConfigsPayloadRoute { this := UpdateAlertConfigsPayloadRoute{} var continue_ bool = false @@ -253,6 +317,7 @@ func NewUpdateAlertConfigsPayloadRouteWithDefaults() *UpdateAlertConfigsPayloadR } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetContinue() (res UpdateAlertConfigsPayloadRoutegetContinueRetType) { res, _ = o.GetContinueOk() return @@ -260,22 +325,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetContinue() (res UpdateAlertConfigsPa // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetContinueOk() (ret UpdateAlertConfigsPayloadRoutegetContinueRetType, ok bool) { return getUpdateAlertConfigsPayloadRoutegetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetContinue(v UpdateAlertConfigsPayloadRoutegetContinueRetType) { setUpdateAlertConfigsPayloadRoutegetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetGroupBy() (res UpdateAlertConfigsPayloadRouteGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -283,22 +352,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetGroupBy() (res UpdateAlertConfigsPay // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetGroupByOk() (ret UpdateAlertConfigsPayloadRouteGetGroupByRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetGroupBy(v UpdateAlertConfigsPayloadRouteGetGroupByRetType) { setUpdateAlertConfigsPayloadRouteGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetGroupInterval() (res UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -306,22 +379,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetGroupInterval() (res UpdateAlertConf // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetGroupIntervalOk() (ret UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetGroupInterval(v UpdateAlertConfigsPayloadRouteGetGroupIntervalRetType) { setUpdateAlertConfigsPayloadRouteGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetGroupWait() (res UpdateAlertConfigsPayloadRouteGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -329,23 +406,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetGroupWait() (res UpdateAlertConfigsP // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetGroupWaitOk() (ret UpdateAlertConfigsPayloadRouteGetGroupWaitRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetGroupWait(v UpdateAlertConfigsPayloadRouteGetGroupWaitRetType) { setUpdateAlertConfigsPayloadRouteGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetMatch() (res UpdateAlertConfigsPayloadRouteGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -353,25 +433,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetMatch() (res UpdateAlertConfigsPaylo // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetMatchOk() (ret UpdateAlertConfigsPayloadRouteGetMatchRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetMatch(v UpdateAlertConfigsPayloadRouteGetMatchRetType) { setUpdateAlertConfigsPayloadRouteGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetMatchRe() (res UpdateAlertConfigsPayloadRouteGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -379,24 +460,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetMatchRe() (res UpdateAlertConfigsPay // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetMatchReOk() (ret UpdateAlertConfigsPayloadRouteGetMatchReRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetMatchRe(v UpdateAlertConfigsPayloadRouteGetMatchReRetType) { setUpdateAlertConfigsPayloadRouteGetMatchReAttributeType(&o.MatchRe, v) } // GetReceiver returns the Receiver field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetReceiver() (ret UpdateAlertConfigsPayloadRouteGetReceiverRetType) { ret, _ = o.GetReceiverOk() return ret @@ -404,16 +487,19 @@ func (o *UpdateAlertConfigsPayloadRoute) GetReceiver() (ret UpdateAlertConfigsPa // GetReceiverOk returns a tuple with the Receiver field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetReceiverOk() (ret UpdateAlertConfigsPayloadRouteGetReceiverRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetReceiverAttributeTypeOk(o.Receiver) } // SetReceiver sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetReceiver(v UpdateAlertConfigsPayloadRouteGetReceiverRetType) { setUpdateAlertConfigsPayloadRouteGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetRepeatInterval() (res UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -421,22 +507,26 @@ func (o *UpdateAlertConfigsPayloadRoute) GetRepeatInterval() (res UpdateAlertCon // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetRepeatIntervalOk() (ret UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetRepeatInterval(v UpdateAlertConfigsPayloadRouteGetRepeatIntervalRetType) { setUpdateAlertConfigsPayloadRouteGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetRoutes() (res UpdateAlertConfigsPayloadRouteGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -444,21 +534,25 @@ func (o *UpdateAlertConfigsPayloadRoute) GetRoutes() (res UpdateAlertConfigsPayl // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) GetRoutesOk() (ret UpdateAlertConfigsPayloadRouteGetRoutesRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []UpdateAlertConfigsPayloadRouteRoutesInner and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRoute) SetRoutes(v UpdateAlertConfigsPayloadRouteGetRoutesRetType) { setUpdateAlertConfigsPayloadRouteGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsPayloadRoute) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsPayloadRoutegetContinueAttributeTypeOk(o.Continue); ok { @@ -491,37 +585,45 @@ func (o UpdateAlertConfigsPayloadRoute) ToMap() (map[string]interface{}, error) return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsPayloadRoute struct { value *UpdateAlertConfigsPayloadRoute isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadRoute) Get() *UpdateAlertConfigsPayloadRoute { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadRoute) Set(val *UpdateAlertConfigsPayloadRoute) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadRoute) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadRoute) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsPayloadRoute(val *UpdateAlertConfigsPayloadRoute) *NullableUpdateAlertConfigsPayloadRoute { return &NullableUpdateAlertConfigsPayloadRoute{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadRoute) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadRoute) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_payload_route_routes_inner.go b/services/observability/model_update_alert_configs_payload_route_routes_inner.go index cbd005d40..bbd0e5c59 100644 --- a/services/observability/model_update_alert_configs_payload_route_routes_inner.go +++ b/services/observability/model_update_alert_configs_payload_route_routes_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigsPayloadRouteRoutesInner{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnergetContinueArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnergetContinueRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnergetContinueRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnergetContinueRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType(arg *U */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeTypeOk(arg U return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByRetType) { *arg = &val } @@ -62,8 +77,10 @@ func setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeType(arg *Up */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -71,11 +88,15 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeTypeOk return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType = string /* @@ -83,8 +104,10 @@ type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType = string /* @@ -104,10 +131,16 @@ type UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchRetType, ok bool) { if arg == nil { return ret, false @@ -115,6 +148,7 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeTypeOk(arg Upd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchRetType) { *arg = &val } @@ -124,10 +158,16 @@ func setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeType(arg *Upda */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReRetType, ok bool) { if arg == nil { return ret, false @@ -135,6 +175,7 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeTypeOk(arg U return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReRetType) { *arg = &val } @@ -144,10 +185,16 @@ func setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeType(arg *Up */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersRetType, ok bool) { if arg == nil { return ret, false @@ -155,6 +202,7 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersRetType) { *arg = &val } @@ -164,8 +212,10 @@ func setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeType(arg *U */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType, ok bool) { if arg == nil { return ret, false @@ -173,11 +223,15 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType = string /* @@ -185,8 +239,10 @@ type UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -194,11 +250,15 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeTypeO return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType = string /* @@ -206,10 +266,16 @@ type UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeType = *[]map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesArgType = []map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesRetType = []map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeTypeOk(arg UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeType) (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +283,13 @@ func getUpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeTypeOk(arg Up return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeType(arg *UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeType, val UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesRetType) { *arg = &val } // UpdateAlertConfigsPayloadRouteRoutesInner As in one level above +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsPayloadRouteRoutesInner struct { // Whether an alert should continue matching subsequent sibling nodes. Continue UpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType `json:"continue,omitempty"` @@ -248,6 +316,7 @@ type UpdateAlertConfigsPayloadRouteRoutesInner struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadRouteRoutesInner() *UpdateAlertConfigsPayloadRouteRoutesInner { this := UpdateAlertConfigsPayloadRouteRoutesInner{} return &this @@ -256,6 +325,7 @@ func NewUpdateAlertConfigsPayloadRouteRoutesInner() *UpdateAlertConfigsPayloadRo // NewUpdateAlertConfigsPayloadRouteRoutesInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadRouteRoutesInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsPayloadRouteRoutesInnerWithDefaults() *UpdateAlertConfigsPayloadRouteRoutesInner { this := UpdateAlertConfigsPayloadRouteRoutesInner{} var continue_ bool = false @@ -264,6 +334,7 @@ func NewUpdateAlertConfigsPayloadRouteRoutesInnerWithDefaults() *UpdateAlertConf } // GetContinue returns the Continue field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetContinue() (res UpdateAlertConfigsPayloadRouteRoutesInnergetContinueRetType) { res, _ = o.GetContinueOk() return @@ -271,22 +342,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetContinue() (res UpdateAle // GetContinueOk returns a tuple with the Continue field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetContinueOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnergetContinueRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeTypeOk(o.Continue) } // HasContinue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasContinue() bool { _, ok := o.GetContinueOk() return ok } // SetContinue gets a reference to the given bool and assigns it to the Continue field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetContinue(v UpdateAlertConfigsPayloadRouteRoutesInnergetContinueRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeType(&o.Continue, v) } // GetGroupBy returns the GroupBy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupBy() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByRetType) { res, _ = o.GetGroupByOk() return @@ -294,22 +369,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupBy() (res UpdateAler // GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupByOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeTypeOk(o.GroupBy) } // HasGroupBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasGroupBy() bool { _, ok := o.GetGroupByOk() return ok } // SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetGroupBy(v UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupByAttributeType(&o.GroupBy, v) } // GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupInterval() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType) { res, _ = o.GetGroupIntervalOk() return @@ -317,22 +396,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupInterval() (res Upda // GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupIntervalOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeTypeOk(o.GroupInterval) } // HasGroupInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasGroupInterval() bool { _, ok := o.GetGroupIntervalOk() return ok } // SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetGroupInterval(v UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupIntervalAttributeType(&o.GroupInterval, v) } // GetGroupWait returns the GroupWait field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupWait() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType) { res, _ = o.GetGroupWaitOk() return @@ -340,23 +423,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupWait() (res UpdateAl // GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupWaitOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeTypeOk(o.GroupWait) } // HasGroupWait returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasGroupWait() bool { _, ok := o.GetGroupWaitOk() return ok } // SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetGroupWait(v UpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetGroupWaitAttributeType(&o.GroupWait, v) } // GetMatch returns the Match field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatch() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchRetType) { res, _ = o.GetMatchOk() return @@ -364,25 +450,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatch() (res UpdateAlertC // GetMatchOk returns a tuple with the Match field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeTypeOk(o.Match) } // HasMatch returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasMatch() bool { _, ok := o.GetMatchOk() return ok } // SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetMatch(v UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchAttributeType(&o.Match, v) } // GetMatchRe returns the MatchRe field value if set, zero value otherwise. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchRe() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReRetType) { res, _ = o.GetMatchReOk() return @@ -390,24 +477,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchRe() (res UpdateAler // GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchReOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeTypeOk(o.MatchRe) } // HasMatchRe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasMatchRe() bool { _, ok := o.GetMatchReOk() return ok } // SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetMatchRe(v UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchReAttributeType(&o.MatchRe, v) } // GetMatchers returns the Matchers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchers() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersRetType) { res, _ = o.GetMatchersOk() return @@ -415,22 +504,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchers() (res UpdateAle // GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchersOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeTypeOk(o.Matchers) } // HasMatchers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasMatchers() bool { _, ok := o.GetMatchersOk() return ok } // SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetMatchers(v UpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetMatchersAttributeType(&o.Matchers, v) } // GetReceiver returns the Receiver field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetReceiver() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType) { res, _ = o.GetReceiverOk() return @@ -438,22 +531,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetReceiver() (res UpdateAle // GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetReceiverOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeTypeOk(o.Receiver) } // HasReceiver returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasReceiver() bool { _, ok := o.GetReceiverOk() return ok } // SetReceiver gets a reference to the given string and assigns it to the Receiver field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetReceiver(v UpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetReceiverAttributeType(&o.Receiver, v) } // GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRepeatInterval() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType) { res, _ = o.GetRepeatIntervalOk() return @@ -461,22 +558,26 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRepeatInterval() (res Upd // GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRepeatIntervalOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeTypeOk(o.RepeatInterval) } // HasRepeatInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasRepeatInterval() bool { _, ok := o.GetRepeatIntervalOk() return ok } // SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetRepeatInterval(v UpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetRepeatIntervalAttributeType(&o.RepeatInterval, v) } // GetRoutes returns the Routes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRoutes() (res UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesRetType) { res, _ = o.GetRoutesOk() return @@ -484,21 +585,25 @@ func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRoutes() (res UpdateAlert // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRoutesOk() (ret UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesRetType, ok bool) { return getUpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeTypeOk(o.Routes) } // HasRoutes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasRoutes() bool { _, ok := o.GetRoutesOk() return ok } // SetRoutes gets a reference to the given []map[string]interface{} and assigns it to the Routes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetRoutes(v UpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesRetType) { setUpdateAlertConfigsPayloadRouteRoutesInnerGetRoutesAttributeType(&o.Routes, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsPayloadRouteRoutesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsPayloadRouteRoutesInnergetContinueAttributeTypeOk(o.Continue); ok { @@ -534,37 +639,45 @@ func (o UpdateAlertConfigsPayloadRouteRoutesInner) ToMap() (map[string]interface return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsPayloadRouteRoutesInner struct { value *UpdateAlertConfigsPayloadRouteRoutesInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadRouteRoutesInner) Get() *UpdateAlertConfigsPayloadRouteRoutesInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadRouteRoutesInner) Set(val *UpdateAlertConfigsPayloadRouteRoutesInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadRouteRoutesInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadRouteRoutesInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsPayloadRouteRoutesInner(val *UpdateAlertConfigsPayloadRouteRoutesInner) *NullableUpdateAlertConfigsPayloadRouteRoutesInner { return &NullableUpdateAlertConfigsPayloadRouteRoutesInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsPayloadRouteRoutesInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsPayloadRouteRoutesInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_configs_response.go b/services/observability/model_update_alert_configs_response.go index d5dde5300..004998d7f 100644 --- a/services/observability/model_update_alert_configs_response.go +++ b/services/observability/model_update_alert_configs_response.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertConfigsResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponseGetDataAttributeType = *Alert + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponseGetDataArgType = Alert + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponseGetDataRetType = Alert +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsResponseGetDataAttributeTypeOk(arg UpdateAlertConfigsResponseGetDataAttributeType) (ret UpdateAlertConfigsResponseGetDataRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertConfigsResponseGetDataAttributeTypeOk(arg UpdateAlertConfigsR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsResponseGetDataAttributeType(arg *UpdateAlertConfigsResponseGetDataAttributeType, val UpdateAlertConfigsResponseGetDataRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateAlertConfigsResponseGetDataAttributeType(arg *UpdateAlertConfigsRe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertConfigsResponseGetMessageAttributeTypeOk(arg UpdateAlertConfigsResponseGetMessageAttributeType) (ret UpdateAlertConfigsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getUpdateAlertConfigsResponseGetMessageAttributeTypeOk(arg UpdateAlertConfi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertConfigsResponseGetMessageAttributeType(arg *UpdateAlertConfigsResponseGetMessageAttributeType, val UpdateAlertConfigsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponseGetMessageRetType = string // UpdateAlertConfigsResponse struct for UpdateAlertConfigsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertConfigsResponse struct { // REQUIRED Data UpdateAlertConfigsResponseGetDataAttributeType `json:"data" required:"true"` @@ -66,12 +81,14 @@ type UpdateAlertConfigsResponse struct { Message UpdateAlertConfigsResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertConfigsResponse UpdateAlertConfigsResponse // NewUpdateAlertConfigsResponse instantiates a new UpdateAlertConfigsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsResponse(data UpdateAlertConfigsResponseGetDataArgType, message UpdateAlertConfigsResponseGetMessageArgType) *UpdateAlertConfigsResponse { this := UpdateAlertConfigsResponse{} setUpdateAlertConfigsResponseGetDataAttributeType(&this.Data, data) @@ -82,12 +99,14 @@ func NewUpdateAlertConfigsResponse(data UpdateAlertConfigsResponseGetDataArgType // NewUpdateAlertConfigsResponseWithDefaults instantiates a new UpdateAlertConfigsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertConfigsResponseWithDefaults() *UpdateAlertConfigsResponse { this := UpdateAlertConfigsResponse{} return &this } // GetData returns the Data field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsResponse) GetData() (ret UpdateAlertConfigsResponseGetDataRetType) { ret, _ = o.GetDataOk() return ret @@ -95,16 +114,19 @@ func (o *UpdateAlertConfigsResponse) GetData() (ret UpdateAlertConfigsResponseGe // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsResponse) GetDataOk() (ret UpdateAlertConfigsResponseGetDataRetType, ok bool) { return getUpdateAlertConfigsResponseGetDataAttributeTypeOk(o.Data) } // SetData sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsResponse) SetData(v UpdateAlertConfigsResponseGetDataRetType) { setUpdateAlertConfigsResponseGetDataAttributeType(&o.Data, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsResponse) GetMessage() (ret UpdateAlertConfigsResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *UpdateAlertConfigsResponse) GetMessage() (ret UpdateAlertConfigsRespons // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsResponse) GetMessageOk() (ret UpdateAlertConfigsResponseGetMessageRetType, ok bool) { return getUpdateAlertConfigsResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertConfigsResponse) SetMessage(v UpdateAlertConfigsResponseGetMessageRetType) { setUpdateAlertConfigsResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertConfigsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertConfigsResponseGetDataAttributeTypeOk(o.Data); ok { @@ -132,37 +157,45 @@ func (o UpdateAlertConfigsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertConfigsResponse struct { value *UpdateAlertConfigsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsResponse) Get() *UpdateAlertConfigsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsResponse) Set(val *UpdateAlertConfigsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertConfigsResponse(val *UpdateAlertConfigsResponse) *NullableUpdateAlertConfigsResponse { return &NullableUpdateAlertConfigsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertConfigsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertConfigsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alert_record_payload.go b/services/observability/model_update_alert_record_payload.go index ba32933ee..06de69cdf 100644 --- a/services/observability/model_update_alert_record_payload.go +++ b/services/observability/model_update_alert_record_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateAlertRecordPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayloadGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertRecordPayloadGetExprAttributeTypeOk(arg UpdateAlertRecordPayloadGetExprAttributeType) (ret UpdateAlertRecordPayloadGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateAlertRecordPayloadGetExprAttributeTypeOk(arg UpdateAlertRecordPayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertRecordPayloadGetExprAttributeType(arg *UpdateAlertRecordPayloadGetExprAttributeType, val UpdateAlertRecordPayloadGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayloadGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayloadGetExprRetType = string /* @@ -43,10 +50,16 @@ type UpdateAlertRecordPayloadGetExprRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayloadGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayloadGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayloadGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertRecordPayloadGetLabelsAttributeTypeOk(arg UpdateAlertRecordPayloadGetLabelsAttributeType) (ret UpdateAlertRecordPayloadGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -54,11 +67,13 @@ func getUpdateAlertRecordPayloadGetLabelsAttributeTypeOk(arg UpdateAlertRecordPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertRecordPayloadGetLabelsAttributeType(arg *UpdateAlertRecordPayloadGetLabelsAttributeType, val UpdateAlertRecordPayloadGetLabelsRetType) { *arg = &val } // UpdateAlertRecordPayload Record. `Additional Validators:` * total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertRecordPayload struct { // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. // REQUIRED @@ -67,12 +82,14 @@ type UpdateAlertRecordPayload struct { Labels UpdateAlertRecordPayloadGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertRecordPayload UpdateAlertRecordPayload // NewUpdateAlertRecordPayload instantiates a new UpdateAlertRecordPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertRecordPayload(expr UpdateAlertRecordPayloadGetExprArgType) *UpdateAlertRecordPayload { this := UpdateAlertRecordPayload{} setUpdateAlertRecordPayloadGetExprAttributeType(&this.Expr, expr) @@ -82,12 +99,14 @@ func NewUpdateAlertRecordPayload(expr UpdateAlertRecordPayloadGetExprArgType) *U // NewUpdateAlertRecordPayloadWithDefaults instantiates a new UpdateAlertRecordPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertRecordPayloadWithDefaults() *UpdateAlertRecordPayload { this := UpdateAlertRecordPayload{} return &this } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) GetExpr() (ret UpdateAlertRecordPayloadGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -95,16 +114,19 @@ func (o *UpdateAlertRecordPayload) GetExpr() (ret UpdateAlertRecordPayloadGetExp // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) GetExprOk() (ret UpdateAlertRecordPayloadGetExprRetType, ok bool) { return getUpdateAlertRecordPayloadGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) SetExpr(v UpdateAlertRecordPayloadGetExprRetType) { setUpdateAlertRecordPayloadGetExprAttributeType(&o.Expr, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) GetLabels() (res UpdateAlertRecordPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -112,21 +134,25 @@ func (o *UpdateAlertRecordPayload) GetLabels() (res UpdateAlertRecordPayloadGetL // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) GetLabelsOk() (ret UpdateAlertRecordPayloadGetLabelsRetType, ok bool) { return getUpdateAlertRecordPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertRecordPayload) SetLabels(v UpdateAlertRecordPayloadGetLabelsRetType) { setUpdateAlertRecordPayloadGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertRecordPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertRecordPayloadGetExprAttributeTypeOk(o.Expr); ok { @@ -138,37 +164,45 @@ func (o UpdateAlertRecordPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertRecordPayload struct { value *UpdateAlertRecordPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertRecordPayload) Get() *UpdateAlertRecordPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertRecordPayload) Set(val *UpdateAlertRecordPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertRecordPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertRecordPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertRecordPayload(val *UpdateAlertRecordPayload) *NullableUpdateAlertRecordPayload { return &NullableUpdateAlertRecordPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertRecordPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertRecordPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alertgroup_payload.go b/services/observability/model_update_alertgroup_payload.go index 145d01bb9..a4cf20c96 100644 --- a/services/observability/model_update_alertgroup_payload.go +++ b/services/observability/model_update_alertgroup_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateAlertgroupPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayloadGetIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupPayloadGetIntervalAttributeTypeOk(arg UpdateAlertgroupPayloadGetIntervalAttributeType) (ret UpdateAlertgroupPayloadGetIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateAlertgroupPayloadGetIntervalAttributeTypeOk(arg UpdateAlertgroupPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupPayloadGetIntervalAttributeType(arg *UpdateAlertgroupPayloadGetIntervalAttributeType, val UpdateAlertgroupPayloadGetIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayloadGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayloadGetIntervalRetType = string /* @@ -43,10 +50,16 @@ type UpdateAlertgroupPayloadGetIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayloadGetRulesAttributeType = *[]UpdateAlertgroupsRequestInnerRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayloadGetRulesArgType = []UpdateAlertgroupsRequestInnerRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayloadGetRulesRetType = []UpdateAlertgroupsRequestInnerRulesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupPayloadGetRulesAttributeTypeOk(arg UpdateAlertgroupPayloadGetRulesAttributeType) (ret UpdateAlertgroupPayloadGetRulesRetType, ok bool) { if arg == nil { return ret, false @@ -54,11 +67,13 @@ func getUpdateAlertgroupPayloadGetRulesAttributeTypeOk(arg UpdateAlertgroupPaylo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupPayloadGetRulesAttributeType(arg *UpdateAlertgroupPayloadGetRulesAttributeType, val UpdateAlertgroupPayloadGetRulesRetType) { *arg = &val } // UpdateAlertgroupPayload 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupPayload struct { // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s Interval UpdateAlertgroupPayloadGetIntervalAttributeType `json:"interval,omitempty"` @@ -67,12 +82,14 @@ type UpdateAlertgroupPayload struct { Rules UpdateAlertgroupPayloadGetRulesAttributeType `json:"rules" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertgroupPayload UpdateAlertgroupPayload // NewUpdateAlertgroupPayload instantiates a new UpdateAlertgroupPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertgroupPayload(rules UpdateAlertgroupPayloadGetRulesArgType) *UpdateAlertgroupPayload { this := UpdateAlertgroupPayload{} setUpdateAlertgroupPayloadGetRulesAttributeType(&this.Rules, rules) @@ -82,6 +99,7 @@ func NewUpdateAlertgroupPayload(rules UpdateAlertgroupPayloadGetRulesArgType) *U // NewUpdateAlertgroupPayloadWithDefaults instantiates a new UpdateAlertgroupPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertgroupPayloadWithDefaults() *UpdateAlertgroupPayload { this := UpdateAlertgroupPayload{} var interval string = "60s" @@ -90,6 +108,7 @@ func NewUpdateAlertgroupPayloadWithDefaults() *UpdateAlertgroupPayload { } // GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) GetInterval() (res UpdateAlertgroupPayloadGetIntervalRetType) { res, _ = o.GetIntervalOk() return @@ -97,22 +116,26 @@ func (o *UpdateAlertgroupPayload) GetInterval() (res UpdateAlertgroupPayloadGetI // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) GetIntervalOk() (ret UpdateAlertgroupPayloadGetIntervalRetType, ok bool) { return getUpdateAlertgroupPayloadGetIntervalAttributeTypeOk(o.Interval) } // HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) HasInterval() bool { _, ok := o.GetIntervalOk() return ok } // SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) SetInterval(v UpdateAlertgroupPayloadGetIntervalRetType) { setUpdateAlertgroupPayloadGetIntervalAttributeType(&o.Interval, v) } // GetRules returns the Rules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) GetRules() (ret UpdateAlertgroupPayloadGetRulesRetType) { ret, _ = o.GetRulesOk() return ret @@ -120,15 +143,18 @@ func (o *UpdateAlertgroupPayload) GetRules() (ret UpdateAlertgroupPayloadGetRule // GetRulesOk returns a tuple with the Rules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) GetRulesOk() (ret UpdateAlertgroupPayloadGetRulesRetType, ok bool) { return getUpdateAlertgroupPayloadGetRulesAttributeTypeOk(o.Rules) } // SetRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupPayload) SetRules(v UpdateAlertgroupPayloadGetRulesRetType) { setUpdateAlertgroupPayloadGetRulesAttributeType(&o.Rules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertgroupPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertgroupPayloadGetIntervalAttributeTypeOk(o.Interval); ok { @@ -140,37 +166,45 @@ func (o UpdateAlertgroupPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertgroupPayload struct { value *UpdateAlertgroupPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupPayload) Get() *UpdateAlertgroupPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupPayload) Set(val *UpdateAlertgroupPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertgroupPayload(val *UpdateAlertgroupPayload) *NullableUpdateAlertgroupPayload { return &NullableUpdateAlertgroupPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alertgroups_request_inner.go b/services/observability/model_update_alertgroups_request_inner.go index 972b51171..bf192d55f 100644 --- a/services/observability/model_update_alertgroups_request_inner.go +++ b/services/observability/model_update_alertgroups_request_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateAlertgroupsRequestInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerGetIntervalAttributeTypeOk(arg UpdateAlertgroupsRequestInnerGetIntervalAttributeType) (ret UpdateAlertgroupsRequestInnerGetIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateAlertgroupsRequestInnerGetIntervalAttributeTypeOk(arg UpdateAlertg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerGetIntervalAttributeType(arg *UpdateAlertgroupsRequestInnerGetIntervalAttributeType, val UpdateAlertgroupsRequestInnerGetIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetIntervalRetType = string /* @@ -43,8 +50,10 @@ type UpdateAlertgroupsRequestInnerGetIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerGetNameAttributeTypeOk(arg UpdateAlertgroupsRequestInnerGetNameAttributeType) (ret UpdateAlertgroupsRequestInnerGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getUpdateAlertgroupsRequestInnerGetNameAttributeTypeOk(arg UpdateAlertgroup return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerGetNameAttributeType(arg *UpdateAlertgroupsRequestInnerGetNameAttributeType, val UpdateAlertgroupsRequestInnerGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetNameRetType = string /* @@ -64,10 +77,16 @@ type UpdateAlertgroupsRequestInnerGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetRulesAttributeType = *[]UpdateAlertgroupsRequestInnerRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetRulesArgType = []UpdateAlertgroupsRequestInnerRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerGetRulesRetType = []UpdateAlertgroupsRequestInnerRulesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerGetRulesAttributeTypeOk(arg UpdateAlertgroupsRequestInnerGetRulesAttributeType) (ret UpdateAlertgroupsRequestInnerGetRulesRetType, ok bool) { if arg == nil { return ret, false @@ -75,11 +94,13 @@ func getUpdateAlertgroupsRequestInnerGetRulesAttributeTypeOk(arg UpdateAlertgrou return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerGetRulesAttributeType(arg *UpdateAlertgroupsRequestInnerGetRulesAttributeType, val UpdateAlertgroupsRequestInnerGetRulesRetType) { *arg = &val } // UpdateAlertgroupsRequestInner 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInner struct { // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s Interval UpdateAlertgroupsRequestInnerGetIntervalAttributeType `json:"interval,omitempty"` @@ -91,12 +112,14 @@ type UpdateAlertgroupsRequestInner struct { Rules UpdateAlertgroupsRequestInnerGetRulesAttributeType `json:"rules" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertgroupsRequestInner UpdateAlertgroupsRequestInner // NewUpdateAlertgroupsRequestInner instantiates a new UpdateAlertgroupsRequestInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertgroupsRequestInner(name UpdateAlertgroupsRequestInnerGetNameArgType, rules UpdateAlertgroupsRequestInnerGetRulesArgType) *UpdateAlertgroupsRequestInner { this := UpdateAlertgroupsRequestInner{} setUpdateAlertgroupsRequestInnerGetNameAttributeType(&this.Name, name) @@ -107,6 +130,7 @@ func NewUpdateAlertgroupsRequestInner(name UpdateAlertgroupsRequestInnerGetNameA // NewUpdateAlertgroupsRequestInnerWithDefaults instantiates a new UpdateAlertgroupsRequestInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertgroupsRequestInnerWithDefaults() *UpdateAlertgroupsRequestInner { this := UpdateAlertgroupsRequestInner{} var interval string = "60s" @@ -115,6 +139,7 @@ func NewUpdateAlertgroupsRequestInnerWithDefaults() *UpdateAlertgroupsRequestInn } // GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) GetInterval() (res UpdateAlertgroupsRequestInnerGetIntervalRetType) { res, _ = o.GetIntervalOk() return @@ -122,22 +147,26 @@ func (o *UpdateAlertgroupsRequestInner) GetInterval() (res UpdateAlertgroupsRequ // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) GetIntervalOk() (ret UpdateAlertgroupsRequestInnerGetIntervalRetType, ok bool) { return getUpdateAlertgroupsRequestInnerGetIntervalAttributeTypeOk(o.Interval) } // HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) HasInterval() bool { _, ok := o.GetIntervalOk() return ok } // SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) SetInterval(v UpdateAlertgroupsRequestInnerGetIntervalRetType) { setUpdateAlertgroupsRequestInnerGetIntervalAttributeType(&o.Interval, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) GetName() (ret UpdateAlertgroupsRequestInnerGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -145,16 +174,19 @@ func (o *UpdateAlertgroupsRequestInner) GetName() (ret UpdateAlertgroupsRequestI // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) GetNameOk() (ret UpdateAlertgroupsRequestInnerGetNameRetType, ok bool) { return getUpdateAlertgroupsRequestInnerGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) SetName(v UpdateAlertgroupsRequestInnerGetNameRetType) { setUpdateAlertgroupsRequestInnerGetNameAttributeType(&o.Name, v) } // GetRules returns the Rules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) GetRules() (ret UpdateAlertgroupsRequestInnerGetRulesRetType) { ret, _ = o.GetRulesOk() return ret @@ -162,15 +194,18 @@ func (o *UpdateAlertgroupsRequestInner) GetRules() (ret UpdateAlertgroupsRequest // GetRulesOk returns a tuple with the Rules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) GetRulesOk() (ret UpdateAlertgroupsRequestInnerGetRulesRetType, ok bool) { return getUpdateAlertgroupsRequestInnerGetRulesAttributeTypeOk(o.Rules) } // SetRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInner) SetRules(v UpdateAlertgroupsRequestInnerGetRulesRetType) { setUpdateAlertgroupsRequestInnerGetRulesAttributeType(&o.Rules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertgroupsRequestInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertgroupsRequestInnerGetIntervalAttributeTypeOk(o.Interval); ok { @@ -185,37 +220,45 @@ func (o UpdateAlertgroupsRequestInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertgroupsRequestInner struct { value *UpdateAlertgroupsRequestInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupsRequestInner) Get() *UpdateAlertgroupsRequestInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupsRequestInner) Set(val *UpdateAlertgroupsRequestInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupsRequestInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupsRequestInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertgroupsRequestInner(val *UpdateAlertgroupsRequestInner) *NullableUpdateAlertgroupsRequestInner { return &NullableUpdateAlertgroupsRequestInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupsRequestInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupsRequestInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alertgroups_request_inner_rules_inner.go b/services/observability/model_update_alertgroups_request_inner_rules_inner.go index 0d4e43d50..97ec760cf 100644 --- a/services/observability/model_update_alertgroups_request_inner_rules_inner.go +++ b/services/observability/model_update_alertgroups_request_inner_rules_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateAlertgroupsRequestInnerRulesInner{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeTypeOk(arg UpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeType) (ret UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeTypeOk(arg Updat return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeType(arg *UpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeType, val UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetAlertArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType = string /* @@ -43,10 +50,16 @@ type UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeTypeOk(arg UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeType) (ret UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getUpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeType(arg *UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeType, val UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setUpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeType(arg * */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeTypeOk(arg UpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeType) (ret UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getUpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeType(arg *UpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeType, val UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType = string /* @@ -84,8 +104,10 @@ type UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerRulesInnerGetForAttributeTypeOk(arg UpdateAlertgroupsRequestInnerRulesInnerGetForAttributeType) (ret UpdateAlertgroupsRequestInnerRulesInnerGetForRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getUpdateAlertgroupsRequestInnerRulesInnerGetForAttributeTypeOk(arg UpdateA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerRulesInnerGetForAttributeType(arg *UpdateAlertgroupsRequestInnerRulesInnerGetForAttributeType, val UpdateAlertgroupsRequestInnerRulesInnerGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetForRetType = string /* @@ -105,10 +131,16 @@ type UpdateAlertgroupsRequestInnerRulesInnerGetForRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeTypeOk(arg UpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeType) (ret UpdateAlertgroupsRequestInnerRulesInnerGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -116,6 +148,7 @@ func getUpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeType(arg *UpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeType, val UpdateAlertgroupsRequestInnerRulesInnerGetLabelsRetType) { *arg = &val } @@ -125,8 +158,10 @@ func setUpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeType(arg *Updat */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeTypeOk(arg UpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeType) (ret UpdateAlertgroupsRequestInnerRulesInnerGetRecordRetType, ok bool) { if arg == nil { return ret, false @@ -134,14 +169,19 @@ func getUpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeType(arg *UpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeType, val UpdateAlertgroupsRequestInnerRulesInnerGetRecordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetRecordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInnerGetRecordRetType = string // UpdateAlertgroupsRequestInnerRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertgroupsRequestInnerRulesInner struct { // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed Alert UpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeType `json:"alert,omitempty"` @@ -158,12 +198,14 @@ type UpdateAlertgroupsRequestInnerRulesInner struct { Record UpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeType `json:"record,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertgroupsRequestInnerRulesInner UpdateAlertgroupsRequestInnerRulesInner // NewUpdateAlertgroupsRequestInnerRulesInner instantiates a new UpdateAlertgroupsRequestInnerRulesInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertgroupsRequestInnerRulesInner(expr UpdateAlertgroupsRequestInnerRulesInnerGetExprArgType) *UpdateAlertgroupsRequestInnerRulesInner { this := UpdateAlertgroupsRequestInnerRulesInner{} setUpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeType(&this.Expr, expr) @@ -173,6 +215,7 @@ func NewUpdateAlertgroupsRequestInnerRulesInner(expr UpdateAlertgroupsRequestInn // NewUpdateAlertgroupsRequestInnerRulesInnerWithDefaults instantiates a new UpdateAlertgroupsRequestInnerRulesInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertgroupsRequestInnerRulesInnerWithDefaults() *UpdateAlertgroupsRequestInnerRulesInner { this := UpdateAlertgroupsRequestInnerRulesInner{} var for_ string = "0s" @@ -181,6 +224,7 @@ func NewUpdateAlertgroupsRequestInnerRulesInnerWithDefaults() *UpdateAlertgroups } // GetAlert returns the Alert field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAlert() (res UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType) { res, _ = o.GetAlertOk() return @@ -188,22 +232,26 @@ func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAlert() (res UpdateAlertgro // GetAlertOk returns a tuple with the Alert field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAlertOk() (ret UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType, ok bool) { return getUpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeTypeOk(o.Alert) } // HasAlert returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) HasAlert() bool { _, ok := o.GetAlertOk() return ok } // SetAlert gets a reference to the given string and assigns it to the Alert field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) SetAlert(v UpdateAlertgroupsRequestInnerRulesInnerGetAlertRetType) { setUpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeType(&o.Alert, v) } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAnnotations() (res UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -211,22 +259,26 @@ func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAnnotations() (res UpdateAl // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAnnotationsOk() (ret UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsRetType, ok bool) { return getUpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) SetAnnotations(v UpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsRetType) { setUpdateAlertgroupsRequestInnerRulesInnerGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetExpr() (ret UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -234,16 +286,19 @@ func (o *UpdateAlertgroupsRequestInnerRulesInner) GetExpr() (ret UpdateAlertgrou // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetExprOk() (ret UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType, ok bool) { return getUpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) SetExpr(v UpdateAlertgroupsRequestInnerRulesInnerGetExprRetType) { setUpdateAlertgroupsRequestInnerRulesInnerGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetFor() (res UpdateAlertgroupsRequestInnerRulesInnerGetForRetType) { res, _ = o.GetForOk() return @@ -251,22 +306,26 @@ func (o *UpdateAlertgroupsRequestInnerRulesInner) GetFor() (res UpdateAlertgroup // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetForOk() (ret UpdateAlertgroupsRequestInnerRulesInnerGetForRetType, ok bool) { return getUpdateAlertgroupsRequestInnerRulesInnerGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) SetFor(v UpdateAlertgroupsRequestInnerRulesInnerGetForRetType) { setUpdateAlertgroupsRequestInnerRulesInnerGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetLabels() (res UpdateAlertgroupsRequestInnerRulesInnerGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -274,22 +333,26 @@ func (o *UpdateAlertgroupsRequestInnerRulesInner) GetLabels() (res UpdateAlertgr // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetLabelsOk() (ret UpdateAlertgroupsRequestInnerRulesInnerGetLabelsRetType, ok bool) { return getUpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) SetLabels(v UpdateAlertgroupsRequestInnerRulesInnerGetLabelsRetType) { setUpdateAlertgroupsRequestInnerRulesInnerGetLabelsAttributeType(&o.Labels, v) } // GetRecord returns the Record field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetRecord() (res UpdateAlertgroupsRequestInnerRulesInnerGetRecordRetType) { res, _ = o.GetRecordOk() return @@ -297,21 +360,25 @@ func (o *UpdateAlertgroupsRequestInnerRulesInner) GetRecord() (res UpdateAlertgr // GetRecordOk returns a tuple with the Record field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) GetRecordOk() (ret UpdateAlertgroupsRequestInnerRulesInnerGetRecordRetType, ok bool) { return getUpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeTypeOk(o.Record) } // HasRecord returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) HasRecord() bool { _, ok := o.GetRecordOk() return ok } // SetRecord gets a reference to the given string and assigns it to the Record field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertgroupsRequestInnerRulesInner) SetRecord(v UpdateAlertgroupsRequestInnerRulesInnerGetRecordRetType) { setUpdateAlertgroupsRequestInnerRulesInnerGetRecordAttributeType(&o.Record, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertgroupsRequestInnerRulesInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertgroupsRequestInnerRulesInnerGetAlertAttributeTypeOk(o.Alert); ok { @@ -335,37 +402,45 @@ func (o UpdateAlertgroupsRequestInnerRulesInner) ToMap() (map[string]interface{} return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertgroupsRequestInnerRulesInner struct { value *UpdateAlertgroupsRequestInnerRulesInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupsRequestInnerRulesInner) Get() *UpdateAlertgroupsRequestInnerRulesInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupsRequestInnerRulesInner) Set(val *UpdateAlertgroupsRequestInnerRulesInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupsRequestInnerRulesInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupsRequestInnerRulesInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertgroupsRequestInnerRulesInner(val *UpdateAlertgroupsRequestInnerRulesInner) *NullableUpdateAlertgroupsRequestInnerRulesInner { return &NullableUpdateAlertgroupsRequestInnerRulesInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertgroupsRequestInnerRulesInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertgroupsRequestInnerRulesInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_alertrule_payload.go b/services/observability/model_update_alertrule_payload.go index 0890f56a8..ad5e537a0 100644 --- a/services/observability/model_update_alertrule_payload.go +++ b/services/observability/model_update_alertrule_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateAlertrulePayload{} */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetAnnotationsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetAnnotationsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetAnnotationsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertrulePayloadGetAnnotationsAttributeTypeOk(arg UpdateAlertrulePayloadGetAnnotationsAttributeType) (ret UpdateAlertrulePayloadGetAnnotationsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateAlertrulePayloadGetAnnotationsAttributeTypeOk(arg UpdateAlertruleP return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertrulePayloadGetAnnotationsAttributeType(arg *UpdateAlertrulePayloadGetAnnotationsAttributeType, val UpdateAlertrulePayloadGetAnnotationsRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateAlertrulePayloadGetAnnotationsAttributeType(arg *UpdateAlertrulePa */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetExprAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertrulePayloadGetExprAttributeTypeOk(arg UpdateAlertrulePayloadGetExprAttributeType) (ret UpdateAlertrulePayloadGetExprRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getUpdateAlertrulePayloadGetExprAttributeTypeOk(arg UpdateAlertrulePayloadG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertrulePayloadGetExprAttributeType(arg *UpdateAlertrulePayloadGetExprAttributeType, val UpdateAlertrulePayloadGetExprRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetExprArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetExprRetType = string /* @@ -63,8 +77,10 @@ type UpdateAlertrulePayloadGetExprRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetForAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertrulePayloadGetForAttributeTypeOk(arg UpdateAlertrulePayloadGetForAttributeType) (ret UpdateAlertrulePayloadGetForRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getUpdateAlertrulePayloadGetForAttributeTypeOk(arg UpdateAlertrulePayloadGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertrulePayloadGetForAttributeType(arg *UpdateAlertrulePayloadGetForAttributeType, val UpdateAlertrulePayloadGetForRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetForArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetForRetType = string /* @@ -84,10 +104,16 @@ type UpdateAlertrulePayloadGetForRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayloadGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateAlertrulePayloadGetLabelsAttributeTypeOk(arg UpdateAlertrulePayloadGetLabelsAttributeType) (ret UpdateAlertrulePayloadGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -95,11 +121,13 @@ func getUpdateAlertrulePayloadGetLabelsAttributeTypeOk(arg UpdateAlertrulePayloa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateAlertrulePayloadGetLabelsAttributeType(arg *UpdateAlertrulePayloadGetLabelsAttributeType, val UpdateAlertrulePayloadGetLabelsRetType) { *arg = &val } // UpdateAlertrulePayload 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateAlertrulePayload struct { // map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters Annotations UpdateAlertrulePayloadGetAnnotationsAttributeType `json:"annotations,omitempty"` @@ -112,12 +140,14 @@ type UpdateAlertrulePayload struct { Labels UpdateAlertrulePayloadGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateAlertrulePayload UpdateAlertrulePayload // NewUpdateAlertrulePayload instantiates a new UpdateAlertrulePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertrulePayload(expr UpdateAlertrulePayloadGetExprArgType) *UpdateAlertrulePayload { this := UpdateAlertrulePayload{} setUpdateAlertrulePayloadGetExprAttributeType(&this.Expr, expr) @@ -127,6 +157,7 @@ func NewUpdateAlertrulePayload(expr UpdateAlertrulePayloadGetExprArgType) *Updat // NewUpdateAlertrulePayloadWithDefaults instantiates a new UpdateAlertrulePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateAlertrulePayloadWithDefaults() *UpdateAlertrulePayload { this := UpdateAlertrulePayload{} var for_ string = "0s" @@ -135,6 +166,7 @@ func NewUpdateAlertrulePayloadWithDefaults() *UpdateAlertrulePayload { } // GetAnnotations returns the Annotations field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetAnnotations() (res UpdateAlertrulePayloadGetAnnotationsRetType) { res, _ = o.GetAnnotationsOk() return @@ -142,22 +174,26 @@ func (o *UpdateAlertrulePayload) GetAnnotations() (res UpdateAlertrulePayloadGet // GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetAnnotationsOk() (ret UpdateAlertrulePayloadGetAnnotationsRetType, ok bool) { return getUpdateAlertrulePayloadGetAnnotationsAttributeTypeOk(o.Annotations) } // HasAnnotations returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) HasAnnotations() bool { _, ok := o.GetAnnotationsOk() return ok } // SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) SetAnnotations(v UpdateAlertrulePayloadGetAnnotationsRetType) { setUpdateAlertrulePayloadGetAnnotationsAttributeType(&o.Annotations, v) } // GetExpr returns the Expr field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetExpr() (ret UpdateAlertrulePayloadGetExprRetType) { ret, _ = o.GetExprOk() return ret @@ -165,16 +201,19 @@ func (o *UpdateAlertrulePayload) GetExpr() (ret UpdateAlertrulePayloadGetExprRet // GetExprOk returns a tuple with the Expr field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetExprOk() (ret UpdateAlertrulePayloadGetExprRetType, ok bool) { return getUpdateAlertrulePayloadGetExprAttributeTypeOk(o.Expr) } // SetExpr sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) SetExpr(v UpdateAlertrulePayloadGetExprRetType) { setUpdateAlertrulePayloadGetExprAttributeType(&o.Expr, v) } // GetFor returns the For field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetFor() (res UpdateAlertrulePayloadGetForRetType) { res, _ = o.GetForOk() return @@ -182,22 +221,26 @@ func (o *UpdateAlertrulePayload) GetFor() (res UpdateAlertrulePayloadGetForRetTy // GetForOk returns a tuple with the For field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetForOk() (ret UpdateAlertrulePayloadGetForRetType, ok bool) { return getUpdateAlertrulePayloadGetForAttributeTypeOk(o.For) } // HasFor returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) HasFor() bool { _, ok := o.GetForOk() return ok } // SetFor gets a reference to the given string and assigns it to the For field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) SetFor(v UpdateAlertrulePayloadGetForRetType) { setUpdateAlertrulePayloadGetForAttributeType(&o.For, v) } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetLabels() (res UpdateAlertrulePayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -205,21 +248,25 @@ func (o *UpdateAlertrulePayload) GetLabels() (res UpdateAlertrulePayloadGetLabel // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) GetLabelsOk() (ret UpdateAlertrulePayloadGetLabelsRetType, ok bool) { return getUpdateAlertrulePayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateAlertrulePayload) SetLabels(v UpdateAlertrulePayloadGetLabelsRetType) { setUpdateAlertrulePayloadGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateAlertrulePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateAlertrulePayloadGetAnnotationsAttributeTypeOk(o.Annotations); ok { @@ -237,37 +284,45 @@ func (o UpdateAlertrulePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateAlertrulePayload struct { value *UpdateAlertrulePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertrulePayload) Get() *UpdateAlertrulePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertrulePayload) Set(val *UpdateAlertrulePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertrulePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertrulePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateAlertrulePayload(val *UpdateAlertrulePayload) *NullableUpdateAlertrulePayload { return &NullableUpdateAlertrulePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateAlertrulePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateAlertrulePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_credentials_remote_write_config_payload.go b/services/observability/model_update_credentials_remote_write_config_payload.go index 456c5fe36..768549805 100644 --- a/services/observability/model_update_credentials_remote_write_config_payload.go +++ b/services/observability/model_update_credentials_remote_write_config_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateCredentialsRemoteWriteConfigPayload{} */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeTypeOk(arg UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeType) (ret UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +40,13 @@ func getUpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeType(arg *UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeType, val UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitRetType) { *arg = &val } // UpdateCredentialsRemoteWriteConfigPayload Remote write limit config. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateCredentialsRemoteWriteConfigPayload struct { // Remote write metric sample limit for credential to push in a single minute. MaxLimit UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeType `json:"maxLimit,omitempty"` @@ -47,6 +56,7 @@ type UpdateCredentialsRemoteWriteConfigPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateCredentialsRemoteWriteConfigPayload() *UpdateCredentialsRemoteWriteConfigPayload { this := UpdateCredentialsRemoteWriteConfigPayload{} return &this @@ -55,12 +65,14 @@ func NewUpdateCredentialsRemoteWriteConfigPayload() *UpdateCredentialsRemoteWrit // NewUpdateCredentialsRemoteWriteConfigPayloadWithDefaults instantiates a new UpdateCredentialsRemoteWriteConfigPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateCredentialsRemoteWriteConfigPayloadWithDefaults() *UpdateCredentialsRemoteWriteConfigPayload { this := UpdateCredentialsRemoteWriteConfigPayload{} return &this } // GetMaxLimit returns the MaxLimit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateCredentialsRemoteWriteConfigPayload) GetMaxLimit() (res UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitRetType) { res, _ = o.GetMaxLimitOk() return @@ -68,21 +80,25 @@ func (o *UpdateCredentialsRemoteWriteConfigPayload) GetMaxLimit() (res UpdateCre // GetMaxLimitOk returns a tuple with the MaxLimit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateCredentialsRemoteWriteConfigPayload) GetMaxLimitOk() (ret UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitRetType, ok bool) { return getUpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeTypeOk(o.MaxLimit) } // HasMaxLimit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateCredentialsRemoteWriteConfigPayload) HasMaxLimit() bool { _, ok := o.GetMaxLimitOk() return ok } // SetMaxLimit gets a reference to the given float64 and assigns it to the MaxLimit field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateCredentialsRemoteWriteConfigPayload) SetMaxLimit(v UpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitRetType) { setUpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeType(&o.MaxLimit, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateCredentialsRemoteWriteConfigPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateCredentialsRemoteWriteConfigPayloadGetMaxLimitAttributeTypeOk(o.MaxLimit); ok { @@ -91,37 +107,45 @@ func (o UpdateCredentialsRemoteWriteConfigPayload) ToMap() (map[string]interface return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateCredentialsRemoteWriteConfigPayload struct { value *UpdateCredentialsRemoteWriteConfigPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateCredentialsRemoteWriteConfigPayload) Get() *UpdateCredentialsRemoteWriteConfigPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateCredentialsRemoteWriteConfigPayload) Set(val *UpdateCredentialsRemoteWriteConfigPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateCredentialsRemoteWriteConfigPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateCredentialsRemoteWriteConfigPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateCredentialsRemoteWriteConfigPayload(val *UpdateCredentialsRemoteWriteConfigPayload) *NullableUpdateCredentialsRemoteWriteConfigPayload { return &NullableUpdateCredentialsRemoteWriteConfigPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateCredentialsRemoteWriteConfigPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateCredentialsRemoteWriteConfigPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_grafana_configs_payload.go b/services/observability/model_update_grafana_configs_payload.go index a20d92555..84b1f76d2 100644 --- a/services/observability/model_update_grafana_configs_payload.go +++ b/services/observability/model_update_grafana_configs_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateGrafanaConfigsPayload{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGetGenericOauthAttributeType = *UpdateGrafanaConfigsPayloadGenericOauth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGetGenericOauthArgType = UpdateGrafanaConfigsPayloadGenericOauth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGetGenericOauthRetType = UpdateGrafanaConfigsPayloadGenericOauth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGetGenericOauthAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGetGenericOauthAttributeType) (ret UpdateGrafanaConfigsPayloadGetGenericOauthRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateGrafanaConfigsPayloadGetGenericOauthAttributeTypeOk(arg UpdateGraf return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGetGenericOauthAttributeType(arg *UpdateGrafanaConfigsPayloadGetGenericOauthAttributeType, val UpdateGrafanaConfigsPayloadGetGenericOauthRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateGrafanaConfigsPayloadGetGenericOauthAttributeType(arg *UpdateGrafa */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadgetPublicReadAccessArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadgetPublicReadAccessRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeTypeOk(arg UpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeType) (ret UpdateGrafanaConfigsPayloadgetPublicReadAccessRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getUpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeType(arg *UpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeType, val UpdateGrafanaConfigsPayloadgetPublicReadAccessRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setUpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeType(arg *UpdateG */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadgetUseStackitSsoArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadgetUseStackitSsoRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeTypeOk(arg UpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeType) (ret UpdateGrafanaConfigsPayloadgetUseStackitSsoRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +94,13 @@ func getUpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeTypeOk(arg UpdateGra return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeType(arg *UpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeType, val UpdateGrafanaConfigsPayloadgetUseStackitSsoRetType) { *arg = &val } // UpdateGrafanaConfigsPayload Sending any of the attributes results in a set of the attribute and overwrites any previous configuration. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayload struct { GenericOauth UpdateGrafanaConfigsPayloadGetGenericOauthAttributeType `json:"genericOauth,omitempty"` // If it's true, anyone can access the Grafana dashboards without logging in. If it is wrong, a login is required. @@ -90,6 +113,7 @@ type UpdateGrafanaConfigsPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateGrafanaConfigsPayload() *UpdateGrafanaConfigsPayload { this := UpdateGrafanaConfigsPayload{} return &this @@ -98,12 +122,14 @@ func NewUpdateGrafanaConfigsPayload() *UpdateGrafanaConfigsPayload { // NewUpdateGrafanaConfigsPayloadWithDefaults instantiates a new UpdateGrafanaConfigsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateGrafanaConfigsPayloadWithDefaults() *UpdateGrafanaConfigsPayload { this := UpdateGrafanaConfigsPayload{} return &this } // GetGenericOauth returns the GenericOauth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) GetGenericOauth() (res UpdateGrafanaConfigsPayloadGetGenericOauthRetType) { res, _ = o.GetGenericOauthOk() return @@ -111,22 +137,26 @@ func (o *UpdateGrafanaConfigsPayload) GetGenericOauth() (res UpdateGrafanaConfig // GetGenericOauthOk returns a tuple with the GenericOauth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) GetGenericOauthOk() (ret UpdateGrafanaConfigsPayloadGetGenericOauthRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGetGenericOauthAttributeTypeOk(o.GenericOauth) } // HasGenericOauth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) HasGenericOauth() bool { _, ok := o.GetGenericOauthOk() return ok } // SetGenericOauth gets a reference to the given UpdateGrafanaConfigsPayloadGenericOauth and assigns it to the GenericOauth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) SetGenericOauth(v UpdateGrafanaConfigsPayloadGetGenericOauthRetType) { setUpdateGrafanaConfigsPayloadGetGenericOauthAttributeType(&o.GenericOauth, v) } // GetPublicReadAccess returns the PublicReadAccess field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) GetPublicReadAccess() (res UpdateGrafanaConfigsPayloadgetPublicReadAccessRetType) { res, _ = o.GetPublicReadAccessOk() return @@ -134,22 +164,26 @@ func (o *UpdateGrafanaConfigsPayload) GetPublicReadAccess() (res UpdateGrafanaCo // GetPublicReadAccessOk returns a tuple with the PublicReadAccess field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) GetPublicReadAccessOk() (ret UpdateGrafanaConfigsPayloadgetPublicReadAccessRetType, ok bool) { return getUpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeTypeOk(o.PublicReadAccess) } // HasPublicReadAccess returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) HasPublicReadAccess() bool { _, ok := o.GetPublicReadAccessOk() return ok } // SetPublicReadAccess gets a reference to the given bool and assigns it to the PublicReadAccess field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) SetPublicReadAccess(v UpdateGrafanaConfigsPayloadgetPublicReadAccessRetType) { setUpdateGrafanaConfigsPayloadgetPublicReadAccessAttributeType(&o.PublicReadAccess, v) } // GetUseStackitSso returns the UseStackitSso field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) GetUseStackitSso() (res UpdateGrafanaConfigsPayloadgetUseStackitSsoRetType) { res, _ = o.GetUseStackitSsoOk() return @@ -157,21 +191,25 @@ func (o *UpdateGrafanaConfigsPayload) GetUseStackitSso() (res UpdateGrafanaConfi // GetUseStackitSsoOk returns a tuple with the UseStackitSso field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) GetUseStackitSsoOk() (ret UpdateGrafanaConfigsPayloadgetUseStackitSsoRetType, ok bool) { return getUpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeTypeOk(o.UseStackitSso) } // HasUseStackitSso returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) HasUseStackitSso() bool { _, ok := o.GetUseStackitSsoOk() return ok } // SetUseStackitSso gets a reference to the given bool and assigns it to the UseStackitSso field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayload) SetUseStackitSso(v UpdateGrafanaConfigsPayloadgetUseStackitSsoRetType) { setUpdateGrafanaConfigsPayloadgetUseStackitSsoAttributeType(&o.UseStackitSso, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateGrafanaConfigsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateGrafanaConfigsPayloadGetGenericOauthAttributeTypeOk(o.GenericOauth); ok { @@ -186,37 +224,45 @@ func (o UpdateGrafanaConfigsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateGrafanaConfigsPayload struct { value *UpdateGrafanaConfigsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateGrafanaConfigsPayload) Get() *UpdateGrafanaConfigsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateGrafanaConfigsPayload) Set(val *UpdateGrafanaConfigsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateGrafanaConfigsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateGrafanaConfigsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateGrafanaConfigsPayload(val *UpdateGrafanaConfigsPayload) *NullableUpdateGrafanaConfigsPayload { return &NullableUpdateGrafanaConfigsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateGrafanaConfigsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateGrafanaConfigsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_grafana_configs_payload_generic_oauth.go b/services/observability/model_update_grafana_configs_payload_generic_oauth.go index 2549bfa36..54a2c6e93 100644 --- a/services/observability/model_update_grafana_configs_payload_generic_oauth.go +++ b/services/observability/model_update_grafana_configs_payload_generic_oauth.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateGrafanaConfigsPayloadGenericOauth{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttribu return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttribu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType = string /* @@ -63,8 +77,10 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeTypeOk(arg Upd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType = string /* @@ -84,10 +104,16 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetEnabledArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetEnabledRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthgetEnabledRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +121,7 @@ func getUpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeTypeOk(arg Upd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthgetEnabledRetType) { *arg = &val } @@ -104,8 +131,10 @@ func setUpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeType(arg *Upda */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -113,11 +142,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType = string /* @@ -125,8 +158,10 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType, ok bool) { if arg == nil { return ret, false @@ -134,11 +169,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeTypeOk(a return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType = string /* @@ -146,8 +185,10 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType, ok bool) { if arg == nil { return ret, false @@ -155,11 +196,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeType return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType = string /* @@ -167,8 +212,10 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType, ok bool) { if arg == nil { return ret, false @@ -176,11 +223,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeType return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType = string /* @@ -188,10 +239,16 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictRetType, ok bool) { if arg == nil { return ret, false @@ -199,6 +256,7 @@ func getUpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictRetType) { *arg = &val } @@ -208,8 +266,10 @@ func setUpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeTy */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType, ok bool) { if arg == nil { return ret, false @@ -217,11 +277,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeTypeOk(arg Upda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetScopesArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType = string /* @@ -229,8 +293,10 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType, ok bool) { if arg == nil { return ret, false @@ -238,11 +304,15 @@ func getUpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeTypeOk(arg Up return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType = string /* @@ -250,10 +320,16 @@ type UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeTypeOk(arg UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeType) (ret UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceRetType, ok bool) { if arg == nil { return ret, false @@ -261,11 +337,13 @@ func getUpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeTypeOk(arg Upd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeType(arg *UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeType, val UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceRetType) { *arg = &val } // UpdateGrafanaConfigsPayloadGenericOauth struct for UpdateGrafanaConfigsPayloadGenericOauth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateGrafanaConfigsPayloadGenericOauth struct { // Set to true to enable automatic sync of the Grafana server administrator role. If this option is set to true and the result of evaluating role_attribute_path for a user is GrafanaAdmin, Grafana grants the user the server administrator privileges and organization administrator role. If this option is set to false and the result of evaluating role_attribute_path for a user is GrafanaAdmin, Grafana grants the user only organization administrator role. AllowAssignGrafanaAdmin UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeType `json:"allowAssignGrafanaAdmin,omitempty"` @@ -300,12 +378,14 @@ type UpdateGrafanaConfigsPayloadGenericOauth struct { UsePkce UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeType `json:"usePkce,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateGrafanaConfigsPayloadGenericOauth UpdateGrafanaConfigsPayloadGenericOauth // NewUpdateGrafanaConfigsPayloadGenericOauth instantiates a new UpdateGrafanaConfigsPayloadGenericOauth object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateGrafanaConfigsPayloadGenericOauth(apiUrl UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlArgType, authUrl UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlArgType, enabled UpdateGrafanaConfigsPayloadGenericOauthgetEnabledArgType, oauthClientId UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdArgType, oauthClientSecret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretArgType, roleAttributePath UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathArgType, tokenUrl UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlArgType) *UpdateGrafanaConfigsPayloadGenericOauth { this := UpdateGrafanaConfigsPayloadGenericOauth{} setUpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeType(&this.ApiUrl, apiUrl) @@ -321,6 +401,7 @@ func NewUpdateGrafanaConfigsPayloadGenericOauth(apiUrl UpdateGrafanaConfigsPaylo // NewUpdateGrafanaConfigsPayloadGenericOauthWithDefaults instantiates a new UpdateGrafanaConfigsPayloadGenericOauth object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateGrafanaConfigsPayloadGenericOauthWithDefaults() *UpdateGrafanaConfigsPayloadGenericOauth { this := UpdateGrafanaConfigsPayloadGenericOauth{} var allowAssignGrafanaAdmin bool = false @@ -333,6 +414,7 @@ func NewUpdateGrafanaConfigsPayloadGenericOauthWithDefaults() *UpdateGrafanaConf } // GetAllowAssignGrafanaAdmin returns the AllowAssignGrafanaAdmin field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAllowAssignGrafanaAdmin() (res UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminRetType) { res, _ = o.GetAllowAssignGrafanaAdminOk() return @@ -340,22 +422,26 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAllowAssignGrafanaAdmin() ( // GetAllowAssignGrafanaAdminOk returns a tuple with the AllowAssignGrafanaAdmin field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAllowAssignGrafanaAdminOk() (ret UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeTypeOk(o.AllowAssignGrafanaAdmin) } // HasAllowAssignGrafanaAdmin returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasAllowAssignGrafanaAdmin() bool { _, ok := o.GetAllowAssignGrafanaAdminOk() return ok } // SetAllowAssignGrafanaAdmin gets a reference to the given bool and assigns it to the AllowAssignGrafanaAdmin field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetAllowAssignGrafanaAdmin(v UpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminRetType) { setUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeType(&o.AllowAssignGrafanaAdmin, v) } // GetApiUrl returns the ApiUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetApiUrl() (ret UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType) { ret, _ = o.GetApiUrlOk() return ret @@ -363,16 +449,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetApiUrl() (ret UpdateGrafana // GetApiUrlOk returns a tuple with the ApiUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetApiUrlOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeTypeOk(o.ApiUrl) } // SetApiUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetApiUrl(v UpdateGrafanaConfigsPayloadGenericOauthGetApiUrlRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetApiUrlAttributeType(&o.ApiUrl, v) } // GetAuthUrl returns the AuthUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAuthUrl() (ret UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType) { ret, _ = o.GetAuthUrlOk() return ret @@ -380,16 +469,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAuthUrl() (ret UpdateGrafan // GetAuthUrlOk returns a tuple with the AuthUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAuthUrlOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeTypeOk(o.AuthUrl) } // SetAuthUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetAuthUrl(v UpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetAuthUrlAttributeType(&o.AuthUrl, v) } // GetEnabled returns the Enabled field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetEnabled() (ret UpdateGrafanaConfigsPayloadGenericOauthgetEnabledRetType) { ret, _ = o.GetEnabledOk() return ret @@ -397,16 +489,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetEnabled() (ret UpdateGrafan // GetEnabledOk returns a tuple with the Enabled field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetEnabledOk() (ret UpdateGrafanaConfigsPayloadGenericOauthgetEnabledRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeTypeOk(o.Enabled) } // SetEnabled sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetEnabled(v UpdateGrafanaConfigsPayloadGenericOauthgetEnabledRetType) { setUpdateGrafanaConfigsPayloadGenericOauthgetEnabledAttributeType(&o.Enabled, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetName() (res UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType) { res, _ = o.GetNameOk() return @@ -414,22 +509,26 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetName() (res UpdateGrafanaCo // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetNameOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetName(v UpdateGrafanaConfigsPayloadGenericOauthGetNameRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetNameAttributeType(&o.Name, v) } // GetOauthClientId returns the OauthClientId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientId() (ret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType) { ret, _ = o.GetOauthClientIdOk() return ret @@ -437,16 +536,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientId() (ret Update // GetOauthClientIdOk returns a tuple with the OauthClientId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientIdOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeTypeOk(o.OauthClientId) } // SetOauthClientId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetOauthClientId(v UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientIdAttributeType(&o.OauthClientId, v) } // GetOauthClientSecret returns the OauthClientSecret field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientSecret() (ret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType) { ret, _ = o.GetOauthClientSecretOk() return ret @@ -454,16 +556,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientSecret() (ret Up // GetOauthClientSecretOk returns a tuple with the OauthClientSecret field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientSecretOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeTypeOk(o.OauthClientSecret) } // SetOauthClientSecret sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetOauthClientSecret(v UpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetOauthClientSecretAttributeType(&o.OauthClientSecret, v) } // GetRoleAttributePath returns the RoleAttributePath field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributePath() (ret UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType) { ret, _ = o.GetRoleAttributePathOk() return ret @@ -471,16 +576,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributePath() (ret Up // GetRoleAttributePathOk returns a tuple with the RoleAttributePath field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributePathOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeTypeOk(o.RoleAttributePath) } // SetRoleAttributePath sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetRoleAttributePath(v UpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetRoleAttributePathAttributeType(&o.RoleAttributePath, v) } // GetRoleAttributeStrict returns the RoleAttributeStrict field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributeStrict() (res UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictRetType) { res, _ = o.GetRoleAttributeStrictOk() return @@ -488,22 +596,26 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributeStrict() (res // GetRoleAttributeStrictOk returns a tuple with the RoleAttributeStrict field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributeStrictOk() (ret UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeTypeOk(o.RoleAttributeStrict) } // HasRoleAttributeStrict returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasRoleAttributeStrict() bool { _, ok := o.GetRoleAttributeStrictOk() return ok } // SetRoleAttributeStrict gets a reference to the given bool and assigns it to the RoleAttributeStrict field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetRoleAttributeStrict(v UpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictRetType) { setUpdateGrafanaConfigsPayloadGenericOauthgetRoleAttributeStrictAttributeType(&o.RoleAttributeStrict, v) } // GetScopes returns the Scopes field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetScopes() (res UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType) { res, _ = o.GetScopesOk() return @@ -511,22 +623,26 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetScopes() (res UpdateGrafana // GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetScopesOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeTypeOk(o.Scopes) } // HasScopes returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasScopes() bool { _, ok := o.GetScopesOk() return ok } // SetScopes gets a reference to the given string and assigns it to the Scopes field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetScopes(v UpdateGrafanaConfigsPayloadGenericOauthGetScopesRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetScopesAttributeType(&o.Scopes, v) } // GetTokenUrl returns the TokenUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetTokenUrl() (ret UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType) { ret, _ = o.GetTokenUrlOk() return ret @@ -534,16 +650,19 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetTokenUrl() (ret UpdateGrafa // GetTokenUrlOk returns a tuple with the TokenUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetTokenUrlOk() (ret UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeTypeOk(o.TokenUrl) } // SetTokenUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetTokenUrl(v UpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlRetType) { setUpdateGrafanaConfigsPayloadGenericOauthGetTokenUrlAttributeType(&o.TokenUrl, v) } // GetUsePkce returns the UsePkce field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetUsePkce() (res UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceRetType) { res, _ = o.GetUsePkceOk() return @@ -551,21 +670,25 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetUsePkce() (res UpdateGrafan // GetUsePkceOk returns a tuple with the UsePkce field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetUsePkceOk() (ret UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceRetType, ok bool) { return getUpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeTypeOk(o.UsePkce) } // HasUsePkce returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasUsePkce() bool { _, ok := o.GetUsePkceOk() return ok } // SetUsePkce gets a reference to the given bool and assigns it to the UsePkce field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetUsePkce(v UpdateGrafanaConfigsPayloadGenericOauthgetUsePkceRetType) { setUpdateGrafanaConfigsPayloadGenericOauthgetUsePkceAttributeType(&o.UsePkce, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateGrafanaConfigsPayloadGenericOauth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateGrafanaConfigsPayloadGenericOauthgetAllowAssignGrafanaAdminAttributeTypeOk(o.AllowAssignGrafanaAdmin); ok { @@ -607,37 +730,45 @@ func (o UpdateGrafanaConfigsPayloadGenericOauth) ToMap() (map[string]interface{} return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateGrafanaConfigsPayloadGenericOauth struct { value *UpdateGrafanaConfigsPayloadGenericOauth isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateGrafanaConfigsPayloadGenericOauth) Get() *UpdateGrafanaConfigsPayloadGenericOauth { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateGrafanaConfigsPayloadGenericOauth) Set(val *UpdateGrafanaConfigsPayloadGenericOauth) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateGrafanaConfigsPayloadGenericOauth) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateGrafanaConfigsPayloadGenericOauth) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateGrafanaConfigsPayloadGenericOauth(val *UpdateGrafanaConfigsPayloadGenericOauth) *NullableUpdateGrafanaConfigsPayloadGenericOauth { return &NullableUpdateGrafanaConfigsPayloadGenericOauth{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateGrafanaConfigsPayloadGenericOauth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateGrafanaConfigsPayloadGenericOauth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_instance_payload.go b/services/observability/model_update_instance_payload.go index 87a909e04..358350f42 100644 --- a/services/observability/model_update_instance_payload.go +++ b/services/observability/model_update_instance_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateInstancePayload{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadgetGrafanaAdminEnabledAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadgetGrafanaAdminEnabledArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadgetGrafanaAdminEnabledRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(arg UpdateInstancePayloadgetGrafanaAdminEnabledAttributeType) (ret UpdateInstancePayloadgetGrafanaAdminEnabledRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(arg UpdateIns return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateInstancePayloadgetGrafanaAdminEnabledAttributeType(arg *UpdateInstancePayloadgetGrafanaAdminEnabledAttributeType, val UpdateInstancePayloadgetGrafanaAdminEnabledRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateInstancePayloadgetGrafanaAdminEnabledAttributeType(arg *UpdateInst */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateInstancePayloadGetNameAttributeTypeOk(arg UpdateInstancePayloadGetNameAttributeType) (ret UpdateInstancePayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getUpdateInstancePayloadGetNameAttributeTypeOk(arg UpdateInstancePayloadGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateInstancePayloadGetNameAttributeType(arg *UpdateInstancePayloadGetNameAttributeType, val UpdateInstancePayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetNameRetType = string /* @@ -63,10 +77,16 @@ type UpdateInstancePayloadGetNameRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetParameterAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetParameterArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetParameterRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateInstancePayloadGetParameterAttributeTypeOk(arg UpdateInstancePayloadGetParameterAttributeType) (ret UpdateInstancePayloadGetParameterRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getUpdateInstancePayloadGetParameterAttributeTypeOk(arg UpdateInstancePaylo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateInstancePayloadGetParameterAttributeType(arg *UpdateInstancePayloadGetParameterAttributeType, val UpdateInstancePayloadGetParameterRetType) { *arg = &val } @@ -83,8 +104,10 @@ func setUpdateInstancePayloadGetParameterAttributeType(arg *UpdateInstancePayloa */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateInstancePayloadGetPlanIdAttributeTypeOk(arg UpdateInstancePayloadGetPlanIdAttributeType) (ret UpdateInstancePayloadGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -92,14 +115,19 @@ func getUpdateInstancePayloadGetPlanIdAttributeTypeOk(arg UpdateInstancePayloadG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateInstancePayloadGetPlanIdAttributeType(arg *UpdateInstancePayloadGetPlanIdAttributeType, val UpdateInstancePayloadGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayloadGetPlanIdRetType = string // UpdateInstancePayload Create update instance body. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateInstancePayload struct { // When set to false, the Grafana server admin created during provisioning will be deleted. It's recommended to set this to false and use STACKIT SSO (`Owner` or `Observability Grafana Server Admin` role) instead. It is still possible to manually create a new Grafana admin user via the Grafana UI later. Once set to false, it is not possible to set it to true again. GrafanaAdminEnabled UpdateInstancePayloadgetGrafanaAdminEnabledAttributeType `json:"grafanaAdminEnabled,omitempty"` @@ -115,6 +143,7 @@ type UpdateInstancePayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateInstancePayload() *UpdateInstancePayload { this := UpdateInstancePayload{} return &this @@ -123,6 +152,7 @@ func NewUpdateInstancePayload() *UpdateInstancePayload { // NewUpdateInstancePayloadWithDefaults instantiates a new UpdateInstancePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { this := UpdateInstancePayload{} var grafanaAdminEnabled bool = true @@ -131,6 +161,7 @@ func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { } // GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetGrafanaAdminEnabled() (res UpdateInstancePayloadgetGrafanaAdminEnabledRetType) { res, _ = o.GetGrafanaAdminEnabledOk() return @@ -138,22 +169,26 @@ func (o *UpdateInstancePayload) GetGrafanaAdminEnabled() (res UpdateInstancePayl // GetGrafanaAdminEnabledOk returns a tuple with the GrafanaAdminEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetGrafanaAdminEnabledOk() (ret UpdateInstancePayloadgetGrafanaAdminEnabledRetType, ok bool) { return getUpdateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(o.GrafanaAdminEnabled) } // HasGrafanaAdminEnabled returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) HasGrafanaAdminEnabled() bool { _, ok := o.GetGrafanaAdminEnabledOk() return ok } // SetGrafanaAdminEnabled gets a reference to the given bool and assigns it to the GrafanaAdminEnabled field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) SetGrafanaAdminEnabled(v UpdateInstancePayloadgetGrafanaAdminEnabledRetType) { setUpdateInstancePayloadgetGrafanaAdminEnabledAttributeType(&o.GrafanaAdminEnabled, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetName() (res UpdateInstancePayloadGetNameRetType) { res, _ = o.GetNameOk() return @@ -161,22 +196,26 @@ func (o *UpdateInstancePayload) GetName() (res UpdateInstancePayloadGetNameRetTy // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetNameOk() (ret UpdateInstancePayloadGetNameRetType, ok bool) { return getUpdateInstancePayloadGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) SetName(v UpdateInstancePayloadGetNameRetType) { setUpdateInstancePayloadGetNameAttributeType(&o.Name, v) } // GetParameter returns the Parameter field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetParameter() (res UpdateInstancePayloadGetParameterRetType) { res, _ = o.GetParameterOk() return @@ -184,22 +223,26 @@ func (o *UpdateInstancePayload) GetParameter() (res UpdateInstancePayloadGetPara // GetParameterOk returns a tuple with the Parameter field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetParameterOk() (ret UpdateInstancePayloadGetParameterRetType, ok bool) { return getUpdateInstancePayloadGetParameterAttributeTypeOk(o.Parameter) } // HasParameter returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) HasParameter() bool { _, ok := o.GetParameterOk() return ok } // SetParameter gets a reference to the given map[string]interface{} and assigns it to the Parameter field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) SetParameter(v UpdateInstancePayloadGetParameterRetType) { setUpdateInstancePayloadGetParameterAttributeType(&o.Parameter, v) } // GetPlanId returns the PlanId field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetPlanId() (res UpdateInstancePayloadGetPlanIdRetType) { res, _ = o.GetPlanIdOk() return @@ -207,21 +250,25 @@ func (o *UpdateInstancePayload) GetPlanId() (res UpdateInstancePayloadGetPlanIdR // GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) GetPlanIdOk() (ret UpdateInstancePayloadGetPlanIdRetType, ok bool) { return getUpdateInstancePayloadGetPlanIdAttributeTypeOk(o.PlanId) } // HasPlanId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) HasPlanId() bool { _, ok := o.GetPlanIdOk() return ok } // SetPlanId gets a reference to the given string and assigns it to the PlanId field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateInstancePayload) SetPlanId(v UpdateInstancePayloadGetPlanIdRetType) { setUpdateInstancePayloadGetPlanIdAttributeType(&o.PlanId, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateInstancePayloadgetGrafanaAdminEnabledAttributeTypeOk(o.GrafanaAdminEnabled); ok { @@ -239,37 +286,45 @@ func (o UpdateInstancePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateInstancePayload struct { value *UpdateInstancePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateInstancePayload) Get() *UpdateInstancePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateInstancePayload) Set(val *UpdateInstancePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateInstancePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateInstancePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateInstancePayload(val *UpdateInstancePayload) *NullableUpdateInstancePayload { return &NullableUpdateInstancePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateInstancePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateInstancePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_logs_alertgroup_payload.go b/services/observability/model_update_logs_alertgroup_payload.go index e4707225e..03c887166 100644 --- a/services/observability/model_update_logs_alertgroup_payload.go +++ b/services/observability/model_update_logs_alertgroup_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateLogsAlertgroupPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayloadGetIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateLogsAlertgroupPayloadGetIntervalAttributeTypeOk(arg UpdateLogsAlertgroupPayloadGetIntervalAttributeType) (ret UpdateLogsAlertgroupPayloadGetIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateLogsAlertgroupPayloadGetIntervalAttributeTypeOk(arg UpdateLogsAler return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateLogsAlertgroupPayloadGetIntervalAttributeType(arg *UpdateLogsAlertgroupPayloadGetIntervalAttributeType, val UpdateLogsAlertgroupPayloadGetIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayloadGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayloadGetIntervalRetType = string /* @@ -43,10 +50,16 @@ type UpdateLogsAlertgroupPayloadGetIntervalRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayloadGetRulesAttributeType = *[]CreateLogsAlertgroupsPayloadRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayloadGetRulesArgType = []CreateLogsAlertgroupsPayloadRulesInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayloadGetRulesRetType = []CreateLogsAlertgroupsPayloadRulesInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateLogsAlertgroupPayloadGetRulesAttributeTypeOk(arg UpdateLogsAlertgroupPayloadGetRulesAttributeType) (ret UpdateLogsAlertgroupPayloadGetRulesRetType, ok bool) { if arg == nil { return ret, false @@ -54,11 +67,13 @@ func getUpdateLogsAlertgroupPayloadGetRulesAttributeTypeOk(arg UpdateLogsAlertgr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateLogsAlertgroupPayloadGetRulesAttributeType(arg *UpdateLogsAlertgroupPayloadGetRulesAttributeType, val UpdateLogsAlertgroupPayloadGetRulesRetType) { *arg = &val } // UpdateLogsAlertgroupPayload 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. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsAlertgroupPayload struct { // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s Interval UpdateLogsAlertgroupPayloadGetIntervalAttributeType `json:"interval,omitempty"` @@ -67,12 +82,14 @@ type UpdateLogsAlertgroupPayload struct { Rules UpdateLogsAlertgroupPayloadGetRulesAttributeType `json:"rules" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateLogsAlertgroupPayload UpdateLogsAlertgroupPayload // NewUpdateLogsAlertgroupPayload instantiates a new UpdateLogsAlertgroupPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateLogsAlertgroupPayload(rules UpdateLogsAlertgroupPayloadGetRulesArgType) *UpdateLogsAlertgroupPayload { this := UpdateLogsAlertgroupPayload{} setUpdateLogsAlertgroupPayloadGetRulesAttributeType(&this.Rules, rules) @@ -82,6 +99,7 @@ func NewUpdateLogsAlertgroupPayload(rules UpdateLogsAlertgroupPayloadGetRulesArg // NewUpdateLogsAlertgroupPayloadWithDefaults instantiates a new UpdateLogsAlertgroupPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateLogsAlertgroupPayloadWithDefaults() *UpdateLogsAlertgroupPayload { this := UpdateLogsAlertgroupPayload{} var interval string = "60s" @@ -90,6 +108,7 @@ func NewUpdateLogsAlertgroupPayloadWithDefaults() *UpdateLogsAlertgroupPayload { } // GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) GetInterval() (res UpdateLogsAlertgroupPayloadGetIntervalRetType) { res, _ = o.GetIntervalOk() return @@ -97,22 +116,26 @@ func (o *UpdateLogsAlertgroupPayload) GetInterval() (res UpdateLogsAlertgroupPay // GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) GetIntervalOk() (ret UpdateLogsAlertgroupPayloadGetIntervalRetType, ok bool) { return getUpdateLogsAlertgroupPayloadGetIntervalAttributeTypeOk(o.Interval) } // HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) HasInterval() bool { _, ok := o.GetIntervalOk() return ok } // SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) SetInterval(v UpdateLogsAlertgroupPayloadGetIntervalRetType) { setUpdateLogsAlertgroupPayloadGetIntervalAttributeType(&o.Interval, v) } // GetRules returns the Rules field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) GetRules() (ret UpdateLogsAlertgroupPayloadGetRulesRetType) { ret, _ = o.GetRulesOk() return ret @@ -120,15 +143,18 @@ func (o *UpdateLogsAlertgroupPayload) GetRules() (ret UpdateLogsAlertgroupPayloa // GetRulesOk returns a tuple with the Rules field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) GetRulesOk() (ret UpdateLogsAlertgroupPayloadGetRulesRetType, ok bool) { return getUpdateLogsAlertgroupPayloadGetRulesAttributeTypeOk(o.Rules) } // SetRules sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsAlertgroupPayload) SetRules(v UpdateLogsAlertgroupPayloadGetRulesRetType) { setUpdateLogsAlertgroupPayloadGetRulesAttributeType(&o.Rules, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateLogsAlertgroupPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateLogsAlertgroupPayloadGetIntervalAttributeTypeOk(o.Interval); ok { @@ -140,37 +166,45 @@ func (o UpdateLogsAlertgroupPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateLogsAlertgroupPayload struct { value *UpdateLogsAlertgroupPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateLogsAlertgroupPayload) Get() *UpdateLogsAlertgroupPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateLogsAlertgroupPayload) Set(val *UpdateLogsAlertgroupPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateLogsAlertgroupPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateLogsAlertgroupPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateLogsAlertgroupPayload(val *UpdateLogsAlertgroupPayload) *NullableUpdateLogsAlertgroupPayload { return &NullableUpdateLogsAlertgroupPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateLogsAlertgroupPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateLogsAlertgroupPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_logs_configs_payload.go b/services/observability/model_update_logs_configs_payload.go index 0c0c0f4a5..1bb6696d2 100644 --- a/services/observability/model_update_logs_configs_payload.go +++ b/services/observability/model_update_logs_configs_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateLogsConfigsPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsConfigsPayloadGetRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateLogsConfigsPayloadGetRetentionAttributeTypeOk(arg UpdateLogsConfigsPayloadGetRetentionAttributeType) (ret UpdateLogsConfigsPayloadGetRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getUpdateLogsConfigsPayloadGetRetentionAttributeTypeOk(arg UpdateLogsConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateLogsConfigsPayloadGetRetentionAttributeType(arg *UpdateLogsConfigsPayloadGetRetentionAttributeType, val UpdateLogsConfigsPayloadGetRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsConfigsPayloadGetRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsConfigsPayloadGetRetentionRetType = string // UpdateLogsConfigsPayload struct for UpdateLogsConfigsPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateLogsConfigsPayload struct { // How long to keep the logs `Additional Validators:` * Should be a valid time string * Should not be longer than 30 days // REQUIRED Retention UpdateLogsConfigsPayloadGetRetentionAttributeType `json:"retention" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateLogsConfigsPayload UpdateLogsConfigsPayload // NewUpdateLogsConfigsPayload instantiates a new UpdateLogsConfigsPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateLogsConfigsPayload(retention UpdateLogsConfigsPayloadGetRetentionArgType) *UpdateLogsConfigsPayload { this := UpdateLogsConfigsPayload{} setUpdateLogsConfigsPayloadGetRetentionAttributeType(&this.Retention, retention) @@ -60,12 +70,14 @@ func NewUpdateLogsConfigsPayload(retention UpdateLogsConfigsPayloadGetRetentionA // NewUpdateLogsConfigsPayloadWithDefaults instantiates a new UpdateLogsConfigsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateLogsConfigsPayloadWithDefaults() *UpdateLogsConfigsPayload { this := UpdateLogsConfigsPayload{} return &this } // GetRetention returns the Retention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsConfigsPayload) GetRetention() (ret UpdateLogsConfigsPayloadGetRetentionRetType) { ret, _ = o.GetRetentionOk() return ret @@ -73,15 +85,18 @@ func (o *UpdateLogsConfigsPayload) GetRetention() (ret UpdateLogsConfigsPayloadG // GetRetentionOk returns a tuple with the Retention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsConfigsPayload) GetRetentionOk() (ret UpdateLogsConfigsPayloadGetRetentionRetType, ok bool) { return getUpdateLogsConfigsPayloadGetRetentionAttributeTypeOk(o.Retention) } // SetRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateLogsConfigsPayload) SetRetention(v UpdateLogsConfigsPayloadGetRetentionRetType) { setUpdateLogsConfigsPayloadGetRetentionAttributeType(&o.Retention, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateLogsConfigsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateLogsConfigsPayloadGetRetentionAttributeTypeOk(o.Retention); ok { @@ -90,37 +105,45 @@ func (o UpdateLogsConfigsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateLogsConfigsPayload struct { value *UpdateLogsConfigsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateLogsConfigsPayload) Get() *UpdateLogsConfigsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateLogsConfigsPayload) Set(val *UpdateLogsConfigsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateLogsConfigsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateLogsConfigsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateLogsConfigsPayload(val *UpdateLogsConfigsPayload) *NullableUpdateLogsConfigsPayload { return &NullableUpdateLogsConfigsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateLogsConfigsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateLogsConfigsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_metrics_storage_retention_payload.go b/services/observability/model_update_metrics_storage_retention_payload.go index 7b4f3123a..ef235dc81 100644 --- a/services/observability/model_update_metrics_storage_retention_payload.go +++ b/services/observability/model_update_metrics_storage_retention_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateMetricsStorageRetentionPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeTypeOk(arg UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType) (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType(arg *UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType, val UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType = string /* @@ -43,8 +50,10 @@ type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType = stri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeTypeOk(arg UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeType) (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeType(arg *UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeType, val UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType = string /* @@ -64,8 +77,10 @@ type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType = stri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeTypeOk(arg UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType) (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType(arg *UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType, val UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType = string // UpdateMetricsStorageRetentionPayload struct for UpdateMetricsStorageRetentionPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateMetricsStorageRetentionPayload struct { // Retention time of longtime storage of 1h sampled data. After that time the 1h sampled data will be deleted permanently. The goal of downsampling is to get fast results for queries over long time intervals. It is recommended to set this value to be the same as metricsRetentionTimeRaw to ensure zoom-in capabilities in your dashboards. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '10d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '10d' to '780d'. // REQUIRED @@ -93,12 +113,14 @@ type UpdateMetricsStorageRetentionPayload struct { MetricsRetentionTimeRaw UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType `json:"metricsRetentionTimeRaw" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateMetricsStorageRetentionPayload UpdateMetricsStorageRetentionPayload // NewUpdateMetricsStorageRetentionPayload instantiates a new UpdateMetricsStorageRetentionPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateMetricsStorageRetentionPayload(metricsRetentionTime1h UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hArgType, metricsRetentionTime5m UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mArgType, metricsRetentionTimeRaw UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawArgType) *UpdateMetricsStorageRetentionPayload { this := UpdateMetricsStorageRetentionPayload{} setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType(&this.MetricsRetentionTime1h, metricsRetentionTime1h) @@ -110,12 +132,14 @@ func NewUpdateMetricsStorageRetentionPayload(metricsRetentionTime1h UpdateMetric // NewUpdateMetricsStorageRetentionPayloadWithDefaults instantiates a new UpdateMetricsStorageRetentionPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateMetricsStorageRetentionPayloadWithDefaults() *UpdateMetricsStorageRetentionPayload { this := UpdateMetricsStorageRetentionPayload{} return &this } // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime1h() (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType) { ret, _ = o.GetMetricsRetentionTime1hOk() return ret @@ -123,16 +147,19 @@ func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime1h() (ret // GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime1hOk() (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType, ok bool) { return getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeTypeOk(o.MetricsRetentionTime1h) } // SetMetricsRetentionTime1h sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTime1h(v UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hRetType) { setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType(&o.MetricsRetentionTime1h, v) } // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime5m() (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType) { ret, _ = o.GetMetricsRetentionTime5mOk() return ret @@ -140,16 +167,19 @@ func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime5m() (ret // GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime5mOk() (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType, ok bool) { return getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeTypeOk(o.MetricsRetentionTime5m) } // SetMetricsRetentionTime5m sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTime5m(v UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mRetType) { setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeType(&o.MetricsRetentionTime5m, v) } // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTimeRaw() (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType) { ret, _ = o.GetMetricsRetentionTimeRawOk() return ret @@ -157,15 +187,18 @@ func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTimeRaw() (ret // GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTimeRawOk() (ret UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType, ok bool) { return getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeTypeOk(o.MetricsRetentionTimeRaw) } // SetMetricsRetentionTimeRaw sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTimeRaw(v UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType) { setUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType(&o.MetricsRetentionTimeRaw, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateMetricsStorageRetentionPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeTypeOk(o.MetricsRetentionTime1h); ok { @@ -180,37 +213,45 @@ func (o UpdateMetricsStorageRetentionPayload) ToMap() (map[string]interface{}, e return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateMetricsStorageRetentionPayload struct { value *UpdateMetricsStorageRetentionPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateMetricsStorageRetentionPayload) Get() *UpdateMetricsStorageRetentionPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateMetricsStorageRetentionPayload) Set(val *UpdateMetricsStorageRetentionPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateMetricsStorageRetentionPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateMetricsStorageRetentionPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateMetricsStorageRetentionPayload(val *UpdateMetricsStorageRetentionPayload) *NullableUpdateMetricsStorageRetentionPayload { return &NullableUpdateMetricsStorageRetentionPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateMetricsStorageRetentionPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateMetricsStorageRetentionPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_scrape_config_payload.go b/services/observability/model_update_scrape_config_payload.go index 1d20b6c5e..7a51968c8 100644 --- a/services/observability/model_update_scrape_config_payload.go +++ b/services/observability/model_update_scrape_config_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -23,10 +24,16 @@ var _ MappedNullable = &UpdateScrapeConfigPayload{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetBasicAuthAttributeType = *PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetBasicAuthArgType = PartialUpdateScrapeConfigsRequestInnerBasicAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetBasicAuthRetType = PartialUpdateScrapeConfigsRequestInnerBasicAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(arg UpdateScrapeConfigPayloadGetBasicAuthAttributeType) (ret UpdateScrapeConfigPayloadGetBasicAuthRetType, ok bool) { if arg == nil { return ret, false @@ -34,6 +41,7 @@ func getUpdateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(arg UpdateScrapeCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetBasicAuthAttributeType(arg *UpdateScrapeConfigPayloadGetBasicAuthAttributeType, val UpdateScrapeConfigPayloadGetBasicAuthRetType) { *arg = &val } @@ -43,8 +51,10 @@ func setUpdateScrapeConfigPayloadGetBasicAuthAttributeType(arg *UpdateScrapeConf */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetBearerTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetBearerTokenAttributeTypeOk(arg UpdateScrapeConfigPayloadGetBearerTokenAttributeType) (ret UpdateScrapeConfigPayloadGetBearerTokenRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +62,15 @@ func getUpdateScrapeConfigPayloadGetBearerTokenAttributeTypeOk(arg UpdateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetBearerTokenAttributeType(arg *UpdateScrapeConfigPayloadGetBearerTokenAttributeType, val UpdateScrapeConfigPayloadGetBearerTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetBearerTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetBearerTokenRetType = string /* @@ -64,10 +78,16 @@ type UpdateScrapeConfigPayloadGetBearerTokenRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadgetHonorLabelsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadgetHonorLabelsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadgetHonorLabelsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadgetHonorLabelsAttributeTypeOk(arg UpdateScrapeConfigPayloadgetHonorLabelsAttributeType) (ret UpdateScrapeConfigPayloadgetHonorLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -75,6 +95,7 @@ func getUpdateScrapeConfigPayloadgetHonorLabelsAttributeTypeOk(arg UpdateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadgetHonorLabelsAttributeType(arg *UpdateScrapeConfigPayloadgetHonorLabelsAttributeType, val UpdateScrapeConfigPayloadgetHonorLabelsRetType) { *arg = &val } @@ -84,10 +105,16 @@ func setUpdateScrapeConfigPayloadgetHonorLabelsAttributeType(arg *UpdateScrapeCo */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadgetHonorTimeStampsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadgetHonorTimeStampsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadgetHonorTimeStampsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadgetHonorTimeStampsAttributeTypeOk(arg UpdateScrapeConfigPayloadgetHonorTimeStampsAttributeType) (ret UpdateScrapeConfigPayloadgetHonorTimeStampsRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +122,7 @@ func getUpdateScrapeConfigPayloadgetHonorTimeStampsAttributeTypeOk(arg UpdateScr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadgetHonorTimeStampsAttributeType(arg *UpdateScrapeConfigPayloadgetHonorTimeStampsAttributeType, val UpdateScrapeConfigPayloadgetHonorTimeStampsRetType) { *arg = &val } @@ -104,8 +132,10 @@ func setUpdateScrapeConfigPayloadgetHonorTimeStampsAttributeType(arg *UpdateScra */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetMetricsPathAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetMetricsPathAttributeTypeOk(arg UpdateScrapeConfigPayloadGetMetricsPathAttributeType) (ret UpdateScrapeConfigPayloadGetMetricsPathRetType, ok bool) { if arg == nil { return ret, false @@ -113,11 +143,15 @@ func getUpdateScrapeConfigPayloadGetMetricsPathAttributeTypeOk(arg UpdateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetMetricsPathAttributeType(arg *UpdateScrapeConfigPayloadGetMetricsPathAttributeType, val UpdateScrapeConfigPayloadGetMetricsPathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetMetricsPathArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetMetricsPathRetType = string /* @@ -125,10 +159,16 @@ type UpdateScrapeConfigPayloadGetMetricsPathRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType = *[]PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetMetricsRelabelConfigsArgType = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetMetricsRelabelConfigsRetType = []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeTypeOk(arg UpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType) (ret UpdateScrapeConfigPayloadGetMetricsRelabelConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -136,6 +176,7 @@ func getUpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeTypeOk(arg Upd return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType(arg *UpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType, val UpdateScrapeConfigPayloadGetMetricsRelabelConfigsRetType) { *arg = &val } @@ -145,10 +186,16 @@ func setUpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType(arg *Upda */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetParamsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetParamsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetParamsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetParamsAttributeTypeOk(arg UpdateScrapeConfigPayloadGetParamsAttributeType) (ret UpdateScrapeConfigPayloadGetParamsRetType, ok bool) { if arg == nil { return ret, false @@ -156,6 +203,7 @@ func getUpdateScrapeConfigPayloadGetParamsAttributeTypeOk(arg UpdateScrapeConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetParamsAttributeType(arg *UpdateScrapeConfigPayloadGetParamsAttributeType, val UpdateScrapeConfigPayloadGetParamsRetType) { *arg = &val } @@ -165,10 +213,16 @@ func setUpdateScrapeConfigPayloadGetParamsAttributeType(arg *UpdateScrapeConfigP */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetSampleLimitAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetSampleLimitArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetSampleLimitRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetSampleLimitAttributeTypeOk(arg UpdateScrapeConfigPayloadGetSampleLimitAttributeType) (ret UpdateScrapeConfigPayloadGetSampleLimitRetType, ok bool) { if arg == nil { return ret, false @@ -176,6 +230,7 @@ func getUpdateScrapeConfigPayloadGetSampleLimitAttributeTypeOk(arg UpdateScrapeC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetSampleLimitAttributeType(arg *UpdateScrapeConfigPayloadGetSampleLimitAttributeType, val UpdateScrapeConfigPayloadGetSampleLimitRetType) { *arg = &val } @@ -188,20 +243,25 @@ func setUpdateScrapeConfigPayloadGetSampleLimitAttributeType(arg *UpdateScrapeCo // UpdateScrapeConfigPayloadScheme Configures the protocol scheme used for requests. https or http // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadScheme string // List of Scheme const ( - UPDATESCRAPECONFIGPAYLOADSCHEME_HTTP UpdateScrapeConfigPayloadScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + UPDATESCRAPECONFIGPAYLOADSCHEME_HTTP UpdateScrapeConfigPayloadScheme = "http" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UPDATESCRAPECONFIGPAYLOADSCHEME_HTTPS UpdateScrapeConfigPayloadScheme = "https" ) // All allowed values of UpdateScrapeConfigPayload enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedUpdateScrapeConfigPayloadSchemeEnumValues = []UpdateScrapeConfigPayloadScheme{ "http", "https", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *UpdateScrapeConfigPayloadScheme) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -229,6 +289,7 @@ func (v *UpdateScrapeConfigPayloadScheme) UnmarshalJSON(src []byte) error { // NewUpdateScrapeConfigPayloadSchemeFromValue returns a pointer to a valid UpdateScrapeConfigPayloadScheme // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateScrapeConfigPayloadSchemeFromValue(v UpdateScrapeConfigPayloadScheme) (*UpdateScrapeConfigPayloadScheme, error) { ev := UpdateScrapeConfigPayloadScheme(v) if ev.IsValid() { @@ -239,6 +300,7 @@ func NewUpdateScrapeConfigPayloadSchemeFromValue(v UpdateScrapeConfigPayloadSche } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v UpdateScrapeConfigPayloadScheme) IsValid() bool { for _, existing := range AllowedUpdateScrapeConfigPayloadSchemeEnumValues { if existing == v { @@ -249,50 +311,65 @@ func (v UpdateScrapeConfigPayloadScheme) IsValid() bool { } // Ptr returns reference to SchemeScheme value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v UpdateScrapeConfigPayloadScheme) Ptr() *UpdateScrapeConfigPayloadScheme { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateScrapeConfigPayloadScheme struct { value *UpdateScrapeConfigPayloadScheme isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayloadScheme) Get() *UpdateScrapeConfigPayloadScheme { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayloadScheme) Set(val *UpdateScrapeConfigPayloadScheme) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayloadScheme) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayloadScheme) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateScrapeConfigPayloadScheme(val *UpdateScrapeConfigPayloadScheme) *NullableUpdateScrapeConfigPayloadScheme { return &NullableUpdateScrapeConfigPayloadScheme{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayloadScheme) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayloadScheme) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetSchemeAttributeType = *UpdateScrapeConfigPayloadScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetSchemeArgType = UpdateScrapeConfigPayloadScheme + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetSchemeRetType = UpdateScrapeConfigPayloadScheme +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetSchemeAttributeTypeOk(arg UpdateScrapeConfigPayloadGetSchemeAttributeType) (ret UpdateScrapeConfigPayloadGetSchemeRetType, ok bool) { if arg == nil { return ret, false @@ -300,6 +377,7 @@ func getUpdateScrapeConfigPayloadGetSchemeAttributeTypeOk(arg UpdateScrapeConfig return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetSchemeAttributeType(arg *UpdateScrapeConfigPayloadGetSchemeAttributeType, val UpdateScrapeConfigPayloadGetSchemeRetType) { *arg = &val } @@ -309,8 +387,10 @@ func setUpdateScrapeConfigPayloadGetSchemeAttributeType(arg *UpdateScrapeConfigP */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetScrapeIntervalAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetScrapeIntervalAttributeTypeOk(arg UpdateScrapeConfigPayloadGetScrapeIntervalAttributeType) (ret UpdateScrapeConfigPayloadGetScrapeIntervalRetType, ok bool) { if arg == nil { return ret, false @@ -318,11 +398,15 @@ func getUpdateScrapeConfigPayloadGetScrapeIntervalAttributeTypeOk(arg UpdateScra return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetScrapeIntervalAttributeType(arg *UpdateScrapeConfigPayloadGetScrapeIntervalAttributeType, val UpdateScrapeConfigPayloadGetScrapeIntervalRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetScrapeIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetScrapeIntervalRetType = string /* @@ -330,8 +414,10 @@ type UpdateScrapeConfigPayloadGetScrapeIntervalRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetScrapeTimeoutAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetScrapeTimeoutAttributeTypeOk(arg UpdateScrapeConfigPayloadGetScrapeTimeoutAttributeType) (ret UpdateScrapeConfigPayloadGetScrapeTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -339,11 +425,15 @@ func getUpdateScrapeConfigPayloadGetScrapeTimeoutAttributeTypeOk(arg UpdateScrap return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetScrapeTimeoutAttributeType(arg *UpdateScrapeConfigPayloadGetScrapeTimeoutAttributeType, val UpdateScrapeConfigPayloadGetScrapeTimeoutRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetScrapeTimeoutArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetScrapeTimeoutRetType = string /* @@ -351,10 +441,16 @@ type UpdateScrapeConfigPayloadGetScrapeTimeoutRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetStaticConfigsAttributeType = *[]UpdateScrapeConfigPayloadStaticConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetStaticConfigsArgType = []UpdateScrapeConfigPayloadStaticConfigsInner + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetStaticConfigsRetType = []UpdateScrapeConfigPayloadStaticConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetStaticConfigsAttributeTypeOk(arg UpdateScrapeConfigPayloadGetStaticConfigsAttributeType) (ret UpdateScrapeConfigPayloadGetStaticConfigsRetType, ok bool) { if arg == nil { return ret, false @@ -362,6 +458,7 @@ func getUpdateScrapeConfigPayloadGetStaticConfigsAttributeTypeOk(arg UpdateScrap return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetStaticConfigsAttributeType(arg *UpdateScrapeConfigPayloadGetStaticConfigsAttributeType, val UpdateScrapeConfigPayloadGetStaticConfigsRetType) { *arg = &val } @@ -371,10 +468,16 @@ func setUpdateScrapeConfigPayloadGetStaticConfigsAttributeType(arg *UpdateScrape */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetTlsConfigAttributeType = *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetTlsConfigArgType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadGetTlsConfigRetType = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadGetTlsConfigAttributeTypeOk(arg UpdateScrapeConfigPayloadGetTlsConfigAttributeType) (ret UpdateScrapeConfigPayloadGetTlsConfigRetType, ok bool) { if arg == nil { return ret, false @@ -382,11 +485,13 @@ func getUpdateScrapeConfigPayloadGetTlsConfigAttributeTypeOk(arg UpdateScrapeCon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadGetTlsConfigAttributeType(arg *UpdateScrapeConfigPayloadGetTlsConfigAttributeType, val UpdateScrapeConfigPayloadGetTlsConfigRetType) { *arg = &val } // UpdateScrapeConfigPayload struct for UpdateScrapeConfigPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayload struct { BasicAuth UpdateScrapeConfigPayloadGetBasicAuthAttributeType `json:"basicAuth,omitempty"` // Sets the 'Authorization' header on every scrape request with the configured bearer token. It is mutually exclusive with 'bearer_token_file'. `Additional Validators:` * needs to be a valid bearer token * if bearerToken is in the body no other authentication method should be in the body @@ -419,12 +524,14 @@ type UpdateScrapeConfigPayload struct { TlsConfig UpdateScrapeConfigPayloadGetTlsConfigAttributeType `json:"tlsConfig,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateScrapeConfigPayload UpdateScrapeConfigPayload // NewUpdateScrapeConfigPayload instantiates a new UpdateScrapeConfigPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateScrapeConfigPayload(metricsPath UpdateScrapeConfigPayloadGetMetricsPathArgType, scheme UpdateScrapeConfigPayloadGetSchemeArgType, scrapeInterval UpdateScrapeConfigPayloadGetScrapeIntervalArgType, scrapeTimeout UpdateScrapeConfigPayloadGetScrapeTimeoutArgType, staticConfigs UpdateScrapeConfigPayloadGetStaticConfigsArgType) *UpdateScrapeConfigPayload { this := UpdateScrapeConfigPayload{} setUpdateScrapeConfigPayloadGetMetricsPathAttributeType(&this.MetricsPath, metricsPath) @@ -438,6 +545,7 @@ func NewUpdateScrapeConfigPayload(metricsPath UpdateScrapeConfigPayloadGetMetric // NewUpdateScrapeConfigPayloadWithDefaults instantiates a new UpdateScrapeConfigPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateScrapeConfigPayloadWithDefaults() *UpdateScrapeConfigPayload { this := UpdateScrapeConfigPayload{} var honorLabels bool = false @@ -450,6 +558,7 @@ func NewUpdateScrapeConfigPayloadWithDefaults() *UpdateScrapeConfigPayload { } // GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetBasicAuth() (res UpdateScrapeConfigPayloadGetBasicAuthRetType) { res, _ = o.GetBasicAuthOk() return @@ -457,22 +566,26 @@ func (o *UpdateScrapeConfigPayload) GetBasicAuth() (res UpdateScrapeConfigPayloa // GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetBasicAuthOk() (ret UpdateScrapeConfigPayloadGetBasicAuthRetType, ok bool) { return getUpdateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(o.BasicAuth) } // HasBasicAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasBasicAuth() bool { _, ok := o.GetBasicAuthOk() return ok } // SetBasicAuth gets a reference to the given PartialUpdateScrapeConfigsRequestInnerBasicAuth and assigns it to the BasicAuth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetBasicAuth(v UpdateScrapeConfigPayloadGetBasicAuthRetType) { setUpdateScrapeConfigPayloadGetBasicAuthAttributeType(&o.BasicAuth, v) } // GetBearerToken returns the BearerToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetBearerToken() (res UpdateScrapeConfigPayloadGetBearerTokenRetType) { res, _ = o.GetBearerTokenOk() return @@ -480,22 +593,26 @@ func (o *UpdateScrapeConfigPayload) GetBearerToken() (res UpdateScrapeConfigPayl // GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetBearerTokenOk() (ret UpdateScrapeConfigPayloadGetBearerTokenRetType, ok bool) { return getUpdateScrapeConfigPayloadGetBearerTokenAttributeTypeOk(o.BearerToken) } // HasBearerToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasBearerToken() bool { _, ok := o.GetBearerTokenOk() return ok } // SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetBearerToken(v UpdateScrapeConfigPayloadGetBearerTokenRetType) { setUpdateScrapeConfigPayloadGetBearerTokenAttributeType(&o.BearerToken, v) } // GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetHonorLabels() (res UpdateScrapeConfigPayloadgetHonorLabelsRetType) { res, _ = o.GetHonorLabelsOk() return @@ -503,22 +620,26 @@ func (o *UpdateScrapeConfigPayload) GetHonorLabels() (res UpdateScrapeConfigPayl // GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetHonorLabelsOk() (ret UpdateScrapeConfigPayloadgetHonorLabelsRetType, ok bool) { return getUpdateScrapeConfigPayloadgetHonorLabelsAttributeTypeOk(o.HonorLabels) } // HasHonorLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasHonorLabels() bool { _, ok := o.GetHonorLabelsOk() return ok } // SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetHonorLabels(v UpdateScrapeConfigPayloadgetHonorLabelsRetType) { setUpdateScrapeConfigPayloadgetHonorLabelsAttributeType(&o.HonorLabels, v) } // GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetHonorTimeStamps() (res UpdateScrapeConfigPayloadgetHonorTimeStampsRetType) { res, _ = o.GetHonorTimeStampsOk() return @@ -526,22 +647,26 @@ func (o *UpdateScrapeConfigPayload) GetHonorTimeStamps() (res UpdateScrapeConfig // GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetHonorTimeStampsOk() (ret UpdateScrapeConfigPayloadgetHonorTimeStampsRetType, ok bool) { return getUpdateScrapeConfigPayloadgetHonorTimeStampsAttributeTypeOk(o.HonorTimeStamps) } // HasHonorTimeStamps returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasHonorTimeStamps() bool { _, ok := o.GetHonorTimeStampsOk() return ok } // SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetHonorTimeStamps(v UpdateScrapeConfigPayloadgetHonorTimeStampsRetType) { setUpdateScrapeConfigPayloadgetHonorTimeStampsAttributeType(&o.HonorTimeStamps, v) } // GetMetricsPath returns the MetricsPath field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetMetricsPath() (ret UpdateScrapeConfigPayloadGetMetricsPathRetType) { ret, _ = o.GetMetricsPathOk() return ret @@ -549,16 +674,19 @@ func (o *UpdateScrapeConfigPayload) GetMetricsPath() (ret UpdateScrapeConfigPayl // GetMetricsPathOk returns a tuple with the MetricsPath field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetMetricsPathOk() (ret UpdateScrapeConfigPayloadGetMetricsPathRetType, ok bool) { return getUpdateScrapeConfigPayloadGetMetricsPathAttributeTypeOk(o.MetricsPath) } // SetMetricsPath sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetMetricsPath(v UpdateScrapeConfigPayloadGetMetricsPathRetType) { setUpdateScrapeConfigPayloadGetMetricsPathAttributeType(&o.MetricsPath, v) } // GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetMetricsRelabelConfigs() (res UpdateScrapeConfigPayloadGetMetricsRelabelConfigsRetType) { res, _ = o.GetMetricsRelabelConfigsOk() return @@ -566,22 +694,26 @@ func (o *UpdateScrapeConfigPayload) GetMetricsRelabelConfigs() (res UpdateScrape // GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetMetricsRelabelConfigsOk() (ret UpdateScrapeConfigPayloadGetMetricsRelabelConfigsRetType, ok bool) { return getUpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeTypeOk(o.MetricsRelabelConfigs) } // HasMetricsRelabelConfigs returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasMetricsRelabelConfigs() bool { _, ok := o.GetMetricsRelabelConfigsOk() return ok } // SetMetricsRelabelConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner and assigns it to the MetricsRelabelConfigs field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetMetricsRelabelConfigs(v UpdateScrapeConfigPayloadGetMetricsRelabelConfigsRetType) { setUpdateScrapeConfigPayloadGetMetricsRelabelConfigsAttributeType(&o.MetricsRelabelConfigs, v) } // GetParams returns the Params field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetParams() (res UpdateScrapeConfigPayloadGetParamsRetType) { res, _ = o.GetParamsOk() return @@ -589,22 +721,26 @@ func (o *UpdateScrapeConfigPayload) GetParams() (res UpdateScrapeConfigPayloadGe // GetParamsOk returns a tuple with the Params field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetParamsOk() (ret UpdateScrapeConfigPayloadGetParamsRetType, ok bool) { return getUpdateScrapeConfigPayloadGetParamsAttributeTypeOk(o.Params) } // HasParams returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasParams() bool { _, ok := o.GetParamsOk() return ok } // SetParams gets a reference to the given map[string]interface{} and assigns it to the Params field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetParams(v UpdateScrapeConfigPayloadGetParamsRetType) { setUpdateScrapeConfigPayloadGetParamsAttributeType(&o.Params, v) } // GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetSampleLimit() (res UpdateScrapeConfigPayloadGetSampleLimitRetType) { res, _ = o.GetSampleLimitOk() return @@ -612,22 +748,26 @@ func (o *UpdateScrapeConfigPayload) GetSampleLimit() (res UpdateScrapeConfigPayl // GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetSampleLimitOk() (ret UpdateScrapeConfigPayloadGetSampleLimitRetType, ok bool) { return getUpdateScrapeConfigPayloadGetSampleLimitAttributeTypeOk(o.SampleLimit) } // HasSampleLimit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasSampleLimit() bool { _, ok := o.GetSampleLimitOk() return ok } // SetSampleLimit gets a reference to the given float64 and assigns it to the SampleLimit field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetSampleLimit(v UpdateScrapeConfigPayloadGetSampleLimitRetType) { setUpdateScrapeConfigPayloadGetSampleLimitAttributeType(&o.SampleLimit, v) } // GetScheme returns the Scheme field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetScheme() (ret UpdateScrapeConfigPayloadGetSchemeRetType) { ret, _ = o.GetSchemeOk() return ret @@ -635,16 +775,19 @@ func (o *UpdateScrapeConfigPayload) GetScheme() (ret UpdateScrapeConfigPayloadGe // GetSchemeOk returns a tuple with the Scheme field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetSchemeOk() (ret UpdateScrapeConfigPayloadGetSchemeRetType, ok bool) { return getUpdateScrapeConfigPayloadGetSchemeAttributeTypeOk(o.Scheme) } // SetScheme sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetScheme(v UpdateScrapeConfigPayloadGetSchemeRetType) { setUpdateScrapeConfigPayloadGetSchemeAttributeType(&o.Scheme, v) } // GetScrapeInterval returns the ScrapeInterval field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetScrapeInterval() (ret UpdateScrapeConfigPayloadGetScrapeIntervalRetType) { ret, _ = o.GetScrapeIntervalOk() return ret @@ -652,16 +795,19 @@ func (o *UpdateScrapeConfigPayload) GetScrapeInterval() (ret UpdateScrapeConfigP // GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetScrapeIntervalOk() (ret UpdateScrapeConfigPayloadGetScrapeIntervalRetType, ok bool) { return getUpdateScrapeConfigPayloadGetScrapeIntervalAttributeTypeOk(o.ScrapeInterval) } // SetScrapeInterval sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetScrapeInterval(v UpdateScrapeConfigPayloadGetScrapeIntervalRetType) { setUpdateScrapeConfigPayloadGetScrapeIntervalAttributeType(&o.ScrapeInterval, v) } // GetScrapeTimeout returns the ScrapeTimeout field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetScrapeTimeout() (ret UpdateScrapeConfigPayloadGetScrapeTimeoutRetType) { ret, _ = o.GetScrapeTimeoutOk() return ret @@ -669,16 +815,19 @@ func (o *UpdateScrapeConfigPayload) GetScrapeTimeout() (ret UpdateScrapeConfigPa // GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetScrapeTimeoutOk() (ret UpdateScrapeConfigPayloadGetScrapeTimeoutRetType, ok bool) { return getUpdateScrapeConfigPayloadGetScrapeTimeoutAttributeTypeOk(o.ScrapeTimeout) } // SetScrapeTimeout sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetScrapeTimeout(v UpdateScrapeConfigPayloadGetScrapeTimeoutRetType) { setUpdateScrapeConfigPayloadGetScrapeTimeoutAttributeType(&o.ScrapeTimeout, v) } // GetStaticConfigs returns the StaticConfigs field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetStaticConfigs() (ret UpdateScrapeConfigPayloadGetStaticConfigsRetType) { ret, _ = o.GetStaticConfigsOk() return ret @@ -686,16 +835,19 @@ func (o *UpdateScrapeConfigPayload) GetStaticConfigs() (ret UpdateScrapeConfigPa // GetStaticConfigsOk returns a tuple with the StaticConfigs field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetStaticConfigsOk() (ret UpdateScrapeConfigPayloadGetStaticConfigsRetType, ok bool) { return getUpdateScrapeConfigPayloadGetStaticConfigsAttributeTypeOk(o.StaticConfigs) } // SetStaticConfigs sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetStaticConfigs(v UpdateScrapeConfigPayloadGetStaticConfigsRetType) { setUpdateScrapeConfigPayloadGetStaticConfigsAttributeType(&o.StaticConfigs, v) } // GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetTlsConfig() (res UpdateScrapeConfigPayloadGetTlsConfigRetType) { res, _ = o.GetTlsConfigOk() return @@ -703,21 +855,25 @@ func (o *UpdateScrapeConfigPayload) GetTlsConfig() (res UpdateScrapeConfigPayloa // GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) GetTlsConfigOk() (ret UpdateScrapeConfigPayloadGetTlsConfigRetType, ok bool) { return getUpdateScrapeConfigPayloadGetTlsConfigAttributeTypeOk(o.TlsConfig) } // HasTlsConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) HasTlsConfig() bool { _, ok := o.GetTlsConfigOk() return ok } // SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayload) SetTlsConfig(v UpdateScrapeConfigPayloadGetTlsConfigRetType) { setUpdateScrapeConfigPayloadGetTlsConfigAttributeType(&o.TlsConfig, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateScrapeConfigPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateScrapeConfigPayloadGetBasicAuthAttributeTypeOk(o.BasicAuth); ok { @@ -762,37 +918,45 @@ func (o UpdateScrapeConfigPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateScrapeConfigPayload struct { value *UpdateScrapeConfigPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayload) Get() *UpdateScrapeConfigPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayload) Set(val *UpdateScrapeConfigPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateScrapeConfigPayload(val *UpdateScrapeConfigPayload) *NullableUpdateScrapeConfigPayload { return &NullableUpdateScrapeConfigPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_scrape_config_payload_static_configs_inner.go b/services/observability/model_update_scrape_config_payload_static_configs_inner.go index ffbfeea40..d7105cbaf 100644 --- a/services/observability/model_update_scrape_config_payload_static_configs_inner.go +++ b/services/observability/model_update_scrape_config_payload_static_configs_inner.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateScrapeConfigPayloadStaticConfigsInner{} */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeTypeOk(arg UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType) (ret UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType(arg *UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType, val UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType(arg *U */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeTypeOk(arg UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType) (ret UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +67,13 @@ func getUpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType(arg *UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType, val UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsRetType) { *arg = &val } // UpdateScrapeConfigPayloadStaticConfigsInner struct for UpdateScrapeConfigPayloadStaticConfigsInner +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateScrapeConfigPayloadStaticConfigsInner struct { // Labels assigned to all metrics scraped from the targets. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters Labels UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType `json:"labels,omitempty"` @@ -66,12 +82,14 @@ type UpdateScrapeConfigPayloadStaticConfigsInner struct { Targets UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType `json:"targets" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateScrapeConfigPayloadStaticConfigsInner UpdateScrapeConfigPayloadStaticConfigsInner // NewUpdateScrapeConfigPayloadStaticConfigsInner instantiates a new UpdateScrapeConfigPayloadStaticConfigsInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateScrapeConfigPayloadStaticConfigsInner(targets UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsArgType) *UpdateScrapeConfigPayloadStaticConfigsInner { this := UpdateScrapeConfigPayloadStaticConfigsInner{} setUpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType(&this.Targets, targets) @@ -81,12 +99,14 @@ func NewUpdateScrapeConfigPayloadStaticConfigsInner(targets UpdateScrapeConfigPa // NewUpdateScrapeConfigPayloadStaticConfigsInnerWithDefaults instantiates a new UpdateScrapeConfigPayloadStaticConfigsInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateScrapeConfigPayloadStaticConfigsInnerWithDefaults() *UpdateScrapeConfigPayloadStaticConfigsInner { this := UpdateScrapeConfigPayloadStaticConfigsInner{} return &this } // GetLabels returns the Labels field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetLabels() (res UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -94,22 +114,26 @@ func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetLabels() (res UpdateScr // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetLabelsOk() (ret UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsRetType, ok bool) { return getUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) SetLabels(v UpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsRetType) { setUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeType(&o.Labels, v) } // GetTargets returns the Targets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetTargets() (ret UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsRetType) { ret, _ = o.GetTargetsOk() return ret @@ -117,15 +141,18 @@ func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetTargets() (ret UpdateSc // GetTargetsOk returns a tuple with the Targets field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetTargetsOk() (ret UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsRetType, ok bool) { return getUpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeTypeOk(o.Targets) } // SetTargets sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateScrapeConfigPayloadStaticConfigsInner) SetTargets(v UpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsRetType) { setUpdateScrapeConfigPayloadStaticConfigsInnerGetTargetsAttributeType(&o.Targets, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateScrapeConfigPayloadStaticConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateScrapeConfigPayloadStaticConfigsInnerGetLabelsAttributeTypeOk(o.Labels); ok { @@ -137,37 +164,45 @@ func (o UpdateScrapeConfigPayloadStaticConfigsInner) ToMap() (map[string]interfa return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateScrapeConfigPayloadStaticConfigsInner struct { value *UpdateScrapeConfigPayloadStaticConfigsInner isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayloadStaticConfigsInner) Get() *UpdateScrapeConfigPayloadStaticConfigsInner { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayloadStaticConfigsInner) Set(val *UpdateScrapeConfigPayloadStaticConfigsInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayloadStaticConfigsInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayloadStaticConfigsInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateScrapeConfigPayloadStaticConfigsInner(val *UpdateScrapeConfigPayloadStaticConfigsInner) *NullableUpdateScrapeConfigPayloadStaticConfigsInner { return &NullableUpdateScrapeConfigPayloadStaticConfigsInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateScrapeConfigPayloadStaticConfigsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateScrapeConfigPayloadStaticConfigsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_update_traces_configs_payload.go b/services/observability/model_update_traces_configs_payload.go index 844ac5607..636342048 100644 --- a/services/observability/model_update_traces_configs_payload.go +++ b/services/observability/model_update_traces_configs_payload.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateTracesConfigsPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTracesConfigsPayloadGetRetentionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateTracesConfigsPayloadGetRetentionAttributeTypeOk(arg UpdateTracesConfigsPayloadGetRetentionAttributeType) (ret UpdateTracesConfigsPayloadGetRetentionRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +34,33 @@ func getUpdateTracesConfigsPayloadGetRetentionAttributeTypeOk(arg UpdateTracesCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateTracesConfigsPayloadGetRetentionAttributeType(arg *UpdateTracesConfigsPayloadGetRetentionAttributeType, val UpdateTracesConfigsPayloadGetRetentionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTracesConfigsPayloadGetRetentionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTracesConfigsPayloadGetRetentionRetType = string // UpdateTracesConfigsPayload struct for UpdateTracesConfigsPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTracesConfigsPayload struct { // How long to keep the traces `Additional Validators:` * Should be a valid time string * Should not be bigger than 30 days // REQUIRED Retention UpdateTracesConfigsPayloadGetRetentionAttributeType `json:"retention" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateTracesConfigsPayload UpdateTracesConfigsPayload // NewUpdateTracesConfigsPayload instantiates a new UpdateTracesConfigsPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateTracesConfigsPayload(retention UpdateTracesConfigsPayloadGetRetentionArgType) *UpdateTracesConfigsPayload { this := UpdateTracesConfigsPayload{} setUpdateTracesConfigsPayloadGetRetentionAttributeType(&this.Retention, retention) @@ -60,12 +70,14 @@ func NewUpdateTracesConfigsPayload(retention UpdateTracesConfigsPayloadGetRetent // NewUpdateTracesConfigsPayloadWithDefaults instantiates a new UpdateTracesConfigsPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateTracesConfigsPayloadWithDefaults() *UpdateTracesConfigsPayload { this := UpdateTracesConfigsPayload{} return &this } // GetRetention returns the Retention field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTracesConfigsPayload) GetRetention() (ret UpdateTracesConfigsPayloadGetRetentionRetType) { ret, _ = o.GetRetentionOk() return ret @@ -73,15 +85,18 @@ func (o *UpdateTracesConfigsPayload) GetRetention() (ret UpdateTracesConfigsPayl // GetRetentionOk returns a tuple with the Retention field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTracesConfigsPayload) GetRetentionOk() (ret UpdateTracesConfigsPayloadGetRetentionRetType, ok bool) { return getUpdateTracesConfigsPayloadGetRetentionAttributeTypeOk(o.Retention) } // SetRetention sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTracesConfigsPayload) SetRetention(v UpdateTracesConfigsPayloadGetRetentionRetType) { setUpdateTracesConfigsPayloadGetRetentionAttributeType(&o.Retention, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateTracesConfigsPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateTracesConfigsPayloadGetRetentionAttributeTypeOk(o.Retention); ok { @@ -90,37 +105,45 @@ func (o UpdateTracesConfigsPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateTracesConfigsPayload struct { value *UpdateTracesConfigsPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateTracesConfigsPayload) Get() *UpdateTracesConfigsPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateTracesConfigsPayload) Set(val *UpdateTracesConfigsPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateTracesConfigsPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateTracesConfigsPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateTracesConfigsPayload(val *UpdateTracesConfigsPayload) *NullableUpdateTracesConfigsPayload { return &NullableUpdateTracesConfigsPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateTracesConfigsPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateTracesConfigsPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/model_web_hook.go b/services/observability/model_web_hook.go index 6a18b125f..c59be25d4 100644 --- a/services/observability/model_web_hook.go +++ b/services/observability/model_web_hook.go @@ -8,6 +8,7 @@ API version: 1.1.1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package observability import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &WebHook{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetGoogleChatAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetGoogleChatArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetGoogleChatRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getWebHookgetGoogleChatAttributeTypeOk(arg WebHookgetGoogleChatAttributeType) (ret WebHookgetGoogleChatRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getWebHookgetGoogleChatAttributeTypeOk(arg WebHookgetGoogleChatAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setWebHookgetGoogleChatAttributeType(arg *WebHookgetGoogleChatAttributeType, val WebHookgetGoogleChatRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setWebHookgetGoogleChatAttributeType(arg *WebHookgetGoogleChatAttributeType */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetMsTeamsAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetMsTeamsArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetMsTeamsRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getWebHookgetMsTeamsAttributeTypeOk(arg WebHookgetMsTeamsAttributeType) (ret WebHookgetMsTeamsRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getWebHookgetMsTeamsAttributeTypeOk(arg WebHookgetMsTeamsAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setWebHookgetMsTeamsAttributeType(arg *WebHookgetMsTeamsAttributeType, val WebHookgetMsTeamsRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setWebHookgetMsTeamsAttributeType(arg *WebHookgetMsTeamsAttributeType, val */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetSendResolvedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetSendResolvedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookgetSendResolvedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getWebHookgetSendResolvedAttributeTypeOk(arg WebHookgetSendResolvedAttributeType) (ret WebHookgetSendResolvedRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getWebHookgetSendResolvedAttributeTypeOk(arg WebHookgetSendResolvedAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setWebHookgetSendResolvedAttributeType(arg *WebHookgetSendResolvedAttributeType, val WebHookgetSendResolvedRetType) { *arg = &val } @@ -82,8 +104,10 @@ func setWebHookgetSendResolvedAttributeType(arg *WebHookgetSendResolvedAttribute */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getWebHookGetUrlAttributeTypeOk(arg WebHookGetUrlAttributeType) (ret WebHookGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -91,14 +115,19 @@ func getWebHookGetUrlAttributeTypeOk(arg WebHookGetUrlAttributeType) (ret WebHoo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setWebHookGetUrlAttributeType(arg *WebHookGetUrlAttributeType, val WebHookGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHookGetUrlRetType = string // WebHook struct for WebHook +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WebHook struct { GoogleChat WebHookgetGoogleChatAttributeType `json:"googleChat,omitempty"` MsTeams WebHookgetMsTeamsAttributeType `json:"msTeams,omitempty"` @@ -107,12 +136,14 @@ type WebHook struct { Url WebHookGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _WebHook WebHook // NewWebHook instantiates a new WebHook object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewWebHook(url WebHookGetUrlArgType) *WebHook { this := WebHook{} setWebHookGetUrlAttributeType(&this.Url, url) @@ -122,6 +153,7 @@ func NewWebHook(url WebHookGetUrlArgType) *WebHook { // NewWebHookWithDefaults instantiates a new WebHook object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewWebHookWithDefaults() *WebHook { this := WebHook{} var googleChat bool = false @@ -134,6 +166,7 @@ func NewWebHookWithDefaults() *WebHook { } // GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetGoogleChat() (res WebHookgetGoogleChatRetType) { res, _ = o.GetGoogleChatOk() return @@ -141,22 +174,26 @@ func (o *WebHook) GetGoogleChat() (res WebHookgetGoogleChatRetType) { // GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetGoogleChatOk() (ret WebHookgetGoogleChatRetType, ok bool) { return getWebHookgetGoogleChatAttributeTypeOk(o.GoogleChat) } // HasGoogleChat returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) HasGoogleChat() bool { _, ok := o.GetGoogleChatOk() return ok } // SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) SetGoogleChat(v WebHookgetGoogleChatRetType) { setWebHookgetGoogleChatAttributeType(&o.GoogleChat, v) } // GetMsTeams returns the MsTeams field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetMsTeams() (res WebHookgetMsTeamsRetType) { res, _ = o.GetMsTeamsOk() return @@ -164,22 +201,26 @@ func (o *WebHook) GetMsTeams() (res WebHookgetMsTeamsRetType) { // GetMsTeamsOk returns a tuple with the MsTeams field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetMsTeamsOk() (ret WebHookgetMsTeamsRetType, ok bool) { return getWebHookgetMsTeamsAttributeTypeOk(o.MsTeams) } // HasMsTeams returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) HasMsTeams() bool { _, ok := o.GetMsTeamsOk() return ok } // SetMsTeams gets a reference to the given bool and assigns it to the MsTeams field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) SetMsTeams(v WebHookgetMsTeamsRetType) { setWebHookgetMsTeamsAttributeType(&o.MsTeams, v) } // GetSendResolved returns the SendResolved field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetSendResolved() (res WebHookgetSendResolvedRetType) { res, _ = o.GetSendResolvedOk() return @@ -187,22 +228,26 @@ func (o *WebHook) GetSendResolved() (res WebHookgetSendResolvedRetType) { // GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetSendResolvedOk() (ret WebHookgetSendResolvedRetType, ok bool) { return getWebHookgetSendResolvedAttributeTypeOk(o.SendResolved) } // HasSendResolved returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) HasSendResolved() bool { _, ok := o.GetSendResolvedOk() return ok } // SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) SetSendResolved(v WebHookgetSendResolvedRetType) { setWebHookgetSendResolvedAttributeType(&o.SendResolved, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetUrl() (ret WebHookGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -210,15 +255,18 @@ func (o *WebHook) GetUrl() (ret WebHookGetUrlRetType) { // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) GetUrlOk() (ret WebHookGetUrlRetType, ok bool) { return getWebHookGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *WebHook) SetUrl(v WebHookGetUrlRetType) { setWebHookGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o WebHook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getWebHookgetGoogleChatAttributeTypeOk(o.GoogleChat); ok { @@ -236,37 +284,45 @@ func (o WebHook) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableWebHook struct { value *WebHook isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableWebHook) Get() *WebHook { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableWebHook) Set(val *WebHook) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableWebHook) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableWebHook) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableWebHook(val *WebHook) *NullableWebHook { return &NullableWebHook{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableWebHook) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableWebHook) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/observability/oas_commit b/services/observability/oas_commit index 6a2a7d7b4..bf3189995 100644 --- a/services/observability/oas_commit +++ b/services/observability/oas_commit @@ -1 +1 @@ -10774896634990c655a523f5f0fabd6e2be9e216 +3e9c109388be83b40c16d8cb5ab146aa314eb6e8 diff --git a/services/observability/utils.go b/services/observability/utils.go index c7912ebe7..1b472da61 100644 --- a/services/observability/utils.go +++ b/services/observability/utils.go @@ -18,341 +18,419 @@ import ( ) // PtrBool is a helper routine that returns a pointer to given boolean value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrBool(v bool) *bool { return &v } // PtrInt is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt(v int) *int { return &v } // PtrInt32 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt32(v int32) *int32 { return &v } // PtrInt64 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt64(v int64) *int64 { return &v } // PtrFloat32 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat32(v float32) *float32 { return &v } // PtrFloat64 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat64(v float64) *float64 { return &v } // PtrString is a helper routine that returns a pointer to given string value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrString(v string) *string { return &v } // PtrTime is helper routine that returns a pointer to given Time value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrTime(v time.Time) *time.Time { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableValue[T any] struct { value *T isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) Get() *T { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Set(val *T) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBool struct { value *bool isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) Get() *bool { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Set(val *bool) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBool(val *bool) *NullableBool { return &NullableBool{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt struct { value *int isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) Get() *int { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Set(val *int) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt(val *int) *NullableInt { return &NullableInt{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt32 struct { value *int32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) Get() *int32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Set(val *int32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt32(val *int32) *NullableInt32 { return &NullableInt32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt64 struct { value *int64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) Get() *int64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Set(val *int64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt64(val *int64) *NullableInt64 { return &NullableInt64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat32 struct { value *float32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) Get() *float32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Set(val *float32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat32(val *float32) *NullableFloat32 { return &NullableFloat32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat64 struct { value *float64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) Get() *float64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Set(val *float64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat64(val *float64) *NullableFloat64 { return &NullableFloat64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableString struct { value *string isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) Get() *string { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Set(val *string) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableString(val *string) *NullableString { return &NullableString{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTime struct { value *time.Time isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) Get() *time.Time { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Set(val *time.Time) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTime(val *time.Time) *NullableTime { return &NullableTime{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) MarshalJSON() ([]byte, error) { return v.value.MarshalJSON() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } // IsNil checks if an input is nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func IsNil(i interface{}) bool { if i == nil { return true @@ -369,13 +447,16 @@ func IsNil(i interface{}) bool { return false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MappedNullable interface { ToMap() (map[string]interface{}, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // randString returns a random string with a specified length. It panics if n <= 0. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func randString(n int) string { b := make([]byte, n) for i := range b { diff --git a/services/observability/v1api/api_default.go b/services/observability/v1api/api_default.go new file mode 100644 index 000000000..e6c8073a2 --- /dev/null +++ b/services/observability/v1api/api_default.go @@ -0,0 +1,17469 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/stackitcloud/stackit-sdk-go/core/config" + "github.com/stackitcloud/stackit-sdk-go/core/oapierror" +) + +type DefaultAPI interface { + + /* + CreateAlertConfigReceiver Method for CreateAlertConfigReceiver + + Create alert config receiver. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateAlertConfigReceiverRequest + */ + CreateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigReceiverRequest + + // CreateAlertConfigReceiverExecute executes the request + // @return AlertConfigReceiversResponse + CreateAlertConfigReceiverExecute(r ApiCreateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) + + /* + CreateAlertConfigRoute Method for CreateAlertConfigRoute + + Create alert config route in routes of route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateAlertConfigRouteRequest + */ + CreateAlertConfigRoute(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigRouteRequest + + // CreateAlertConfigRouteExecute executes the request + // @return AlertConfigRouteResponse + CreateAlertConfigRouteExecute(r ApiCreateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + + /* + CreateAlertRecord Method for CreateAlertRecord + + Create alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiCreateAlertRecordRequest + */ + CreateAlertRecord(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertRecordRequest + + // CreateAlertRecordExecute executes the request + // @return AlertRecordsResponse + CreateAlertRecordExecute(r ApiCreateAlertRecordRequest) (*AlertRecordsResponse, error) + + /* + CreateAlertgroups Method for CreateAlertgroups + + Create alert group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateAlertgroupsRequest + */ + CreateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateAlertgroupsRequest + + // CreateAlertgroupsExecute executes the request + // @return AlertGroupsResponse + CreateAlertgroupsExecute(r ApiCreateAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + CreateAlertrules Method for CreateAlertrules + + Create alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiCreateAlertrulesRequest + */ + CreateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertrulesRequest + + // CreateAlertrulesExecute executes the request + // @return AlertRulesResponse + CreateAlertrulesExecute(r ApiCreateAlertrulesRequest) (*AlertRulesResponse, error) + + /* + CreateBackup Method for CreateBackup + + Create a backup. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateBackupRequest + */ + CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest + + // CreateBackupExecute executes the request + // @return Message + CreateBackupExecute(r ApiCreateBackupRequest) (*Message, error) + + /* + CreateBackupSchedule Method for CreateBackupSchedule + + Create backup schedule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateBackupScheduleRequest + */ + CreateBackupSchedule(ctx context.Context, instanceId string, projectId string) ApiCreateBackupScheduleRequest + + // CreateBackupScheduleExecute executes the request + // @return BackupSchedulePostResponse + CreateBackupScheduleExecute(r ApiCreateBackupScheduleRequest) (*BackupSchedulePostResponse, error) + + /* + CreateCertCheck Method for CreateCertCheck + + Create cert check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateCertCheckRequest + */ + CreateCertCheck(ctx context.Context, instanceId string, projectId string) ApiCreateCertCheckRequest + + // CreateCertCheckExecute executes the request + // @return CertCheckResponse + CreateCertCheckExecute(r ApiCreateCertCheckRequest) (*CertCheckResponse, error) + + /* + CreateCredentials Method for CreateCredentials + + Create technical user credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateCredentialsRequest + */ + CreateCredentials(ctx context.Context, instanceId string, projectId string) ApiCreateCredentialsRequest + + // CreateCredentialsExecute executes the request + // @return CreateCredentialsResponse + CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) + + /* + CreateElasticsearchCheck Method for CreateElasticsearchCheck + + Create elasticsearch check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateElasticsearchCheckRequest + */ + CreateElasticsearchCheck(ctx context.Context, instanceId string, projectId string) ApiCreateElasticsearchCheckRequest + + // CreateElasticsearchCheckExecute executes the request + // @return ElasticsearchCheckResponse + CreateElasticsearchCheckExecute(r ApiCreateElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) + + /* + CreateHttpCheck Method for CreateHttpCheck + + Create http check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateHttpCheckRequest + */ + CreateHttpCheck(ctx context.Context, instanceId string, projectId string) ApiCreateHttpCheckRequest + + // CreateHttpCheckExecute executes the request + // @return HttpCheckResponse + CreateHttpCheckExecute(r ApiCreateHttpCheckRequest) (*HttpCheckResponse, error) + + /* + CreateInstance Method for CreateInstance + + Create new instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiCreateInstanceRequest + */ + CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest + + // CreateInstanceExecute executes the request + // @return CreateInstanceResponse + CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) + + /* + CreateLogsAlertgroups Method for CreateLogsAlertgroups + + Create logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateLogsAlertgroupsRequest + */ + CreateLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateLogsAlertgroupsRequest + + // CreateLogsAlertgroupsExecute executes the request + // @return AlertGroupsResponse + CreateLogsAlertgroupsExecute(r ApiCreateLogsAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + CreateMongodbCheck Method for CreateMongodbCheck + + Create mongodb check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateMongodbCheckRequest + */ + CreateMongodbCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMongodbCheckRequest + + // CreateMongodbCheckExecute executes the request + // @return MongodbCheckResponse + CreateMongodbCheckExecute(r ApiCreateMongodbCheckRequest) (*MongodbCheckResponse, error) + + /* + CreateMysqlCheck Method for CreateMysqlCheck + + Create mysql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateMysqlCheckRequest + */ + CreateMysqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMysqlCheckRequest + + // CreateMysqlCheckExecute executes the request + // @return MysqlCheckResponse + CreateMysqlCheckExecute(r ApiCreateMysqlCheckRequest) (*MysqlCheckResponse, error) + + /* + CreateNetworkCheck Method for CreateNetworkCheck + + Create network check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateNetworkCheckRequest + */ + CreateNetworkCheck(ctx context.Context, instanceId string, projectId string) ApiCreateNetworkCheckRequest + + // CreateNetworkCheckExecute executes the request + // @return NetworkCheckResponse + CreateNetworkCheckExecute(r ApiCreateNetworkCheckRequest) (*NetworkCheckResponse, error) + + /* + CreatePingCheck Method for CreatePingCheck + + Create ping check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreatePingCheckRequest + */ + CreatePingCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePingCheckRequest + + // CreatePingCheckExecute executes the request + // @return PingCheckResponse + CreatePingCheckExecute(r ApiCreatePingCheckRequest) (*PingCheckResponse, error) + + /* + CreatePostgresqlCheck Method for CreatePostgresqlCheck + + Create postgresql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreatePostgresqlCheckRequest + */ + CreatePostgresqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePostgresqlCheckRequest + + // CreatePostgresqlCheckExecute executes the request + // @return PostgresqlCheckResponse + CreatePostgresqlCheckExecute(r ApiCreatePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) + + /* + CreateRabbitmqCheck Method for CreateRabbitmqCheck + + Create rabbitmq check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateRabbitmqCheckRequest + */ + CreateRabbitmqCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRabbitmqCheckRequest + + // CreateRabbitmqCheckExecute executes the request + // @return RabbitmqCheckResponse + CreateRabbitmqCheckExecute(r ApiCreateRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) + + /* + CreateRedisCheck Method for CreateRedisCheck + + Create redis check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateRedisCheckRequest + */ + CreateRedisCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRedisCheckRequest + + // CreateRedisCheckExecute executes the request + // @return RedisCheckResponse + CreateRedisCheckExecute(r ApiCreateRedisCheckRequest) (*RedisCheckResponse, error) + + /* + CreateScrapeConfig Method for CreateScrapeConfig + + Create scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateScrapeConfigRequest + */ + CreateScrapeConfig(ctx context.Context, instanceId string, projectId string) ApiCreateScrapeConfigRequest + + // CreateScrapeConfigExecute executes the request + // @return ScrapeConfigsResponse + CreateScrapeConfigExecute(r ApiCreateScrapeConfigRequest) (*ScrapeConfigsResponse, error) + + /* + DeleteAlertConfigReceiver Method for DeleteAlertConfigReceiver + + Delete alert config receiver. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiDeleteAlertConfigReceiverRequest + */ + DeleteAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigReceiverRequest + + // DeleteAlertConfigReceiverExecute executes the request + // @return AlertConfigReceiversResponse + DeleteAlertConfigReceiverExecute(r ApiDeleteAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) + + /* + DeleteAlertConfigRoute Method for DeleteAlertConfigRoute + + Delete alert receiver for route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiDeleteAlertConfigRouteRequest + */ + DeleteAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigRouteRequest + + // DeleteAlertConfigRouteExecute executes the request + // @return AlertConfigRouteResponse + DeleteAlertConfigRouteExecute(r ApiDeleteAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + + /* + DeleteAlertRecord Method for DeleteAlertRecord + + Delete alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertRecord + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertRecordRequest + */ + DeleteAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordRequest + + // DeleteAlertRecordExecute executes the request + // @return AlertRecordsResponse + DeleteAlertRecordExecute(r ApiDeleteAlertRecordRequest) (*AlertRecordsResponse, error) + + /* + DeleteAlertRecords Method for DeleteAlertRecords + + Delete alert records. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertRecordsRequest + */ + DeleteAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordsRequest + + // DeleteAlertRecordsExecute executes the request + // @return AlertRecordsResponse + DeleteAlertRecordsExecute(r ApiDeleteAlertRecordsRequest) (*AlertRecordsResponse, error) + + /* + DeleteAlertgroup Method for DeleteAlertgroup + + Delete alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertgroupRequest + */ + DeleteAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertgroupRequest + + // DeleteAlertgroupExecute executes the request + // @return AlertGroupsResponse + DeleteAlertgroupExecute(r ApiDeleteAlertgroupRequest) (*AlertGroupsResponse, error) + + /* + DeleteAlertgroups Method for DeleteAlertgroups + + Delete alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiDeleteAlertgroupsRequest + */ + DeleteAlertgroups(ctx context.Context, instanceId string, projectId string) ApiDeleteAlertgroupsRequest + + // DeleteAlertgroupsExecute executes the request + // @return AlertGroupsResponse + DeleteAlertgroupsExecute(r ApiDeleteAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + DeleteAlertrule Method for DeleteAlertrule + + Delete alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertName + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertruleRequest + */ + DeleteAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiDeleteAlertruleRequest + + // DeleteAlertruleExecute executes the request + // @return AlertRulesResponse + DeleteAlertruleExecute(r ApiDeleteAlertruleRequest) (*AlertRulesResponse, error) + + /* + DeleteAlertrules Method for DeleteAlertrules + + Delete alert rules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertrulesRequest + */ + DeleteAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertrulesRequest + + // DeleteAlertrulesExecute executes the request + // @return AlertRulesResponse + DeleteAlertrulesExecute(r ApiDeleteAlertrulesRequest) (*AlertRulesResponse, error) + + /* + DeleteCertCheck Method for DeleteCertCheck + + Delete cert check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param id + @return ApiDeleteCertCheckRequest + */ + DeleteCertCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteCertCheckRequest + + // DeleteCertCheckExecute executes the request + // @return CertCheckResponse + DeleteCertCheckExecute(r ApiDeleteCertCheckRequest) (*CertCheckResponse, error) + + /* + DeleteCredentials Method for DeleteCredentials + + Delete technical credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiDeleteCredentialsRequest + */ + DeleteCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRequest + + // DeleteCredentialsExecute executes the request + // @return Message + DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (*Message, error) + + /* + DeleteCredentialsRemoteWriteConfig Method for DeleteCredentialsRemoteWriteConfig + + Delete remote write config for credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiDeleteCredentialsRemoteWriteConfigRequest + */ + DeleteCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRemoteWriteConfigRequest + + // DeleteCredentialsRemoteWriteConfigExecute executes the request + // @return CredentialsRemoteWriteDeleteResponse + DeleteCredentialsRemoteWriteConfigExecute(r ApiDeleteCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteDeleteResponse, error) + + /* + DeleteElasticsearchCheck Method for DeleteElasticsearchCheck + + Delete elasticsearch check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteElasticsearchCheckRequest + */ + DeleteElasticsearchCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteElasticsearchCheckRequest + + // DeleteElasticsearchCheckExecute executes the request + // @return ElasticsearchCheckResponse + DeleteElasticsearchCheckExecute(r ApiDeleteElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) + + /* + DeleteHttpCheck Method for DeleteHttpCheck + + Delete http check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param id + @return ApiDeleteHttpCheckRequest + */ + DeleteHttpCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteHttpCheckRequest + + // DeleteHttpCheckExecute executes the request + // @return HttpCheckResponse + DeleteHttpCheckExecute(r ApiDeleteHttpCheckRequest) (*HttpCheckResponse, error) + + /* + DeleteInstance Method for DeleteInstance + + Delete instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiDeleteInstanceRequest + */ + DeleteInstance(ctx context.Context, instanceId string, projectId string) ApiDeleteInstanceRequest + + // DeleteInstanceExecute executes the request + // @return InstanceResponse + DeleteInstanceExecute(r ApiDeleteInstanceRequest) (*InstanceResponse, error) + + /* + DeleteLogsAlertgroup Method for DeleteLogsAlertgroup + + Delete logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteLogsAlertgroupRequest + */ + DeleteLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteLogsAlertgroupRequest + + // DeleteLogsAlertgroupExecute executes the request + // @return AlertGroupsResponse + DeleteLogsAlertgroupExecute(r ApiDeleteLogsAlertgroupRequest) (*AlertGroupsResponse, error) + + /* + DeleteMongodbCheck Method for DeleteMongodbCheck + + Delete mongodb check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteMongodbCheckRequest + */ + DeleteMongodbCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMongodbCheckRequest + + // DeleteMongodbCheckExecute executes the request + // @return MongodbCheckResponse + DeleteMongodbCheckExecute(r ApiDeleteMongodbCheckRequest) (*MongodbCheckResponse, error) + + /* + DeleteMysqlCheck Method for DeleteMysqlCheck + + Delete mysql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteMysqlCheckRequest + */ + DeleteMysqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMysqlCheckRequest + + // DeleteMysqlCheckExecute executes the request + // @return MysqlCheckResponse + DeleteMysqlCheckExecute(r ApiDeleteMysqlCheckRequest) (*MysqlCheckResponse, error) + + /* + DeleteNetworkCheck Method for DeleteNetworkCheck + + Delete network check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteNetworkCheckRequest + */ + DeleteNetworkCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteNetworkCheckRequest + + // DeleteNetworkCheckExecute executes the request + // @return NetworkCheckResponse + DeleteNetworkCheckExecute(r ApiDeleteNetworkCheckRequest) (*NetworkCheckResponse, error) + + /* + DeletePingCheck Method for DeletePingCheck + + Delete ping check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeletePingCheckRequest + */ + DeletePingCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePingCheckRequest + + // DeletePingCheckExecute executes the request + // @return PingCheckResponse + DeletePingCheckExecute(r ApiDeletePingCheckRequest) (*PingCheckResponse, error) + + /* + DeletePostgresqlCheck Method for DeletePostgresqlCheck + + Delete postgresql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeletePostgresqlCheckRequest + */ + DeletePostgresqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePostgresqlCheckRequest + + // DeletePostgresqlCheckExecute executes the request + // @return PostgresqlCheckResponse + DeletePostgresqlCheckExecute(r ApiDeletePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) + + /* + DeleteRabbitmqCheck Method for DeleteRabbitmqCheck + + Delete rabbitmq check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteRabbitmqCheckRequest + */ + DeleteRabbitmqCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRabbitmqCheckRequest + + // DeleteRabbitmqCheckExecute executes the request + // @return RabbitmqCheckResponse + DeleteRabbitmqCheckExecute(r ApiDeleteRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) + + /* + DeleteRedisCheck Method for DeleteRedisCheck + + Delete redis check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteRedisCheckRequest + */ + DeleteRedisCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRedisCheckRequest + + // DeleteRedisCheckExecute executes the request + // @return RedisCheckResponse + DeleteRedisCheckExecute(r ApiDeleteRedisCheckRequest) (*RedisCheckResponse, error) + + /* + DeleteScrapeConfig Method for DeleteScrapeConfig + + Delete scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param jobName + @param projectId + @return ApiDeleteScrapeConfigRequest + */ + DeleteScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiDeleteScrapeConfigRequest + + // DeleteScrapeConfigExecute executes the request + // @return DeleteScrapeConfigResponse + DeleteScrapeConfigExecute(r ApiDeleteScrapeConfigRequest) (*DeleteScrapeConfigResponse, error) + + /* + DeleteScrapeConfigs Method for DeleteScrapeConfigs + + Delete scrape configs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiDeleteScrapeConfigsRequest + */ + DeleteScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiDeleteScrapeConfigsRequest + + // DeleteScrapeConfigsExecute executes the request + // @return ScrapeConfigsResponse + DeleteScrapeConfigsExecute(r ApiDeleteScrapeConfigsRequest) (*ScrapeConfigsResponse, error) + + /* + GetAlertConfigReceiver Method for GetAlertConfigReceiver + + Get alert config receivers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiGetAlertConfigReceiverRequest + */ + GetAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigReceiverRequest + + // GetAlertConfigReceiverExecute executes the request + // @return Receiver + GetAlertConfigReceiverExecute(r ApiGetAlertConfigReceiverRequest) (*Receiver, error) + + /* + GetAlertConfigRoute Method for GetAlertConfigRoute + + Get alert receiver for route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiGetAlertConfigRouteRequest + */ + GetAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigRouteRequest + + // GetAlertConfigRouteExecute executes the request + // @return AlertConfigRouteResponse + GetAlertConfigRouteExecute(r ApiGetAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + + /* + GetAlertConfigs Method for GetAlertConfigs + + Get alert config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetAlertConfigsRequest + */ + GetAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiGetAlertConfigsRequest + + // GetAlertConfigsExecute executes the request + // @return GetAlertConfigsResponse + GetAlertConfigsExecute(r ApiGetAlertConfigsRequest) (*GetAlertConfigsResponse, error) + + /* + GetAlertRecord Method for GetAlertRecord + + Get alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertRecord + @param groupName + @param instanceId + @param projectId + @return ApiGetAlertRecordRequest + */ + GetAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiGetAlertRecordRequest + + // GetAlertRecordExecute executes the request + // @return AlertRecordResponse + GetAlertRecordExecute(r ApiGetAlertRecordRequest) (*AlertRecordResponse, error) + + /* + GetAlertgroup Method for GetAlertgroup + + Get alert group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiGetAlertgroupRequest + */ + GetAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetAlertgroupRequest + + // GetAlertgroupExecute executes the request + // @return AlertGroupResponse + GetAlertgroupExecute(r ApiGetAlertgroupRequest) (*AlertGroupResponse, error) + + /* + GetAlertrule Method for GetAlertrule + + Get alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertName + @param groupName + @param instanceId + @param projectId + @return ApiGetAlertruleRequest + */ + GetAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiGetAlertruleRequest + + // GetAlertruleExecute executes the request + // @return AlertRuleResponse + GetAlertruleExecute(r ApiGetAlertruleRequest) (*AlertRuleResponse, error) + + /* + GetCredentials Method for GetCredentials + + Get single technical credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiGetCredentialsRequest + */ + GetCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRequest + + // GetCredentialsExecute executes the request + // @return GetCredentialsResponse + GetCredentialsExecute(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) + + /* + GetCredentialsRemoteWriteConfig Method for GetCredentialsRemoteWriteConfig + + Get remote write config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiGetCredentialsRemoteWriteConfigRequest + */ + GetCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRemoteWriteConfigRequest + + // GetCredentialsRemoteWriteConfigExecute executes the request + // @return CredentialsRemoteWriteConfig + GetCredentialsRemoteWriteConfigExecute(r ApiGetCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) + + /* + GetGrafanaConfigs Method for GetGrafanaConfigs + + Get grafana config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetGrafanaConfigsRequest + */ + GetGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiGetGrafanaConfigsRequest + + // GetGrafanaConfigsExecute executes the request + // @return GrafanaConfigs + GetGrafanaConfigsExecute(r ApiGetGrafanaConfigsRequest) (*GrafanaConfigs, error) + + /* + GetInstance Method for GetInstance + + Get instance information. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetInstanceRequest + */ + GetInstance(ctx context.Context, instanceId string, projectId string) ApiGetInstanceRequest + + // GetInstanceExecute executes the request + // @return GetInstanceResponse + GetInstanceExecute(r ApiGetInstanceRequest) (*GetInstanceResponse, error) + + /* + GetLogsAlertgroup Method for GetLogsAlertgroup + + Get logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiGetLogsAlertgroupRequest + */ + GetLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetLogsAlertgroupRequest + + // GetLogsAlertgroupExecute executes the request + // @return AlertGroupResponse + GetLogsAlertgroupExecute(r ApiGetLogsAlertgroupRequest) (*AlertGroupResponse, error) + + /* + GetLogsConfigs Method for GetLogsConfigs + + Get logs configuration. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetLogsConfigsRequest + */ + GetLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiGetLogsConfigsRequest + + // GetLogsConfigsExecute executes the request + // @return LogsConfigResponse + GetLogsConfigsExecute(r ApiGetLogsConfigsRequest) (*LogsConfigResponse, error) + + /* + GetMetricsStorageRetention Method for GetMetricsStorageRetention + + Get metric storage retention time. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetMetricsStorageRetentionRequest + */ + GetMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiGetMetricsStorageRetentionRequest + + // GetMetricsStorageRetentionExecute executes the request + // @return GetMetricsStorageRetentionResponse + GetMetricsStorageRetentionExecute(r ApiGetMetricsStorageRetentionRequest) (*GetMetricsStorageRetentionResponse, error) + + /* + GetScrapeConfig Method for GetScrapeConfig + + Get scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param jobName + @param projectId + @return ApiGetScrapeConfigRequest + */ + GetScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiGetScrapeConfigRequest + + // GetScrapeConfigExecute executes the request + // @return GetScrapeConfigResponse + GetScrapeConfigExecute(r ApiGetScrapeConfigRequest) (*GetScrapeConfigResponse, error) + + /* + GetTracesConfigs Method for GetTracesConfigs + + Get traces config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetTracesConfigsRequest + */ + GetTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiGetTracesConfigsRequest + + // GetTracesConfigsExecute executes the request + // @return TracesConfigResponse + GetTracesConfigsExecute(r ApiGetTracesConfigsRequest) (*TracesConfigResponse, error) + + /* + ListACL Method for ListACL + + Get acl for instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListACLRequest + */ + ListACL(ctx context.Context, instanceId string, projectId string) ApiListACLRequest + + // ListACLExecute executes the request + // @return ListACLResponse + ListACLExecute(r ApiListACLRequest) (*ListACLResponse, error) + + /* + ListAlertConfigReceivers Method for ListAlertConfigReceivers + + Get alert config receivers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListAlertConfigReceiversRequest + */ + ListAlertConfigReceivers(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigReceiversRequest + + // ListAlertConfigReceiversExecute executes the request + // @return AlertConfigReceiversResponse + ListAlertConfigReceiversExecute(r ApiListAlertConfigReceiversRequest) (*AlertConfigReceiversResponse, error) + + /* + ListAlertConfigRoutes Method for ListAlertConfigRoutes + + Get alert config route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListAlertConfigRoutesRequest + */ + ListAlertConfigRoutes(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigRoutesRequest + + // ListAlertConfigRoutesExecute executes the request + // @return AlertConfigRouteResponse + ListAlertConfigRoutesExecute(r ApiListAlertConfigRoutesRequest) (*AlertConfigRouteResponse, error) + + /* + ListAlertRecords Method for ListAlertRecords + + Get alert records. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiListAlertRecordsRequest + */ + ListAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertRecordsRequest + + // ListAlertRecordsExecute executes the request + // @return AlertRecordsResponse + ListAlertRecordsExecute(r ApiListAlertRecordsRequest) (*AlertRecordsResponse, error) + + /* + ListAlertgroups Method for ListAlertgroups + + Get alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListAlertgroupsRequest + */ + ListAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListAlertgroupsRequest + + // ListAlertgroupsExecute executes the request + // @return AlertGroupsResponse + ListAlertgroupsExecute(r ApiListAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + ListAlertrules Method for ListAlertrules + + Get alert rules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiListAlertrulesRequest + */ + ListAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertrulesRequest + + // ListAlertrulesExecute executes the request + // @return AlertRulesResponse + ListAlertrulesExecute(r ApiListAlertrulesRequest) (*AlertRulesResponse, error) + + /* + ListBackupRetentions Method for ListBackupRetentions + + Get backup retention. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListBackupRetentionsRequest + */ + ListBackupRetentions(ctx context.Context, instanceId string, projectId string) ApiListBackupRetentionsRequest + + // ListBackupRetentionsExecute executes the request + // @return BackupRetentionResponse + ListBackupRetentionsExecute(r ApiListBackupRetentionsRequest) (*BackupRetentionResponse, error) + + /* + ListBackupSchedules Method for ListBackupSchedules + + Get backup schedules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListBackupSchedulesRequest + */ + ListBackupSchedules(ctx context.Context, instanceId string, projectId string) ApiListBackupSchedulesRequest + + // ListBackupSchedulesExecute executes the request + // @return BackupScheduleResponse + ListBackupSchedulesExecute(r ApiListBackupSchedulesRequest) (*BackupScheduleResponse, error) + + /* + ListBackups Method for ListBackups + + Get backups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListBackupsRequest + */ + ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest + + // ListBackupsExecute executes the request + // @return BackupResponse + ListBackupsExecute(r ApiListBackupsRequest) (*BackupResponse, error) + + /* + ListCertChecks Method for ListCertChecks + + Get all cert checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListCertChecksRequest + */ + ListCertChecks(ctx context.Context, instanceId string, projectId string) ApiListCertChecksRequest + + // ListCertChecksExecute executes the request + // @return CertCheckResponse + ListCertChecksExecute(r ApiListCertChecksRequest) (*CertCheckResponse, error) + + /* + ListCredentials Method for ListCredentials + + Get all technical user credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListCredentialsRequest + */ + ListCredentials(ctx context.Context, instanceId string, projectId string) ApiListCredentialsRequest + + // ListCredentialsExecute executes the request + // @return ListCredentialsResponse + ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) + + /* + ListElasticsearchChecks Method for ListElasticsearchChecks + + Get all elasticsearch checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListElasticsearchChecksRequest + */ + ListElasticsearchChecks(ctx context.Context, instanceId string, projectId string) ApiListElasticsearchChecksRequest + + // ListElasticsearchChecksExecute executes the request + // @return ElasticsearchCheckResponse + ListElasticsearchChecksExecute(r ApiListElasticsearchChecksRequest) (*ElasticsearchCheckResponse, error) + + /* + ListHttpChecks Method for ListHttpChecks + + Get all http checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListHttpChecksRequest + */ + ListHttpChecks(ctx context.Context, instanceId string, projectId string) ApiListHttpChecksRequest + + // ListHttpChecksExecute executes the request + // @return HttpCheckResponse + ListHttpChecksExecute(r ApiListHttpChecksRequest) (*HttpCheckResponse, error) + + /* + ListInstances Method for ListInstances + + Get all instances for a project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListInstancesRequest + */ + ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest + + // ListInstancesExecute executes the request + // @return ListInstancesResponse + ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) + + /* + ListLogsAlertgroups Method for ListLogsAlertgroups + + Get logs alert groups config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListLogsAlertgroupsRequest + */ + ListLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListLogsAlertgroupsRequest + + // ListLogsAlertgroupsExecute executes the request + // @return AlertGroupsResponse + ListLogsAlertgroupsExecute(r ApiListLogsAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + ListMongodbChecks Method for ListMongodbChecks + + Get all mongodb checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListMongodbChecksRequest + */ + ListMongodbChecks(ctx context.Context, instanceId string, projectId string) ApiListMongodbChecksRequest + + // ListMongodbChecksExecute executes the request + // @return MongodbCheckResponse + ListMongodbChecksExecute(r ApiListMongodbChecksRequest) (*MongodbCheckResponse, error) + + /* + ListMysqlChecks Method for ListMysqlChecks + + Get all mysql checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListMysqlChecksRequest + */ + ListMysqlChecks(ctx context.Context, instanceId string, projectId string) ApiListMysqlChecksRequest + + // ListMysqlChecksExecute executes the request + // @return MysqlCheckResponse + ListMysqlChecksExecute(r ApiListMysqlChecksRequest) (*MysqlCheckResponse, error) + + /* + ListNetworkChecks Method for ListNetworkChecks + + Get all network checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListNetworkChecksRequest + */ + ListNetworkChecks(ctx context.Context, instanceId string, projectId string) ApiListNetworkChecksRequest + + // ListNetworkChecksExecute executes the request + // @return NetworkCheckResponse + ListNetworkChecksExecute(r ApiListNetworkChecksRequest) (*NetworkCheckResponse, error) + + /* + ListOfferings Method for ListOfferings + + Get all plans. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListOfferingsRequest + */ + ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest + + // ListOfferingsExecute executes the request + // @return Offerings + ListOfferingsExecute(r ApiListOfferingsRequest) (*Offerings, error) + + /* + ListPingChecks Method for ListPingChecks + + Get all ping checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListPingChecksRequest + */ + ListPingChecks(ctx context.Context, instanceId string, projectId string) ApiListPingChecksRequest + + // ListPingChecksExecute executes the request + // @return PingCheckResponse + ListPingChecksExecute(r ApiListPingChecksRequest) (*PingCheckResponse, error) + + /* + ListPlans Method for ListPlans + + Get all plans. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListPlansRequest + */ + ListPlans(ctx context.Context, projectId string) ApiListPlansRequest + + // ListPlansExecute executes the request + // @return PlansResponse + ListPlansExecute(r ApiListPlansRequest) (*PlansResponse, error) + + /* + ListPostgresqlChecks Method for ListPostgresqlChecks + + Get all postgresql checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListPostgresqlChecksRequest + */ + ListPostgresqlChecks(ctx context.Context, instanceId string, projectId string) ApiListPostgresqlChecksRequest + + // ListPostgresqlChecksExecute executes the request + // @return PostgresqlCheckResponse + ListPostgresqlChecksExecute(r ApiListPostgresqlChecksRequest) (*PostgresqlCheckResponse, error) + + /* + ListRabbitmqChecks Method for ListRabbitmqChecks + + Get all rabbitmq checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListRabbitmqChecksRequest + */ + ListRabbitmqChecks(ctx context.Context, instanceId string, projectId string) ApiListRabbitmqChecksRequest + + // ListRabbitmqChecksExecute executes the request + // @return RabbitmqCheckResponse + ListRabbitmqChecksExecute(r ApiListRabbitmqChecksRequest) (*RabbitmqCheckResponse, error) + + /* + ListRedisChecks Method for ListRedisChecks + + Get all redis checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListRedisChecksRequest + */ + ListRedisChecks(ctx context.Context, instanceId string, projectId string) ApiListRedisChecksRequest + + // ListRedisChecksExecute executes the request + // @return RedisCheckResponse + ListRedisChecksExecute(r ApiListRedisChecksRequest) (*RedisCheckResponse, error) + + /* + ListScrapeConfigs Method for ListScrapeConfigs + + Get scrape configs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListScrapeConfigsRequest + */ + ListScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiListScrapeConfigsRequest + + // ListScrapeConfigsExecute executes the request + // @return ListScrapeConfigsResponse + ListScrapeConfigsExecute(r ApiListScrapeConfigsRequest) (*ListScrapeConfigsResponse, error) + + /* + PartialUpdateAlertRecords Method for PartialUpdateAlertRecords + + Patch alert records. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiPartialUpdateAlertRecordsRequest + */ + PartialUpdateAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertRecordsRequest + + // PartialUpdateAlertRecordsExecute executes the request + // @return AlertRecordsResponse + PartialUpdateAlertRecordsExecute(r ApiPartialUpdateAlertRecordsRequest) (*AlertRecordsResponse, error) + + /* + PartialUpdateAlertgroups Method for PartialUpdateAlertgroups + + Patch alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiPartialUpdateAlertgroupsRequest + */ + PartialUpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateAlertgroupsRequest + + // PartialUpdateAlertgroupsExecute executes the request + // @return AlertGroupsResponse + PartialUpdateAlertgroupsExecute(r ApiPartialUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + PartialUpdateAlertrules Method for PartialUpdateAlertrules + + Patch alert rules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiPartialUpdateAlertrulesRequest + */ + PartialUpdateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertrulesRequest + + // PartialUpdateAlertrulesExecute executes the request + // @return AlertRulesResponse + PartialUpdateAlertrulesExecute(r ApiPartialUpdateAlertrulesRequest) (*AlertRulesResponse, error) + + /* + PartialUpdateScrapeConfigs Method for PartialUpdateScrapeConfigs + + Update scrape configs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiPartialUpdateScrapeConfigsRequest + */ + PartialUpdateScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateScrapeConfigsRequest + + // PartialUpdateScrapeConfigsExecute executes the request + // @return ScrapeConfigsResponse + PartialUpdateScrapeConfigsExecute(r ApiPartialUpdateScrapeConfigsRequest) (*ScrapeConfigsResponse, error) + + /* + RestoreBackup Method for RestoreBackup + + Restore backup. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param backupDate + @param instanceId + @param projectId + @return ApiRestoreBackupRequest + */ + RestoreBackup(ctx context.Context, backupDate string, instanceId string, projectId string) ApiRestoreBackupRequest + + // RestoreBackupExecute executes the request + // @return Message + RestoreBackupExecute(r ApiRestoreBackupRequest) (*Message, error) + + /* + UpdateACL Method for UpdateACL + + Update acl config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateACLRequest + */ + UpdateACL(ctx context.Context, instanceId string, projectId string) ApiUpdateACLRequest + + // UpdateACLExecute executes the request + // @return Message + UpdateACLExecute(r ApiUpdateACLRequest) (*Message, error) + + /* + UpdateAlertConfigReceiver Method for UpdateAlertConfigReceiver + + Update alert config receiver. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiUpdateAlertConfigReceiverRequest + */ + UpdateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigReceiverRequest + + // UpdateAlertConfigReceiverExecute executes the request + // @return AlertConfigReceiversResponse + UpdateAlertConfigReceiverExecute(r ApiUpdateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) + + /* + UpdateAlertConfigRoute Method for UpdateAlertConfigRoute + + Update alert receiver for route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiUpdateAlertConfigRouteRequest + */ + UpdateAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigRouteRequest + + // UpdateAlertConfigRouteExecute executes the request + // @return AlertConfigRouteResponse + UpdateAlertConfigRouteExecute(r ApiUpdateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + + /* + UpdateAlertConfigs Method for UpdateAlertConfigs + + Update alert config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateAlertConfigsRequest + */ + UpdateAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertConfigsRequest + + // UpdateAlertConfigsExecute executes the request + // @return UpdateAlertConfigsResponse + UpdateAlertConfigsExecute(r ApiUpdateAlertConfigsRequest) (*UpdateAlertConfigsResponse, error) + + /* + UpdateAlertRecord Method for UpdateAlertRecord + + Update alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertRecord + @param groupName + @param instanceId + @param projectId + @return ApiUpdateAlertRecordRequest + */ + UpdateAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiUpdateAlertRecordRequest + + // UpdateAlertRecordExecute executes the request + // @return AlertRecordsResponse + UpdateAlertRecordExecute(r ApiUpdateAlertRecordRequest) (*AlertRecordsResponse, error) + + /* + UpdateAlertgroup Method for UpdateAlertgroup + + Update alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiUpdateAlertgroupRequest + */ + UpdateAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateAlertgroupRequest + + // UpdateAlertgroupExecute executes the request + // @return AlertGroupsResponse + UpdateAlertgroupExecute(r ApiUpdateAlertgroupRequest) (*AlertGroupsResponse, error) + + /* + UpdateAlertgroups Method for UpdateAlertgroups + + Update alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateAlertgroupsRequest + */ + UpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertgroupsRequest + + // UpdateAlertgroupsExecute executes the request + // @return AlertGroupsResponse + UpdateAlertgroupsExecute(r ApiUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) + + /* + UpdateAlertrule Method for UpdateAlertrule + + Update alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertName + @param groupName + @param instanceId + @param projectId + @return ApiUpdateAlertruleRequest + */ + UpdateAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiUpdateAlertruleRequest + + // UpdateAlertruleExecute executes the request + // @return AlertRulesResponse + UpdateAlertruleExecute(r ApiUpdateAlertruleRequest) (*AlertRulesResponse, error) + + /* + UpdateCredentialsRemoteWriteConfig Method for UpdateCredentialsRemoteWriteConfig + + Update remote write config for credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiUpdateCredentialsRemoteWriteConfigRequest + */ + UpdateCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiUpdateCredentialsRemoteWriteConfigRequest + + // UpdateCredentialsRemoteWriteConfigExecute executes the request + // @return CredentialsRemoteWriteConfig + UpdateCredentialsRemoteWriteConfigExecute(r ApiUpdateCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) + + /* + UpdateGrafanaConfigs Method for UpdateGrafanaConfigs + + Update grafana config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateGrafanaConfigsRequest + */ + UpdateGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateGrafanaConfigsRequest + + // UpdateGrafanaConfigsExecute executes the request + // @return Message + UpdateGrafanaConfigsExecute(r ApiUpdateGrafanaConfigsRequest) (*Message, error) + + /* + UpdateInstance Method for UpdateInstance + + Update instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateInstanceRequest + */ + UpdateInstance(ctx context.Context, instanceId string, projectId string) ApiUpdateInstanceRequest + + // UpdateInstanceExecute executes the request + // @return InstanceResponse + UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*InstanceResponse, error) + + /* + UpdateLogsAlertgroup Method for UpdateLogsAlertgroup + + Update logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiUpdateLogsAlertgroupRequest + */ + UpdateLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateLogsAlertgroupRequest + + // UpdateLogsAlertgroupExecute executes the request + // @return AlertGroupsResponse + UpdateLogsAlertgroupExecute(r ApiUpdateLogsAlertgroupRequest) (*AlertGroupsResponse, error) + + /* + UpdateLogsConfigs Method for UpdateLogsConfigs + + Update logs config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateLogsConfigsRequest + */ + UpdateLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateLogsConfigsRequest + + // UpdateLogsConfigsExecute executes the request + // @return Message + UpdateLogsConfigsExecute(r ApiUpdateLogsConfigsRequest) (*Message, error) + + /* + UpdateMetricsStorageRetention Method for UpdateMetricsStorageRetention + + Update metric update retention time. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateMetricsStorageRetentionRequest + */ + UpdateMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiUpdateMetricsStorageRetentionRequest + + // UpdateMetricsStorageRetentionExecute executes the request + // @return Message + UpdateMetricsStorageRetentionExecute(r ApiUpdateMetricsStorageRetentionRequest) (*Message, error) + + /* + UpdateScrapeConfig Method for UpdateScrapeConfig + + Update scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param jobName + @param projectId + @return ApiUpdateScrapeConfigRequest + */ + UpdateScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiUpdateScrapeConfigRequest + + // UpdateScrapeConfigExecute executes the request + // @return ScrapeConfigsResponse + UpdateScrapeConfigExecute(r ApiUpdateScrapeConfigRequest) (*ScrapeConfigsResponse, error) + + /* + UpdateTracesConfigs Method for UpdateTracesConfigs + + Update traces config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateTracesConfigsRequest + */ + UpdateTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateTracesConfigsRequest + + // UpdateTracesConfigsExecute executes the request + // @return Message + UpdateTracesConfigsExecute(r ApiUpdateTracesConfigsRequest) (*Message, error) +} + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiCreateAlertConfigReceiverRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createAlertConfigReceiverPayload *CreateAlertConfigReceiverPayload +} + +func (r ApiCreateAlertConfigReceiverRequest) CreateAlertConfigReceiverPayload(createAlertConfigReceiverPayload CreateAlertConfigReceiverPayload) ApiCreateAlertConfigReceiverRequest { + r.createAlertConfigReceiverPayload = &createAlertConfigReceiverPayload + return r +} + +func (r ApiCreateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversResponse, error) { + return r.ApiService.CreateAlertConfigReceiverExecute(r) +} + +/* +CreateAlertConfigReceiver Method for CreateAlertConfigReceiver + +Create alert config receiver. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateAlertConfigReceiverRequest +*/ +func (a *DefaultAPIService) CreateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigReceiverRequest { + return ApiCreateAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertConfigReceiversResponse +func (a *DefaultAPIService) CreateAlertConfigReceiverExecute(r ApiCreateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigReceiversResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateAlertConfigReceiver") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createAlertConfigReceiverPayload == nil { + return localVarReturnValue, reportError("createAlertConfigReceiverPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createAlertConfigReceiverPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateAlertConfigRouteRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createAlertConfigRoutePayload *CreateAlertConfigRoutePayload +} + +func (r ApiCreateAlertConfigRouteRequest) CreateAlertConfigRoutePayload(createAlertConfigRoutePayload CreateAlertConfigRoutePayload) ApiCreateAlertConfigRouteRequest { + r.createAlertConfigRoutePayload = &createAlertConfigRoutePayload + return r +} + +func (r ApiCreateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { + return r.ApiService.CreateAlertConfigRouteExecute(r) +} + +/* +CreateAlertConfigRoute Method for CreateAlertConfigRoute + +Create alert config route in routes of route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateAlertConfigRouteRequest +*/ +func (a *DefaultAPIService) CreateAlertConfigRoute(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigRouteRequest { + return ApiCreateAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertConfigRouteResponse +func (a *DefaultAPIService) CreateAlertConfigRouteExecute(r ApiCreateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigRouteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateAlertConfigRoute") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createAlertConfigRoutePayload == nil { + return localVarReturnValue, reportError("createAlertConfigRoutePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createAlertConfigRoutePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateAlertRecordRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + createAlertRecordPayload *CreateAlertRecordPayload +} + +func (r ApiCreateAlertRecordRequest) CreateAlertRecordPayload(createAlertRecordPayload CreateAlertRecordPayload) ApiCreateAlertRecordRequest { + r.createAlertRecordPayload = &createAlertRecordPayload + return r +} + +func (r ApiCreateAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { + return r.ApiService.CreateAlertRecordExecute(r) +} + +/* +CreateAlertRecord Method for CreateAlertRecord + +Create alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiCreateAlertRecordRequest +*/ +func (a *DefaultAPIService) CreateAlertRecord(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertRecordRequest { + return ApiCreateAlertRecordRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordsResponse +func (a *DefaultAPIService) CreateAlertRecordExecute(r ApiCreateAlertRecordRequest) (*AlertRecordsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateAlertRecord") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createAlertRecordPayload == nil { + return localVarReturnValue, reportError("createAlertRecordPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createAlertRecordPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createAlertgroupsPayload *CreateAlertgroupsPayload +} + +func (r ApiCreateAlertgroupsRequest) CreateAlertgroupsPayload(createAlertgroupsPayload CreateAlertgroupsPayload) ApiCreateAlertgroupsRequest { + r.createAlertgroupsPayload = &createAlertgroupsPayload + return r +} + +func (r ApiCreateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.CreateAlertgroupsExecute(r) +} + +/* +CreateAlertgroups Method for CreateAlertgroups + +Create alert group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateAlertgroupsRequest +*/ +func (a *DefaultAPIService) CreateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateAlertgroupsRequest { + return ApiCreateAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) CreateAlertgroupsExecute(r ApiCreateAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createAlertgroupsPayload == nil { + return localVarReturnValue, reportError("createAlertgroupsPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createAlertgroupsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateAlertrulesRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + createAlertrulesPayload *CreateAlertrulesPayload +} + +func (r ApiCreateAlertrulesRequest) CreateAlertrulesPayload(createAlertrulesPayload CreateAlertrulesPayload) ApiCreateAlertrulesRequest { + r.createAlertrulesPayload = &createAlertrulesPayload + return r +} + +func (r ApiCreateAlertrulesRequest) Execute() (*AlertRulesResponse, error) { + return r.ApiService.CreateAlertrulesExecute(r) +} + +/* +CreateAlertrules Method for CreateAlertrules + +Create alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiCreateAlertrulesRequest +*/ +func (a *DefaultAPIService) CreateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertrulesRequest { + return ApiCreateAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRulesResponse +func (a *DefaultAPIService) CreateAlertrulesExecute(r ApiCreateAlertrulesRequest) (*AlertRulesResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateAlertrules") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createAlertrulesPayload == nil { + return localVarReturnValue, reportError("createAlertrulesPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createAlertrulesPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateBackupRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + backupTarget *[]string +} + +// List of backup targets +func (r ApiCreateBackupRequest) BackupTarget(backupTarget []string) ApiCreateBackupRequest { + r.backupTarget = &backupTarget + return r +} + +func (r ApiCreateBackupRequest) Execute() (*Message, error) { + return r.ApiService.CreateBackupExecute(r) +} + +/* +CreateBackup Method for CreateBackup + +Create a backup. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateBackupRequest +*/ +func (a *DefaultAPIService) CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest { + return ApiCreateBackupRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) CreateBackupExecute(r ApiCreateBackupRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateBackup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.backupTarget != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "backupTarget", r.backupTarget, "form", "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateBackupScheduleRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createBackupSchedulePayload *CreateBackupSchedulePayload + backupTarget *[]string +} + +func (r ApiCreateBackupScheduleRequest) CreateBackupSchedulePayload(createBackupSchedulePayload CreateBackupSchedulePayload) ApiCreateBackupScheduleRequest { + r.createBackupSchedulePayload = &createBackupSchedulePayload + return r +} + +// List of backup targets +func (r ApiCreateBackupScheduleRequest) BackupTarget(backupTarget []string) ApiCreateBackupScheduleRequest { + r.backupTarget = &backupTarget + return r +} + +func (r ApiCreateBackupScheduleRequest) Execute() (*BackupSchedulePostResponse, error) { + return r.ApiService.CreateBackupScheduleExecute(r) +} + +/* +CreateBackupSchedule Method for CreateBackupSchedule + +Create backup schedule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateBackupScheduleRequest +*/ +func (a *DefaultAPIService) CreateBackupSchedule(ctx context.Context, instanceId string, projectId string) ApiCreateBackupScheduleRequest { + return ApiCreateBackupScheduleRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return BackupSchedulePostResponse +func (a *DefaultAPIService) CreateBackupScheduleExecute(r ApiCreateBackupScheduleRequest) (*BackupSchedulePostResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BackupSchedulePostResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateBackupSchedule") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backup-schedules" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createBackupSchedulePayload == nil { + return localVarReturnValue, reportError("createBackupSchedulePayload is required and must be specified") + } + + if r.backupTarget != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "backupTarget", r.backupTarget, "form", "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createBackupSchedulePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateCertCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createCertCheckPayload *CreateCertCheckPayload +} + +func (r ApiCreateCertCheckRequest) CreateCertCheckPayload(createCertCheckPayload CreateCertCheckPayload) ApiCreateCertCheckRequest { + r.createCertCheckPayload = &createCertCheckPayload + return r +} + +func (r ApiCreateCertCheckRequest) Execute() (*CertCheckResponse, error) { + return r.ApiService.CreateCertCheckExecute(r) +} + +/* +CreateCertCheck Method for CreateCertCheck + +Create cert check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateCertCheckRequest +*/ +func (a *DefaultAPIService) CreateCertCheck(ctx context.Context, instanceId string, projectId string) ApiCreateCertCheckRequest { + return ApiCreateCertCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CertCheckResponse +func (a *DefaultAPIService) CreateCertCheckExecute(r ApiCreateCertCheckRequest) (*CertCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateCertCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/cert-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createCertCheckPayload == nil { + return localVarReturnValue, reportError("createCertCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createCertCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateCertCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createCredentialsPayload *CreateCredentialsPayload +} + +func (r ApiCreateCredentialsRequest) CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest { + r.createCredentialsPayload = &createCredentialsPayload + return r +} + +func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) { + return r.ApiService.CreateCredentialsExecute(r) +} + +/* +CreateCredentials Method for CreateCredentials + +Create technical user credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateCredentialsRequest +*/ +func (a *DefaultAPIService) CreateCredentials(ctx context.Context, instanceId string, projectId string) ApiCreateCredentialsRequest { + return ApiCreateCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateCredentialsResponse +func (a *DefaultAPIService) CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateCredentialsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateCredentials") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createCredentialsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateElasticsearchCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createElasticsearchCheckPayload *CreateElasticsearchCheckPayload +} + +func (r ApiCreateElasticsearchCheckRequest) CreateElasticsearchCheckPayload(createElasticsearchCheckPayload CreateElasticsearchCheckPayload) ApiCreateElasticsearchCheckRequest { + r.createElasticsearchCheckPayload = &createElasticsearchCheckPayload + return r +} + +func (r ApiCreateElasticsearchCheckRequest) Execute() (*ElasticsearchCheckResponse, error) { + return r.ApiService.CreateElasticsearchCheckExecute(r) +} + +/* +CreateElasticsearchCheck Method for CreateElasticsearchCheck + +Create elasticsearch check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateElasticsearchCheckRequest +*/ +func (a *DefaultAPIService) CreateElasticsearchCheck(ctx context.Context, instanceId string, projectId string) ApiCreateElasticsearchCheckRequest { + return ApiCreateElasticsearchCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ElasticsearchCheckResponse +func (a *DefaultAPIService) CreateElasticsearchCheckExecute(r ApiCreateElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ElasticsearchCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateElasticsearchCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/elasticsearch-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createElasticsearchCheckPayload == nil { + return localVarReturnValue, reportError("createElasticsearchCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createElasticsearchCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateElasticsearchCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateHttpCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createHttpCheckPayload *CreateHttpCheckPayload +} + +func (r ApiCreateHttpCheckRequest) CreateHttpCheckPayload(createHttpCheckPayload CreateHttpCheckPayload) ApiCreateHttpCheckRequest { + r.createHttpCheckPayload = &createHttpCheckPayload + return r +} + +func (r ApiCreateHttpCheckRequest) Execute() (*HttpCheckResponse, error) { + return r.ApiService.CreateHttpCheckExecute(r) +} + +/* +CreateHttpCheck Method for CreateHttpCheck + +Create http check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateHttpCheckRequest +*/ +func (a *DefaultAPIService) CreateHttpCheck(ctx context.Context, instanceId string, projectId string) ApiCreateHttpCheckRequest { + return ApiCreateHttpCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return HttpCheckResponse +func (a *DefaultAPIService) CreateHttpCheckExecute(r ApiCreateHttpCheckRequest) (*HttpCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HttpCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateHttpCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/http-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createHttpCheckPayload == nil { + return localVarReturnValue, reportError("createHttpCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createHttpCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateHttpCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + createInstancePayload *CreateInstancePayload +} + +func (r ApiCreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest { + r.createInstancePayload = &createInstancePayload + return r +} + +func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { + return r.ApiService.CreateInstanceExecute(r) +} + +/* +CreateInstance Method for CreateInstance + +Create new instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiCreateInstanceRequest +*/ +func (a *DefaultAPIService) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { + return ApiCreateInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateInstanceResponse +func (a *DefaultAPIService) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateInstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateInstance") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createInstancePayload == nil { + return localVarReturnValue, reportError("createInstancePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createInstancePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateLogsAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createLogsAlertgroupsPayload *CreateLogsAlertgroupsPayload +} + +func (r ApiCreateLogsAlertgroupsRequest) CreateLogsAlertgroupsPayload(createLogsAlertgroupsPayload CreateLogsAlertgroupsPayload) ApiCreateLogsAlertgroupsRequest { + r.createLogsAlertgroupsPayload = &createLogsAlertgroupsPayload + return r +} + +func (r ApiCreateLogsAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.CreateLogsAlertgroupsExecute(r) +} + +/* +CreateLogsAlertgroups Method for CreateLogsAlertgroups + +Create logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateLogsAlertgroupsRequest +*/ +func (a *DefaultAPIService) CreateLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateLogsAlertgroupsRequest { + return ApiCreateLogsAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) CreateLogsAlertgroupsExecute(r ApiCreateLogsAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateLogsAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createLogsAlertgroupsPayload == nil { + return localVarReturnValue, reportError("createLogsAlertgroupsPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createLogsAlertgroupsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateMongodbCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createMongodbCheckPayload *CreateMongodbCheckPayload +} + +func (r ApiCreateMongodbCheckRequest) CreateMongodbCheckPayload(createMongodbCheckPayload CreateMongodbCheckPayload) ApiCreateMongodbCheckRequest { + r.createMongodbCheckPayload = &createMongodbCheckPayload + return r +} + +func (r ApiCreateMongodbCheckRequest) Execute() (*MongodbCheckResponse, error) { + return r.ApiService.CreateMongodbCheckExecute(r) +} + +/* +CreateMongodbCheck Method for CreateMongodbCheck + +Create mongodb check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateMongodbCheckRequest +*/ +func (a *DefaultAPIService) CreateMongodbCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMongodbCheckRequest { + return ApiCreateMongodbCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MongodbCheckResponse +func (a *DefaultAPIService) CreateMongodbCheckExecute(r ApiCreateMongodbCheckRequest) (*MongodbCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MongodbCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateMongodbCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/mongodb-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createMongodbCheckPayload == nil { + return localVarReturnValue, reportError("createMongodbCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createMongodbCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateMongodbCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateMysqlCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createMysqlCheckPayload *CreateMysqlCheckPayload +} + +func (r ApiCreateMysqlCheckRequest) CreateMysqlCheckPayload(createMysqlCheckPayload CreateMysqlCheckPayload) ApiCreateMysqlCheckRequest { + r.createMysqlCheckPayload = &createMysqlCheckPayload + return r +} + +func (r ApiCreateMysqlCheckRequest) Execute() (*MysqlCheckResponse, error) { + return r.ApiService.CreateMysqlCheckExecute(r) +} + +/* +CreateMysqlCheck Method for CreateMysqlCheck + +Create mysql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateMysqlCheckRequest +*/ +func (a *DefaultAPIService) CreateMysqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMysqlCheckRequest { + return ApiCreateMysqlCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MysqlCheckResponse +func (a *DefaultAPIService) CreateMysqlCheckExecute(r ApiCreateMysqlCheckRequest) (*MysqlCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MysqlCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateMysqlCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/mysql-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createMysqlCheckPayload == nil { + return localVarReturnValue, reportError("createMysqlCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createMysqlCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateMysqlCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateNetworkCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createNetworkCheckPayload *CreateNetworkCheckPayload +} + +func (r ApiCreateNetworkCheckRequest) CreateNetworkCheckPayload(createNetworkCheckPayload CreateNetworkCheckPayload) ApiCreateNetworkCheckRequest { + r.createNetworkCheckPayload = &createNetworkCheckPayload + return r +} + +func (r ApiCreateNetworkCheckRequest) Execute() (*NetworkCheckResponse, error) { + return r.ApiService.CreateNetworkCheckExecute(r) +} + +/* +CreateNetworkCheck Method for CreateNetworkCheck + +Create network check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateNetworkCheckRequest +*/ +func (a *DefaultAPIService) CreateNetworkCheck(ctx context.Context, instanceId string, projectId string) ApiCreateNetworkCheckRequest { + return ApiCreateNetworkCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return NetworkCheckResponse +func (a *DefaultAPIService) CreateNetworkCheckExecute(r ApiCreateNetworkCheckRequest) (*NetworkCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateNetworkCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/network-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createNetworkCheckPayload == nil { + return localVarReturnValue, reportError("createNetworkCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createNetworkCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateNetworkCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreatePingCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createPingCheckPayload *CreatePingCheckPayload +} + +func (r ApiCreatePingCheckRequest) CreatePingCheckPayload(createPingCheckPayload CreatePingCheckPayload) ApiCreatePingCheckRequest { + r.createPingCheckPayload = &createPingCheckPayload + return r +} + +func (r ApiCreatePingCheckRequest) Execute() (*PingCheckResponse, error) { + return r.ApiService.CreatePingCheckExecute(r) +} + +/* +CreatePingCheck Method for CreatePingCheck + +Create ping check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreatePingCheckRequest +*/ +func (a *DefaultAPIService) CreatePingCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePingCheckRequest { + return ApiCreatePingCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PingCheckResponse +func (a *DefaultAPIService) CreatePingCheckExecute(r ApiCreatePingCheckRequest) (*PingCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PingCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreatePingCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/ping-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createPingCheckPayload == nil { + return localVarReturnValue, reportError("createPingCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createPingCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreatePingCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreatePostgresqlCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createPostgresqlCheckPayload *CreatePostgresqlCheckPayload +} + +func (r ApiCreatePostgresqlCheckRequest) CreatePostgresqlCheckPayload(createPostgresqlCheckPayload CreatePostgresqlCheckPayload) ApiCreatePostgresqlCheckRequest { + r.createPostgresqlCheckPayload = &createPostgresqlCheckPayload + return r +} + +func (r ApiCreatePostgresqlCheckRequest) Execute() (*PostgresqlCheckResponse, error) { + return r.ApiService.CreatePostgresqlCheckExecute(r) +} + +/* +CreatePostgresqlCheck Method for CreatePostgresqlCheck + +Create postgresql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreatePostgresqlCheckRequest +*/ +func (a *DefaultAPIService) CreatePostgresqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePostgresqlCheckRequest { + return ApiCreatePostgresqlCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PostgresqlCheckResponse +func (a *DefaultAPIService) CreatePostgresqlCheckExecute(r ApiCreatePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreatePostgresqlCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/postgresql-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createPostgresqlCheckPayload == nil { + return localVarReturnValue, reportError("createPostgresqlCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createPostgresqlCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreatePostgresqlCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateRabbitmqCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createRabbitmqCheckPayload *CreateRabbitmqCheckPayload +} + +func (r ApiCreateRabbitmqCheckRequest) CreateRabbitmqCheckPayload(createRabbitmqCheckPayload CreateRabbitmqCheckPayload) ApiCreateRabbitmqCheckRequest { + r.createRabbitmqCheckPayload = &createRabbitmqCheckPayload + return r +} + +func (r ApiCreateRabbitmqCheckRequest) Execute() (*RabbitmqCheckResponse, error) { + return r.ApiService.CreateRabbitmqCheckExecute(r) +} + +/* +CreateRabbitmqCheck Method for CreateRabbitmqCheck + +Create rabbitmq check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateRabbitmqCheckRequest +*/ +func (a *DefaultAPIService) CreateRabbitmqCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRabbitmqCheckRequest { + return ApiCreateRabbitmqCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return RabbitmqCheckResponse +func (a *DefaultAPIService) CreateRabbitmqCheckExecute(r ApiCreateRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RabbitmqCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateRabbitmqCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/rabbitmq-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createRabbitmqCheckPayload == nil { + return localVarReturnValue, reportError("createRabbitmqCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createRabbitmqCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateRabbitmqCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateRedisCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createRedisCheckPayload *CreateRedisCheckPayload +} + +func (r ApiCreateRedisCheckRequest) CreateRedisCheckPayload(createRedisCheckPayload CreateRedisCheckPayload) ApiCreateRedisCheckRequest { + r.createRedisCheckPayload = &createRedisCheckPayload + return r +} + +func (r ApiCreateRedisCheckRequest) Execute() (*RedisCheckResponse, error) { + return r.ApiService.CreateRedisCheckExecute(r) +} + +/* +CreateRedisCheck Method for CreateRedisCheck + +Create redis check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateRedisCheckRequest +*/ +func (a *DefaultAPIService) CreateRedisCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRedisCheckRequest { + return ApiCreateRedisCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return RedisCheckResponse +func (a *DefaultAPIService) CreateRedisCheckExecute(r ApiCreateRedisCheckRequest) (*RedisCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RedisCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateRedisCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/redis-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createRedisCheckPayload == nil { + return localVarReturnValue, reportError("createRedisCheckPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createRedisCheckPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v CreateRedisCheck400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateScrapeConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + createScrapeConfigPayload *CreateScrapeConfigPayload +} + +func (r ApiCreateScrapeConfigRequest) CreateScrapeConfigPayload(createScrapeConfigPayload CreateScrapeConfigPayload) ApiCreateScrapeConfigRequest { + r.createScrapeConfigPayload = &createScrapeConfigPayload + return r +} + +func (r ApiCreateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) { + return r.ApiService.CreateScrapeConfigExecute(r) +} + +/* +CreateScrapeConfig Method for CreateScrapeConfig + +Create scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiCreateScrapeConfigRequest +*/ +func (a *DefaultAPIService) CreateScrapeConfig(ctx context.Context, instanceId string, projectId string) ApiCreateScrapeConfigRequest { + return ApiCreateScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ScrapeConfigsResponse +func (a *DefaultAPIService) CreateScrapeConfigExecute(r ApiCreateScrapeConfigRequest) (*ScrapeConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScrapeConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateScrapeConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createScrapeConfigPayload == nil { + return localVarReturnValue, reportError("createScrapeConfigPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createScrapeConfigPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertConfigReceiverRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + receiver string +} + +func (r ApiDeleteAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversResponse, error) { + return r.ApiService.DeleteAlertConfigReceiverExecute(r) +} + +/* +DeleteAlertConfigReceiver Method for DeleteAlertConfigReceiver + +Delete alert config receiver. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiDeleteAlertConfigReceiverRequest +*/ +func (a *DefaultAPIService) DeleteAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigReceiverRequest { + return ApiDeleteAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// Execute executes the request +// +// @return AlertConfigReceiversResponse +func (a *DefaultAPIService) DeleteAlertConfigReceiverExecute(r ApiDeleteAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigReceiversResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertConfigReceiver") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers/{receiver}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"receiver"+"}", url.PathEscape(parameterValueToString(r.receiver, "receiver")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertConfigRouteRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + receiver string +} + +func (r ApiDeleteAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { + return r.ApiService.DeleteAlertConfigRouteExecute(r) +} + +/* +DeleteAlertConfigRoute Method for DeleteAlertConfigRoute + +Delete alert receiver for route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiDeleteAlertConfigRouteRequest +*/ +func (a *DefaultAPIService) DeleteAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigRouteRequest { + return ApiDeleteAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// Execute executes the request +// +// @return AlertConfigRouteResponse +func (a *DefaultAPIService) DeleteAlertConfigRouteExecute(r ApiDeleteAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigRouteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertConfigRoute") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes/{receiver}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"receiver"+"}", url.PathEscape(parameterValueToString(r.receiver, "receiver")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertRecordRequest struct { + ctx context.Context + ApiService DefaultAPI + alertRecord string + groupName string + instanceId string + projectId string +} + +func (r ApiDeleteAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { + return r.ApiService.DeleteAlertRecordExecute(r) +} + +/* +DeleteAlertRecord Method for DeleteAlertRecord + +Delete alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertRecord + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertRecordRequest +*/ +func (a *DefaultAPIService) DeleteAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordRequest { + return ApiDeleteAlertRecordRequest{ + ApiService: a, + ctx: ctx, + alertRecord: alertRecord, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordsResponse +func (a *DefaultAPIService) DeleteAlertRecordExecute(r ApiDeleteAlertRecordRequest) (*AlertRecordsResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertRecord") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records/{alertRecord}" + localVarPath = strings.Replace(localVarPath, "{"+"alertRecord"+"}", url.PathEscape(parameterValueToString(r.alertRecord, "alertRecord")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertRecordsRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + alertRecord *[]string +} + +// Name of the records that should be deleted +func (r ApiDeleteAlertRecordsRequest) AlertRecord(alertRecord []string) ApiDeleteAlertRecordsRequest { + r.alertRecord = &alertRecord + return r +} + +func (r ApiDeleteAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { + return r.ApiService.DeleteAlertRecordsExecute(r) +} + +/* +DeleteAlertRecords Method for DeleteAlertRecords + +Delete alert records. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertRecordsRequest +*/ +func (a *DefaultAPIService) DeleteAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordsRequest { + return ApiDeleteAlertRecordsRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordsResponse +func (a *DefaultAPIService) DeleteAlertRecordsExecute(r ApiDeleteAlertRecordsRequest) (*AlertRecordsResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertRecords") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.alertRecord == nil { + return localVarReturnValue, reportError("alertRecord is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "alertRecord", r.alertRecord, "form", "csv") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertgroupRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string +} + +func (r ApiDeleteAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.DeleteAlertgroupExecute(r) +} + +/* +DeleteAlertgroup Method for DeleteAlertgroup + +Delete alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertgroupRequest +*/ +func (a *DefaultAPIService) DeleteAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertgroupRequest { + return ApiDeleteAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) DeleteAlertgroupExecute(r ApiDeleteAlertgroupRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertgroup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + groupName *[]string +} + +// Name of the groups that should be deleted +func (r ApiDeleteAlertgroupsRequest) GroupName(groupName []string) ApiDeleteAlertgroupsRequest { + r.groupName = &groupName + return r +} + +func (r ApiDeleteAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.DeleteAlertgroupsExecute(r) +} + +/* +DeleteAlertgroups Method for DeleteAlertgroups + +Delete alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiDeleteAlertgroupsRequest +*/ +func (a *DefaultAPIService) DeleteAlertgroups(ctx context.Context, instanceId string, projectId string) ApiDeleteAlertgroupsRequest { + return ApiDeleteAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) DeleteAlertgroupsExecute(r ApiDeleteAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.groupName == nil { + return localVarReturnValue, reportError("groupName is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "groupName", r.groupName, "form", "csv") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertruleRequest struct { + ctx context.Context + ApiService DefaultAPI + alertName string + groupName string + instanceId string + projectId string +} + +func (r ApiDeleteAlertruleRequest) Execute() (*AlertRulesResponse, error) { + return r.ApiService.DeleteAlertruleExecute(r) +} + +/* +DeleteAlertrule Method for DeleteAlertrule + +Delete alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertName + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertruleRequest +*/ +func (a *DefaultAPIService) DeleteAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiDeleteAlertruleRequest { + return ApiDeleteAlertruleRequest{ + ApiService: a, + ctx: ctx, + alertName: alertName, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRulesResponse +func (a *DefaultAPIService) DeleteAlertruleExecute(r ApiDeleteAlertruleRequest) (*AlertRulesResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertrule") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules/{alertName}" + localVarPath = strings.Replace(localVarPath, "{"+"alertName"+"}", url.PathEscape(parameterValueToString(r.alertName, "alertName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteAlertrulesRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + alertName *[]string +} + +// Name of the alert rules that should be deleted +func (r ApiDeleteAlertrulesRequest) AlertName(alertName []string) ApiDeleteAlertrulesRequest { + r.alertName = &alertName + return r +} + +func (r ApiDeleteAlertrulesRequest) Execute() (*AlertRulesResponse, error) { + return r.ApiService.DeleteAlertrulesExecute(r) +} + +/* +DeleteAlertrules Method for DeleteAlertrules + +Delete alert rules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteAlertrulesRequest +*/ +func (a *DefaultAPIService) DeleteAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertrulesRequest { + return ApiDeleteAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRulesResponse +func (a *DefaultAPIService) DeleteAlertrulesExecute(r ApiDeleteAlertrulesRequest) (*AlertRulesResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteAlertrules") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.alertName == nil { + return localVarReturnValue, reportError("alertName is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "alertName", r.alertName, "form", "csv") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteCertCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + id string +} + +func (r ApiDeleteCertCheckRequest) Execute() (*CertCheckResponse, error) { + return r.ApiService.DeleteCertCheckExecute(r) +} + +/* +DeleteCertCheck Method for DeleteCertCheck + +Delete cert check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param id + @return ApiDeleteCertCheckRequest +*/ +func (a *DefaultAPIService) DeleteCertCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteCertCheckRequest { + return ApiDeleteCertCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + id: id, + } +} + +// Execute executes the request +// +// @return CertCheckResponse +func (a *DefaultAPIService) DeleteCertCheckExecute(r ApiDeleteCertCheckRequest) (*CertCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteCertCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/cert-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + username string +} + +func (r ApiDeleteCredentialsRequest) Execute() (*Message, error) { + return r.ApiService.DeleteCredentialsExecute(r) +} + +/* +DeleteCredentials Method for DeleteCredentials + +Delete technical credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiDeleteCredentialsRequest +*/ +func (a *DefaultAPIService) DeleteCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRequest { + return ApiDeleteCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteCredentials") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"username"+"}", url.PathEscape(parameterValueToString(r.username, "username")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteCredentialsRemoteWriteConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + username string +} + +func (r ApiDeleteCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWriteDeleteResponse, error) { + return r.ApiService.DeleteCredentialsRemoteWriteConfigExecute(r) +} + +/* +DeleteCredentialsRemoteWriteConfig Method for DeleteCredentialsRemoteWriteConfig + +Delete remote write config for credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiDeleteCredentialsRemoteWriteConfigRequest +*/ +func (a *DefaultAPIService) DeleteCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRemoteWriteConfigRequest { + return ApiDeleteCredentialsRemoteWriteConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// Execute executes the request +// +// @return CredentialsRemoteWriteDeleteResponse +func (a *DefaultAPIService) DeleteCredentialsRemoteWriteConfigExecute(r ApiDeleteCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteDeleteResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialsRemoteWriteDeleteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteCredentialsRemoteWriteConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}/remote-write-limits" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"username"+"}", url.PathEscape(parameterValueToString(r.username, "username")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteElasticsearchCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeleteElasticsearchCheckRequest) Execute() (*ElasticsearchCheckResponse, error) { + return r.ApiService.DeleteElasticsearchCheckExecute(r) +} + +/* +DeleteElasticsearchCheck Method for DeleteElasticsearchCheck + +Delete elasticsearch check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteElasticsearchCheckRequest +*/ +func (a *DefaultAPIService) DeleteElasticsearchCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteElasticsearchCheckRequest { + return ApiDeleteElasticsearchCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ElasticsearchCheckResponse +func (a *DefaultAPIService) DeleteElasticsearchCheckExecute(r ApiDeleteElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ElasticsearchCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteElasticsearchCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/elasticsearch-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteHttpCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + id string +} + +func (r ApiDeleteHttpCheckRequest) Execute() (*HttpCheckResponse, error) { + return r.ApiService.DeleteHttpCheckExecute(r) +} + +/* +DeleteHttpCheck Method for DeleteHttpCheck + +Delete http check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param id + @return ApiDeleteHttpCheckRequest +*/ +func (a *DefaultAPIService) DeleteHttpCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteHttpCheckRequest { + return ApiDeleteHttpCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + id: id, + } +} + +// Execute executes the request +// +// @return HttpCheckResponse +func (a *DefaultAPIService) DeleteHttpCheckExecute(r ApiDeleteHttpCheckRequest) (*HttpCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HttpCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteHttpCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/http-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiDeleteInstanceRequest) Execute() (*InstanceResponse, error) { + return r.ApiService.DeleteInstanceExecute(r) +} + +/* +DeleteInstance Method for DeleteInstance + +Delete instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiDeleteInstanceRequest +*/ +func (a *DefaultAPIService) DeleteInstance(ctx context.Context, instanceId string, projectId string) ApiDeleteInstanceRequest { + return ApiDeleteInstanceRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return InstanceResponse +func (a *DefaultAPIService) DeleteInstanceExecute(r ApiDeleteInstanceRequest) (*InstanceResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteInstance") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteLogsAlertgroupRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string +} + +func (r ApiDeleteLogsAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.DeleteLogsAlertgroupExecute(r) +} + +/* +DeleteLogsAlertgroup Method for DeleteLogsAlertgroup + +Delete logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiDeleteLogsAlertgroupRequest +*/ +func (a *DefaultAPIService) DeleteLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteLogsAlertgroupRequest { + return ApiDeleteLogsAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) DeleteLogsAlertgroupExecute(r ApiDeleteLogsAlertgroupRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteLogsAlertgroup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups/{groupName}" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteMongodbCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeleteMongodbCheckRequest) Execute() (*MongodbCheckResponse, error) { + return r.ApiService.DeleteMongodbCheckExecute(r) +} + +/* +DeleteMongodbCheck Method for DeleteMongodbCheck + +Delete mongodb check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteMongodbCheckRequest +*/ +func (a *DefaultAPIService) DeleteMongodbCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMongodbCheckRequest { + return ApiDeleteMongodbCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MongodbCheckResponse +func (a *DefaultAPIService) DeleteMongodbCheckExecute(r ApiDeleteMongodbCheckRequest) (*MongodbCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MongodbCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteMongodbCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/mongodb-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteMysqlCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeleteMysqlCheckRequest) Execute() (*MysqlCheckResponse, error) { + return r.ApiService.DeleteMysqlCheckExecute(r) +} + +/* +DeleteMysqlCheck Method for DeleteMysqlCheck + +Delete mysql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteMysqlCheckRequest +*/ +func (a *DefaultAPIService) DeleteMysqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMysqlCheckRequest { + return ApiDeleteMysqlCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MysqlCheckResponse +func (a *DefaultAPIService) DeleteMysqlCheckExecute(r ApiDeleteMysqlCheckRequest) (*MysqlCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MysqlCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteMysqlCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/mysql-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteNetworkCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeleteNetworkCheckRequest) Execute() (*NetworkCheckResponse, error) { + return r.ApiService.DeleteNetworkCheckExecute(r) +} + +/* +DeleteNetworkCheck Method for DeleteNetworkCheck + +Delete network check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteNetworkCheckRequest +*/ +func (a *DefaultAPIService) DeleteNetworkCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteNetworkCheckRequest { + return ApiDeleteNetworkCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return NetworkCheckResponse +func (a *DefaultAPIService) DeleteNetworkCheckExecute(r ApiDeleteNetworkCheckRequest) (*NetworkCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteNetworkCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/network-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeletePingCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeletePingCheckRequest) Execute() (*PingCheckResponse, error) { + return r.ApiService.DeletePingCheckExecute(r) +} + +/* +DeletePingCheck Method for DeletePingCheck + +Delete ping check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeletePingCheckRequest +*/ +func (a *DefaultAPIService) DeletePingCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePingCheckRequest { + return ApiDeletePingCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PingCheckResponse +func (a *DefaultAPIService) DeletePingCheckExecute(r ApiDeletePingCheckRequest) (*PingCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PingCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeletePingCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/ping-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeletePostgresqlCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeletePostgresqlCheckRequest) Execute() (*PostgresqlCheckResponse, error) { + return r.ApiService.DeletePostgresqlCheckExecute(r) +} + +/* +DeletePostgresqlCheck Method for DeletePostgresqlCheck + +Delete postgresql check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeletePostgresqlCheckRequest +*/ +func (a *DefaultAPIService) DeletePostgresqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePostgresqlCheckRequest { + return ApiDeletePostgresqlCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PostgresqlCheckResponse +func (a *DefaultAPIService) DeletePostgresqlCheckExecute(r ApiDeletePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeletePostgresqlCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/postgresql-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteRabbitmqCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeleteRabbitmqCheckRequest) Execute() (*RabbitmqCheckResponse, error) { + return r.ApiService.DeleteRabbitmqCheckExecute(r) +} + +/* +DeleteRabbitmqCheck Method for DeleteRabbitmqCheck + +Delete rabbitmq check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteRabbitmqCheckRequest +*/ +func (a *DefaultAPIService) DeleteRabbitmqCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRabbitmqCheckRequest { + return ApiDeleteRabbitmqCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return RabbitmqCheckResponse +func (a *DefaultAPIService) DeleteRabbitmqCheckExecute(r ApiDeleteRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RabbitmqCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteRabbitmqCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/rabbitmq-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteRedisCheckRequest struct { + ctx context.Context + ApiService DefaultAPI + id string + instanceId string + projectId string +} + +func (r ApiDeleteRedisCheckRequest) Execute() (*RedisCheckResponse, error) { + return r.ApiService.DeleteRedisCheckExecute(r) +} + +/* +DeleteRedisCheck Method for DeleteRedisCheck + +Delete redis check. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @param instanceId + @param projectId + @return ApiDeleteRedisCheckRequest +*/ +func (a *DefaultAPIService) DeleteRedisCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRedisCheckRequest { + return ApiDeleteRedisCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return RedisCheckResponse +func (a *DefaultAPIService) DeleteRedisCheckExecute(r ApiDeleteRedisCheckRequest) (*RedisCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RedisCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteRedisCheck") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/redis-checks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteScrapeConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + jobName string + projectId string +} + +func (r ApiDeleteScrapeConfigRequest) Execute() (*DeleteScrapeConfigResponse, error) { + return r.ApiService.DeleteScrapeConfigExecute(r) +} + +/* +DeleteScrapeConfig Method for DeleteScrapeConfig + +Delete scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param jobName + @param projectId + @return ApiDeleteScrapeConfigRequest +*/ +func (a *DefaultAPIService) DeleteScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiDeleteScrapeConfigRequest { + return ApiDeleteScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + jobName: jobName, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return DeleteScrapeConfigResponse +func (a *DefaultAPIService) DeleteScrapeConfigExecute(r ApiDeleteScrapeConfigRequest) (*DeleteScrapeConfigResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteScrapeConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteScrapeConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"jobName"+"}", url.PathEscape(parameterValueToString(r.jobName, "jobName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteScrapeConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + jobName *[]string +} + +// Name of the jobs that should be deleted +func (r ApiDeleteScrapeConfigsRequest) JobName(jobName []string) ApiDeleteScrapeConfigsRequest { + r.jobName = &jobName + return r +} + +func (r ApiDeleteScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, error) { + return r.ApiService.DeleteScrapeConfigsExecute(r) +} + +/* +DeleteScrapeConfigs Method for DeleteScrapeConfigs + +Delete scrape configs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiDeleteScrapeConfigsRequest +*/ +func (a *DefaultAPIService) DeleteScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiDeleteScrapeConfigsRequest { + return ApiDeleteScrapeConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ScrapeConfigsResponse +func (a *DefaultAPIService) DeleteScrapeConfigsExecute(r ApiDeleteScrapeConfigsRequest) (*ScrapeConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScrapeConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteScrapeConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.jobName == nil { + return localVarReturnValue, reportError("jobName is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "jobName", r.jobName, "form", "csv") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetAlertConfigReceiverRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + receiver string +} + +func (r ApiGetAlertConfigReceiverRequest) Execute() (*Receiver, error) { + return r.ApiService.GetAlertConfigReceiverExecute(r) +} + +/* +GetAlertConfigReceiver Method for GetAlertConfigReceiver + +Get alert config receivers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiGetAlertConfigReceiverRequest +*/ +func (a *DefaultAPIService) GetAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigReceiverRequest { + return ApiGetAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// Execute executes the request +// +// @return Receiver +func (a *DefaultAPIService) GetAlertConfigReceiverExecute(r ApiGetAlertConfigReceiverRequest) (*Receiver, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Receiver + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAlertConfigReceiver") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers/{receiver}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"receiver"+"}", url.PathEscape(parameterValueToString(r.receiver, "receiver")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetAlertConfigRouteRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + receiver string +} + +func (r ApiGetAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { + return r.ApiService.GetAlertConfigRouteExecute(r) +} + +/* +GetAlertConfigRoute Method for GetAlertConfigRoute + +Get alert receiver for route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiGetAlertConfigRouteRequest +*/ +func (a *DefaultAPIService) GetAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigRouteRequest { + return ApiGetAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// Execute executes the request +// +// @return AlertConfigRouteResponse +func (a *DefaultAPIService) GetAlertConfigRouteExecute(r ApiGetAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigRouteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAlertConfigRoute") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes/{receiver}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"receiver"+"}", url.PathEscape(parameterValueToString(r.receiver, "receiver")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetAlertConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetAlertConfigsRequest) Execute() (*GetAlertConfigsResponse, error) { + return r.ApiService.GetAlertConfigsExecute(r) +} + +/* +GetAlertConfigs Method for GetAlertConfigs + +Get alert config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetAlertConfigsRequest +*/ +func (a *DefaultAPIService) GetAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiGetAlertConfigsRequest { + return ApiGetAlertConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return GetAlertConfigsResponse +func (a *DefaultAPIService) GetAlertConfigsExecute(r ApiGetAlertConfigsRequest) (*GetAlertConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAlertConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAlertConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetAlertRecordRequest struct { + ctx context.Context + ApiService DefaultAPI + alertRecord string + groupName string + instanceId string + projectId string +} + +func (r ApiGetAlertRecordRequest) Execute() (*AlertRecordResponse, error) { + return r.ApiService.GetAlertRecordExecute(r) +} + +/* +GetAlertRecord Method for GetAlertRecord + +Get alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertRecord + @param groupName + @param instanceId + @param projectId + @return ApiGetAlertRecordRequest +*/ +func (a *DefaultAPIService) GetAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiGetAlertRecordRequest { + return ApiGetAlertRecordRequest{ + ApiService: a, + ctx: ctx, + alertRecord: alertRecord, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordResponse +func (a *DefaultAPIService) GetAlertRecordExecute(r ApiGetAlertRecordRequest) (*AlertRecordResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAlertRecord") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records/{alertRecord}" + localVarPath = strings.Replace(localVarPath, "{"+"alertRecord"+"}", url.PathEscape(parameterValueToString(r.alertRecord, "alertRecord")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetAlertgroupRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string +} + +func (r ApiGetAlertgroupRequest) Execute() (*AlertGroupResponse, error) { + return r.ApiService.GetAlertgroupExecute(r) +} + +/* +GetAlertgroup Method for GetAlertgroup + +Get alert group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiGetAlertgroupRequest +*/ +func (a *DefaultAPIService) GetAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetAlertgroupRequest { + return ApiGetAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupResponse +func (a *DefaultAPIService) GetAlertgroupExecute(r ApiGetAlertgroupRequest) (*AlertGroupResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAlertgroup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetAlertruleRequest struct { + ctx context.Context + ApiService DefaultAPI + alertName string + groupName string + instanceId string + projectId string +} + +func (r ApiGetAlertruleRequest) Execute() (*AlertRuleResponse, error) { + return r.ApiService.GetAlertruleExecute(r) +} + +/* +GetAlertrule Method for GetAlertrule + +Get alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertName + @param groupName + @param instanceId + @param projectId + @return ApiGetAlertruleRequest +*/ +func (a *DefaultAPIService) GetAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiGetAlertruleRequest { + return ApiGetAlertruleRequest{ + ApiService: a, + ctx: ctx, + alertName: alertName, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRuleResponse +func (a *DefaultAPIService) GetAlertruleExecute(r ApiGetAlertruleRequest) (*AlertRuleResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRuleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAlertrule") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules/{alertName}" + localVarPath = strings.Replace(localVarPath, "{"+"alertName"+"}", url.PathEscape(parameterValueToString(r.alertName, "alertName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + username string +} + +func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { + return r.ApiService.GetCredentialsExecute(r) +} + +/* +GetCredentials Method for GetCredentials + +Get single technical credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiGetCredentialsRequest +*/ +func (a *DefaultAPIService) GetCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRequest { + return ApiGetCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// Execute executes the request +// +// @return GetCredentialsResponse +func (a *DefaultAPIService) GetCredentialsExecute(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCredentialsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetCredentials") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"username"+"}", url.PathEscape(parameterValueToString(r.username, "username")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetCredentialsRemoteWriteConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + username string +} + +func (r ApiGetCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWriteConfig, error) { + return r.ApiService.GetCredentialsRemoteWriteConfigExecute(r) +} + +/* +GetCredentialsRemoteWriteConfig Method for GetCredentialsRemoteWriteConfig + +Get remote write config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiGetCredentialsRemoteWriteConfigRequest +*/ +func (a *DefaultAPIService) GetCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRemoteWriteConfigRequest { + return ApiGetCredentialsRemoteWriteConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// Execute executes the request +// +// @return CredentialsRemoteWriteConfig +func (a *DefaultAPIService) GetCredentialsRemoteWriteConfigExecute(r ApiGetCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialsRemoteWriteConfig + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetCredentialsRemoteWriteConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}/remote-write-limits" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"username"+"}", url.PathEscape(parameterValueToString(r.username, "username")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetGrafanaConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetGrafanaConfigsRequest) Execute() (*GrafanaConfigs, error) { + return r.ApiService.GetGrafanaConfigsExecute(r) +} + +/* +GetGrafanaConfigs Method for GetGrafanaConfigs + +Get grafana config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetGrafanaConfigsRequest +*/ +func (a *DefaultAPIService) GetGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiGetGrafanaConfigsRequest { + return ApiGetGrafanaConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return GrafanaConfigs +func (a *DefaultAPIService) GetGrafanaConfigsExecute(r ApiGetGrafanaConfigsRequest) (*GrafanaConfigs, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GrafanaConfigs + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetGrafanaConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/grafana-configs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error) { + return r.ApiService.GetInstanceExecute(r) +} + +/* +GetInstance Method for GetInstance + +Get instance information. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetInstanceRequest +*/ +func (a *DefaultAPIService) GetInstance(ctx context.Context, instanceId string, projectId string) ApiGetInstanceRequest { + return ApiGetInstanceRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return GetInstanceResponse +func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*GetInstanceResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetInstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetInstance") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetLogsAlertgroupRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string +} + +func (r ApiGetLogsAlertgroupRequest) Execute() (*AlertGroupResponse, error) { + return r.ApiService.GetLogsAlertgroupExecute(r) +} + +/* +GetLogsAlertgroup Method for GetLogsAlertgroup + +Get logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiGetLogsAlertgroupRequest +*/ +func (a *DefaultAPIService) GetLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetLogsAlertgroupRequest { + return ApiGetLogsAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupResponse +func (a *DefaultAPIService) GetLogsAlertgroupExecute(r ApiGetLogsAlertgroupRequest) (*AlertGroupResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetLogsAlertgroup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups/{groupName}" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetLogsConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetLogsConfigsRequest) Execute() (*LogsConfigResponse, error) { + return r.ApiService.GetLogsConfigsExecute(r) +} + +/* +GetLogsConfigs Method for GetLogsConfigs + +Get logs configuration. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetLogsConfigsRequest +*/ +func (a *DefaultAPIService) GetLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiGetLogsConfigsRequest { + return ApiGetLogsConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return LogsConfigResponse +func (a *DefaultAPIService) GetLogsConfigsExecute(r ApiGetLogsConfigsRequest) (*LogsConfigResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LogsConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetLogsConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-configs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetMetricsStorageRetentionRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetMetricsStorageRetentionRequest) Execute() (*GetMetricsStorageRetentionResponse, error) { + return r.ApiService.GetMetricsStorageRetentionExecute(r) +} + +/* +GetMetricsStorageRetention Method for GetMetricsStorageRetention + +Get metric storage retention time. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetMetricsStorageRetentionRequest +*/ +func (a *DefaultAPIService) GetMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiGetMetricsStorageRetentionRequest { + return ApiGetMetricsStorageRetentionRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return GetMetricsStorageRetentionResponse +func (a *DefaultAPIService) GetMetricsStorageRetentionExecute(r ApiGetMetricsStorageRetentionRequest) (*GetMetricsStorageRetentionResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetMetricsStorageRetentionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetMetricsStorageRetention") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/metrics-storage-retentions" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetScrapeConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + jobName string + projectId string +} + +func (r ApiGetScrapeConfigRequest) Execute() (*GetScrapeConfigResponse, error) { + return r.ApiService.GetScrapeConfigExecute(r) +} + +/* +GetScrapeConfig Method for GetScrapeConfig + +Get scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param jobName + @param projectId + @return ApiGetScrapeConfigRequest +*/ +func (a *DefaultAPIService) GetScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiGetScrapeConfigRequest { + return ApiGetScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + jobName: jobName, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return GetScrapeConfigResponse +func (a *DefaultAPIService) GetScrapeConfigExecute(r ApiGetScrapeConfigRequest) (*GetScrapeConfigResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetScrapeConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetScrapeConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"jobName"+"}", url.PathEscape(parameterValueToString(r.jobName, "jobName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetTracesConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetTracesConfigsRequest) Execute() (*TracesConfigResponse, error) { + return r.ApiService.GetTracesConfigsExecute(r) +} + +/* +GetTracesConfigs Method for GetTracesConfigs + +Get traces config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiGetTracesConfigsRequest +*/ +func (a *DefaultAPIService) GetTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiGetTracesConfigsRequest { + return ApiGetTracesConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return TracesConfigResponse +func (a *DefaultAPIService) GetTracesConfigsExecute(r ApiGetTracesConfigsRequest) (*TracesConfigResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TracesConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTracesConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/traces-configs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListACLRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListACLRequest) Execute() (*ListACLResponse, error) { + return r.ApiService.ListACLExecute(r) +} + +/* +ListACL Method for ListACL + +Get acl for instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListACLRequest +*/ +func (a *DefaultAPIService) ListACL(ctx context.Context, instanceId string, projectId string) ApiListACLRequest { + return ApiListACLRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListACLResponse +func (a *DefaultAPIService) ListACLExecute(r ApiListACLRequest) (*ListACLResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListACLResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListACL") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/acl" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListAlertConfigReceiversRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListAlertConfigReceiversRequest) Execute() (*AlertConfigReceiversResponse, error) { + return r.ApiService.ListAlertConfigReceiversExecute(r) +} + +/* +ListAlertConfigReceivers Method for ListAlertConfigReceivers + +Get alert config receivers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListAlertConfigReceiversRequest +*/ +func (a *DefaultAPIService) ListAlertConfigReceivers(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigReceiversRequest { + return ApiListAlertConfigReceiversRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertConfigReceiversResponse +func (a *DefaultAPIService) ListAlertConfigReceiversExecute(r ApiListAlertConfigReceiversRequest) (*AlertConfigReceiversResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigReceiversResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListAlertConfigReceivers") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListAlertConfigRoutesRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListAlertConfigRoutesRequest) Execute() (*AlertConfigRouteResponse, error) { + return r.ApiService.ListAlertConfigRoutesExecute(r) +} + +/* +ListAlertConfigRoutes Method for ListAlertConfigRoutes + +Get alert config route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListAlertConfigRoutesRequest +*/ +func (a *DefaultAPIService) ListAlertConfigRoutes(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigRoutesRequest { + return ApiListAlertConfigRoutesRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertConfigRouteResponse +func (a *DefaultAPIService) ListAlertConfigRoutesExecute(r ApiListAlertConfigRoutesRequest) (*AlertConfigRouteResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigRouteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListAlertConfigRoutes") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListAlertRecordsRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string +} + +func (r ApiListAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { + return r.ApiService.ListAlertRecordsExecute(r) +} + +/* +ListAlertRecords Method for ListAlertRecords + +Get alert records. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiListAlertRecordsRequest +*/ +func (a *DefaultAPIService) ListAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertRecordsRequest { + return ApiListAlertRecordsRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordsResponse +func (a *DefaultAPIService) ListAlertRecordsExecute(r ApiListAlertRecordsRequest) (*AlertRecordsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListAlertRecords") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.ListAlertgroupsExecute(r) +} + +/* +ListAlertgroups Method for ListAlertgroups + +Get alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListAlertgroupsRequest +*/ +func (a *DefaultAPIService) ListAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListAlertgroupsRequest { + return ApiListAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) ListAlertgroupsExecute(r ApiListAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListAlertrulesRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string +} + +func (r ApiListAlertrulesRequest) Execute() (*AlertRulesResponse, error) { + return r.ApiService.ListAlertrulesExecute(r) +} + +/* +ListAlertrules Method for ListAlertrules + +Get alert rules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiListAlertrulesRequest +*/ +func (a *DefaultAPIService) ListAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertrulesRequest { + return ApiListAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRulesResponse +func (a *DefaultAPIService) ListAlertrulesExecute(r ApiListAlertrulesRequest) (*AlertRulesResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListAlertrules") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListBackupRetentionsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListBackupRetentionsRequest) Execute() (*BackupRetentionResponse, error) { + return r.ApiService.ListBackupRetentionsExecute(r) +} + +/* +ListBackupRetentions Method for ListBackupRetentions + +Get backup retention. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListBackupRetentionsRequest +*/ +func (a *DefaultAPIService) ListBackupRetentions(ctx context.Context, instanceId string, projectId string) ApiListBackupRetentionsRequest { + return ApiListBackupRetentionsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return BackupRetentionResponse +func (a *DefaultAPIService) ListBackupRetentionsExecute(r ApiListBackupRetentionsRequest) (*BackupRetentionResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BackupRetentionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListBackupRetentions") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backup-retentions" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListBackupSchedulesRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + backupTarget *[]string +} + +// List of backup targets +func (r ApiListBackupSchedulesRequest) BackupTarget(backupTarget []string) ApiListBackupSchedulesRequest { + r.backupTarget = &backupTarget + return r +} + +func (r ApiListBackupSchedulesRequest) Execute() (*BackupScheduleResponse, error) { + return r.ApiService.ListBackupSchedulesExecute(r) +} + +/* +ListBackupSchedules Method for ListBackupSchedules + +Get backup schedules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListBackupSchedulesRequest +*/ +func (a *DefaultAPIService) ListBackupSchedules(ctx context.Context, instanceId string, projectId string) ApiListBackupSchedulesRequest { + return ApiListBackupSchedulesRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return BackupScheduleResponse +func (a *DefaultAPIService) ListBackupSchedulesExecute(r ApiListBackupSchedulesRequest) (*BackupScheduleResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BackupScheduleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListBackupSchedules") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backup-schedules" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.backupTarget != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "backupTarget", r.backupTarget, "form", "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListBackupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + backupTarget *[]string +} + +// List of backup targets +func (r ApiListBackupsRequest) BackupTarget(backupTarget []string) ApiListBackupsRequest { + r.backupTarget = &backupTarget + return r +} + +func (r ApiListBackupsRequest) Execute() (*BackupResponse, error) { + return r.ApiService.ListBackupsExecute(r) +} + +/* +ListBackups Method for ListBackups + +Get backups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListBackupsRequest +*/ +func (a *DefaultAPIService) ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest { + return ApiListBackupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return BackupResponse +func (a *DefaultAPIService) ListBackupsExecute(r ApiListBackupsRequest) (*BackupResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BackupResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListBackups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.backupTarget != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "backupTarget", r.backupTarget, "form", "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListCertChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListCertChecksRequest) Execute() (*CertCheckResponse, error) { + return r.ApiService.ListCertChecksExecute(r) +} + +/* +ListCertChecks Method for ListCertChecks + +Get all cert checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListCertChecksRequest +*/ +func (a *DefaultAPIService) ListCertChecks(ctx context.Context, instanceId string, projectId string) ApiListCertChecksRequest { + return ApiListCertChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CertCheckResponse +func (a *DefaultAPIService) ListCertChecksExecute(r ApiListCertChecksRequest) (*CertCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListCertChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/cert-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { + return r.ApiService.ListCredentialsExecute(r) +} + +/* +ListCredentials Method for ListCredentials + +Get all technical user credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListCredentialsRequest +*/ +func (a *DefaultAPIService) ListCredentials(ctx context.Context, instanceId string, projectId string) ApiListCredentialsRequest { + return ApiListCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListCredentialsResponse +func (a *DefaultAPIService) ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListCredentialsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListCredentials") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListElasticsearchChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListElasticsearchChecksRequest) Execute() (*ElasticsearchCheckResponse, error) { + return r.ApiService.ListElasticsearchChecksExecute(r) +} + +/* +ListElasticsearchChecks Method for ListElasticsearchChecks + +Get all elasticsearch checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListElasticsearchChecksRequest +*/ +func (a *DefaultAPIService) ListElasticsearchChecks(ctx context.Context, instanceId string, projectId string) ApiListElasticsearchChecksRequest { + return ApiListElasticsearchChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ElasticsearchCheckResponse +func (a *DefaultAPIService) ListElasticsearchChecksExecute(r ApiListElasticsearchChecksRequest) (*ElasticsearchCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ElasticsearchCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListElasticsearchChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/elasticsearch-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListHttpChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListHttpChecksRequest) Execute() (*HttpCheckResponse, error) { + return r.ApiService.ListHttpChecksExecute(r) +} + +/* +ListHttpChecks Method for ListHttpChecks + +Get all http checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListHttpChecksRequest +*/ +func (a *DefaultAPIService) ListHttpChecks(ctx context.Context, instanceId string, projectId string) ApiListHttpChecksRequest { + return ApiListHttpChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return HttpCheckResponse +func (a *DefaultAPIService) ListHttpChecksExecute(r ApiListHttpChecksRequest) (*HttpCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HttpCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListHttpChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/http-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListInstancesRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { + return r.ApiService.ListInstancesExecute(r) +} + +/* +ListInstances Method for ListInstances + +Get all instances for a project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListInstancesRequest +*/ +func (a *DefaultAPIService) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest { + return ApiListInstancesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListInstancesResponse +func (a *DefaultAPIService) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListInstancesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListInstances") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListLogsAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListLogsAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.ListLogsAlertgroupsExecute(r) +} + +/* +ListLogsAlertgroups Method for ListLogsAlertgroups + +Get logs alert groups config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListLogsAlertgroupsRequest +*/ +func (a *DefaultAPIService) ListLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListLogsAlertgroupsRequest { + return ApiListLogsAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) ListLogsAlertgroupsExecute(r ApiListLogsAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListLogsAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListMongodbChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListMongodbChecksRequest) Execute() (*MongodbCheckResponse, error) { + return r.ApiService.ListMongodbChecksExecute(r) +} + +/* +ListMongodbChecks Method for ListMongodbChecks + +Get all mongodb checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListMongodbChecksRequest +*/ +func (a *DefaultAPIService) ListMongodbChecks(ctx context.Context, instanceId string, projectId string) ApiListMongodbChecksRequest { + return ApiListMongodbChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MongodbCheckResponse +func (a *DefaultAPIService) ListMongodbChecksExecute(r ApiListMongodbChecksRequest) (*MongodbCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MongodbCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListMongodbChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/mongodb-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListMysqlChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListMysqlChecksRequest) Execute() (*MysqlCheckResponse, error) { + return r.ApiService.ListMysqlChecksExecute(r) +} + +/* +ListMysqlChecks Method for ListMysqlChecks + +Get all mysql checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListMysqlChecksRequest +*/ +func (a *DefaultAPIService) ListMysqlChecks(ctx context.Context, instanceId string, projectId string) ApiListMysqlChecksRequest { + return ApiListMysqlChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MysqlCheckResponse +func (a *DefaultAPIService) ListMysqlChecksExecute(r ApiListMysqlChecksRequest) (*MysqlCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MysqlCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListMysqlChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/mysql-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListNetworkChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListNetworkChecksRequest) Execute() (*NetworkCheckResponse, error) { + return r.ApiService.ListNetworkChecksExecute(r) +} + +/* +ListNetworkChecks Method for ListNetworkChecks + +Get all network checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListNetworkChecksRequest +*/ +func (a *DefaultAPIService) ListNetworkChecks(ctx context.Context, instanceId string, projectId string) ApiListNetworkChecksRequest { + return ApiListNetworkChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return NetworkCheckResponse +func (a *DefaultAPIService) ListNetworkChecksExecute(r ApiListNetworkChecksRequest) (*NetworkCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListNetworkChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/network-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListOfferingsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiListOfferingsRequest) Execute() (*Offerings, error) { + return r.ApiService.ListOfferingsExecute(r) +} + +/* +ListOfferings Method for ListOfferings + +Get all plans. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListOfferingsRequest +*/ +func (a *DefaultAPIService) ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest { + return ApiListOfferingsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Offerings +func (a *DefaultAPIService) ListOfferingsExecute(r ApiListOfferingsRequest) (*Offerings, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Offerings + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListOfferings") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/offerings" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListPingChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListPingChecksRequest) Execute() (*PingCheckResponse, error) { + return r.ApiService.ListPingChecksExecute(r) +} + +/* +ListPingChecks Method for ListPingChecks + +Get all ping checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListPingChecksRequest +*/ +func (a *DefaultAPIService) ListPingChecks(ctx context.Context, instanceId string, projectId string) ApiListPingChecksRequest { + return ApiListPingChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PingCheckResponse +func (a *DefaultAPIService) ListPingChecksExecute(r ApiListPingChecksRequest) (*PingCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PingCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListPingChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/ping-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListPlansRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiListPlansRequest) Execute() (*PlansResponse, error) { + return r.ApiService.ListPlansExecute(r) +} + +/* +ListPlans Method for ListPlans + +Get all plans. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListPlansRequest +*/ +func (a *DefaultAPIService) ListPlans(ctx context.Context, projectId string) ApiListPlansRequest { + return ApiListPlansRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PlansResponse +func (a *DefaultAPIService) ListPlansExecute(r ApiListPlansRequest) (*PlansResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PlansResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListPlans") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/plans" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListPostgresqlChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListPostgresqlChecksRequest) Execute() (*PostgresqlCheckResponse, error) { + return r.ApiService.ListPostgresqlChecksExecute(r) +} + +/* +ListPostgresqlChecks Method for ListPostgresqlChecks + +Get all postgresql checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListPostgresqlChecksRequest +*/ +func (a *DefaultAPIService) ListPostgresqlChecks(ctx context.Context, instanceId string, projectId string) ApiListPostgresqlChecksRequest { + return ApiListPostgresqlChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return PostgresqlCheckResponse +func (a *DefaultAPIService) ListPostgresqlChecksExecute(r ApiListPostgresqlChecksRequest) (*PostgresqlCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListPostgresqlChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/postgresql-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListRabbitmqChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListRabbitmqChecksRequest) Execute() (*RabbitmqCheckResponse, error) { + return r.ApiService.ListRabbitmqChecksExecute(r) +} + +/* +ListRabbitmqChecks Method for ListRabbitmqChecks + +Get all rabbitmq checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListRabbitmqChecksRequest +*/ +func (a *DefaultAPIService) ListRabbitmqChecks(ctx context.Context, instanceId string, projectId string) ApiListRabbitmqChecksRequest { + return ApiListRabbitmqChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return RabbitmqCheckResponse +func (a *DefaultAPIService) ListRabbitmqChecksExecute(r ApiListRabbitmqChecksRequest) (*RabbitmqCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RabbitmqCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListRabbitmqChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/rabbitmq-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListRedisChecksRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListRedisChecksRequest) Execute() (*RedisCheckResponse, error) { + return r.ApiService.ListRedisChecksExecute(r) +} + +/* +ListRedisChecks Method for ListRedisChecks + +Get all redis checks configured. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListRedisChecksRequest +*/ +func (a *DefaultAPIService) ListRedisChecks(ctx context.Context, instanceId string, projectId string) ApiListRedisChecksRequest { + return ApiListRedisChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return RedisCheckResponse +func (a *DefaultAPIService) ListRedisChecksExecute(r ApiListRedisChecksRequest) (*RedisCheckResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RedisCheckResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListRedisChecks") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/redis-checks" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListScrapeConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListScrapeConfigsRequest) Execute() (*ListScrapeConfigsResponse, error) { + return r.ApiService.ListScrapeConfigsExecute(r) +} + +/* +ListScrapeConfigs Method for ListScrapeConfigs + +Get scrape configs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiListScrapeConfigsRequest +*/ +func (a *DefaultAPIService) ListScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiListScrapeConfigsRequest { + return ApiListScrapeConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListScrapeConfigsResponse +func (a *DefaultAPIService) ListScrapeConfigsExecute(r ApiListScrapeConfigsRequest) (*ListScrapeConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListScrapeConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListScrapeConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiPartialUpdateAlertRecordsRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + partialUpdateAlertRecordsRequestInner *[]PartialUpdateAlertRecordsRequestInner +} + +func (r ApiPartialUpdateAlertRecordsRequest) PartialUpdateAlertRecordsRequestInner(partialUpdateAlertRecordsRequestInner []PartialUpdateAlertRecordsRequestInner) ApiPartialUpdateAlertRecordsRequest { + r.partialUpdateAlertRecordsRequestInner = &partialUpdateAlertRecordsRequestInner + return r +} + +func (r ApiPartialUpdateAlertRecordsRequest) Execute() (*AlertRecordsResponse, error) { + return r.ApiService.PartialUpdateAlertRecordsExecute(r) +} + +/* +PartialUpdateAlertRecords Method for PartialUpdateAlertRecords + +Patch alert records. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiPartialUpdateAlertRecordsRequest +*/ +func (a *DefaultAPIService) PartialUpdateAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertRecordsRequest { + return ApiPartialUpdateAlertRecordsRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordsResponse +func (a *DefaultAPIService) PartialUpdateAlertRecordsExecute(r ApiPartialUpdateAlertRecordsRequest) (*AlertRecordsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateAlertRecords") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.partialUpdateAlertRecordsRequestInner == nil { + return localVarReturnValue, reportError("partialUpdateAlertRecordsRequestInner is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.partialUpdateAlertRecordsRequestInner + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiPartialUpdateAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + partialUpdateAlertgroupsRequestInner *[]PartialUpdateAlertgroupsRequestInner +} + +func (r ApiPartialUpdateAlertgroupsRequest) PartialUpdateAlertgroupsRequestInner(partialUpdateAlertgroupsRequestInner []PartialUpdateAlertgroupsRequestInner) ApiPartialUpdateAlertgroupsRequest { + r.partialUpdateAlertgroupsRequestInner = &partialUpdateAlertgroupsRequestInner + return r +} + +func (r ApiPartialUpdateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.PartialUpdateAlertgroupsExecute(r) +} + +/* +PartialUpdateAlertgroups Method for PartialUpdateAlertgroups + +Patch alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiPartialUpdateAlertgroupsRequest +*/ +func (a *DefaultAPIService) PartialUpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateAlertgroupsRequest { + return ApiPartialUpdateAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) PartialUpdateAlertgroupsExecute(r ApiPartialUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.partialUpdateAlertgroupsRequestInner == nil { + return localVarReturnValue, reportError("partialUpdateAlertgroupsRequestInner is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.partialUpdateAlertgroupsRequestInner + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiPartialUpdateAlertrulesRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + partialUpdateAlertrulesRequestInner *[]PartialUpdateAlertrulesRequestInner +} + +func (r ApiPartialUpdateAlertrulesRequest) PartialUpdateAlertrulesRequestInner(partialUpdateAlertrulesRequestInner []PartialUpdateAlertrulesRequestInner) ApiPartialUpdateAlertrulesRequest { + r.partialUpdateAlertrulesRequestInner = &partialUpdateAlertrulesRequestInner + return r +} + +func (r ApiPartialUpdateAlertrulesRequest) Execute() (*AlertRulesResponse, error) { + return r.ApiService.PartialUpdateAlertrulesExecute(r) +} + +/* +PartialUpdateAlertrules Method for PartialUpdateAlertrules + +Patch alert rules. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiPartialUpdateAlertrulesRequest +*/ +func (a *DefaultAPIService) PartialUpdateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertrulesRequest { + return ApiPartialUpdateAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRulesResponse +func (a *DefaultAPIService) PartialUpdateAlertrulesExecute(r ApiPartialUpdateAlertrulesRequest) (*AlertRulesResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateAlertrules") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.partialUpdateAlertrulesRequestInner == nil { + return localVarReturnValue, reportError("partialUpdateAlertrulesRequestInner is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.partialUpdateAlertrulesRequestInner + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiPartialUpdateScrapeConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + partialUpdateScrapeConfigsRequestInner *[]PartialUpdateScrapeConfigsRequestInner +} + +func (r ApiPartialUpdateScrapeConfigsRequest) PartialUpdateScrapeConfigsRequestInner(partialUpdateScrapeConfigsRequestInner []PartialUpdateScrapeConfigsRequestInner) ApiPartialUpdateScrapeConfigsRequest { + r.partialUpdateScrapeConfigsRequestInner = &partialUpdateScrapeConfigsRequestInner + return r +} + +func (r ApiPartialUpdateScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, error) { + return r.ApiService.PartialUpdateScrapeConfigsExecute(r) +} + +/* +PartialUpdateScrapeConfigs Method for PartialUpdateScrapeConfigs + +Update scrape configs. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiPartialUpdateScrapeConfigsRequest +*/ +func (a *DefaultAPIService) PartialUpdateScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateScrapeConfigsRequest { + return ApiPartialUpdateScrapeConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ScrapeConfigsResponse +func (a *DefaultAPIService) PartialUpdateScrapeConfigsExecute(r ApiPartialUpdateScrapeConfigsRequest) (*ScrapeConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScrapeConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateScrapeConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.partialUpdateScrapeConfigsRequestInner == nil { + return localVarReturnValue, reportError("partialUpdateScrapeConfigsRequestInner is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.partialUpdateScrapeConfigsRequestInner + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiRestoreBackupRequest struct { + ctx context.Context + ApiService DefaultAPI + backupDate string + instanceId string + projectId string + restoreTarget *string +} + +// List of restore targets +func (r ApiRestoreBackupRequest) RestoreTarget(restoreTarget string) ApiRestoreBackupRequest { + r.restoreTarget = &restoreTarget + return r +} + +func (r ApiRestoreBackupRequest) Execute() (*Message, error) { + return r.ApiService.RestoreBackupExecute(r) +} + +/* +RestoreBackup Method for RestoreBackup + +Restore backup. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param backupDate + @param instanceId + @param projectId + @return ApiRestoreBackupRequest +*/ +func (a *DefaultAPIService) RestoreBackup(ctx context.Context, backupDate string, instanceId string, projectId string) ApiRestoreBackupRequest { + return ApiRestoreBackupRequest{ + ApiService: a, + ctx: ctx, + backupDate: backupDate, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) RestoreBackupExecute(r ApiRestoreBackupRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestoreBackup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backup-restores/{backupDate}" + localVarPath = strings.Replace(localVarPath, "{"+"backupDate"+"}", url.PathEscape(parameterValueToString(r.backupDate, "backupDate")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.restoreTarget == nil { + return localVarReturnValue, reportError("restoreTarget is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "restoreTarget", r.restoreTarget, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateACLRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateACLPayload *UpdateACLPayload +} + +func (r ApiUpdateACLRequest) UpdateACLPayload(updateACLPayload UpdateACLPayload) ApiUpdateACLRequest { + r.updateACLPayload = &updateACLPayload + return r +} + +func (r ApiUpdateACLRequest) Execute() (*Message, error) { + return r.ApiService.UpdateACLExecute(r) +} + +/* +UpdateACL Method for UpdateACL + +Update acl config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateACLRequest +*/ +func (a *DefaultAPIService) UpdateACL(ctx context.Context, instanceId string, projectId string) ApiUpdateACLRequest { + return ApiUpdateACLRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) UpdateACLExecute(r ApiUpdateACLRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateACL") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/acl" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateACLPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertConfigReceiverRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + receiver string + updateAlertConfigReceiverPayload *UpdateAlertConfigReceiverPayload +} + +func (r ApiUpdateAlertConfigReceiverRequest) UpdateAlertConfigReceiverPayload(updateAlertConfigReceiverPayload UpdateAlertConfigReceiverPayload) ApiUpdateAlertConfigReceiverRequest { + r.updateAlertConfigReceiverPayload = &updateAlertConfigReceiverPayload + return r +} + +func (r ApiUpdateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversResponse, error) { + return r.ApiService.UpdateAlertConfigReceiverExecute(r) +} + +/* +UpdateAlertConfigReceiver Method for UpdateAlertConfigReceiver + +Update alert config receiver. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiUpdateAlertConfigReceiverRequest +*/ +func (a *DefaultAPIService) UpdateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigReceiverRequest { + return ApiUpdateAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// Execute executes the request +// +// @return AlertConfigReceiversResponse +func (a *DefaultAPIService) UpdateAlertConfigReceiverExecute(r ApiUpdateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigReceiversResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertConfigReceiver") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers/{receiver}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"receiver"+"}", url.PathEscape(parameterValueToString(r.receiver, "receiver")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertConfigReceiverPayload == nil { + return localVarReturnValue, reportError("updateAlertConfigReceiverPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertConfigReceiverPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertConfigRouteRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + receiver string + updateAlertConfigRoutePayload *UpdateAlertConfigRoutePayload +} + +func (r ApiUpdateAlertConfigRouteRequest) UpdateAlertConfigRoutePayload(updateAlertConfigRoutePayload UpdateAlertConfigRoutePayload) ApiUpdateAlertConfigRouteRequest { + r.updateAlertConfigRoutePayload = &updateAlertConfigRoutePayload + return r +} + +func (r ApiUpdateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, error) { + return r.ApiService.UpdateAlertConfigRouteExecute(r) +} + +/* +UpdateAlertConfigRoute Method for UpdateAlertConfigRoute + +Update alert receiver for route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param receiver + @return ApiUpdateAlertConfigRouteRequest +*/ +func (a *DefaultAPIService) UpdateAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigRouteRequest { + return ApiUpdateAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// Execute executes the request +// +// @return AlertConfigRouteResponse +func (a *DefaultAPIService) UpdateAlertConfigRouteExecute(r ApiUpdateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertConfigRouteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertConfigRoute") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes/{receiver}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"receiver"+"}", url.PathEscape(parameterValueToString(r.receiver, "receiver")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertConfigRoutePayload == nil { + return localVarReturnValue, reportError("updateAlertConfigRoutePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertConfigRoutePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateAlertConfigsPayload *UpdateAlertConfigsPayload +} + +func (r ApiUpdateAlertConfigsRequest) UpdateAlertConfigsPayload(updateAlertConfigsPayload UpdateAlertConfigsPayload) ApiUpdateAlertConfigsRequest { + r.updateAlertConfigsPayload = &updateAlertConfigsPayload + return r +} + +func (r ApiUpdateAlertConfigsRequest) Execute() (*UpdateAlertConfigsResponse, error) { + return r.ApiService.UpdateAlertConfigsExecute(r) +} + +/* +UpdateAlertConfigs Method for UpdateAlertConfigs + +Update alert config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateAlertConfigsRequest +*/ +func (a *DefaultAPIService) UpdateAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertConfigsRequest { + return ApiUpdateAlertConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return UpdateAlertConfigsResponse +func (a *DefaultAPIService) UpdateAlertConfigsExecute(r ApiUpdateAlertConfigsRequest) (*UpdateAlertConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateAlertConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertconfigs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertConfigsPayload == nil { + return localVarReturnValue, reportError("updateAlertConfigsPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertConfigsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertRecordRequest struct { + ctx context.Context + ApiService DefaultAPI + alertRecord string + groupName string + instanceId string + projectId string + updateAlertRecordPayload *UpdateAlertRecordPayload +} + +func (r ApiUpdateAlertRecordRequest) UpdateAlertRecordPayload(updateAlertRecordPayload UpdateAlertRecordPayload) ApiUpdateAlertRecordRequest { + r.updateAlertRecordPayload = &updateAlertRecordPayload + return r +} + +func (r ApiUpdateAlertRecordRequest) Execute() (*AlertRecordsResponse, error) { + return r.ApiService.UpdateAlertRecordExecute(r) +} + +/* +UpdateAlertRecord Method for UpdateAlertRecord + +Update alert record. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertRecord + @param groupName + @param instanceId + @param projectId + @return ApiUpdateAlertRecordRequest +*/ +func (a *DefaultAPIService) UpdateAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiUpdateAlertRecordRequest { + return ApiUpdateAlertRecordRequest{ + ApiService: a, + ctx: ctx, + alertRecord: alertRecord, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRecordsResponse +func (a *DefaultAPIService) UpdateAlertRecordExecute(r ApiUpdateAlertRecordRequest) (*AlertRecordsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRecordsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertRecord") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records/{alertRecord}" + localVarPath = strings.Replace(localVarPath, "{"+"alertRecord"+"}", url.PathEscape(parameterValueToString(r.alertRecord, "alertRecord")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertRecordPayload == nil { + return localVarReturnValue, reportError("updateAlertRecordPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertRecordPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertgroupRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + updateAlertgroupPayload *UpdateAlertgroupPayload +} + +func (r ApiUpdateAlertgroupRequest) UpdateAlertgroupPayload(updateAlertgroupPayload UpdateAlertgroupPayload) ApiUpdateAlertgroupRequest { + r.updateAlertgroupPayload = &updateAlertgroupPayload + return r +} + +func (r ApiUpdateAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.UpdateAlertgroupExecute(r) +} + +/* +UpdateAlertgroup Method for UpdateAlertgroup + +Update alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiUpdateAlertgroupRequest +*/ +func (a *DefaultAPIService) UpdateAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateAlertgroupRequest { + return ApiUpdateAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) UpdateAlertgroupExecute(r ApiUpdateAlertgroupRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertgroup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertgroupPayload == nil { + return localVarReturnValue, reportError("updateAlertgroupPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertgroupPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertgroupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateAlertgroupsRequestInner *[]UpdateAlertgroupsRequestInner +} + +func (r ApiUpdateAlertgroupsRequest) UpdateAlertgroupsRequestInner(updateAlertgroupsRequestInner []UpdateAlertgroupsRequestInner) ApiUpdateAlertgroupsRequest { + r.updateAlertgroupsRequestInner = &updateAlertgroupsRequestInner + return r +} + +func (r ApiUpdateAlertgroupsRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.UpdateAlertgroupsExecute(r) +} + +/* +UpdateAlertgroups Method for UpdateAlertgroups + +Update alert groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateAlertgroupsRequest +*/ +func (a *DefaultAPIService) UpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertgroupsRequest { + return ApiUpdateAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) UpdateAlertgroupsExecute(r ApiUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertgroups") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertgroupsRequestInner == nil { + return localVarReturnValue, reportError("updateAlertgroupsRequestInner is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertgroupsRequestInner + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateAlertruleRequest struct { + ctx context.Context + ApiService DefaultAPI + alertName string + groupName string + instanceId string + projectId string + updateAlertrulePayload *UpdateAlertrulePayload +} + +func (r ApiUpdateAlertruleRequest) UpdateAlertrulePayload(updateAlertrulePayload UpdateAlertrulePayload) ApiUpdateAlertruleRequest { + r.updateAlertrulePayload = &updateAlertrulePayload + return r +} + +func (r ApiUpdateAlertruleRequest) Execute() (*AlertRulesResponse, error) { + return r.ApiService.UpdateAlertruleExecute(r) +} + +/* +UpdateAlertrule Method for UpdateAlertrule + +Update alert rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param alertName + @param groupName + @param instanceId + @param projectId + @return ApiUpdateAlertruleRequest +*/ +func (a *DefaultAPIService) UpdateAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiUpdateAlertruleRequest { + return ApiUpdateAlertruleRequest{ + ApiService: a, + ctx: ctx, + alertName: alertName, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertRulesResponse +func (a *DefaultAPIService) UpdateAlertruleExecute(r ApiUpdateAlertruleRequest) (*AlertRulesResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateAlertrule") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules/{alertName}" + localVarPath = strings.Replace(localVarPath, "{"+"alertName"+"}", url.PathEscape(parameterValueToString(r.alertName, "alertName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAlertrulePayload == nil { + return localVarReturnValue, reportError("updateAlertrulePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateAlertrulePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateCredentialsRemoteWriteConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + username string + updateCredentialsRemoteWriteConfigPayload *UpdateCredentialsRemoteWriteConfigPayload +} + +func (r ApiUpdateCredentialsRemoteWriteConfigRequest) UpdateCredentialsRemoteWriteConfigPayload(updateCredentialsRemoteWriteConfigPayload UpdateCredentialsRemoteWriteConfigPayload) ApiUpdateCredentialsRemoteWriteConfigRequest { + r.updateCredentialsRemoteWriteConfigPayload = &updateCredentialsRemoteWriteConfigPayload + return r +} + +func (r ApiUpdateCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemoteWriteConfig, error) { + return r.ApiService.UpdateCredentialsRemoteWriteConfigExecute(r) +} + +/* +UpdateCredentialsRemoteWriteConfig Method for UpdateCredentialsRemoteWriteConfig + +Update remote write config for credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @param username + @return ApiUpdateCredentialsRemoteWriteConfigRequest +*/ +func (a *DefaultAPIService) UpdateCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiUpdateCredentialsRemoteWriteConfigRequest { + return ApiUpdateCredentialsRemoteWriteConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// Execute executes the request +// +// @return CredentialsRemoteWriteConfig +func (a *DefaultAPIService) UpdateCredentialsRemoteWriteConfigExecute(r ApiUpdateCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialsRemoteWriteConfig + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateCredentialsRemoteWriteConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}/remote-write-limits" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"username"+"}", url.PathEscape(parameterValueToString(r.username, "username")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateCredentialsRemoteWriteConfigPayload == nil { + return localVarReturnValue, reportError("updateCredentialsRemoteWriteConfigPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateCredentialsRemoteWriteConfigPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateGrafanaConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateGrafanaConfigsPayload *UpdateGrafanaConfigsPayload +} + +func (r ApiUpdateGrafanaConfigsRequest) UpdateGrafanaConfigsPayload(updateGrafanaConfigsPayload UpdateGrafanaConfigsPayload) ApiUpdateGrafanaConfigsRequest { + r.updateGrafanaConfigsPayload = &updateGrafanaConfigsPayload + return r +} + +func (r ApiUpdateGrafanaConfigsRequest) Execute() (*Message, error) { + return r.ApiService.UpdateGrafanaConfigsExecute(r) +} + +/* +UpdateGrafanaConfigs Method for UpdateGrafanaConfigs + +Update grafana config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateGrafanaConfigsRequest +*/ +func (a *DefaultAPIService) UpdateGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateGrafanaConfigsRequest { + return ApiUpdateGrafanaConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) UpdateGrafanaConfigsExecute(r ApiUpdateGrafanaConfigsRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateGrafanaConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/grafana-configs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateGrafanaConfigsPayload == nil { + return localVarReturnValue, reportError("updateGrafanaConfigsPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateGrafanaConfigsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateInstancePayload *UpdateInstancePayload +} + +func (r ApiUpdateInstanceRequest) UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest { + r.updateInstancePayload = &updateInstancePayload + return r +} + +func (r ApiUpdateInstanceRequest) Execute() (*InstanceResponse, error) { + return r.ApiService.UpdateInstanceExecute(r) +} + +/* +UpdateInstance Method for UpdateInstance + +Update instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateInstanceRequest +*/ +func (a *DefaultAPIService) UpdateInstance(ctx context.Context, instanceId string, projectId string) ApiUpdateInstanceRequest { + return ApiUpdateInstanceRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return InstanceResponse +func (a *DefaultAPIService) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*InstanceResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateInstance") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateInstancePayload == nil { + return localVarReturnValue, reportError("updateInstancePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateInstancePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateLogsAlertgroupRequest struct { + ctx context.Context + ApiService DefaultAPI + groupName string + instanceId string + projectId string + updateLogsAlertgroupPayload *UpdateLogsAlertgroupPayload +} + +func (r ApiUpdateLogsAlertgroupRequest) UpdateLogsAlertgroupPayload(updateLogsAlertgroupPayload UpdateLogsAlertgroupPayload) ApiUpdateLogsAlertgroupRequest { + r.updateLogsAlertgroupPayload = &updateLogsAlertgroupPayload + return r +} + +func (r ApiUpdateLogsAlertgroupRequest) Execute() (*AlertGroupsResponse, error) { + return r.ApiService.UpdateLogsAlertgroupExecute(r) +} + +/* +UpdateLogsAlertgroup Method for UpdateLogsAlertgroup + +Update logs alert group config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param groupName + @param instanceId + @param projectId + @return ApiUpdateLogsAlertgroupRequest +*/ +func (a *DefaultAPIService) UpdateLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateLogsAlertgroupRequest { + return ApiUpdateLogsAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return AlertGroupsResponse +func (a *DefaultAPIService) UpdateLogsAlertgroupExecute(r ApiUpdateLogsAlertgroupRequest) (*AlertGroupsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertGroupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateLogsAlertgroup") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups/{groupName}" + localVarPath = strings.Replace(localVarPath, "{"+"groupName"+"}", url.PathEscape(parameterValueToString(r.groupName, "groupName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateLogsAlertgroupPayload == nil { + return localVarReturnValue, reportError("updateLogsAlertgroupPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateLogsAlertgroupPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateLogsConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateLogsConfigsPayload *UpdateLogsConfigsPayload +} + +func (r ApiUpdateLogsConfigsRequest) UpdateLogsConfigsPayload(updateLogsConfigsPayload UpdateLogsConfigsPayload) ApiUpdateLogsConfigsRequest { + r.updateLogsConfigsPayload = &updateLogsConfigsPayload + return r +} + +func (r ApiUpdateLogsConfigsRequest) Execute() (*Message, error) { + return r.ApiService.UpdateLogsConfigsExecute(r) +} + +/* +UpdateLogsConfigs Method for UpdateLogsConfigs + +Update logs config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateLogsConfigsRequest +*/ +func (a *DefaultAPIService) UpdateLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateLogsConfigsRequest { + return ApiUpdateLogsConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) UpdateLogsConfigsExecute(r ApiUpdateLogsConfigsRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateLogsConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/logs-configs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateLogsConfigsPayload == nil { + return localVarReturnValue, reportError("updateLogsConfigsPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateLogsConfigsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateMetricsStorageRetentionRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateMetricsStorageRetentionPayload *UpdateMetricsStorageRetentionPayload +} + +func (r ApiUpdateMetricsStorageRetentionRequest) UpdateMetricsStorageRetentionPayload(updateMetricsStorageRetentionPayload UpdateMetricsStorageRetentionPayload) ApiUpdateMetricsStorageRetentionRequest { + r.updateMetricsStorageRetentionPayload = &updateMetricsStorageRetentionPayload + return r +} + +func (r ApiUpdateMetricsStorageRetentionRequest) Execute() (*Message, error) { + return r.ApiService.UpdateMetricsStorageRetentionExecute(r) +} + +/* +UpdateMetricsStorageRetention Method for UpdateMetricsStorageRetention + +Update metric update retention time. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateMetricsStorageRetentionRequest +*/ +func (a *DefaultAPIService) UpdateMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiUpdateMetricsStorageRetentionRequest { + return ApiUpdateMetricsStorageRetentionRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) UpdateMetricsStorageRetentionExecute(r ApiUpdateMetricsStorageRetentionRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateMetricsStorageRetention") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/metrics-storage-retentions" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateMetricsStorageRetentionPayload == nil { + return localVarReturnValue, reportError("updateMetricsStorageRetentionPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateMetricsStorageRetentionPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateScrapeConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + jobName string + projectId string + updateScrapeConfigPayload *UpdateScrapeConfigPayload +} + +func (r ApiUpdateScrapeConfigRequest) UpdateScrapeConfigPayload(updateScrapeConfigPayload UpdateScrapeConfigPayload) ApiUpdateScrapeConfigRequest { + r.updateScrapeConfigPayload = &updateScrapeConfigPayload + return r +} + +func (r ApiUpdateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) { + return r.ApiService.UpdateScrapeConfigExecute(r) +} + +/* +UpdateScrapeConfig Method for UpdateScrapeConfig + +Update scrape config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param jobName + @param projectId + @return ApiUpdateScrapeConfigRequest +*/ +func (a *DefaultAPIService) UpdateScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiUpdateScrapeConfigRequest { + return ApiUpdateScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + jobName: jobName, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ScrapeConfigsResponse +func (a *DefaultAPIService) UpdateScrapeConfigExecute(r ApiUpdateScrapeConfigRequest) (*ScrapeConfigsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScrapeConfigsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateScrapeConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"jobName"+"}", url.PathEscape(parameterValueToString(r.jobName, "jobName")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateScrapeConfigPayload == nil { + return localVarReturnValue, reportError("updateScrapeConfigPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateScrapeConfigPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Message + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateTracesConfigsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateTracesConfigsPayload *UpdateTracesConfigsPayload +} + +func (r ApiUpdateTracesConfigsRequest) UpdateTracesConfigsPayload(updateTracesConfigsPayload UpdateTracesConfigsPayload) ApiUpdateTracesConfigsRequest { + r.updateTracesConfigsPayload = &updateTracesConfigsPayload + return r +} + +func (r ApiUpdateTracesConfigsRequest) Execute() (*Message, error) { + return r.ApiService.UpdateTracesConfigsExecute(r) +} + +/* +UpdateTracesConfigs Method for UpdateTracesConfigs + +Update traces config. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId + @param projectId + @return ApiUpdateTracesConfigsRequest +*/ +func (a *DefaultAPIService) UpdateTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateTracesConfigsRequest { + return ApiUpdateTracesConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return Message +func (a *DefaultAPIService) UpdateTracesConfigsExecute(r ApiUpdateTracesConfigsRequest) (*Message, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Message + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateTracesConfigs") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/traces-configs" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateTracesConfigsPayload == nil { + return localVarReturnValue, reportError("updateTracesConfigsPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateTracesConfigsPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v PermissionDenied + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} diff --git a/services/observability/v1api/api_default_mock.go b/services/observability/v1api/api_default_mock.go new file mode 100644 index 000000000..8870a9a25 --- /dev/null +++ b/services/observability/v1api/api_default_mock.go @@ -0,0 +1,2297 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "context" +) + +// assert the implementation matches the interface +var _ DefaultAPI = &DefaultAPIServiceMock{} + +// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. +// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. +type DefaultAPIServiceMock struct { + // CreateAlertConfigReceiverExecuteMock can be populated to implement the behavior of the CreateAlertConfigReceiverExecute function of this mock + CreateAlertConfigReceiverExecuteMock *func(r ApiCreateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) + // CreateAlertConfigRouteExecuteMock can be populated to implement the behavior of the CreateAlertConfigRouteExecute function of this mock + CreateAlertConfigRouteExecuteMock *func(r ApiCreateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + // CreateAlertRecordExecuteMock can be populated to implement the behavior of the CreateAlertRecordExecute function of this mock + CreateAlertRecordExecuteMock *func(r ApiCreateAlertRecordRequest) (*AlertRecordsResponse, error) + // CreateAlertgroupsExecuteMock can be populated to implement the behavior of the CreateAlertgroupsExecute function of this mock + CreateAlertgroupsExecuteMock *func(r ApiCreateAlertgroupsRequest) (*AlertGroupsResponse, error) + // CreateAlertrulesExecuteMock can be populated to implement the behavior of the CreateAlertrulesExecute function of this mock + CreateAlertrulesExecuteMock *func(r ApiCreateAlertrulesRequest) (*AlertRulesResponse, error) + // CreateBackupExecuteMock can be populated to implement the behavior of the CreateBackupExecute function of this mock + CreateBackupExecuteMock *func(r ApiCreateBackupRequest) (*Message, error) + // CreateBackupScheduleExecuteMock can be populated to implement the behavior of the CreateBackupScheduleExecute function of this mock + CreateBackupScheduleExecuteMock *func(r ApiCreateBackupScheduleRequest) (*BackupSchedulePostResponse, error) + // CreateCertCheckExecuteMock can be populated to implement the behavior of the CreateCertCheckExecute function of this mock + CreateCertCheckExecuteMock *func(r ApiCreateCertCheckRequest) (*CertCheckResponse, error) + // CreateCredentialsExecuteMock can be populated to implement the behavior of the CreateCredentialsExecute function of this mock + CreateCredentialsExecuteMock *func(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) + // CreateElasticsearchCheckExecuteMock can be populated to implement the behavior of the CreateElasticsearchCheckExecute function of this mock + CreateElasticsearchCheckExecuteMock *func(r ApiCreateElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) + // CreateHttpCheckExecuteMock can be populated to implement the behavior of the CreateHttpCheckExecute function of this mock + CreateHttpCheckExecuteMock *func(r ApiCreateHttpCheckRequest) (*HttpCheckResponse, error) + // CreateInstanceExecuteMock can be populated to implement the behavior of the CreateInstanceExecute function of this mock + CreateInstanceExecuteMock *func(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) + // CreateLogsAlertgroupsExecuteMock can be populated to implement the behavior of the CreateLogsAlertgroupsExecute function of this mock + CreateLogsAlertgroupsExecuteMock *func(r ApiCreateLogsAlertgroupsRequest) (*AlertGroupsResponse, error) + // CreateMongodbCheckExecuteMock can be populated to implement the behavior of the CreateMongodbCheckExecute function of this mock + CreateMongodbCheckExecuteMock *func(r ApiCreateMongodbCheckRequest) (*MongodbCheckResponse, error) + // CreateMysqlCheckExecuteMock can be populated to implement the behavior of the CreateMysqlCheckExecute function of this mock + CreateMysqlCheckExecuteMock *func(r ApiCreateMysqlCheckRequest) (*MysqlCheckResponse, error) + // CreateNetworkCheckExecuteMock can be populated to implement the behavior of the CreateNetworkCheckExecute function of this mock + CreateNetworkCheckExecuteMock *func(r ApiCreateNetworkCheckRequest) (*NetworkCheckResponse, error) + // CreatePingCheckExecuteMock can be populated to implement the behavior of the CreatePingCheckExecute function of this mock + CreatePingCheckExecuteMock *func(r ApiCreatePingCheckRequest) (*PingCheckResponse, error) + // CreatePostgresqlCheckExecuteMock can be populated to implement the behavior of the CreatePostgresqlCheckExecute function of this mock + CreatePostgresqlCheckExecuteMock *func(r ApiCreatePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) + // CreateRabbitmqCheckExecuteMock can be populated to implement the behavior of the CreateRabbitmqCheckExecute function of this mock + CreateRabbitmqCheckExecuteMock *func(r ApiCreateRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) + // CreateRedisCheckExecuteMock can be populated to implement the behavior of the CreateRedisCheckExecute function of this mock + CreateRedisCheckExecuteMock *func(r ApiCreateRedisCheckRequest) (*RedisCheckResponse, error) + // CreateScrapeConfigExecuteMock can be populated to implement the behavior of the CreateScrapeConfigExecute function of this mock + CreateScrapeConfigExecuteMock *func(r ApiCreateScrapeConfigRequest) (*ScrapeConfigsResponse, error) + // DeleteAlertConfigReceiverExecuteMock can be populated to implement the behavior of the DeleteAlertConfigReceiverExecute function of this mock + DeleteAlertConfigReceiverExecuteMock *func(r ApiDeleteAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) + // DeleteAlertConfigRouteExecuteMock can be populated to implement the behavior of the DeleteAlertConfigRouteExecute function of this mock + DeleteAlertConfigRouteExecuteMock *func(r ApiDeleteAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + // DeleteAlertRecordExecuteMock can be populated to implement the behavior of the DeleteAlertRecordExecute function of this mock + DeleteAlertRecordExecuteMock *func(r ApiDeleteAlertRecordRequest) (*AlertRecordsResponse, error) + // DeleteAlertRecordsExecuteMock can be populated to implement the behavior of the DeleteAlertRecordsExecute function of this mock + DeleteAlertRecordsExecuteMock *func(r ApiDeleteAlertRecordsRequest) (*AlertRecordsResponse, error) + // DeleteAlertgroupExecuteMock can be populated to implement the behavior of the DeleteAlertgroupExecute function of this mock + DeleteAlertgroupExecuteMock *func(r ApiDeleteAlertgroupRequest) (*AlertGroupsResponse, error) + // DeleteAlertgroupsExecuteMock can be populated to implement the behavior of the DeleteAlertgroupsExecute function of this mock + DeleteAlertgroupsExecuteMock *func(r ApiDeleteAlertgroupsRequest) (*AlertGroupsResponse, error) + // DeleteAlertruleExecuteMock can be populated to implement the behavior of the DeleteAlertruleExecute function of this mock + DeleteAlertruleExecuteMock *func(r ApiDeleteAlertruleRequest) (*AlertRulesResponse, error) + // DeleteAlertrulesExecuteMock can be populated to implement the behavior of the DeleteAlertrulesExecute function of this mock + DeleteAlertrulesExecuteMock *func(r ApiDeleteAlertrulesRequest) (*AlertRulesResponse, error) + // DeleteCertCheckExecuteMock can be populated to implement the behavior of the DeleteCertCheckExecute function of this mock + DeleteCertCheckExecuteMock *func(r ApiDeleteCertCheckRequest) (*CertCheckResponse, error) + // DeleteCredentialsExecuteMock can be populated to implement the behavior of the DeleteCredentialsExecute function of this mock + DeleteCredentialsExecuteMock *func(r ApiDeleteCredentialsRequest) (*Message, error) + // DeleteCredentialsRemoteWriteConfigExecuteMock can be populated to implement the behavior of the DeleteCredentialsRemoteWriteConfigExecute function of this mock + DeleteCredentialsRemoteWriteConfigExecuteMock *func(r ApiDeleteCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteDeleteResponse, error) + // DeleteElasticsearchCheckExecuteMock can be populated to implement the behavior of the DeleteElasticsearchCheckExecute function of this mock + DeleteElasticsearchCheckExecuteMock *func(r ApiDeleteElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) + // DeleteHttpCheckExecuteMock can be populated to implement the behavior of the DeleteHttpCheckExecute function of this mock + DeleteHttpCheckExecuteMock *func(r ApiDeleteHttpCheckRequest) (*HttpCheckResponse, error) + // DeleteInstanceExecuteMock can be populated to implement the behavior of the DeleteInstanceExecute function of this mock + DeleteInstanceExecuteMock *func(r ApiDeleteInstanceRequest) (*InstanceResponse, error) + // DeleteLogsAlertgroupExecuteMock can be populated to implement the behavior of the DeleteLogsAlertgroupExecute function of this mock + DeleteLogsAlertgroupExecuteMock *func(r ApiDeleteLogsAlertgroupRequest) (*AlertGroupsResponse, error) + // DeleteMongodbCheckExecuteMock can be populated to implement the behavior of the DeleteMongodbCheckExecute function of this mock + DeleteMongodbCheckExecuteMock *func(r ApiDeleteMongodbCheckRequest) (*MongodbCheckResponse, error) + // DeleteMysqlCheckExecuteMock can be populated to implement the behavior of the DeleteMysqlCheckExecute function of this mock + DeleteMysqlCheckExecuteMock *func(r ApiDeleteMysqlCheckRequest) (*MysqlCheckResponse, error) + // DeleteNetworkCheckExecuteMock can be populated to implement the behavior of the DeleteNetworkCheckExecute function of this mock + DeleteNetworkCheckExecuteMock *func(r ApiDeleteNetworkCheckRequest) (*NetworkCheckResponse, error) + // DeletePingCheckExecuteMock can be populated to implement the behavior of the DeletePingCheckExecute function of this mock + DeletePingCheckExecuteMock *func(r ApiDeletePingCheckRequest) (*PingCheckResponse, error) + // DeletePostgresqlCheckExecuteMock can be populated to implement the behavior of the DeletePostgresqlCheckExecute function of this mock + DeletePostgresqlCheckExecuteMock *func(r ApiDeletePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) + // DeleteRabbitmqCheckExecuteMock can be populated to implement the behavior of the DeleteRabbitmqCheckExecute function of this mock + DeleteRabbitmqCheckExecuteMock *func(r ApiDeleteRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) + // DeleteRedisCheckExecuteMock can be populated to implement the behavior of the DeleteRedisCheckExecute function of this mock + DeleteRedisCheckExecuteMock *func(r ApiDeleteRedisCheckRequest) (*RedisCheckResponse, error) + // DeleteScrapeConfigExecuteMock can be populated to implement the behavior of the DeleteScrapeConfigExecute function of this mock + DeleteScrapeConfigExecuteMock *func(r ApiDeleteScrapeConfigRequest) (*DeleteScrapeConfigResponse, error) + // DeleteScrapeConfigsExecuteMock can be populated to implement the behavior of the DeleteScrapeConfigsExecute function of this mock + DeleteScrapeConfigsExecuteMock *func(r ApiDeleteScrapeConfigsRequest) (*ScrapeConfigsResponse, error) + // GetAlertConfigReceiverExecuteMock can be populated to implement the behavior of the GetAlertConfigReceiverExecute function of this mock + GetAlertConfigReceiverExecuteMock *func(r ApiGetAlertConfigReceiverRequest) (*Receiver, error) + // GetAlertConfigRouteExecuteMock can be populated to implement the behavior of the GetAlertConfigRouteExecute function of this mock + GetAlertConfigRouteExecuteMock *func(r ApiGetAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + // GetAlertConfigsExecuteMock can be populated to implement the behavior of the GetAlertConfigsExecute function of this mock + GetAlertConfigsExecuteMock *func(r ApiGetAlertConfigsRequest) (*GetAlertConfigsResponse, error) + // GetAlertRecordExecuteMock can be populated to implement the behavior of the GetAlertRecordExecute function of this mock + GetAlertRecordExecuteMock *func(r ApiGetAlertRecordRequest) (*AlertRecordResponse, error) + // GetAlertgroupExecuteMock can be populated to implement the behavior of the GetAlertgroupExecute function of this mock + GetAlertgroupExecuteMock *func(r ApiGetAlertgroupRequest) (*AlertGroupResponse, error) + // GetAlertruleExecuteMock can be populated to implement the behavior of the GetAlertruleExecute function of this mock + GetAlertruleExecuteMock *func(r ApiGetAlertruleRequest) (*AlertRuleResponse, error) + // GetCredentialsExecuteMock can be populated to implement the behavior of the GetCredentialsExecute function of this mock + GetCredentialsExecuteMock *func(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) + // GetCredentialsRemoteWriteConfigExecuteMock can be populated to implement the behavior of the GetCredentialsRemoteWriteConfigExecute function of this mock + GetCredentialsRemoteWriteConfigExecuteMock *func(r ApiGetCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) + // GetGrafanaConfigsExecuteMock can be populated to implement the behavior of the GetGrafanaConfigsExecute function of this mock + GetGrafanaConfigsExecuteMock *func(r ApiGetGrafanaConfigsRequest) (*GrafanaConfigs, error) + // GetInstanceExecuteMock can be populated to implement the behavior of the GetInstanceExecute function of this mock + GetInstanceExecuteMock *func(r ApiGetInstanceRequest) (*GetInstanceResponse, error) + // GetLogsAlertgroupExecuteMock can be populated to implement the behavior of the GetLogsAlertgroupExecute function of this mock + GetLogsAlertgroupExecuteMock *func(r ApiGetLogsAlertgroupRequest) (*AlertGroupResponse, error) + // GetLogsConfigsExecuteMock can be populated to implement the behavior of the GetLogsConfigsExecute function of this mock + GetLogsConfigsExecuteMock *func(r ApiGetLogsConfigsRequest) (*LogsConfigResponse, error) + // GetMetricsStorageRetentionExecuteMock can be populated to implement the behavior of the GetMetricsStorageRetentionExecute function of this mock + GetMetricsStorageRetentionExecuteMock *func(r ApiGetMetricsStorageRetentionRequest) (*GetMetricsStorageRetentionResponse, error) + // GetScrapeConfigExecuteMock can be populated to implement the behavior of the GetScrapeConfigExecute function of this mock + GetScrapeConfigExecuteMock *func(r ApiGetScrapeConfigRequest) (*GetScrapeConfigResponse, error) + // GetTracesConfigsExecuteMock can be populated to implement the behavior of the GetTracesConfigsExecute function of this mock + GetTracesConfigsExecuteMock *func(r ApiGetTracesConfigsRequest) (*TracesConfigResponse, error) + // ListACLExecuteMock can be populated to implement the behavior of the ListACLExecute function of this mock + ListACLExecuteMock *func(r ApiListACLRequest) (*ListACLResponse, error) + // ListAlertConfigReceiversExecuteMock can be populated to implement the behavior of the ListAlertConfigReceiversExecute function of this mock + ListAlertConfigReceiversExecuteMock *func(r ApiListAlertConfigReceiversRequest) (*AlertConfigReceiversResponse, error) + // ListAlertConfigRoutesExecuteMock can be populated to implement the behavior of the ListAlertConfigRoutesExecute function of this mock + ListAlertConfigRoutesExecuteMock *func(r ApiListAlertConfigRoutesRequest) (*AlertConfigRouteResponse, error) + // ListAlertRecordsExecuteMock can be populated to implement the behavior of the ListAlertRecordsExecute function of this mock + ListAlertRecordsExecuteMock *func(r ApiListAlertRecordsRequest) (*AlertRecordsResponse, error) + // ListAlertgroupsExecuteMock can be populated to implement the behavior of the ListAlertgroupsExecute function of this mock + ListAlertgroupsExecuteMock *func(r ApiListAlertgroupsRequest) (*AlertGroupsResponse, error) + // ListAlertrulesExecuteMock can be populated to implement the behavior of the ListAlertrulesExecute function of this mock + ListAlertrulesExecuteMock *func(r ApiListAlertrulesRequest) (*AlertRulesResponse, error) + // ListBackupRetentionsExecuteMock can be populated to implement the behavior of the ListBackupRetentionsExecute function of this mock + ListBackupRetentionsExecuteMock *func(r ApiListBackupRetentionsRequest) (*BackupRetentionResponse, error) + // ListBackupSchedulesExecuteMock can be populated to implement the behavior of the ListBackupSchedulesExecute function of this mock + ListBackupSchedulesExecuteMock *func(r ApiListBackupSchedulesRequest) (*BackupScheduleResponse, error) + // ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock + ListBackupsExecuteMock *func(r ApiListBackupsRequest) (*BackupResponse, error) + // ListCertChecksExecuteMock can be populated to implement the behavior of the ListCertChecksExecute function of this mock + ListCertChecksExecuteMock *func(r ApiListCertChecksRequest) (*CertCheckResponse, error) + // ListCredentialsExecuteMock can be populated to implement the behavior of the ListCredentialsExecute function of this mock + ListCredentialsExecuteMock *func(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) + // ListElasticsearchChecksExecuteMock can be populated to implement the behavior of the ListElasticsearchChecksExecute function of this mock + ListElasticsearchChecksExecuteMock *func(r ApiListElasticsearchChecksRequest) (*ElasticsearchCheckResponse, error) + // ListHttpChecksExecuteMock can be populated to implement the behavior of the ListHttpChecksExecute function of this mock + ListHttpChecksExecuteMock *func(r ApiListHttpChecksRequest) (*HttpCheckResponse, error) + // ListInstancesExecuteMock can be populated to implement the behavior of the ListInstancesExecute function of this mock + ListInstancesExecuteMock *func(r ApiListInstancesRequest) (*ListInstancesResponse, error) + // ListLogsAlertgroupsExecuteMock can be populated to implement the behavior of the ListLogsAlertgroupsExecute function of this mock + ListLogsAlertgroupsExecuteMock *func(r ApiListLogsAlertgroupsRequest) (*AlertGroupsResponse, error) + // ListMongodbChecksExecuteMock can be populated to implement the behavior of the ListMongodbChecksExecute function of this mock + ListMongodbChecksExecuteMock *func(r ApiListMongodbChecksRequest) (*MongodbCheckResponse, error) + // ListMysqlChecksExecuteMock can be populated to implement the behavior of the ListMysqlChecksExecute function of this mock + ListMysqlChecksExecuteMock *func(r ApiListMysqlChecksRequest) (*MysqlCheckResponse, error) + // ListNetworkChecksExecuteMock can be populated to implement the behavior of the ListNetworkChecksExecute function of this mock + ListNetworkChecksExecuteMock *func(r ApiListNetworkChecksRequest) (*NetworkCheckResponse, error) + // ListOfferingsExecuteMock can be populated to implement the behavior of the ListOfferingsExecute function of this mock + ListOfferingsExecuteMock *func(r ApiListOfferingsRequest) (*Offerings, error) + // ListPingChecksExecuteMock can be populated to implement the behavior of the ListPingChecksExecute function of this mock + ListPingChecksExecuteMock *func(r ApiListPingChecksRequest) (*PingCheckResponse, error) + // ListPlansExecuteMock can be populated to implement the behavior of the ListPlansExecute function of this mock + ListPlansExecuteMock *func(r ApiListPlansRequest) (*PlansResponse, error) + // ListPostgresqlChecksExecuteMock can be populated to implement the behavior of the ListPostgresqlChecksExecute function of this mock + ListPostgresqlChecksExecuteMock *func(r ApiListPostgresqlChecksRequest) (*PostgresqlCheckResponse, error) + // ListRabbitmqChecksExecuteMock can be populated to implement the behavior of the ListRabbitmqChecksExecute function of this mock + ListRabbitmqChecksExecuteMock *func(r ApiListRabbitmqChecksRequest) (*RabbitmqCheckResponse, error) + // ListRedisChecksExecuteMock can be populated to implement the behavior of the ListRedisChecksExecute function of this mock + ListRedisChecksExecuteMock *func(r ApiListRedisChecksRequest) (*RedisCheckResponse, error) + // ListScrapeConfigsExecuteMock can be populated to implement the behavior of the ListScrapeConfigsExecute function of this mock + ListScrapeConfigsExecuteMock *func(r ApiListScrapeConfigsRequest) (*ListScrapeConfigsResponse, error) + // PartialUpdateAlertRecordsExecuteMock can be populated to implement the behavior of the PartialUpdateAlertRecordsExecute function of this mock + PartialUpdateAlertRecordsExecuteMock *func(r ApiPartialUpdateAlertRecordsRequest) (*AlertRecordsResponse, error) + // PartialUpdateAlertgroupsExecuteMock can be populated to implement the behavior of the PartialUpdateAlertgroupsExecute function of this mock + PartialUpdateAlertgroupsExecuteMock *func(r ApiPartialUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) + // PartialUpdateAlertrulesExecuteMock can be populated to implement the behavior of the PartialUpdateAlertrulesExecute function of this mock + PartialUpdateAlertrulesExecuteMock *func(r ApiPartialUpdateAlertrulesRequest) (*AlertRulesResponse, error) + // PartialUpdateScrapeConfigsExecuteMock can be populated to implement the behavior of the PartialUpdateScrapeConfigsExecute function of this mock + PartialUpdateScrapeConfigsExecuteMock *func(r ApiPartialUpdateScrapeConfigsRequest) (*ScrapeConfigsResponse, error) + // RestoreBackupExecuteMock can be populated to implement the behavior of the RestoreBackupExecute function of this mock + RestoreBackupExecuteMock *func(r ApiRestoreBackupRequest) (*Message, error) + // UpdateACLExecuteMock can be populated to implement the behavior of the UpdateACLExecute function of this mock + UpdateACLExecuteMock *func(r ApiUpdateACLRequest) (*Message, error) + // UpdateAlertConfigReceiverExecuteMock can be populated to implement the behavior of the UpdateAlertConfigReceiverExecute function of this mock + UpdateAlertConfigReceiverExecuteMock *func(r ApiUpdateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) + // UpdateAlertConfigRouteExecuteMock can be populated to implement the behavior of the UpdateAlertConfigRouteExecute function of this mock + UpdateAlertConfigRouteExecuteMock *func(r ApiUpdateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) + // UpdateAlertConfigsExecuteMock can be populated to implement the behavior of the UpdateAlertConfigsExecute function of this mock + UpdateAlertConfigsExecuteMock *func(r ApiUpdateAlertConfigsRequest) (*UpdateAlertConfigsResponse, error) + // UpdateAlertRecordExecuteMock can be populated to implement the behavior of the UpdateAlertRecordExecute function of this mock + UpdateAlertRecordExecuteMock *func(r ApiUpdateAlertRecordRequest) (*AlertRecordsResponse, error) + // UpdateAlertgroupExecuteMock can be populated to implement the behavior of the UpdateAlertgroupExecute function of this mock + UpdateAlertgroupExecuteMock *func(r ApiUpdateAlertgroupRequest) (*AlertGroupsResponse, error) + // UpdateAlertgroupsExecuteMock can be populated to implement the behavior of the UpdateAlertgroupsExecute function of this mock + UpdateAlertgroupsExecuteMock *func(r ApiUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) + // UpdateAlertruleExecuteMock can be populated to implement the behavior of the UpdateAlertruleExecute function of this mock + UpdateAlertruleExecuteMock *func(r ApiUpdateAlertruleRequest) (*AlertRulesResponse, error) + // UpdateCredentialsRemoteWriteConfigExecuteMock can be populated to implement the behavior of the UpdateCredentialsRemoteWriteConfigExecute function of this mock + UpdateCredentialsRemoteWriteConfigExecuteMock *func(r ApiUpdateCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) + // UpdateGrafanaConfigsExecuteMock can be populated to implement the behavior of the UpdateGrafanaConfigsExecute function of this mock + UpdateGrafanaConfigsExecuteMock *func(r ApiUpdateGrafanaConfigsRequest) (*Message, error) + // UpdateInstanceExecuteMock can be populated to implement the behavior of the UpdateInstanceExecute function of this mock + UpdateInstanceExecuteMock *func(r ApiUpdateInstanceRequest) (*InstanceResponse, error) + // UpdateLogsAlertgroupExecuteMock can be populated to implement the behavior of the UpdateLogsAlertgroupExecute function of this mock + UpdateLogsAlertgroupExecuteMock *func(r ApiUpdateLogsAlertgroupRequest) (*AlertGroupsResponse, error) + // UpdateLogsConfigsExecuteMock can be populated to implement the behavior of the UpdateLogsConfigsExecute function of this mock + UpdateLogsConfigsExecuteMock *func(r ApiUpdateLogsConfigsRequest) (*Message, error) + // UpdateMetricsStorageRetentionExecuteMock can be populated to implement the behavior of the UpdateMetricsStorageRetentionExecute function of this mock + UpdateMetricsStorageRetentionExecuteMock *func(r ApiUpdateMetricsStorageRetentionRequest) (*Message, error) + // UpdateScrapeConfigExecuteMock can be populated to implement the behavior of the UpdateScrapeConfigExecute function of this mock + UpdateScrapeConfigExecuteMock *func(r ApiUpdateScrapeConfigRequest) (*ScrapeConfigsResponse, error) + // UpdateTracesConfigsExecuteMock can be populated to implement the behavior of the UpdateTracesConfigsExecute function of this mock + UpdateTracesConfigsExecuteMock *func(r ApiUpdateTracesConfigsRequest) (*Message, error) +} + +func (a DefaultAPIServiceMock) CreateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigReceiverRequest { + return ApiCreateAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateAlertConfigReceiverExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateAlertConfigReceiverExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateAlertConfigReceiverExecute(r ApiCreateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) { + if a.CreateAlertConfigReceiverExecuteMock == nil { + var localVarReturnValue *AlertConfigReceiversResponse + return localVarReturnValue, nil + } + + return (*a.CreateAlertConfigReceiverExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateAlertConfigRoute(ctx context.Context, instanceId string, projectId string) ApiCreateAlertConfigRouteRequest { + return ApiCreateAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateAlertConfigRouteExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateAlertConfigRouteExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateAlertConfigRouteExecute(r ApiCreateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + if a.CreateAlertConfigRouteExecuteMock == nil { + var localVarReturnValue *AlertConfigRouteResponse + return localVarReturnValue, nil + } + + return (*a.CreateAlertConfigRouteExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateAlertRecord(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertRecordRequest { + return ApiCreateAlertRecordRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateAlertRecordExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateAlertRecordExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateAlertRecordExecute(r ApiCreateAlertRecordRequest) (*AlertRecordsResponse, error) { + if a.CreateAlertRecordExecuteMock == nil { + var localVarReturnValue *AlertRecordsResponse + return localVarReturnValue, nil + } + + return (*a.CreateAlertRecordExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateAlertgroupsRequest { + return ApiCreateAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateAlertgroupsExecute(r ApiCreateAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.CreateAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.CreateAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiCreateAlertrulesRequest { + return ApiCreateAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateAlertrulesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateAlertrulesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateAlertrulesExecute(r ApiCreateAlertrulesRequest) (*AlertRulesResponse, error) { + if a.CreateAlertrulesExecuteMock == nil { + var localVarReturnValue *AlertRulesResponse + return localVarReturnValue, nil + } + + return (*a.CreateAlertrulesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest { + return ApiCreateBackupRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateBackupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateBackupExecute(r ApiCreateBackupRequest) (*Message, error) { + if a.CreateBackupExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.CreateBackupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateBackupSchedule(ctx context.Context, instanceId string, projectId string) ApiCreateBackupScheduleRequest { + return ApiCreateBackupScheduleRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateBackupScheduleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateBackupScheduleExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateBackupScheduleExecute(r ApiCreateBackupScheduleRequest) (*BackupSchedulePostResponse, error) { + if a.CreateBackupScheduleExecuteMock == nil { + var localVarReturnValue *BackupSchedulePostResponse + return localVarReturnValue, nil + } + + return (*a.CreateBackupScheduleExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateCertCheck(ctx context.Context, instanceId string, projectId string) ApiCreateCertCheckRequest { + return ApiCreateCertCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateCertCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateCertCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateCertCheckExecute(r ApiCreateCertCheckRequest) (*CertCheckResponse, error) { + if a.CreateCertCheckExecuteMock == nil { + var localVarReturnValue *CertCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateCertCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateCredentials(ctx context.Context, instanceId string, projectId string) ApiCreateCredentialsRequest { + return ApiCreateCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CreateCredentialsResponse, error) { + if a.CreateCredentialsExecuteMock == nil { + var localVarReturnValue *CreateCredentialsResponse + return localVarReturnValue, nil + } + + return (*a.CreateCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateElasticsearchCheck(ctx context.Context, instanceId string, projectId string) ApiCreateElasticsearchCheckRequest { + return ApiCreateElasticsearchCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateElasticsearchCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateElasticsearchCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateElasticsearchCheckExecute(r ApiCreateElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) { + if a.CreateElasticsearchCheckExecuteMock == nil { + var localVarReturnValue *ElasticsearchCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateElasticsearchCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateHttpCheck(ctx context.Context, instanceId string, projectId string) ApiCreateHttpCheckRequest { + return ApiCreateHttpCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateHttpCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateHttpCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateHttpCheckExecute(r ApiCreateHttpCheckRequest) (*HttpCheckResponse, error) { + if a.CreateHttpCheckExecuteMock == nil { + var localVarReturnValue *HttpCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateHttpCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { + return ApiCreateInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// CreateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) { + if a.CreateInstanceExecuteMock == nil { + var localVarReturnValue *CreateInstanceResponse + return localVarReturnValue, nil + } + + return (*a.CreateInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiCreateLogsAlertgroupsRequest { + return ApiCreateLogsAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateLogsAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateLogsAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateLogsAlertgroupsExecute(r ApiCreateLogsAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.CreateLogsAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.CreateLogsAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateMongodbCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMongodbCheckRequest { + return ApiCreateMongodbCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateMongodbCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateMongodbCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateMongodbCheckExecute(r ApiCreateMongodbCheckRequest) (*MongodbCheckResponse, error) { + if a.CreateMongodbCheckExecuteMock == nil { + var localVarReturnValue *MongodbCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateMongodbCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateMysqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreateMysqlCheckRequest { + return ApiCreateMysqlCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateMysqlCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateMysqlCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateMysqlCheckExecute(r ApiCreateMysqlCheckRequest) (*MysqlCheckResponse, error) { + if a.CreateMysqlCheckExecuteMock == nil { + var localVarReturnValue *MysqlCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateMysqlCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateNetworkCheck(ctx context.Context, instanceId string, projectId string) ApiCreateNetworkCheckRequest { + return ApiCreateNetworkCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateNetworkCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateNetworkCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateNetworkCheckExecute(r ApiCreateNetworkCheckRequest) (*NetworkCheckResponse, error) { + if a.CreateNetworkCheckExecuteMock == nil { + var localVarReturnValue *NetworkCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateNetworkCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreatePingCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePingCheckRequest { + return ApiCreatePingCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreatePingCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreatePingCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreatePingCheckExecute(r ApiCreatePingCheckRequest) (*PingCheckResponse, error) { + if a.CreatePingCheckExecuteMock == nil { + var localVarReturnValue *PingCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreatePingCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreatePostgresqlCheck(ctx context.Context, instanceId string, projectId string) ApiCreatePostgresqlCheckRequest { + return ApiCreatePostgresqlCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreatePostgresqlCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreatePostgresqlCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreatePostgresqlCheckExecute(r ApiCreatePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) { + if a.CreatePostgresqlCheckExecuteMock == nil { + var localVarReturnValue *PostgresqlCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreatePostgresqlCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateRabbitmqCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRabbitmqCheckRequest { + return ApiCreateRabbitmqCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateRabbitmqCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateRabbitmqCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateRabbitmqCheckExecute(r ApiCreateRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) { + if a.CreateRabbitmqCheckExecuteMock == nil { + var localVarReturnValue *RabbitmqCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateRabbitmqCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateRedisCheck(ctx context.Context, instanceId string, projectId string) ApiCreateRedisCheckRequest { + return ApiCreateRedisCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateRedisCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateRedisCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateRedisCheckExecute(r ApiCreateRedisCheckRequest) (*RedisCheckResponse, error) { + if a.CreateRedisCheckExecuteMock == nil { + var localVarReturnValue *RedisCheckResponse + return localVarReturnValue, nil + } + + return (*a.CreateRedisCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateScrapeConfig(ctx context.Context, instanceId string, projectId string) ApiCreateScrapeConfigRequest { + return ApiCreateScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateScrapeConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateScrapeConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateScrapeConfigExecute(r ApiCreateScrapeConfigRequest) (*ScrapeConfigsResponse, error) { + if a.CreateScrapeConfigExecuteMock == nil { + var localVarReturnValue *ScrapeConfigsResponse + return localVarReturnValue, nil + } + + return (*a.CreateScrapeConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigReceiverRequest { + return ApiDeleteAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// DeleteAlertConfigReceiverExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertConfigReceiverExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertConfigReceiverExecute(r ApiDeleteAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) { + if a.DeleteAlertConfigReceiverExecuteMock == nil { + var localVarReturnValue *AlertConfigReceiversResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertConfigReceiverExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiDeleteAlertConfigRouteRequest { + return ApiDeleteAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// DeleteAlertConfigRouteExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertConfigRouteExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertConfigRouteExecute(r ApiDeleteAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + if a.DeleteAlertConfigRouteExecuteMock == nil { + var localVarReturnValue *AlertConfigRouteResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertConfigRouteExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordRequest { + return ApiDeleteAlertRecordRequest{ + ApiService: a, + ctx: ctx, + alertRecord: alertRecord, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteAlertRecordExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertRecordExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertRecordExecute(r ApiDeleteAlertRecordRequest) (*AlertRecordsResponse, error) { + if a.DeleteAlertRecordExecuteMock == nil { + var localVarReturnValue *AlertRecordsResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertRecordExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertRecordsRequest { + return ApiDeleteAlertRecordsRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteAlertRecordsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertRecordsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertRecordsExecute(r ApiDeleteAlertRecordsRequest) (*AlertRecordsResponse, error) { + if a.DeleteAlertRecordsExecuteMock == nil { + var localVarReturnValue *AlertRecordsResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertRecordsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertgroupRequest { + return ApiDeleteAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteAlertgroupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertgroupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertgroupExecute(r ApiDeleteAlertgroupRequest) (*AlertGroupsResponse, error) { + if a.DeleteAlertgroupExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertgroupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertgroups(ctx context.Context, instanceId string, projectId string) ApiDeleteAlertgroupsRequest { + return ApiDeleteAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertgroupsExecute(r ApiDeleteAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.DeleteAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiDeleteAlertruleRequest { + return ApiDeleteAlertruleRequest{ + ApiService: a, + ctx: ctx, + alertName: alertName, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteAlertruleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertruleExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertruleExecute(r ApiDeleteAlertruleRequest) (*AlertRulesResponse, error) { + if a.DeleteAlertruleExecuteMock == nil { + var localVarReturnValue *AlertRulesResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertruleExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteAlertrulesRequest { + return ApiDeleteAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteAlertrulesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAlertrulesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteAlertrulesExecute(r ApiDeleteAlertrulesRequest) (*AlertRulesResponse, error) { + if a.DeleteAlertrulesExecuteMock == nil { + var localVarReturnValue *AlertRulesResponse + return localVarReturnValue, nil + } + + return (*a.DeleteAlertrulesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteCertCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteCertCheckRequest { + return ApiDeleteCertCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + id: id, + } +} + +// DeleteCertCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCertCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteCertCheckExecute(r ApiDeleteCertCheckRequest) (*CertCheckResponse, error) { + if a.DeleteCertCheckExecuteMock == nil { + var localVarReturnValue *CertCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteCertCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRequest { + return ApiDeleteCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// DeleteCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (*Message, error) { + if a.DeleteCredentialsExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.DeleteCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiDeleteCredentialsRemoteWriteConfigRequest { + return ApiDeleteCredentialsRemoteWriteConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// DeleteCredentialsRemoteWriteConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCredentialsRemoteWriteConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteCredentialsRemoteWriteConfigExecute(r ApiDeleteCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteDeleteResponse, error) { + if a.DeleteCredentialsRemoteWriteConfigExecuteMock == nil { + var localVarReturnValue *CredentialsRemoteWriteDeleteResponse + return localVarReturnValue, nil + } + + return (*a.DeleteCredentialsRemoteWriteConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteElasticsearchCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteElasticsearchCheckRequest { + return ApiDeleteElasticsearchCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteElasticsearchCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteElasticsearchCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteElasticsearchCheckExecute(r ApiDeleteElasticsearchCheckRequest) (*ElasticsearchCheckResponse, error) { + if a.DeleteElasticsearchCheckExecuteMock == nil { + var localVarReturnValue *ElasticsearchCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteElasticsearchCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteHttpCheck(ctx context.Context, instanceId string, projectId string, id string) ApiDeleteHttpCheckRequest { + return ApiDeleteHttpCheckRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + id: id, + } +} + +// DeleteHttpCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteHttpCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteHttpCheckExecute(r ApiDeleteHttpCheckRequest) (*HttpCheckResponse, error) { + if a.DeleteHttpCheckExecuteMock == nil { + var localVarReturnValue *HttpCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteHttpCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, instanceId string, projectId string) ApiDeleteInstanceRequest { + return ApiDeleteInstanceRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteInstanceExecute(r ApiDeleteInstanceRequest) (*InstanceResponse, error) { + if a.DeleteInstanceExecuteMock == nil { + var localVarReturnValue *InstanceResponse + return localVarReturnValue, nil + } + + return (*a.DeleteInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiDeleteLogsAlertgroupRequest { + return ApiDeleteLogsAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteLogsAlertgroupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteLogsAlertgroupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteLogsAlertgroupExecute(r ApiDeleteLogsAlertgroupRequest) (*AlertGroupsResponse, error) { + if a.DeleteLogsAlertgroupExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.DeleteLogsAlertgroupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteMongodbCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMongodbCheckRequest { + return ApiDeleteMongodbCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteMongodbCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteMongodbCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteMongodbCheckExecute(r ApiDeleteMongodbCheckRequest) (*MongodbCheckResponse, error) { + if a.DeleteMongodbCheckExecuteMock == nil { + var localVarReturnValue *MongodbCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteMongodbCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteMysqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteMysqlCheckRequest { + return ApiDeleteMysqlCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteMysqlCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteMysqlCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteMysqlCheckExecute(r ApiDeleteMysqlCheckRequest) (*MysqlCheckResponse, error) { + if a.DeleteMysqlCheckExecuteMock == nil { + var localVarReturnValue *MysqlCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteMysqlCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteNetworkCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteNetworkCheckRequest { + return ApiDeleteNetworkCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteNetworkCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteNetworkCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteNetworkCheckExecute(r ApiDeleteNetworkCheckRequest) (*NetworkCheckResponse, error) { + if a.DeleteNetworkCheckExecuteMock == nil { + var localVarReturnValue *NetworkCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteNetworkCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeletePingCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePingCheckRequest { + return ApiDeletePingCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeletePingCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeletePingCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeletePingCheckExecute(r ApiDeletePingCheckRequest) (*PingCheckResponse, error) { + if a.DeletePingCheckExecuteMock == nil { + var localVarReturnValue *PingCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeletePingCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeletePostgresqlCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeletePostgresqlCheckRequest { + return ApiDeletePostgresqlCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeletePostgresqlCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeletePostgresqlCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeletePostgresqlCheckExecute(r ApiDeletePostgresqlCheckRequest) (*PostgresqlCheckResponse, error) { + if a.DeletePostgresqlCheckExecuteMock == nil { + var localVarReturnValue *PostgresqlCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeletePostgresqlCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteRabbitmqCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRabbitmqCheckRequest { + return ApiDeleteRabbitmqCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteRabbitmqCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteRabbitmqCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteRabbitmqCheckExecute(r ApiDeleteRabbitmqCheckRequest) (*RabbitmqCheckResponse, error) { + if a.DeleteRabbitmqCheckExecuteMock == nil { + var localVarReturnValue *RabbitmqCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteRabbitmqCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteRedisCheck(ctx context.Context, id string, instanceId string, projectId string) ApiDeleteRedisCheckRequest { + return ApiDeleteRedisCheckRequest{ + ApiService: a, + ctx: ctx, + id: id, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteRedisCheckExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteRedisCheckExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteRedisCheckExecute(r ApiDeleteRedisCheckRequest) (*RedisCheckResponse, error) { + if a.DeleteRedisCheckExecuteMock == nil { + var localVarReturnValue *RedisCheckResponse + return localVarReturnValue, nil + } + + return (*a.DeleteRedisCheckExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiDeleteScrapeConfigRequest { + return ApiDeleteScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + jobName: jobName, + projectId: projectId, + } +} + +// DeleteScrapeConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteScrapeConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteScrapeConfigExecute(r ApiDeleteScrapeConfigRequest) (*DeleteScrapeConfigResponse, error) { + if a.DeleteScrapeConfigExecuteMock == nil { + var localVarReturnValue *DeleteScrapeConfigResponse + return localVarReturnValue, nil + } + + return (*a.DeleteScrapeConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiDeleteScrapeConfigsRequest { + return ApiDeleteScrapeConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// DeleteScrapeConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteScrapeConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteScrapeConfigsExecute(r ApiDeleteScrapeConfigsRequest) (*ScrapeConfigsResponse, error) { + if a.DeleteScrapeConfigsExecuteMock == nil { + var localVarReturnValue *ScrapeConfigsResponse + return localVarReturnValue, nil + } + + return (*a.DeleteScrapeConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigReceiverRequest { + return ApiGetAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// GetAlertConfigReceiverExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAlertConfigReceiverExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetAlertConfigReceiverExecute(r ApiGetAlertConfigReceiverRequest) (*Receiver, error) { + if a.GetAlertConfigReceiverExecuteMock == nil { + var localVarReturnValue *Receiver + return localVarReturnValue, nil + } + + return (*a.GetAlertConfigReceiverExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiGetAlertConfigRouteRequest { + return ApiGetAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// GetAlertConfigRouteExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAlertConfigRouteExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetAlertConfigRouteExecute(r ApiGetAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + if a.GetAlertConfigRouteExecuteMock == nil { + var localVarReturnValue *AlertConfigRouteResponse + return localVarReturnValue, nil + } + + return (*a.GetAlertConfigRouteExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiGetAlertConfigsRequest { + return ApiGetAlertConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetAlertConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAlertConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetAlertConfigsExecute(r ApiGetAlertConfigsRequest) (*GetAlertConfigsResponse, error) { + if a.GetAlertConfigsExecuteMock == nil { + var localVarReturnValue *GetAlertConfigsResponse + return localVarReturnValue, nil + } + + return (*a.GetAlertConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiGetAlertRecordRequest { + return ApiGetAlertRecordRequest{ + ApiService: a, + ctx: ctx, + alertRecord: alertRecord, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetAlertRecordExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAlertRecordExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetAlertRecordExecute(r ApiGetAlertRecordRequest) (*AlertRecordResponse, error) { + if a.GetAlertRecordExecuteMock == nil { + var localVarReturnValue *AlertRecordResponse + return localVarReturnValue, nil + } + + return (*a.GetAlertRecordExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetAlertgroupRequest { + return ApiGetAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetAlertgroupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAlertgroupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetAlertgroupExecute(r ApiGetAlertgroupRequest) (*AlertGroupResponse, error) { + if a.GetAlertgroupExecuteMock == nil { + var localVarReturnValue *AlertGroupResponse + return localVarReturnValue, nil + } + + return (*a.GetAlertgroupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiGetAlertruleRequest { + return ApiGetAlertruleRequest{ + ApiService: a, + ctx: ctx, + alertName: alertName, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetAlertruleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAlertruleExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetAlertruleExecute(r ApiGetAlertruleRequest) (*AlertRuleResponse, error) { + if a.GetAlertruleExecuteMock == nil { + var localVarReturnValue *AlertRuleResponse + return localVarReturnValue, nil + } + + return (*a.GetAlertruleExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetCredentials(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRequest { + return ApiGetCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// GetCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetCredentialsExecute(r ApiGetCredentialsRequest) (*GetCredentialsResponse, error) { + if a.GetCredentialsExecuteMock == nil { + var localVarReturnValue *GetCredentialsResponse + return localVarReturnValue, nil + } + + return (*a.GetCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiGetCredentialsRemoteWriteConfigRequest { + return ApiGetCredentialsRemoteWriteConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// GetCredentialsRemoteWriteConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCredentialsRemoteWriteConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetCredentialsRemoteWriteConfigExecute(r ApiGetCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) { + if a.GetCredentialsRemoteWriteConfigExecuteMock == nil { + var localVarReturnValue *CredentialsRemoteWriteConfig + return localVarReturnValue, nil + } + + return (*a.GetCredentialsRemoteWriteConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiGetGrafanaConfigsRequest { + return ApiGetGrafanaConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetGrafanaConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetGrafanaConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetGrafanaConfigsExecute(r ApiGetGrafanaConfigsRequest) (*GrafanaConfigs, error) { + if a.GetGrafanaConfigsExecuteMock == nil { + var localVarReturnValue *GrafanaConfigs + return localVarReturnValue, nil + } + + return (*a.GetGrafanaConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetInstance(ctx context.Context, instanceId string, projectId string) ApiGetInstanceRequest { + return ApiGetInstanceRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*GetInstanceResponse, error) { + if a.GetInstanceExecuteMock == nil { + var localVarReturnValue *GetInstanceResponse + return localVarReturnValue, nil + } + + return (*a.GetInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiGetLogsAlertgroupRequest { + return ApiGetLogsAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetLogsAlertgroupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsAlertgroupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetLogsAlertgroupExecute(r ApiGetLogsAlertgroupRequest) (*AlertGroupResponse, error) { + if a.GetLogsAlertgroupExecuteMock == nil { + var localVarReturnValue *AlertGroupResponse + return localVarReturnValue, nil + } + + return (*a.GetLogsAlertgroupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiGetLogsConfigsRequest { + return ApiGetLogsConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetLogsConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetLogsConfigsExecute(r ApiGetLogsConfigsRequest) (*LogsConfigResponse, error) { + if a.GetLogsConfigsExecuteMock == nil { + var localVarReturnValue *LogsConfigResponse + return localVarReturnValue, nil + } + + return (*a.GetLogsConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiGetMetricsStorageRetentionRequest { + return ApiGetMetricsStorageRetentionRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetMetricsStorageRetentionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetMetricsStorageRetentionExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetMetricsStorageRetentionExecute(r ApiGetMetricsStorageRetentionRequest) (*GetMetricsStorageRetentionResponse, error) { + if a.GetMetricsStorageRetentionExecuteMock == nil { + var localVarReturnValue *GetMetricsStorageRetentionResponse + return localVarReturnValue, nil + } + + return (*a.GetMetricsStorageRetentionExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiGetScrapeConfigRequest { + return ApiGetScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + jobName: jobName, + projectId: projectId, + } +} + +// GetScrapeConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetScrapeConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetScrapeConfigExecute(r ApiGetScrapeConfigRequest) (*GetScrapeConfigResponse, error) { + if a.GetScrapeConfigExecuteMock == nil { + var localVarReturnValue *GetScrapeConfigResponse + return localVarReturnValue, nil + } + + return (*a.GetScrapeConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiGetTracesConfigsRequest { + return ApiGetTracesConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetTracesConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetTracesConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetTracesConfigsExecute(r ApiGetTracesConfigsRequest) (*TracesConfigResponse, error) { + if a.GetTracesConfigsExecuteMock == nil { + var localVarReturnValue *TracesConfigResponse + return localVarReturnValue, nil + } + + return (*a.GetTracesConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListACL(ctx context.Context, instanceId string, projectId string) ApiListACLRequest { + return ApiListACLRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListACLExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListACLExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListACLExecute(r ApiListACLRequest) (*ListACLResponse, error) { + if a.ListACLExecuteMock == nil { + var localVarReturnValue *ListACLResponse + return localVarReturnValue, nil + } + + return (*a.ListACLExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListAlertConfigReceivers(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigReceiversRequest { + return ApiListAlertConfigReceiversRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListAlertConfigReceiversExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAlertConfigReceiversExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListAlertConfigReceiversExecute(r ApiListAlertConfigReceiversRequest) (*AlertConfigReceiversResponse, error) { + if a.ListAlertConfigReceiversExecuteMock == nil { + var localVarReturnValue *AlertConfigReceiversResponse + return localVarReturnValue, nil + } + + return (*a.ListAlertConfigReceiversExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListAlertConfigRoutes(ctx context.Context, instanceId string, projectId string) ApiListAlertConfigRoutesRequest { + return ApiListAlertConfigRoutesRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListAlertConfigRoutesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAlertConfigRoutesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListAlertConfigRoutesExecute(r ApiListAlertConfigRoutesRequest) (*AlertConfigRouteResponse, error) { + if a.ListAlertConfigRoutesExecuteMock == nil { + var localVarReturnValue *AlertConfigRouteResponse + return localVarReturnValue, nil + } + + return (*a.ListAlertConfigRoutesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertRecordsRequest { + return ApiListAlertRecordsRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListAlertRecordsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAlertRecordsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListAlertRecordsExecute(r ApiListAlertRecordsRequest) (*AlertRecordsResponse, error) { + if a.ListAlertRecordsExecuteMock == nil { + var localVarReturnValue *AlertRecordsResponse + return localVarReturnValue, nil + } + + return (*a.ListAlertRecordsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListAlertgroupsRequest { + return ApiListAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListAlertgroupsExecute(r ApiListAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.ListAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.ListAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiListAlertrulesRequest { + return ApiListAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListAlertrulesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAlertrulesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListAlertrulesExecute(r ApiListAlertrulesRequest) (*AlertRulesResponse, error) { + if a.ListAlertrulesExecuteMock == nil { + var localVarReturnValue *AlertRulesResponse + return localVarReturnValue, nil + } + + return (*a.ListAlertrulesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListBackupRetentions(ctx context.Context, instanceId string, projectId string) ApiListBackupRetentionsRequest { + return ApiListBackupRetentionsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListBackupRetentionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupRetentionsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListBackupRetentionsExecute(r ApiListBackupRetentionsRequest) (*BackupRetentionResponse, error) { + if a.ListBackupRetentionsExecuteMock == nil { + var localVarReturnValue *BackupRetentionResponse + return localVarReturnValue, nil + } + + return (*a.ListBackupRetentionsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListBackupSchedules(ctx context.Context, instanceId string, projectId string) ApiListBackupSchedulesRequest { + return ApiListBackupSchedulesRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListBackupSchedulesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupSchedulesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListBackupSchedulesExecute(r ApiListBackupSchedulesRequest) (*BackupScheduleResponse, error) { + if a.ListBackupSchedulesExecuteMock == nil { + var localVarReturnValue *BackupScheduleResponse + return localVarReturnValue, nil + } + + return (*a.ListBackupSchedulesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest { + return ApiListBackupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListBackupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*BackupResponse, error) { + if a.ListBackupsExecuteMock == nil { + var localVarReturnValue *BackupResponse + return localVarReturnValue, nil + } + + return (*a.ListBackupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListCertChecks(ctx context.Context, instanceId string, projectId string) ApiListCertChecksRequest { + return ApiListCertChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListCertChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCertChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListCertChecksExecute(r ApiListCertChecksRequest) (*CertCheckResponse, error) { + if a.ListCertChecksExecuteMock == nil { + var localVarReturnValue *CertCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListCertChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListCredentials(ctx context.Context, instanceId string, projectId string) ApiListCredentialsRequest { + return ApiListCredentialsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, error) { + if a.ListCredentialsExecuteMock == nil { + var localVarReturnValue *ListCredentialsResponse + return localVarReturnValue, nil + } + + return (*a.ListCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListElasticsearchChecks(ctx context.Context, instanceId string, projectId string) ApiListElasticsearchChecksRequest { + return ApiListElasticsearchChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListElasticsearchChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListElasticsearchChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListElasticsearchChecksExecute(r ApiListElasticsearchChecksRequest) (*ElasticsearchCheckResponse, error) { + if a.ListElasticsearchChecksExecuteMock == nil { + var localVarReturnValue *ElasticsearchCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListElasticsearchChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListHttpChecks(ctx context.Context, instanceId string, projectId string) ApiListHttpChecksRequest { + return ApiListHttpChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListHttpChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListHttpChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListHttpChecksExecute(r ApiListHttpChecksRequest) (*HttpCheckResponse, error) { + if a.ListHttpChecksExecuteMock == nil { + var localVarReturnValue *HttpCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListHttpChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest { + return ApiListInstancesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ListInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListInstancesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) { + if a.ListInstancesExecuteMock == nil { + var localVarReturnValue *ListInstancesResponse + return localVarReturnValue, nil + } + + return (*a.ListInstancesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListLogsAlertgroups(ctx context.Context, instanceId string, projectId string) ApiListLogsAlertgroupsRequest { + return ApiListLogsAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListLogsAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListLogsAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListLogsAlertgroupsExecute(r ApiListLogsAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.ListLogsAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.ListLogsAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListMongodbChecks(ctx context.Context, instanceId string, projectId string) ApiListMongodbChecksRequest { + return ApiListMongodbChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListMongodbChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMongodbChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListMongodbChecksExecute(r ApiListMongodbChecksRequest) (*MongodbCheckResponse, error) { + if a.ListMongodbChecksExecuteMock == nil { + var localVarReturnValue *MongodbCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListMongodbChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListMysqlChecks(ctx context.Context, instanceId string, projectId string) ApiListMysqlChecksRequest { + return ApiListMysqlChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListMysqlChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMysqlChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListMysqlChecksExecute(r ApiListMysqlChecksRequest) (*MysqlCheckResponse, error) { + if a.ListMysqlChecksExecuteMock == nil { + var localVarReturnValue *MysqlCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListMysqlChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListNetworkChecks(ctx context.Context, instanceId string, projectId string) ApiListNetworkChecksRequest { + return ApiListNetworkChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListNetworkChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListNetworkChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListNetworkChecksExecute(r ApiListNetworkChecksRequest) (*NetworkCheckResponse, error) { + if a.ListNetworkChecksExecuteMock == nil { + var localVarReturnValue *NetworkCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListNetworkChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest { + return ApiListOfferingsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ListOfferingsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListOfferingsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListOfferingsExecute(r ApiListOfferingsRequest) (*Offerings, error) { + if a.ListOfferingsExecuteMock == nil { + var localVarReturnValue *Offerings + return localVarReturnValue, nil + } + + return (*a.ListOfferingsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListPingChecks(ctx context.Context, instanceId string, projectId string) ApiListPingChecksRequest { + return ApiListPingChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListPingChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListPingChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListPingChecksExecute(r ApiListPingChecksRequest) (*PingCheckResponse, error) { + if a.ListPingChecksExecuteMock == nil { + var localVarReturnValue *PingCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListPingChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListPlans(ctx context.Context, projectId string) ApiListPlansRequest { + return ApiListPlansRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ListPlansExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListPlansExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListPlansExecute(r ApiListPlansRequest) (*PlansResponse, error) { + if a.ListPlansExecuteMock == nil { + var localVarReturnValue *PlansResponse + return localVarReturnValue, nil + } + + return (*a.ListPlansExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListPostgresqlChecks(ctx context.Context, instanceId string, projectId string) ApiListPostgresqlChecksRequest { + return ApiListPostgresqlChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListPostgresqlChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListPostgresqlChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListPostgresqlChecksExecute(r ApiListPostgresqlChecksRequest) (*PostgresqlCheckResponse, error) { + if a.ListPostgresqlChecksExecuteMock == nil { + var localVarReturnValue *PostgresqlCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListPostgresqlChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListRabbitmqChecks(ctx context.Context, instanceId string, projectId string) ApiListRabbitmqChecksRequest { + return ApiListRabbitmqChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListRabbitmqChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRabbitmqChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListRabbitmqChecksExecute(r ApiListRabbitmqChecksRequest) (*RabbitmqCheckResponse, error) { + if a.ListRabbitmqChecksExecuteMock == nil { + var localVarReturnValue *RabbitmqCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListRabbitmqChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListRedisChecks(ctx context.Context, instanceId string, projectId string) ApiListRedisChecksRequest { + return ApiListRedisChecksRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListRedisChecksExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRedisChecksExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListRedisChecksExecute(r ApiListRedisChecksRequest) (*RedisCheckResponse, error) { + if a.ListRedisChecksExecuteMock == nil { + var localVarReturnValue *RedisCheckResponse + return localVarReturnValue, nil + } + + return (*a.ListRedisChecksExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiListScrapeConfigsRequest { + return ApiListScrapeConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListScrapeConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListScrapeConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListScrapeConfigsExecute(r ApiListScrapeConfigsRequest) (*ListScrapeConfigsResponse, error) { + if a.ListScrapeConfigsExecuteMock == nil { + var localVarReturnValue *ListScrapeConfigsResponse + return localVarReturnValue, nil + } + + return (*a.ListScrapeConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) PartialUpdateAlertRecords(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertRecordsRequest { + return ApiPartialUpdateAlertRecordsRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// PartialUpdateAlertRecordsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateAlertRecordsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) PartialUpdateAlertRecordsExecute(r ApiPartialUpdateAlertRecordsRequest) (*AlertRecordsResponse, error) { + if a.PartialUpdateAlertRecordsExecuteMock == nil { + var localVarReturnValue *AlertRecordsResponse + return localVarReturnValue, nil + } + + return (*a.PartialUpdateAlertRecordsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) PartialUpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateAlertgroupsRequest { + return ApiPartialUpdateAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// PartialUpdateAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) PartialUpdateAlertgroupsExecute(r ApiPartialUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.PartialUpdateAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.PartialUpdateAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) PartialUpdateAlertrules(ctx context.Context, groupName string, instanceId string, projectId string) ApiPartialUpdateAlertrulesRequest { + return ApiPartialUpdateAlertrulesRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// PartialUpdateAlertrulesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateAlertrulesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) PartialUpdateAlertrulesExecute(r ApiPartialUpdateAlertrulesRequest) (*AlertRulesResponse, error) { + if a.PartialUpdateAlertrulesExecuteMock == nil { + var localVarReturnValue *AlertRulesResponse + return localVarReturnValue, nil + } + + return (*a.PartialUpdateAlertrulesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) PartialUpdateScrapeConfigs(ctx context.Context, instanceId string, projectId string) ApiPartialUpdateScrapeConfigsRequest { + return ApiPartialUpdateScrapeConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// PartialUpdateScrapeConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateScrapeConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) PartialUpdateScrapeConfigsExecute(r ApiPartialUpdateScrapeConfigsRequest) (*ScrapeConfigsResponse, error) { + if a.PartialUpdateScrapeConfigsExecuteMock == nil { + var localVarReturnValue *ScrapeConfigsResponse + return localVarReturnValue, nil + } + + return (*a.PartialUpdateScrapeConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) RestoreBackup(ctx context.Context, backupDate string, instanceId string, projectId string) ApiRestoreBackupRequest { + return ApiRestoreBackupRequest{ + ApiService: a, + ctx: ctx, + backupDate: backupDate, + instanceId: instanceId, + projectId: projectId, + } +} + +// RestoreBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RestoreBackupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) RestoreBackupExecute(r ApiRestoreBackupRequest) (*Message, error) { + if a.RestoreBackupExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.RestoreBackupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateACL(ctx context.Context, instanceId string, projectId string) ApiUpdateACLRequest { + return ApiUpdateACLRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateACLExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateACLExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateACLExecute(r ApiUpdateACLRequest) (*Message, error) { + if a.UpdateACLExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.UpdateACLExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertConfigReceiver(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigReceiverRequest { + return ApiUpdateAlertConfigReceiverRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// UpdateAlertConfigReceiverExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertConfigReceiverExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertConfigReceiverExecute(r ApiUpdateAlertConfigReceiverRequest) (*AlertConfigReceiversResponse, error) { + if a.UpdateAlertConfigReceiverExecuteMock == nil { + var localVarReturnValue *AlertConfigReceiversResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertConfigReceiverExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertConfigRoute(ctx context.Context, instanceId string, projectId string, receiver string) ApiUpdateAlertConfigRouteRequest { + return ApiUpdateAlertConfigRouteRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + receiver: receiver, + } +} + +// UpdateAlertConfigRouteExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertConfigRouteExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertConfigRouteExecute(r ApiUpdateAlertConfigRouteRequest) (*AlertConfigRouteResponse, error) { + if a.UpdateAlertConfigRouteExecuteMock == nil { + var localVarReturnValue *AlertConfigRouteResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertConfigRouteExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertConfigsRequest { + return ApiUpdateAlertConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateAlertConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertConfigsExecute(r ApiUpdateAlertConfigsRequest) (*UpdateAlertConfigsResponse, error) { + if a.UpdateAlertConfigsExecuteMock == nil { + var localVarReturnValue *UpdateAlertConfigsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertRecord(ctx context.Context, alertRecord string, groupName string, instanceId string, projectId string) ApiUpdateAlertRecordRequest { + return ApiUpdateAlertRecordRequest{ + ApiService: a, + ctx: ctx, + alertRecord: alertRecord, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateAlertRecordExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertRecordExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertRecordExecute(r ApiUpdateAlertRecordRequest) (*AlertRecordsResponse, error) { + if a.UpdateAlertRecordExecuteMock == nil { + var localVarReturnValue *AlertRecordsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertRecordExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateAlertgroupRequest { + return ApiUpdateAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateAlertgroupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertgroupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertgroupExecute(r ApiUpdateAlertgroupRequest) (*AlertGroupsResponse, error) { + if a.UpdateAlertgroupExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertgroupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertgroups(ctx context.Context, instanceId string, projectId string) ApiUpdateAlertgroupsRequest { + return ApiUpdateAlertgroupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateAlertgroupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertgroupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertgroupsExecute(r ApiUpdateAlertgroupsRequest) (*AlertGroupsResponse, error) { + if a.UpdateAlertgroupsExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertgroupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateAlertrule(ctx context.Context, alertName string, groupName string, instanceId string, projectId string) ApiUpdateAlertruleRequest { + return ApiUpdateAlertruleRequest{ + ApiService: a, + ctx: ctx, + alertName: alertName, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateAlertruleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAlertruleExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateAlertruleExecute(r ApiUpdateAlertruleRequest) (*AlertRulesResponse, error) { + if a.UpdateAlertruleExecuteMock == nil { + var localVarReturnValue *AlertRulesResponse + return localVarReturnValue, nil + } + + return (*a.UpdateAlertruleExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateCredentialsRemoteWriteConfig(ctx context.Context, instanceId string, projectId string, username string) ApiUpdateCredentialsRemoteWriteConfigRequest { + return ApiUpdateCredentialsRemoteWriteConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + username: username, + } +} + +// UpdateCredentialsRemoteWriteConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateCredentialsRemoteWriteConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateCredentialsRemoteWriteConfigExecute(r ApiUpdateCredentialsRemoteWriteConfigRequest) (*CredentialsRemoteWriteConfig, error) { + if a.UpdateCredentialsRemoteWriteConfigExecuteMock == nil { + var localVarReturnValue *CredentialsRemoteWriteConfig + return localVarReturnValue, nil + } + + return (*a.UpdateCredentialsRemoteWriteConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateGrafanaConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateGrafanaConfigsRequest { + return ApiUpdateGrafanaConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateGrafanaConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateGrafanaConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateGrafanaConfigsExecute(r ApiUpdateGrafanaConfigsRequest) (*Message, error) { + if a.UpdateGrafanaConfigsExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.UpdateGrafanaConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateInstance(ctx context.Context, instanceId string, projectId string) ApiUpdateInstanceRequest { + return ApiUpdateInstanceRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*InstanceResponse, error) { + if a.UpdateInstanceExecuteMock == nil { + var localVarReturnValue *InstanceResponse + return localVarReturnValue, nil + } + + return (*a.UpdateInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateLogsAlertgroup(ctx context.Context, groupName string, instanceId string, projectId string) ApiUpdateLogsAlertgroupRequest { + return ApiUpdateLogsAlertgroupRequest{ + ApiService: a, + ctx: ctx, + groupName: groupName, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateLogsAlertgroupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateLogsAlertgroupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateLogsAlertgroupExecute(r ApiUpdateLogsAlertgroupRequest) (*AlertGroupsResponse, error) { + if a.UpdateLogsAlertgroupExecuteMock == nil { + var localVarReturnValue *AlertGroupsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateLogsAlertgroupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateLogsConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateLogsConfigsRequest { + return ApiUpdateLogsConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateLogsConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateLogsConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateLogsConfigsExecute(r ApiUpdateLogsConfigsRequest) (*Message, error) { + if a.UpdateLogsConfigsExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.UpdateLogsConfigsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateMetricsStorageRetention(ctx context.Context, instanceId string, projectId string) ApiUpdateMetricsStorageRetentionRequest { + return ApiUpdateMetricsStorageRetentionRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateMetricsStorageRetentionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateMetricsStorageRetentionExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateMetricsStorageRetentionExecute(r ApiUpdateMetricsStorageRetentionRequest) (*Message, error) { + if a.UpdateMetricsStorageRetentionExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.UpdateMetricsStorageRetentionExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateScrapeConfig(ctx context.Context, instanceId string, jobName string, projectId string) ApiUpdateScrapeConfigRequest { + return ApiUpdateScrapeConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + jobName: jobName, + projectId: projectId, + } +} + +// UpdateScrapeConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateScrapeConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateScrapeConfigExecute(r ApiUpdateScrapeConfigRequest) (*ScrapeConfigsResponse, error) { + if a.UpdateScrapeConfigExecuteMock == nil { + var localVarReturnValue *ScrapeConfigsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateScrapeConfigExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateTracesConfigs(ctx context.Context, instanceId string, projectId string) ApiUpdateTracesConfigsRequest { + return ApiUpdateTracesConfigsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateTracesConfigsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateTracesConfigsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateTracesConfigsExecute(r ApiUpdateTracesConfigsRequest) (*Message, error) { + if a.UpdateTracesConfigsExecuteMock == nil { + var localVarReturnValue *Message + return localVarReturnValue, nil + } + + return (*a.UpdateTracesConfigsExecuteMock)(r) +} diff --git a/services/observability/v1api/client.go b/services/observability/v1api/client.go new file mode 100644 index 000000000..3f976e595 --- /dev/null +++ b/services/observability/v1api/client.go @@ -0,0 +1,659 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/stackitcloud/stackit-sdk-go/core/auth" + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the STACKIT Observability API API v1.1.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *config.Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI DefaultAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { + cfg := NewConfiguration() + + for _, option := range opts { + err := option(cfg) + if err != nil { + return nil, fmt.Errorf("configuring the client: %w", err) + } + } + + err := config.ConfigureRegion(cfg) + if err != nil { + return nil, fmt.Errorf("configuring region: %w", err) + } + + if cfg.HTTPClient == nil { + cfg.HTTPClient = &http.Client{} + } + + authRoundTripper, err := auth.SetupAuth(cfg) + if err != nil { + return nil, fmt.Errorf("setting up authentication: %w", err) + } + + roundTripper := authRoundTripper + if cfg.Middleware != nil { + roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) + } + + cfg.HTTPClient.Transport = roundTripper + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *config.Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/observability/v1api/configuration.go b/services/observability/v1api/configuration.go new file mode 100644 index 000000000..f7a675f56 --- /dev/null +++ b/services/observability/v1api/configuration.go @@ -0,0 +1,41 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *config.Configuration { + cfg := &config.Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "stackit-sdk-go/observability", + Debug: false, + Servers: config.ServerConfigurations{ + { + URL: "https://argus.api.{region}stackit.cloud", + Description: "No description provided", + Variables: map[string]config.ServerVariable{ + "region": { + Description: "No description provided", + DefaultValue: "eu01.", + EnumValues: []string{ + "eu01.", + }, + }, + }, + }, + }, + OperationServers: map[string]config.ServerConfigurations{}, + } + return cfg +} diff --git a/services/observability/v1api/model_alert.go b/services/observability/v1api/model_alert.go new file mode 100644 index 000000000..17051eb97 --- /dev/null +++ b/services/observability/v1api/model_alert.go @@ -0,0 +1,257 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Alert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Alert{} + +// Alert struct for Alert +type Alert struct { + Global *Global `json:"global,omitempty"` + InhibitRules []InhibitRules `json:"inhibitRules,omitempty"` + Receivers []Receivers `json:"receivers"` + Route Route `json:"route"` +} + +type _Alert Alert + +// NewAlert instantiates a new Alert object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlert(receivers []Receivers, route Route) *Alert { + this := Alert{} + this.Receivers = receivers + this.Route = route + return &this +} + +// NewAlertWithDefaults instantiates a new Alert object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertWithDefaults() *Alert { + this := Alert{} + return &this +} + +// GetGlobal returns the Global field value if set, zero value otherwise. +func (o *Alert) GetGlobal() Global { + if o == nil || IsNil(o.Global) { + var ret Global + return ret + } + return *o.Global +} + +// GetGlobalOk returns a tuple with the Global field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetGlobalOk() (*Global, bool) { + if o == nil || IsNil(o.Global) { + return nil, false + } + return o.Global, true +} + +// HasGlobal returns a boolean if a field has been set. +func (o *Alert) HasGlobal() bool { + if o != nil && !IsNil(o.Global) { + return true + } + + return false +} + +// SetGlobal gets a reference to the given Global and assigns it to the Global field. +func (o *Alert) SetGlobal(v Global) { + o.Global = &v +} + +// GetInhibitRules returns the InhibitRules field value if set, zero value otherwise. +func (o *Alert) GetInhibitRules() []InhibitRules { + if o == nil || IsNil(o.InhibitRules) { + var ret []InhibitRules + return ret + } + return o.InhibitRules +} + +// GetInhibitRulesOk returns a tuple with the InhibitRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetInhibitRulesOk() ([]InhibitRules, bool) { + if o == nil || IsNil(o.InhibitRules) { + return nil, false + } + return o.InhibitRules, true +} + +// HasInhibitRules returns a boolean if a field has been set. +func (o *Alert) HasInhibitRules() bool { + if o != nil && !IsNil(o.InhibitRules) { + return true + } + + return false +} + +// SetInhibitRules gets a reference to the given []InhibitRules and assigns it to the InhibitRules field. +func (o *Alert) SetInhibitRules(v []InhibitRules) { + o.InhibitRules = v +} + +// GetReceivers returns the Receivers field value +func (o *Alert) GetReceivers() []Receivers { + if o == nil { + var ret []Receivers + return ret + } + + return o.Receivers +} + +// GetReceiversOk returns a tuple with the Receivers field value +// and a boolean to check if the value has been set. +func (o *Alert) GetReceiversOk() ([]Receivers, bool) { + if o == nil { + return nil, false + } + return o.Receivers, true +} + +// SetReceivers sets field value +func (o *Alert) SetReceivers(v []Receivers) { + o.Receivers = v +} + +// GetRoute returns the Route field value +func (o *Alert) GetRoute() Route { + if o == nil { + var ret Route + return ret + } + + return o.Route +} + +// GetRouteOk returns a tuple with the Route field value +// and a boolean to check if the value has been set. +func (o *Alert) GetRouteOk() (*Route, bool) { + if o == nil { + return nil, false + } + return &o.Route, true +} + +// SetRoute sets field value +func (o *Alert) SetRoute(v Route) { + o.Route = v +} + +func (o Alert) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Alert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Global) { + toSerialize["global"] = o.Global + } + if !IsNil(o.InhibitRules) { + toSerialize["inhibitRules"] = o.InhibitRules + } + toSerialize["receivers"] = o.Receivers + toSerialize["route"] = o.Route + return toSerialize, nil +} + +func (o *Alert) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receivers", + "route", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlert := _Alert{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlert) + + if err != nil { + return err + } + + *o = Alert(varAlert) + + return err +} + +type NullableAlert struct { + value *Alert + isSet bool +} + +func (v NullableAlert) Get() *Alert { + return v.value +} + +func (v *NullableAlert) Set(val *Alert) { + v.value = val + v.isSet = true +} + +func (v NullableAlert) IsSet() bool { + return v.isSet +} + +func (v *NullableAlert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlert(val *Alert) *NullableAlert { + return &NullableAlert{value: val, isSet: true} +} + +func (v NullableAlert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_config_receivers_response.go b/services/observability/v1api/model_alert_config_receivers_response.go new file mode 100644 index 000000000..d897f5d0a --- /dev/null +++ b/services/observability/v1api/model_alert_config_receivers_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertConfigReceiversResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertConfigReceiversResponse{} + +// AlertConfigReceiversResponse struct for AlertConfigReceiversResponse +type AlertConfigReceiversResponse struct { + Data []Receivers `json:"data"` + Message string `json:"message"` +} + +type _AlertConfigReceiversResponse AlertConfigReceiversResponse + +// NewAlertConfigReceiversResponse instantiates a new AlertConfigReceiversResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertConfigReceiversResponse(data []Receivers, message string) *AlertConfigReceiversResponse { + this := AlertConfigReceiversResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertConfigReceiversResponseWithDefaults instantiates a new AlertConfigReceiversResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertConfigReceiversResponseWithDefaults() *AlertConfigReceiversResponse { + this := AlertConfigReceiversResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertConfigReceiversResponse) GetData() []Receivers { + if o == nil { + var ret []Receivers + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertConfigReceiversResponse) GetDataOk() ([]Receivers, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *AlertConfigReceiversResponse) SetData(v []Receivers) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertConfigReceiversResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertConfigReceiversResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertConfigReceiversResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertConfigReceiversResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertConfigReceiversResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertConfigReceiversResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertConfigReceiversResponse := _AlertConfigReceiversResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertConfigReceiversResponse) + + if err != nil { + return err + } + + *o = AlertConfigReceiversResponse(varAlertConfigReceiversResponse) + + return err +} + +type NullableAlertConfigReceiversResponse struct { + value *AlertConfigReceiversResponse + isSet bool +} + +func (v NullableAlertConfigReceiversResponse) Get() *AlertConfigReceiversResponse { + return v.value +} + +func (v *NullableAlertConfigReceiversResponse) Set(val *AlertConfigReceiversResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertConfigReceiversResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertConfigReceiversResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertConfigReceiversResponse(val *AlertConfigReceiversResponse) *NullableAlertConfigReceiversResponse { + return &NullableAlertConfigReceiversResponse{value: val, isSet: true} +} + +func (v NullableAlertConfigReceiversResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertConfigReceiversResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_config_route_response.go b/services/observability/v1api/model_alert_config_route_response.go new file mode 100644 index 000000000..b55125c74 --- /dev/null +++ b/services/observability/v1api/model_alert_config_route_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertConfigRouteResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertConfigRouteResponse{} + +// AlertConfigRouteResponse struct for AlertConfigRouteResponse +type AlertConfigRouteResponse struct { + Data Route `json:"data"` + Message string `json:"message"` +} + +type _AlertConfigRouteResponse AlertConfigRouteResponse + +// NewAlertConfigRouteResponse instantiates a new AlertConfigRouteResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertConfigRouteResponse(data Route, message string) *AlertConfigRouteResponse { + this := AlertConfigRouteResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertConfigRouteResponseWithDefaults instantiates a new AlertConfigRouteResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertConfigRouteResponseWithDefaults() *AlertConfigRouteResponse { + this := AlertConfigRouteResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertConfigRouteResponse) GetData() Route { + if o == nil { + var ret Route + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertConfigRouteResponse) GetDataOk() (*Route, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AlertConfigRouteResponse) SetData(v Route) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertConfigRouteResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertConfigRouteResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertConfigRouteResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertConfigRouteResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertConfigRouteResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertConfigRouteResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertConfigRouteResponse := _AlertConfigRouteResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertConfigRouteResponse) + + if err != nil { + return err + } + + *o = AlertConfigRouteResponse(varAlertConfigRouteResponse) + + return err +} + +type NullableAlertConfigRouteResponse struct { + value *AlertConfigRouteResponse + isSet bool +} + +func (v NullableAlertConfigRouteResponse) Get() *AlertConfigRouteResponse { + return v.value +} + +func (v *NullableAlertConfigRouteResponse) Set(val *AlertConfigRouteResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertConfigRouteResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertConfigRouteResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertConfigRouteResponse(val *AlertConfigRouteResponse) *NullableAlertConfigRouteResponse { + return &NullableAlertConfigRouteResponse{value: val, isSet: true} +} + +func (v NullableAlertConfigRouteResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertConfigRouteResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_group.go b/services/observability/v1api/model_alert_group.go new file mode 100644 index 000000000..5b6d78d30 --- /dev/null +++ b/services/observability/v1api/model_alert_group.go @@ -0,0 +1,225 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertGroup{} + +// AlertGroup struct for AlertGroup +type AlertGroup struct { + Interval *string `json:"interval,omitempty"` + Name string `json:"name"` + Rules []AlertRuleRecord `json:"rules"` +} + +type _AlertGroup AlertGroup + +// NewAlertGroup instantiates a new AlertGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertGroup(name string, rules []AlertRuleRecord) *AlertGroup { + this := AlertGroup{} + var interval string = "60s" + this.Interval = &interval + this.Name = name + this.Rules = rules + return &this +} + +// NewAlertGroupWithDefaults instantiates a new AlertGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertGroupWithDefaults() *AlertGroup { + this := AlertGroup{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *AlertGroup) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertGroup) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *AlertGroup) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *AlertGroup) SetInterval(v string) { + o.Interval = &v +} + +// GetName returns the Name field value +func (o *AlertGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AlertGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AlertGroup) SetName(v string) { + o.Name = v +} + +// GetRules returns the Rules field value +func (o *AlertGroup) GetRules() []AlertRuleRecord { + if o == nil { + var ret []AlertRuleRecord + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *AlertGroup) GetRulesOk() ([]AlertRuleRecord, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *AlertGroup) SetRules(v []AlertRuleRecord) { + o.Rules = v +} + +func (o AlertGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["name"] = o.Name + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *AlertGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertGroup := _AlertGroup{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertGroup) + + if err != nil { + return err + } + + *o = AlertGroup(varAlertGroup) + + return err +} + +type NullableAlertGroup struct { + value *AlertGroup + isSet bool +} + +func (v NullableAlertGroup) Get() *AlertGroup { + return v.value +} + +func (v *NullableAlertGroup) Set(val *AlertGroup) { + v.value = val + v.isSet = true +} + +func (v NullableAlertGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertGroup(val *AlertGroup) *NullableAlertGroup { + return &NullableAlertGroup{value: val, isSet: true} +} + +func (v NullableAlertGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_group_response.go b/services/observability/v1api/model_alert_group_response.go new file mode 100644 index 000000000..51f098286 --- /dev/null +++ b/services/observability/v1api/model_alert_group_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertGroupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertGroupResponse{} + +// AlertGroupResponse struct for AlertGroupResponse +type AlertGroupResponse struct { + Data AlertGroup `json:"data"` + Message string `json:"message"` +} + +type _AlertGroupResponse AlertGroupResponse + +// NewAlertGroupResponse instantiates a new AlertGroupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertGroupResponse(data AlertGroup, message string) *AlertGroupResponse { + this := AlertGroupResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertGroupResponseWithDefaults instantiates a new AlertGroupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertGroupResponseWithDefaults() *AlertGroupResponse { + this := AlertGroupResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertGroupResponse) GetData() AlertGroup { + if o == nil { + var ret AlertGroup + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertGroupResponse) GetDataOk() (*AlertGroup, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AlertGroupResponse) SetData(v AlertGroup) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertGroupResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertGroupResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertGroupResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertGroupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertGroupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertGroupResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertGroupResponse := _AlertGroupResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertGroupResponse) + + if err != nil { + return err + } + + *o = AlertGroupResponse(varAlertGroupResponse) + + return err +} + +type NullableAlertGroupResponse struct { + value *AlertGroupResponse + isSet bool +} + +func (v NullableAlertGroupResponse) Get() *AlertGroupResponse { + return v.value +} + +func (v *NullableAlertGroupResponse) Set(val *AlertGroupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertGroupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertGroupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertGroupResponse(val *AlertGroupResponse) *NullableAlertGroupResponse { + return &NullableAlertGroupResponse{value: val, isSet: true} +} + +func (v NullableAlertGroupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertGroupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_groups_response.go b/services/observability/v1api/model_alert_groups_response.go new file mode 100644 index 000000000..b993e75c4 --- /dev/null +++ b/services/observability/v1api/model_alert_groups_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertGroupsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertGroupsResponse{} + +// AlertGroupsResponse struct for AlertGroupsResponse +type AlertGroupsResponse struct { + Data []AlertGroup `json:"data"` + Message string `json:"message"` +} + +type _AlertGroupsResponse AlertGroupsResponse + +// NewAlertGroupsResponse instantiates a new AlertGroupsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertGroupsResponse(data []AlertGroup, message string) *AlertGroupsResponse { + this := AlertGroupsResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertGroupsResponseWithDefaults instantiates a new AlertGroupsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertGroupsResponseWithDefaults() *AlertGroupsResponse { + this := AlertGroupsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertGroupsResponse) GetData() []AlertGroup { + if o == nil { + var ret []AlertGroup + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertGroupsResponse) GetDataOk() ([]AlertGroup, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *AlertGroupsResponse) SetData(v []AlertGroup) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertGroupsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertGroupsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertGroupsResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertGroupsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertGroupsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertGroupsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertGroupsResponse := _AlertGroupsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertGroupsResponse) + + if err != nil { + return err + } + + *o = AlertGroupsResponse(varAlertGroupsResponse) + + return err +} + +type NullableAlertGroupsResponse struct { + value *AlertGroupsResponse + isSet bool +} + +func (v NullableAlertGroupsResponse) Get() *AlertGroupsResponse { + return v.value +} + +func (v *NullableAlertGroupsResponse) Set(val *AlertGroupsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertGroupsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertGroupsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertGroupsResponse(val *AlertGroupsResponse) *NullableAlertGroupsResponse { + return &NullableAlertGroupsResponse{value: val, isSet: true} +} + +func (v NullableAlertGroupsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertGroupsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_record.go b/services/observability/v1api/model_alert_record.go new file mode 100644 index 000000000..63ed1e956 --- /dev/null +++ b/services/observability/v1api/model_alert_record.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRecord type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRecord{} + +// AlertRecord struct for AlertRecord +type AlertRecord struct { + Expr string `json:"expr"` + Labels *map[string]string `json:"labels,omitempty"` + Record string `json:"record"` +} + +type _AlertRecord AlertRecord + +// NewAlertRecord instantiates a new AlertRecord object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRecord(expr string, record string) *AlertRecord { + this := AlertRecord{} + this.Expr = expr + this.Record = record + return &this +} + +// NewAlertRecordWithDefaults instantiates a new AlertRecord object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRecordWithDefaults() *AlertRecord { + this := AlertRecord{} + return &this +} + +// GetExpr returns the Expr field value +func (o *AlertRecord) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *AlertRecord) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *AlertRecord) SetExpr(v string) { + o.Expr = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *AlertRecord) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRecord) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *AlertRecord) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *AlertRecord) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetRecord returns the Record field value +func (o *AlertRecord) GetRecord() string { + if o == nil { + var ret string + return ret + } + + return o.Record +} + +// GetRecordOk returns a tuple with the Record field value +// and a boolean to check if the value has been set. +func (o *AlertRecord) GetRecordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Record, true +} + +// SetRecord sets field value +func (o *AlertRecord) SetRecord(v string) { + o.Record = v +} + +func (o AlertRecord) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRecord) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["expr"] = o.Expr + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["record"] = o.Record + return toSerialize, nil +} + +func (o *AlertRecord) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + "record", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRecord := _AlertRecord{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRecord) + + if err != nil { + return err + } + + *o = AlertRecord(varAlertRecord) + + return err +} + +type NullableAlertRecord struct { + value *AlertRecord + isSet bool +} + +func (v NullableAlertRecord) Get() *AlertRecord { + return v.value +} + +func (v *NullableAlertRecord) Set(val *AlertRecord) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRecord) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRecord) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRecord(val *AlertRecord) *NullableAlertRecord { + return &NullableAlertRecord{value: val, isSet: true} +} + +func (v NullableAlertRecord) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRecord) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_record_response.go b/services/observability/v1api/model_alert_record_response.go new file mode 100644 index 000000000..e970c83bb --- /dev/null +++ b/services/observability/v1api/model_alert_record_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRecordResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRecordResponse{} + +// AlertRecordResponse struct for AlertRecordResponse +type AlertRecordResponse struct { + Data AlertRecord `json:"data"` + Message string `json:"message"` +} + +type _AlertRecordResponse AlertRecordResponse + +// NewAlertRecordResponse instantiates a new AlertRecordResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRecordResponse(data AlertRecord, message string) *AlertRecordResponse { + this := AlertRecordResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertRecordResponseWithDefaults instantiates a new AlertRecordResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRecordResponseWithDefaults() *AlertRecordResponse { + this := AlertRecordResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertRecordResponse) GetData() AlertRecord { + if o == nil { + var ret AlertRecord + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertRecordResponse) GetDataOk() (*AlertRecord, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AlertRecordResponse) SetData(v AlertRecord) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertRecordResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertRecordResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertRecordResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertRecordResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRecordResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertRecordResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRecordResponse := _AlertRecordResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRecordResponse) + + if err != nil { + return err + } + + *o = AlertRecordResponse(varAlertRecordResponse) + + return err +} + +type NullableAlertRecordResponse struct { + value *AlertRecordResponse + isSet bool +} + +func (v NullableAlertRecordResponse) Get() *AlertRecordResponse { + return v.value +} + +func (v *NullableAlertRecordResponse) Set(val *AlertRecordResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRecordResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRecordResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRecordResponse(val *AlertRecordResponse) *NullableAlertRecordResponse { + return &NullableAlertRecordResponse{value: val, isSet: true} +} + +func (v NullableAlertRecordResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRecordResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_records_response.go b/services/observability/v1api/model_alert_records_response.go new file mode 100644 index 000000000..52c047626 --- /dev/null +++ b/services/observability/v1api/model_alert_records_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRecordsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRecordsResponse{} + +// AlertRecordsResponse struct for AlertRecordsResponse +type AlertRecordsResponse struct { + Data []AlertRecord `json:"data"` + Message string `json:"message"` +} + +type _AlertRecordsResponse AlertRecordsResponse + +// NewAlertRecordsResponse instantiates a new AlertRecordsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRecordsResponse(data []AlertRecord, message string) *AlertRecordsResponse { + this := AlertRecordsResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertRecordsResponseWithDefaults instantiates a new AlertRecordsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRecordsResponseWithDefaults() *AlertRecordsResponse { + this := AlertRecordsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertRecordsResponse) GetData() []AlertRecord { + if o == nil { + var ret []AlertRecord + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertRecordsResponse) GetDataOk() ([]AlertRecord, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *AlertRecordsResponse) SetData(v []AlertRecord) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertRecordsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertRecordsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertRecordsResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertRecordsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRecordsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertRecordsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRecordsResponse := _AlertRecordsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRecordsResponse) + + if err != nil { + return err + } + + *o = AlertRecordsResponse(varAlertRecordsResponse) + + return err +} + +type NullableAlertRecordsResponse struct { + value *AlertRecordsResponse + isSet bool +} + +func (v NullableAlertRecordsResponse) Get() *AlertRecordsResponse { + return v.value +} + +func (v *NullableAlertRecordsResponse) Set(val *AlertRecordsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRecordsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRecordsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRecordsResponse(val *AlertRecordsResponse) *NullableAlertRecordsResponse { + return &NullableAlertRecordsResponse{value: val, isSet: true} +} + +func (v NullableAlertRecordsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRecordsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_rule.go b/services/observability/v1api/model_alert_rule.go new file mode 100644 index 000000000..d4b7fb8cf --- /dev/null +++ b/services/observability/v1api/model_alert_rule.go @@ -0,0 +1,297 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRule{} + +// AlertRule struct for AlertRule +type AlertRule struct { + Alert string `json:"alert"` + Annotations *map[string]string `json:"annotations,omitempty"` + Expr string `json:"expr"` + For *string `json:"for,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` +} + +type _AlertRule AlertRule + +// NewAlertRule instantiates a new AlertRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRule(alert string, expr string) *AlertRule { + this := AlertRule{} + this.Alert = alert + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewAlertRuleWithDefaults instantiates a new AlertRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRuleWithDefaults() *AlertRule { + this := AlertRule{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value +func (o *AlertRule) GetAlert() string { + if o == nil { + var ret string + return ret + } + + return o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value +// and a boolean to check if the value has been set. +func (o *AlertRule) GetAlertOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Alert, true +} + +// SetAlert sets field value +func (o *AlertRule) SetAlert(v string) { + o.Alert = v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *AlertRule) GetAnnotations() map[string]string { + if o == nil || IsNil(o.Annotations) { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRule) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Annotations) { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *AlertRule) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *AlertRule) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetExpr returns the Expr field value +func (o *AlertRule) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *AlertRule) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *AlertRule) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *AlertRule) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRule) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *AlertRule) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *AlertRule) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *AlertRule) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRule) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *AlertRule) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *AlertRule) SetLabels(v map[string]string) { + o.Labels = &v +} + +func (o AlertRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alert"] = o.Alert + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *AlertRule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alert", + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRule := _AlertRule{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRule) + + if err != nil { + return err + } + + *o = AlertRule(varAlertRule) + + return err +} + +type NullableAlertRule struct { + value *AlertRule + isSet bool +} + +func (v NullableAlertRule) Get() *AlertRule { + return v.value +} + +func (v *NullableAlertRule) Set(val *AlertRule) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRule) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRule(val *AlertRule) *NullableAlertRule { + return &NullableAlertRule{value: val, isSet: true} +} + +func (v NullableAlertRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_rule_record.go b/services/observability/v1api/model_alert_rule_record.go new file mode 100644 index 000000000..cf1d387fb --- /dev/null +++ b/services/observability/v1api/model_alert_rule_record.go @@ -0,0 +1,337 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRuleRecord type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRuleRecord{} + +// AlertRuleRecord struct for AlertRuleRecord +type AlertRuleRecord struct { + Alert *string `json:"alert,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` + Expr string `json:"expr"` + For *string `json:"for,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + Record *string `json:"record,omitempty"` +} + +type _AlertRuleRecord AlertRuleRecord + +// NewAlertRuleRecord instantiates a new AlertRuleRecord object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRuleRecord(expr string) *AlertRuleRecord { + this := AlertRuleRecord{} + this.Expr = expr + return &this +} + +// NewAlertRuleRecordWithDefaults instantiates a new AlertRuleRecord object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRuleRecordWithDefaults() *AlertRuleRecord { + this := AlertRuleRecord{} + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *AlertRuleRecord) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRuleRecord) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *AlertRuleRecord) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *AlertRuleRecord) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *AlertRuleRecord) GetAnnotations() map[string]string { + if o == nil || IsNil(o.Annotations) { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRuleRecord) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Annotations) { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *AlertRuleRecord) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *AlertRuleRecord) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetExpr returns the Expr field value +func (o *AlertRuleRecord) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *AlertRuleRecord) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *AlertRuleRecord) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *AlertRuleRecord) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRuleRecord) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *AlertRuleRecord) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *AlertRuleRecord) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *AlertRuleRecord) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRuleRecord) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *AlertRuleRecord) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *AlertRuleRecord) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *AlertRuleRecord) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertRuleRecord) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *AlertRuleRecord) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *AlertRuleRecord) SetRecord(v string) { + o.Record = &v +} + +func (o AlertRuleRecord) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRuleRecord) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *AlertRuleRecord) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRuleRecord := _AlertRuleRecord{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRuleRecord) + + if err != nil { + return err + } + + *o = AlertRuleRecord(varAlertRuleRecord) + + return err +} + +type NullableAlertRuleRecord struct { + value *AlertRuleRecord + isSet bool +} + +func (v NullableAlertRuleRecord) Get() *AlertRuleRecord { + return v.value +} + +func (v *NullableAlertRuleRecord) Set(val *AlertRuleRecord) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRuleRecord) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRuleRecord) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRuleRecord(val *AlertRuleRecord) *NullableAlertRuleRecord { + return &NullableAlertRuleRecord{value: val, isSet: true} +} + +func (v NullableAlertRuleRecord) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRuleRecord) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_rule_response.go b/services/observability/v1api/model_alert_rule_response.go new file mode 100644 index 000000000..9303c9b09 --- /dev/null +++ b/services/observability/v1api/model_alert_rule_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRuleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRuleResponse{} + +// AlertRuleResponse struct for AlertRuleResponse +type AlertRuleResponse struct { + Data AlertRule `json:"data"` + Message string `json:"message"` +} + +type _AlertRuleResponse AlertRuleResponse + +// NewAlertRuleResponse instantiates a new AlertRuleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRuleResponse(data AlertRule, message string) *AlertRuleResponse { + this := AlertRuleResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertRuleResponseWithDefaults instantiates a new AlertRuleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRuleResponseWithDefaults() *AlertRuleResponse { + this := AlertRuleResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertRuleResponse) GetData() AlertRule { + if o == nil { + var ret AlertRule + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertRuleResponse) GetDataOk() (*AlertRule, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AlertRuleResponse) SetData(v AlertRule) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertRuleResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertRuleResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertRuleResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertRuleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRuleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertRuleResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRuleResponse := _AlertRuleResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRuleResponse) + + if err != nil { + return err + } + + *o = AlertRuleResponse(varAlertRuleResponse) + + return err +} + +type NullableAlertRuleResponse struct { + value *AlertRuleResponse + isSet bool +} + +func (v NullableAlertRuleResponse) Get() *AlertRuleResponse { + return v.value +} + +func (v *NullableAlertRuleResponse) Set(val *AlertRuleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRuleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRuleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRuleResponse(val *AlertRuleResponse) *NullableAlertRuleResponse { + return &NullableAlertRuleResponse{value: val, isSet: true} +} + +func (v NullableAlertRuleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRuleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_alert_rules_response.go b/services/observability/v1api/model_alert_rules_response.go new file mode 100644 index 000000000..1d6a7b6e9 --- /dev/null +++ b/services/observability/v1api/model_alert_rules_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the AlertRulesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertRulesResponse{} + +// AlertRulesResponse struct for AlertRulesResponse +type AlertRulesResponse struct { + Data []AlertRule `json:"data"` + Message string `json:"message"` +} + +type _AlertRulesResponse AlertRulesResponse + +// NewAlertRulesResponse instantiates a new AlertRulesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertRulesResponse(data []AlertRule, message string) *AlertRulesResponse { + this := AlertRulesResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewAlertRulesResponseWithDefaults instantiates a new AlertRulesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertRulesResponseWithDefaults() *AlertRulesResponse { + this := AlertRulesResponse{} + return &this +} + +// GetData returns the Data field value +func (o *AlertRulesResponse) GetData() []AlertRule { + if o == nil { + var ret []AlertRule + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AlertRulesResponse) GetDataOk() ([]AlertRule, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *AlertRulesResponse) SetData(v []AlertRule) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *AlertRulesResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertRulesResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertRulesResponse) SetMessage(v string) { + o.Message = v +} + +func (o AlertRulesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertRulesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *AlertRulesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertRulesResponse := _AlertRulesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAlertRulesResponse) + + if err != nil { + return err + } + + *o = AlertRulesResponse(varAlertRulesResponse) + + return err +} + +type NullableAlertRulesResponse struct { + value *AlertRulesResponse + isSet bool +} + +func (v NullableAlertRulesResponse) Get() *AlertRulesResponse { + return v.value +} + +func (v *NullableAlertRulesResponse) Set(val *AlertRulesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertRulesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertRulesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertRulesResponse(val *AlertRulesResponse) *NullableAlertRulesResponse { + return &NullableAlertRulesResponse{value: val, isSet: true} +} + +func (v NullableAlertRulesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertRulesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_backup_response.go b/services/observability/v1api/model_backup_response.go new file mode 100644 index 000000000..2771b1dcb --- /dev/null +++ b/services/observability/v1api/model_backup_response.go @@ -0,0 +1,269 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the BackupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BackupResponse{} + +// BackupResponse struct for BackupResponse +type BackupResponse struct { + AlertConfigBackups []string `json:"alertConfigBackups"` + AlertRulesBackups []string `json:"alertRulesBackups"` + GrafanaBackups []string `json:"grafanaBackups"` + Message string `json:"message"` + ScrapeConfigBackups []string `json:"scrapeConfigBackups"` +} + +type _BackupResponse BackupResponse + +// NewBackupResponse instantiates a new BackupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBackupResponse(alertConfigBackups []string, alertRulesBackups []string, grafanaBackups []string, message string, scrapeConfigBackups []string) *BackupResponse { + this := BackupResponse{} + this.AlertConfigBackups = alertConfigBackups + this.AlertRulesBackups = alertRulesBackups + this.GrafanaBackups = grafanaBackups + this.Message = message + this.ScrapeConfigBackups = scrapeConfigBackups + return &this +} + +// NewBackupResponseWithDefaults instantiates a new BackupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBackupResponseWithDefaults() *BackupResponse { + this := BackupResponse{} + return &this +} + +// GetAlertConfigBackups returns the AlertConfigBackups field value +func (o *BackupResponse) GetAlertConfigBackups() []string { + if o == nil { + var ret []string + return ret + } + + return o.AlertConfigBackups +} + +// GetAlertConfigBackupsOk returns a tuple with the AlertConfigBackups field value +// and a boolean to check if the value has been set. +func (o *BackupResponse) GetAlertConfigBackupsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.AlertConfigBackups, true +} + +// SetAlertConfigBackups sets field value +func (o *BackupResponse) SetAlertConfigBackups(v []string) { + o.AlertConfigBackups = v +} + +// GetAlertRulesBackups returns the AlertRulesBackups field value +func (o *BackupResponse) GetAlertRulesBackups() []string { + if o == nil { + var ret []string + return ret + } + + return o.AlertRulesBackups +} + +// GetAlertRulesBackupsOk returns a tuple with the AlertRulesBackups field value +// and a boolean to check if the value has been set. +func (o *BackupResponse) GetAlertRulesBackupsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.AlertRulesBackups, true +} + +// SetAlertRulesBackups sets field value +func (o *BackupResponse) SetAlertRulesBackups(v []string) { + o.AlertRulesBackups = v +} + +// GetGrafanaBackups returns the GrafanaBackups field value +func (o *BackupResponse) GetGrafanaBackups() []string { + if o == nil { + var ret []string + return ret + } + + return o.GrafanaBackups +} + +// GetGrafanaBackupsOk returns a tuple with the GrafanaBackups field value +// and a boolean to check if the value has been set. +func (o *BackupResponse) GetGrafanaBackupsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.GrafanaBackups, true +} + +// SetGrafanaBackups sets field value +func (o *BackupResponse) SetGrafanaBackups(v []string) { + o.GrafanaBackups = v +} + +// GetMessage returns the Message field value +func (o *BackupResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *BackupResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *BackupResponse) SetMessage(v string) { + o.Message = v +} + +// GetScrapeConfigBackups returns the ScrapeConfigBackups field value +func (o *BackupResponse) GetScrapeConfigBackups() []string { + if o == nil { + var ret []string + return ret + } + + return o.ScrapeConfigBackups +} + +// GetScrapeConfigBackupsOk returns a tuple with the ScrapeConfigBackups field value +// and a boolean to check if the value has been set. +func (o *BackupResponse) GetScrapeConfigBackupsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ScrapeConfigBackups, true +} + +// SetScrapeConfigBackups sets field value +func (o *BackupResponse) SetScrapeConfigBackups(v []string) { + o.ScrapeConfigBackups = v +} + +func (o BackupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BackupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alertConfigBackups"] = o.AlertConfigBackups + toSerialize["alertRulesBackups"] = o.AlertRulesBackups + toSerialize["grafanaBackups"] = o.GrafanaBackups + toSerialize["message"] = o.Message + toSerialize["scrapeConfigBackups"] = o.ScrapeConfigBackups + return toSerialize, nil +} + +func (o *BackupResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alertConfigBackups", + "alertRulesBackups", + "grafanaBackups", + "message", + "scrapeConfigBackups", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBackupResponse := _BackupResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBackupResponse) + + if err != nil { + return err + } + + *o = BackupResponse(varBackupResponse) + + return err +} + +type NullableBackupResponse struct { + value *BackupResponse + isSet bool +} + +func (v NullableBackupResponse) Get() *BackupResponse { + return v.value +} + +func (v *NullableBackupResponse) Set(val *BackupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBackupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBackupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBackupResponse(val *BackupResponse) *NullableBackupResponse { + return &NullableBackupResponse{value: val, isSet: true} +} + +func (v NullableBackupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBackupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_backup_retention_response.go b/services/observability/v1api/model_backup_retention_response.go new file mode 100644 index 000000000..69f1b2217 --- /dev/null +++ b/services/observability/v1api/model_backup_retention_response.go @@ -0,0 +1,269 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the BackupRetentionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BackupRetentionResponse{} + +// BackupRetentionResponse struct for BackupRetentionResponse +type BackupRetentionResponse struct { + AlertConfigBackupRetention string `json:"alertConfigBackupRetention"` + AlertRulesBackupRetention string `json:"alertRulesBackupRetention"` + GrafanaBackupRetention string `json:"grafanaBackupRetention"` + Message string `json:"message"` + ScrapeConfigBackupRetention string `json:"scrapeConfigBackupRetention"` +} + +type _BackupRetentionResponse BackupRetentionResponse + +// NewBackupRetentionResponse instantiates a new BackupRetentionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBackupRetentionResponse(alertConfigBackupRetention string, alertRulesBackupRetention string, grafanaBackupRetention string, message string, scrapeConfigBackupRetention string) *BackupRetentionResponse { + this := BackupRetentionResponse{} + this.AlertConfigBackupRetention = alertConfigBackupRetention + this.AlertRulesBackupRetention = alertRulesBackupRetention + this.GrafanaBackupRetention = grafanaBackupRetention + this.Message = message + this.ScrapeConfigBackupRetention = scrapeConfigBackupRetention + return &this +} + +// NewBackupRetentionResponseWithDefaults instantiates a new BackupRetentionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBackupRetentionResponseWithDefaults() *BackupRetentionResponse { + this := BackupRetentionResponse{} + return &this +} + +// GetAlertConfigBackupRetention returns the AlertConfigBackupRetention field value +func (o *BackupRetentionResponse) GetAlertConfigBackupRetention() string { + if o == nil { + var ret string + return ret + } + + return o.AlertConfigBackupRetention +} + +// GetAlertConfigBackupRetentionOk returns a tuple with the AlertConfigBackupRetention field value +// and a boolean to check if the value has been set. +func (o *BackupRetentionResponse) GetAlertConfigBackupRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AlertConfigBackupRetention, true +} + +// SetAlertConfigBackupRetention sets field value +func (o *BackupRetentionResponse) SetAlertConfigBackupRetention(v string) { + o.AlertConfigBackupRetention = v +} + +// GetAlertRulesBackupRetention returns the AlertRulesBackupRetention field value +func (o *BackupRetentionResponse) GetAlertRulesBackupRetention() string { + if o == nil { + var ret string + return ret + } + + return o.AlertRulesBackupRetention +} + +// GetAlertRulesBackupRetentionOk returns a tuple with the AlertRulesBackupRetention field value +// and a boolean to check if the value has been set. +func (o *BackupRetentionResponse) GetAlertRulesBackupRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AlertRulesBackupRetention, true +} + +// SetAlertRulesBackupRetention sets field value +func (o *BackupRetentionResponse) SetAlertRulesBackupRetention(v string) { + o.AlertRulesBackupRetention = v +} + +// GetGrafanaBackupRetention returns the GrafanaBackupRetention field value +func (o *BackupRetentionResponse) GetGrafanaBackupRetention() string { + if o == nil { + var ret string + return ret + } + + return o.GrafanaBackupRetention +} + +// GetGrafanaBackupRetentionOk returns a tuple with the GrafanaBackupRetention field value +// and a boolean to check if the value has been set. +func (o *BackupRetentionResponse) GetGrafanaBackupRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaBackupRetention, true +} + +// SetGrafanaBackupRetention sets field value +func (o *BackupRetentionResponse) SetGrafanaBackupRetention(v string) { + o.GrafanaBackupRetention = v +} + +// GetMessage returns the Message field value +func (o *BackupRetentionResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *BackupRetentionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *BackupRetentionResponse) SetMessage(v string) { + o.Message = v +} + +// GetScrapeConfigBackupRetention returns the ScrapeConfigBackupRetention field value +func (o *BackupRetentionResponse) GetScrapeConfigBackupRetention() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeConfigBackupRetention +} + +// GetScrapeConfigBackupRetentionOk returns a tuple with the ScrapeConfigBackupRetention field value +// and a boolean to check if the value has been set. +func (o *BackupRetentionResponse) GetScrapeConfigBackupRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeConfigBackupRetention, true +} + +// SetScrapeConfigBackupRetention sets field value +func (o *BackupRetentionResponse) SetScrapeConfigBackupRetention(v string) { + o.ScrapeConfigBackupRetention = v +} + +func (o BackupRetentionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BackupRetentionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alertConfigBackupRetention"] = o.AlertConfigBackupRetention + toSerialize["alertRulesBackupRetention"] = o.AlertRulesBackupRetention + toSerialize["grafanaBackupRetention"] = o.GrafanaBackupRetention + toSerialize["message"] = o.Message + toSerialize["scrapeConfigBackupRetention"] = o.ScrapeConfigBackupRetention + return toSerialize, nil +} + +func (o *BackupRetentionResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alertConfigBackupRetention", + "alertRulesBackupRetention", + "grafanaBackupRetention", + "message", + "scrapeConfigBackupRetention", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBackupRetentionResponse := _BackupRetentionResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBackupRetentionResponse) + + if err != nil { + return err + } + + *o = BackupRetentionResponse(varBackupRetentionResponse) + + return err +} + +type NullableBackupRetentionResponse struct { + value *BackupRetentionResponse + isSet bool +} + +func (v NullableBackupRetentionResponse) Get() *BackupRetentionResponse { + return v.value +} + +func (v *NullableBackupRetentionResponse) Set(val *BackupRetentionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBackupRetentionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBackupRetentionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBackupRetentionResponse(val *BackupRetentionResponse) *NullableBackupRetentionResponse { + return &NullableBackupRetentionResponse{value: val, isSet: true} +} + +func (v NullableBackupRetentionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBackupRetentionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_backup_schedule.go b/services/observability/v1api/model_backup_schedule.go new file mode 100644 index 000000000..88b8c2ed3 --- /dev/null +++ b/services/observability/v1api/model_backup_schedule.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the BackupSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BackupSchedule{} + +// BackupSchedule struct for BackupSchedule +type BackupSchedule struct { + Schedule string `json:"schedule"` + ScheduleId string `json:"scheduleId"` +} + +type _BackupSchedule BackupSchedule + +// NewBackupSchedule instantiates a new BackupSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBackupSchedule(schedule string, scheduleId string) *BackupSchedule { + this := BackupSchedule{} + this.Schedule = schedule + this.ScheduleId = scheduleId + return &this +} + +// NewBackupScheduleWithDefaults instantiates a new BackupSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBackupScheduleWithDefaults() *BackupSchedule { + this := BackupSchedule{} + return &this +} + +// GetSchedule returns the Schedule field value +func (o *BackupSchedule) GetSchedule() string { + if o == nil { + var ret string + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *BackupSchedule) GetScheduleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *BackupSchedule) SetSchedule(v string) { + o.Schedule = v +} + +// GetScheduleId returns the ScheduleId field value +func (o *BackupSchedule) GetScheduleId() string { + if o == nil { + var ret string + return ret + } + + return o.ScheduleId +} + +// GetScheduleIdOk returns a tuple with the ScheduleId field value +// and a boolean to check if the value has been set. +func (o *BackupSchedule) GetScheduleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScheduleId, true +} + +// SetScheduleId sets field value +func (o *BackupSchedule) SetScheduleId(v string) { + o.ScheduleId = v +} + +func (o BackupSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BackupSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["schedule"] = o.Schedule + toSerialize["scheduleId"] = o.ScheduleId + return toSerialize, nil +} + +func (o *BackupSchedule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "schedule", + "scheduleId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBackupSchedule := _BackupSchedule{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBackupSchedule) + + if err != nil { + return err + } + + *o = BackupSchedule(varBackupSchedule) + + return err +} + +type NullableBackupSchedule struct { + value *BackupSchedule + isSet bool +} + +func (v NullableBackupSchedule) Get() *BackupSchedule { + return v.value +} + +func (v *NullableBackupSchedule) Set(val *BackupSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableBackupSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableBackupSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBackupSchedule(val *BackupSchedule) *NullableBackupSchedule { + return &NullableBackupSchedule{value: val, isSet: true} +} + +func (v NullableBackupSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBackupSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_backup_schedule_post_response.go b/services/observability/v1api/model_backup_schedule_post_response.go new file mode 100644 index 000000000..f14a52fec --- /dev/null +++ b/services/observability/v1api/model_backup_schedule_post_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the BackupSchedulePostResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BackupSchedulePostResponse{} + +// BackupSchedulePostResponse struct for BackupSchedulePostResponse +type BackupSchedulePostResponse struct { + Message string `json:"message"` + Schedule string `json:"schedule"` +} + +type _BackupSchedulePostResponse BackupSchedulePostResponse + +// NewBackupSchedulePostResponse instantiates a new BackupSchedulePostResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBackupSchedulePostResponse(message string, schedule string) *BackupSchedulePostResponse { + this := BackupSchedulePostResponse{} + this.Message = message + this.Schedule = schedule + return &this +} + +// NewBackupSchedulePostResponseWithDefaults instantiates a new BackupSchedulePostResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBackupSchedulePostResponseWithDefaults() *BackupSchedulePostResponse { + this := BackupSchedulePostResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *BackupSchedulePostResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *BackupSchedulePostResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *BackupSchedulePostResponse) SetMessage(v string) { + o.Message = v +} + +// GetSchedule returns the Schedule field value +func (o *BackupSchedulePostResponse) GetSchedule() string { + if o == nil { + var ret string + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *BackupSchedulePostResponse) GetScheduleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *BackupSchedulePostResponse) SetSchedule(v string) { + o.Schedule = v +} + +func (o BackupSchedulePostResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BackupSchedulePostResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["schedule"] = o.Schedule + return toSerialize, nil +} + +func (o *BackupSchedulePostResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "schedule", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBackupSchedulePostResponse := _BackupSchedulePostResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBackupSchedulePostResponse) + + if err != nil { + return err + } + + *o = BackupSchedulePostResponse(varBackupSchedulePostResponse) + + return err +} + +type NullableBackupSchedulePostResponse struct { + value *BackupSchedulePostResponse + isSet bool +} + +func (v NullableBackupSchedulePostResponse) Get() *BackupSchedulePostResponse { + return v.value +} + +func (v *NullableBackupSchedulePostResponse) Set(val *BackupSchedulePostResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBackupSchedulePostResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBackupSchedulePostResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBackupSchedulePostResponse(val *BackupSchedulePostResponse) *NullableBackupSchedulePostResponse { + return &NullableBackupSchedulePostResponse{value: val, isSet: true} +} + +func (v NullableBackupSchedulePostResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBackupSchedulePostResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_backup_schedule_response.go b/services/observability/v1api/model_backup_schedule_response.go new file mode 100644 index 000000000..7f920bb9d --- /dev/null +++ b/services/observability/v1api/model_backup_schedule_response.go @@ -0,0 +1,301 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the BackupScheduleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BackupScheduleResponse{} + +// BackupScheduleResponse struct for BackupScheduleResponse +type BackupScheduleResponse struct { + AlertConfigBackupSchedules []BackupSchedule `json:"alertConfigBackupSchedules,omitempty"` + AlertRulesBackupSchedules []BackupSchedule `json:"alertRulesBackupSchedules,omitempty"` + GrafanaBackupSchedules []BackupSchedule `json:"grafanaBackupSchedules,omitempty"` + Message string `json:"message"` + ScrapeConfigBackupSchedules []BackupSchedule `json:"scrapeConfigBackupSchedules,omitempty"` +} + +type _BackupScheduleResponse BackupScheduleResponse + +// NewBackupScheduleResponse instantiates a new BackupScheduleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBackupScheduleResponse(message string) *BackupScheduleResponse { + this := BackupScheduleResponse{} + this.Message = message + return &this +} + +// NewBackupScheduleResponseWithDefaults instantiates a new BackupScheduleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBackupScheduleResponseWithDefaults() *BackupScheduleResponse { + this := BackupScheduleResponse{} + return &this +} + +// GetAlertConfigBackupSchedules returns the AlertConfigBackupSchedules field value if set, zero value otherwise. +func (o *BackupScheduleResponse) GetAlertConfigBackupSchedules() []BackupSchedule { + if o == nil || IsNil(o.AlertConfigBackupSchedules) { + var ret []BackupSchedule + return ret + } + return o.AlertConfigBackupSchedules +} + +// GetAlertConfigBackupSchedulesOk returns a tuple with the AlertConfigBackupSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BackupScheduleResponse) GetAlertConfigBackupSchedulesOk() ([]BackupSchedule, bool) { + if o == nil || IsNil(o.AlertConfigBackupSchedules) { + return nil, false + } + return o.AlertConfigBackupSchedules, true +} + +// HasAlertConfigBackupSchedules returns a boolean if a field has been set. +func (o *BackupScheduleResponse) HasAlertConfigBackupSchedules() bool { + if o != nil && !IsNil(o.AlertConfigBackupSchedules) { + return true + } + + return false +} + +// SetAlertConfigBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the AlertConfigBackupSchedules field. +func (o *BackupScheduleResponse) SetAlertConfigBackupSchedules(v []BackupSchedule) { + o.AlertConfigBackupSchedules = v +} + +// GetAlertRulesBackupSchedules returns the AlertRulesBackupSchedules field value if set, zero value otherwise. +func (o *BackupScheduleResponse) GetAlertRulesBackupSchedules() []BackupSchedule { + if o == nil || IsNil(o.AlertRulesBackupSchedules) { + var ret []BackupSchedule + return ret + } + return o.AlertRulesBackupSchedules +} + +// GetAlertRulesBackupSchedulesOk returns a tuple with the AlertRulesBackupSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BackupScheduleResponse) GetAlertRulesBackupSchedulesOk() ([]BackupSchedule, bool) { + if o == nil || IsNil(o.AlertRulesBackupSchedules) { + return nil, false + } + return o.AlertRulesBackupSchedules, true +} + +// HasAlertRulesBackupSchedules returns a boolean if a field has been set. +func (o *BackupScheduleResponse) HasAlertRulesBackupSchedules() bool { + if o != nil && !IsNil(o.AlertRulesBackupSchedules) { + return true + } + + return false +} + +// SetAlertRulesBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the AlertRulesBackupSchedules field. +func (o *BackupScheduleResponse) SetAlertRulesBackupSchedules(v []BackupSchedule) { + o.AlertRulesBackupSchedules = v +} + +// GetGrafanaBackupSchedules returns the GrafanaBackupSchedules field value if set, zero value otherwise. +func (o *BackupScheduleResponse) GetGrafanaBackupSchedules() []BackupSchedule { + if o == nil || IsNil(o.GrafanaBackupSchedules) { + var ret []BackupSchedule + return ret + } + return o.GrafanaBackupSchedules +} + +// GetGrafanaBackupSchedulesOk returns a tuple with the GrafanaBackupSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BackupScheduleResponse) GetGrafanaBackupSchedulesOk() ([]BackupSchedule, bool) { + if o == nil || IsNil(o.GrafanaBackupSchedules) { + return nil, false + } + return o.GrafanaBackupSchedules, true +} + +// HasGrafanaBackupSchedules returns a boolean if a field has been set. +func (o *BackupScheduleResponse) HasGrafanaBackupSchedules() bool { + if o != nil && !IsNil(o.GrafanaBackupSchedules) { + return true + } + + return false +} + +// SetGrafanaBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the GrafanaBackupSchedules field. +func (o *BackupScheduleResponse) SetGrafanaBackupSchedules(v []BackupSchedule) { + o.GrafanaBackupSchedules = v +} + +// GetMessage returns the Message field value +func (o *BackupScheduleResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *BackupScheduleResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *BackupScheduleResponse) SetMessage(v string) { + o.Message = v +} + +// GetScrapeConfigBackupSchedules returns the ScrapeConfigBackupSchedules field value if set, zero value otherwise. +func (o *BackupScheduleResponse) GetScrapeConfigBackupSchedules() []BackupSchedule { + if o == nil || IsNil(o.ScrapeConfigBackupSchedules) { + var ret []BackupSchedule + return ret + } + return o.ScrapeConfigBackupSchedules +} + +// GetScrapeConfigBackupSchedulesOk returns a tuple with the ScrapeConfigBackupSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BackupScheduleResponse) GetScrapeConfigBackupSchedulesOk() ([]BackupSchedule, bool) { + if o == nil || IsNil(o.ScrapeConfigBackupSchedules) { + return nil, false + } + return o.ScrapeConfigBackupSchedules, true +} + +// HasScrapeConfigBackupSchedules returns a boolean if a field has been set. +func (o *BackupScheduleResponse) HasScrapeConfigBackupSchedules() bool { + if o != nil && !IsNil(o.ScrapeConfigBackupSchedules) { + return true + } + + return false +} + +// SetScrapeConfigBackupSchedules gets a reference to the given []BackupSchedule and assigns it to the ScrapeConfigBackupSchedules field. +func (o *BackupScheduleResponse) SetScrapeConfigBackupSchedules(v []BackupSchedule) { + o.ScrapeConfigBackupSchedules = v +} + +func (o BackupScheduleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BackupScheduleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlertConfigBackupSchedules) { + toSerialize["alertConfigBackupSchedules"] = o.AlertConfigBackupSchedules + } + if !IsNil(o.AlertRulesBackupSchedules) { + toSerialize["alertRulesBackupSchedules"] = o.AlertRulesBackupSchedules + } + if !IsNil(o.GrafanaBackupSchedules) { + toSerialize["grafanaBackupSchedules"] = o.GrafanaBackupSchedules + } + toSerialize["message"] = o.Message + if !IsNil(o.ScrapeConfigBackupSchedules) { + toSerialize["scrapeConfigBackupSchedules"] = o.ScrapeConfigBackupSchedules + } + return toSerialize, nil +} + +func (o *BackupScheduleResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBackupScheduleResponse := _BackupScheduleResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBackupScheduleResponse) + + if err != nil { + return err + } + + *o = BackupScheduleResponse(varBackupScheduleResponse) + + return err +} + +type NullableBackupScheduleResponse struct { + value *BackupScheduleResponse + isSet bool +} + +func (v NullableBackupScheduleResponse) Get() *BackupScheduleResponse { + return v.value +} + +func (v *NullableBackupScheduleResponse) Set(val *BackupScheduleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBackupScheduleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBackupScheduleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBackupScheduleResponse(val *BackupScheduleResponse) *NullableBackupScheduleResponse { + return &NullableBackupScheduleResponse{value: val, isSet: true} +} + +func (v NullableBackupScheduleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBackupScheduleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_basic_auth.go b/services/observability/v1api/model_basic_auth.go new file mode 100644 index 000000000..9a9685554 --- /dev/null +++ b/services/observability/v1api/model_basic_auth.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the BasicAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BasicAuth{} + +// BasicAuth struct for BasicAuth +type BasicAuth struct { + Password string `json:"password"` + Username string `json:"username"` +} + +type _BasicAuth BasicAuth + +// NewBasicAuth instantiates a new BasicAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBasicAuth(password string, username string) *BasicAuth { + this := BasicAuth{} + this.Password = password + this.Username = username + return &this +} + +// NewBasicAuthWithDefaults instantiates a new BasicAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBasicAuthWithDefaults() *BasicAuth { + this := BasicAuth{} + return &this +} + +// GetPassword returns the Password field value +func (o *BasicAuth) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *BasicAuth) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *BasicAuth) SetPassword(v string) { + o.Password = v +} + +// GetUsername returns the Username field value +func (o *BasicAuth) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *BasicAuth) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BasicAuth) SetUsername(v string) { + o.Username = v +} + +func (o BasicAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BasicAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["password"] = o.Password + toSerialize["username"] = o.Username + return toSerialize, nil +} + +func (o *BasicAuth) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "password", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBasicAuth := _BasicAuth{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBasicAuth) + + if err != nil { + return err + } + + *o = BasicAuth(varBasicAuth) + + return err +} + +type NullableBasicAuth struct { + value *BasicAuth + isSet bool +} + +func (v NullableBasicAuth) Get() *BasicAuth { + return v.value +} + +func (v *NullableBasicAuth) Set(val *BasicAuth) { + v.value = val + v.isSet = true +} + +func (v NullableBasicAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableBasicAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBasicAuth(val *BasicAuth) *NullableBasicAuth { + return &NullableBasicAuth{value: val, isSet: true} +} + +func (v NullableBasicAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBasicAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_cert_check_child_response.go b/services/observability/v1api/model_cert_check_child_response.go new file mode 100644 index 000000000..ef7fb56c8 --- /dev/null +++ b/services/observability/v1api/model_cert_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CertCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertCheckChildResponse{} + +// CertCheckChildResponse struct for CertCheckChildResponse +type CertCheckChildResponse struct { + Id string `json:"id"` + Source string `json:"source"` +} + +type _CertCheckChildResponse CertCheckChildResponse + +// NewCertCheckChildResponse instantiates a new CertCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertCheckChildResponse(id string, source string) *CertCheckChildResponse { + this := CertCheckChildResponse{} + this.Id = id + this.Source = source + return &this +} + +// NewCertCheckChildResponseWithDefaults instantiates a new CertCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertCheckChildResponseWithDefaults() *CertCheckChildResponse { + this := CertCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *CertCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CertCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CertCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetSource returns the Source field value +func (o *CertCheckChildResponse) GetSource() string { + if o == nil { + var ret string + return ret + } + + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value +// and a boolean to check if the value has been set. +func (o *CertCheckChildResponse) GetSourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Source, true +} + +// SetSource sets field value +func (o *CertCheckChildResponse) SetSource(v string) { + o.Source = v +} + +func (o CertCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["source"] = o.Source + return toSerialize, nil +} + +func (o *CertCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "source", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCertCheckChildResponse := _CertCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCertCheckChildResponse) + + if err != nil { + return err + } + + *o = CertCheckChildResponse(varCertCheckChildResponse) + + return err +} + +type NullableCertCheckChildResponse struct { + value *CertCheckChildResponse + isSet bool +} + +func (v NullableCertCheckChildResponse) Get() *CertCheckChildResponse { + return v.value +} + +func (v *NullableCertCheckChildResponse) Set(val *CertCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertCheckChildResponse(val *CertCheckChildResponse) *NullableCertCheckChildResponse { + return &NullableCertCheckChildResponse{value: val, isSet: true} +} + +func (v NullableCertCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_cert_check_response.go b/services/observability/v1api/model_cert_check_response.go new file mode 100644 index 000000000..0790545dc --- /dev/null +++ b/services/observability/v1api/model_cert_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CertCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertCheckResponse{} + +// CertCheckResponse struct for CertCheckResponse +type CertCheckResponse struct { + CertCheck *CertCheckChildResponse `json:"certCheck,omitempty"` + CertChecks []CertCheckChildResponse `json:"certChecks"` + Message string `json:"message"` +} + +type _CertCheckResponse CertCheckResponse + +// NewCertCheckResponse instantiates a new CertCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertCheckResponse(certChecks []CertCheckChildResponse, message string) *CertCheckResponse { + this := CertCheckResponse{} + this.CertChecks = certChecks + this.Message = message + return &this +} + +// NewCertCheckResponseWithDefaults instantiates a new CertCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertCheckResponseWithDefaults() *CertCheckResponse { + this := CertCheckResponse{} + return &this +} + +// GetCertCheck returns the CertCheck field value if set, zero value otherwise. +func (o *CertCheckResponse) GetCertCheck() CertCheckChildResponse { + if o == nil || IsNil(o.CertCheck) { + var ret CertCheckChildResponse + return ret + } + return *o.CertCheck +} + +// GetCertCheckOk returns a tuple with the CertCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertCheckResponse) GetCertCheckOk() (*CertCheckChildResponse, bool) { + if o == nil || IsNil(o.CertCheck) { + return nil, false + } + return o.CertCheck, true +} + +// HasCertCheck returns a boolean if a field has been set. +func (o *CertCheckResponse) HasCertCheck() bool { + if o != nil && !IsNil(o.CertCheck) { + return true + } + + return false +} + +// SetCertCheck gets a reference to the given CertCheckChildResponse and assigns it to the CertCheck field. +func (o *CertCheckResponse) SetCertCheck(v CertCheckChildResponse) { + o.CertCheck = &v +} + +// GetCertChecks returns the CertChecks field value +func (o *CertCheckResponse) GetCertChecks() []CertCheckChildResponse { + if o == nil { + var ret []CertCheckChildResponse + return ret + } + + return o.CertChecks +} + +// GetCertChecksOk returns a tuple with the CertChecks field value +// and a boolean to check if the value has been set. +func (o *CertCheckResponse) GetCertChecksOk() ([]CertCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.CertChecks, true +} + +// SetCertChecks sets field value +func (o *CertCheckResponse) SetCertChecks(v []CertCheckChildResponse) { + o.CertChecks = v +} + +// GetMessage returns the Message field value +func (o *CertCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *CertCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *CertCheckResponse) SetMessage(v string) { + o.Message = v +} + +func (o CertCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CertCheck) { + toSerialize["certCheck"] = o.CertCheck + } + toSerialize["certChecks"] = o.CertChecks + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *CertCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "certChecks", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCertCheckResponse := _CertCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCertCheckResponse) + + if err != nil { + return err + } + + *o = CertCheckResponse(varCertCheckResponse) + + return err +} + +type NullableCertCheckResponse struct { + value *CertCheckResponse + isSet bool +} + +func (v NullableCertCheckResponse) Get() *CertCheckResponse { + return v.value +} + +func (v *NullableCertCheckResponse) Set(val *CertCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertCheckResponse(val *CertCheckResponse) *NullableCertCheckResponse { + return &NullableCertCheckResponse{value: val, isSet: true} +} + +func (v NullableCertCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_config_receiver_payload.go b/services/observability/v1api/model_create_alert_config_receiver_payload.go new file mode 100644 index 000000000..e5bac66f1 --- /dev/null +++ b/services/observability/v1api/model_create_alert_config_receiver_payload.go @@ -0,0 +1,268 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateAlertConfigReceiverPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertConfigReceiverPayload{} + +// CreateAlertConfigReceiverPayload Receivers +type CreateAlertConfigReceiverPayload struct { + // Email configurations + EmailConfigs []CreateAlertConfigReceiverPayloadEmailConfigsInner `json:"emailConfigs,omitempty"` + // `Additional Validators:` * must be unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // Configuration for ops genie. + OpsgenieConfigs []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner `json:"opsgenieConfigs,omitempty"` + WebHookConfigs []CreateAlertConfigReceiverPayloadWebHookConfigsInner `json:"webHookConfigs,omitempty"` +} + +type _CreateAlertConfigReceiverPayload CreateAlertConfigReceiverPayload + +// NewCreateAlertConfigReceiverPayload instantiates a new CreateAlertConfigReceiverPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertConfigReceiverPayload(name string) *CreateAlertConfigReceiverPayload { + this := CreateAlertConfigReceiverPayload{} + this.Name = name + return &this +} + +// NewCreateAlertConfigReceiverPayloadWithDefaults instantiates a new CreateAlertConfigReceiverPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertConfigReceiverPayloadWithDefaults() *CreateAlertConfigReceiverPayload { + this := CreateAlertConfigReceiverPayload{} + return &this +} + +// GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayload) GetEmailConfigs() []CreateAlertConfigReceiverPayloadEmailConfigsInner { + if o == nil || IsNil(o.EmailConfigs) { + var ret []CreateAlertConfigReceiverPayloadEmailConfigsInner + return ret + } + return o.EmailConfigs +} + +// GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayload) GetEmailConfigsOk() ([]CreateAlertConfigReceiverPayloadEmailConfigsInner, bool) { + if o == nil || IsNil(o.EmailConfigs) { + return nil, false + } + return o.EmailConfigs, true +} + +// HasEmailConfigs returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayload) HasEmailConfigs() bool { + if o != nil && !IsNil(o.EmailConfigs) { + return true + } + + return false +} + +// SetEmailConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadEmailConfigsInner and assigns it to the EmailConfigs field. +func (o *CreateAlertConfigReceiverPayload) SetEmailConfigs(v []CreateAlertConfigReceiverPayloadEmailConfigsInner) { + o.EmailConfigs = v +} + +// GetName returns the Name field value +func (o *CreateAlertConfigReceiverPayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateAlertConfigReceiverPayload) SetName(v string) { + o.Name = v +} + +// GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayload) GetOpsgenieConfigs() []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { + if o == nil || IsNil(o.OpsgenieConfigs) { + var ret []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + return ret + } + return o.OpsgenieConfigs +} + +// GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayload) GetOpsgenieConfigsOk() ([]CreateAlertConfigReceiverPayloadOpsgenieConfigsInner, bool) { + if o == nil || IsNil(o.OpsgenieConfigs) { + return nil, false + } + return o.OpsgenieConfigs, true +} + +// HasOpsgenieConfigs returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayload) HasOpsgenieConfigs() bool { + if o != nil && !IsNil(o.OpsgenieConfigs) { + return true + } + + return false +} + +// SetOpsgenieConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner and assigns it to the OpsgenieConfigs field. +func (o *CreateAlertConfigReceiverPayload) SetOpsgenieConfigs(v []CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) { + o.OpsgenieConfigs = v +} + +// GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayload) GetWebHookConfigs() []CreateAlertConfigReceiverPayloadWebHookConfigsInner { + if o == nil || IsNil(o.WebHookConfigs) { + var ret []CreateAlertConfigReceiverPayloadWebHookConfigsInner + return ret + } + return o.WebHookConfigs +} + +// GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayload) GetWebHookConfigsOk() ([]CreateAlertConfigReceiverPayloadWebHookConfigsInner, bool) { + if o == nil || IsNil(o.WebHookConfigs) { + return nil, false + } + return o.WebHookConfigs, true +} + +// HasWebHookConfigs returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayload) HasWebHookConfigs() bool { + if o != nil && !IsNil(o.WebHookConfigs) { + return true + } + + return false +} + +// SetWebHookConfigs gets a reference to the given []CreateAlertConfigReceiverPayloadWebHookConfigsInner and assigns it to the WebHookConfigs field. +func (o *CreateAlertConfigReceiverPayload) SetWebHookConfigs(v []CreateAlertConfigReceiverPayloadWebHookConfigsInner) { + o.WebHookConfigs = v +} + +func (o CreateAlertConfigReceiverPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertConfigReceiverPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EmailConfigs) { + toSerialize["emailConfigs"] = o.EmailConfigs + } + toSerialize["name"] = o.Name + if !IsNil(o.OpsgenieConfigs) { + toSerialize["opsgenieConfigs"] = o.OpsgenieConfigs + } + if !IsNil(o.WebHookConfigs) { + toSerialize["webHookConfigs"] = o.WebHookConfigs + } + return toSerialize, nil +} + +func (o *CreateAlertConfigReceiverPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAlertConfigReceiverPayload := _CreateAlertConfigReceiverPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateAlertConfigReceiverPayload) + + if err != nil { + return err + } + + *o = CreateAlertConfigReceiverPayload(varCreateAlertConfigReceiverPayload) + + return err +} + +type NullableCreateAlertConfigReceiverPayload struct { + value *CreateAlertConfigReceiverPayload + isSet bool +} + +func (v NullableCreateAlertConfigReceiverPayload) Get() *CreateAlertConfigReceiverPayload { + return v.value +} + +func (v *NullableCreateAlertConfigReceiverPayload) Set(val *CreateAlertConfigReceiverPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertConfigReceiverPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertConfigReceiverPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertConfigReceiverPayload(val *CreateAlertConfigReceiverPayload) *NullableCreateAlertConfigReceiverPayload { + return &NullableCreateAlertConfigReceiverPayload{value: val, isSet: true} +} + +func (v NullableCreateAlertConfigReceiverPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertConfigReceiverPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_config_receiver_payload_email_configs_inner.go b/services/observability/v1api/model_create_alert_config_receiver_payload_email_configs_inner.go new file mode 100644 index 000000000..96c94dbdf --- /dev/null +++ b/services/observability/v1api/model_create_alert_config_receiver_payload_email_configs_inner.go @@ -0,0 +1,352 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateAlertConfigReceiverPayloadEmailConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertConfigReceiverPayloadEmailConfigsInner{} + +// CreateAlertConfigReceiverPayloadEmailConfigsInner struct for CreateAlertConfigReceiverPayloadEmailConfigsInner +type CreateAlertConfigReceiverPayloadEmailConfigsInner struct { + // SMTP authentication information. `Additional Validators:` * must be a syntactically valid email address + AuthIdentity *string `json:"authIdentity,omitempty"` + // SMTP authentication information. + AuthPassword *string `json:"authPassword,omitempty"` + // SMTP authentication information. + AuthUsername *string `json:"authUsername,omitempty"` + // The sender address. `Additional Validators:` * must be a syntactically valid email address + From *string `json:"from,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // The SMTP host through which emails are sent. `Additional Validators:` * should only include the characters: a-zA-Z0-9_./@&?:- + Smarthost *string `json:"smarthost,omitempty"` + // The email address to send notifications to. `Additional Validators:` * must be a syntactically valid email address + To *string `json:"to,omitempty"` +} + +// NewCreateAlertConfigReceiverPayloadEmailConfigsInner instantiates a new CreateAlertConfigReceiverPayloadEmailConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertConfigReceiverPayloadEmailConfigsInner() *CreateAlertConfigReceiverPayloadEmailConfigsInner { + this := CreateAlertConfigReceiverPayloadEmailConfigsInner{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// NewCreateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults instantiates a new CreateAlertConfigReceiverPayloadEmailConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadEmailConfigsInner { + this := CreateAlertConfigReceiverPayloadEmailConfigsInner{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// GetAuthIdentity returns the AuthIdentity field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentity() string { + if o == nil || IsNil(o.AuthIdentity) { + var ret string + return ret + } + return *o.AuthIdentity +} + +// GetAuthIdentityOk returns a tuple with the AuthIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentityOk() (*string, bool) { + if o == nil || IsNil(o.AuthIdentity) { + return nil, false + } + return o.AuthIdentity, true +} + +// HasAuthIdentity returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthIdentity() bool { + if o != nil && !IsNil(o.AuthIdentity) { + return true + } + + return false +} + +// SetAuthIdentity gets a reference to the given string and assigns it to the AuthIdentity field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthIdentity(v string) { + o.AuthIdentity = &v +} + +// GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPassword() string { + if o == nil || IsNil(o.AuthPassword) { + var ret string + return ret + } + return *o.AuthPassword +} + +// GetAuthPasswordOk returns a tuple with the AuthPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AuthPassword) { + return nil, false + } + return o.AuthPassword, true +} + +// HasAuthPassword returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthPassword() bool { + if o != nil && !IsNil(o.AuthPassword) { + return true + } + + return false +} + +// SetAuthPassword gets a reference to the given string and assigns it to the AuthPassword field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthPassword(v string) { + o.AuthPassword = &v +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername) { + var ret string + return ret + } + return *o.AuthUsername +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsernameOk() (*string, bool) { + if o == nil || IsNil(o.AuthUsername) { + return nil, false + } + return o.AuthUsername, true +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthUsername() bool { + if o != nil && !IsNil(o.AuthUsername) { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given string and assigns it to the AuthUsername field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthUsername(v string) { + o.AuthUsername = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetFrom() string { + if o == nil || IsNil(o.From) { + var ret string + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetFromOk() (*string, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given string and assigns it to the From field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetFrom(v string) { + o.From = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetSmarthost returns the Smarthost field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthost() string { + if o == nil || IsNil(o.Smarthost) { + var ret string + return ret + } + return *o.Smarthost +} + +// GetSmarthostOk returns a tuple with the Smarthost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthostOk() (*string, bool) { + if o == nil || IsNil(o.Smarthost) { + return nil, false + } + return o.Smarthost, true +} + +// HasSmarthost returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasSmarthost() bool { + if o != nil && !IsNil(o.Smarthost) { + return true + } + + return false +} + +// SetSmarthost gets a reference to the given string and assigns it to the Smarthost field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetSmarthost(v string) { + o.Smarthost = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetTo() string { + if o == nil || IsNil(o.To) { + var ret string + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetToOk() (*string, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasTo() bool { + if o != nil && !IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given string and assigns it to the To field. +func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) SetTo(v string) { + o.To = &v +} + +func (o CreateAlertConfigReceiverPayloadEmailConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertConfigReceiverPayloadEmailConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthIdentity) { + toSerialize["authIdentity"] = o.AuthIdentity + } + if !IsNil(o.AuthPassword) { + toSerialize["authPassword"] = o.AuthPassword + } + if !IsNil(o.AuthUsername) { + toSerialize["authUsername"] = o.AuthUsername + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Smarthost) { + toSerialize["smarthost"] = o.Smarthost + } + if !IsNil(o.To) { + toSerialize["to"] = o.To + } + return toSerialize, nil +} + +type NullableCreateAlertConfigReceiverPayloadEmailConfigsInner struct { + value *CreateAlertConfigReceiverPayloadEmailConfigsInner + isSet bool +} + +func (v NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) Get() *CreateAlertConfigReceiverPayloadEmailConfigsInner { + return v.value +} + +func (v *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) Set(val *CreateAlertConfigReceiverPayloadEmailConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertConfigReceiverPayloadEmailConfigsInner(val *CreateAlertConfigReceiverPayloadEmailConfigsInner) *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner { + return &NullableCreateAlertConfigReceiverPayloadEmailConfigsInner{value: val, isSet: true} +} + +func (v NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertConfigReceiverPayloadEmailConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go b/services/observability/v1api/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go new file mode 100644 index 000000000..7f4aea460 --- /dev/null +++ b/services/observability/v1api/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go @@ -0,0 +1,278 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateAlertConfigReceiverPayloadOpsgenieConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertConfigReceiverPayloadOpsgenieConfigsInner{} + +// CreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct for CreateAlertConfigReceiverPayloadOpsgenieConfigsInner +type CreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { + // The API key to use when talking to the OpsGenie API. `Additional Validators:` * should only include the characters: a-zA-Z0-9- + ApiKey *string `json:"apiKey,omitempty"` + // The host to send OpsGenie API requests to. `Additional Validators:` * must be a syntactically valid url address + ApiUrl *string `json:"apiUrl,omitempty"` + // Priority level of alert. Possible values are P1, P2, P3, P4, and P5. + Priority *string `json:"priority,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // Comma separated list of tags attached to the notifications. + Tags *string `json:"tags,omitempty"` +} + +// NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInner instantiates a new CreateAlertConfigReceiverPayloadOpsgenieConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInner() *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { + this := CreateAlertConfigReceiverPayloadOpsgenieConfigsInner{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults instantiates a new CreateAlertConfigReceiverPayloadOpsgenieConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { + this := CreateAlertConfigReceiverPayloadOpsgenieConfigsInner{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetApiKey returns the ApiKey field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKey() string { + if o == nil || IsNil(o.ApiKey) { + var ret string + return ret + } + return *o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.ApiKey) { + return nil, false + } + return o.ApiKey, true +} + +// HasApiKey returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiKey() bool { + if o != nil && !IsNil(o.ApiKey) { + return true + } + + return false +} + +// SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetApiKey(v string) { + o.ApiKey = &v +} + +// GetApiUrl returns the ApiUrl field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrl() string { + if o == nil || IsNil(o.ApiUrl) { + var ret string + return ret + } + return *o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.ApiUrl) { + return nil, false + } + return o.ApiUrl, true +} + +// HasApiUrl returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiUrl() bool { + if o != nil && !IsNil(o.ApiUrl) { + return true + } + + return false +} + +// SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetApiUrl(v string) { + o.ApiUrl = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriorityOk() (*string, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetPriority(v string) { + o.Priority = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTags() string { + if o == nil || IsNil(o.Tags) { + var ret string + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTagsOk() (*string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given string and assigns it to the Tags field. +func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetTags(v string) { + o.Tags = &v +} + +func (o CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiKey) { + toSerialize["apiKey"] = o.ApiKey + } + if !IsNil(o.ApiUrl) { + toSerialize["apiUrl"] = o.ApiUrl + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { + value *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner + isSet bool +} + +func (v NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) Get() *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner { + return v.value +} + +func (v *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) Set(val *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner(val *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner { + return &NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner{value: val, isSet: true} +} + +func (v NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertConfigReceiverPayloadOpsgenieConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_config_receiver_payload_web_hook_configs_inner.go b/services/observability/v1api/model_create_alert_config_receiver_payload_web_hook_configs_inner.go new file mode 100644 index 000000000..0150df455 --- /dev/null +++ b/services/observability/v1api/model_create_alert_config_receiver_payload_web_hook_configs_inner.go @@ -0,0 +1,249 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateAlertConfigReceiverPayloadWebHookConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertConfigReceiverPayloadWebHookConfigsInner{} + +// CreateAlertConfigReceiverPayloadWebHookConfigsInner struct for CreateAlertConfigReceiverPayloadWebHookConfigsInner +type CreateAlertConfigReceiverPayloadWebHookConfigsInner struct { + // Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false. + GoogleChat *bool `json:"googleChat,omitempty"` + // Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, googleChat must be false. + MsTeams *bool `json:"msTeams,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // The endpoint to send HTTP POST requests to. `Additional Validators:` * must be a syntactically valid url address + Url *string `json:"url,omitempty"` +} + +// NewCreateAlertConfigReceiverPayloadWebHookConfigsInner instantiates a new CreateAlertConfigReceiverPayloadWebHookConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertConfigReceiverPayloadWebHookConfigsInner() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { + this := CreateAlertConfigReceiverPayloadWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults instantiates a new CreateAlertConfigReceiverPayloadWebHookConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { + this := CreateAlertConfigReceiverPayloadWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChat() bool { + if o == nil || IsNil(o.GoogleChat) { + var ret bool + return ret + } + return *o.GoogleChat +} + +// GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChatOk() (*bool, bool) { + if o == nil || IsNil(o.GoogleChat) { + return nil, false + } + return o.GoogleChat, true +} + +// HasGoogleChat returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasGoogleChat() bool { + if o != nil && !IsNil(o.GoogleChat) { + return true + } + + return false +} + +// SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetGoogleChat(v bool) { + o.GoogleChat = &v +} + +// GetMsTeams returns the MsTeams field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeams() bool { + if o == nil || IsNil(o.MsTeams) { + var ret bool + return ret + } + return *o.MsTeams +} + +// GetMsTeamsOk returns a tuple with the MsTeams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeamsOk() (*bool, bool) { + if o == nil || IsNil(o.MsTeams) { + return nil, false + } + return o.MsTeams, true +} + +// HasMsTeams returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasMsTeams() bool { + if o != nil && !IsNil(o.MsTeams) { + return true + } + + return false +} + +// SetMsTeams gets a reference to the given bool and assigns it to the MsTeams field. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetMsTeams(v bool) { + o.MsTeams = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetUrl(v string) { + o.Url = &v +} + +func (o CreateAlertConfigReceiverPayloadWebHookConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertConfigReceiverPayloadWebHookConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GoogleChat) { + toSerialize["googleChat"] = o.GoogleChat + } + if !IsNil(o.MsTeams) { + toSerialize["msTeams"] = o.MsTeams + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner struct { + value *CreateAlertConfigReceiverPayloadWebHookConfigsInner + isSet bool +} + +func (v NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) Get() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { + return v.value +} + +func (v *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) Set(val *CreateAlertConfigReceiverPayloadWebHookConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertConfigReceiverPayloadWebHookConfigsInner(val *CreateAlertConfigReceiverPayloadWebHookConfigsInner) *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner { + return &NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner{value: val, isSet: true} +} + +func (v NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertConfigReceiverPayloadWebHookConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_config_route_payload.go b/services/observability/v1api/model_create_alert_config_route_payload.go new file mode 100644 index 000000000..db460fa88 --- /dev/null +++ b/services/observability/v1api/model_create_alert_config_route_payload.go @@ -0,0 +1,515 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateAlertConfigRoutePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertConfigRoutePayload{} + +// CreateAlertConfigRoutePayload The root node of the routing tree. +type CreateAlertConfigRoutePayload struct { + // The continue parameter cannot be set to true on the root route because there are no subsequent sibling nodes to match. It must always be false. + Continue *bool `json:"continue,omitempty"` + // The labels by which incoming alerts are grouped together. For example, multiple alerts coming in for cluster=A and alertname=LatencyHigh would be batched into a single group. To aggregate by all possible labels use the special value '...' as the sole label name, for example: group_by: ['...']. This effectively disables aggregation entirely, passing through all alerts as-is. This is unlikely to be what you want, unless you have a very low alert volume or your upstream notification system performs its own grouping. + GroupBy []string `json:"groupBy,omitempty"` + // How long to wait before sending a notification about new alerts that are added to a group of alerts for which an initial notification has already been sent. (Usually ~5m or more.) `Additional Validators:` * must be a valid time format + GroupInterval *string `json:"groupInterval,omitempty"` + // How long to initially wait to send a notification for a group of alerts. Allows to wait for an inhibiting alert to arrive or collect more initial alerts for the same group. (Usually ~0s to few minutes.) `Additional Validators:` * must be a valid time format + GroupWait *string `json:"groupWait,omitempty"` + // map of key:value. A set of equality matchers an alert has to fulfill to match the node. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * key and values should only include the characters: a-zA-Z0-9_./@&?:- + // Deprecated + Match map[string]interface{} `json:"match,omitempty"` + // map of key:value. A set of regex-matchers an alert has to fulfill to match the node. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + // Deprecated + MatchRe map[string]interface{} `json:"matchRe,omitempty"` + // A list of matchers that an alert has to fulfill to match the node. A matcher is a string with a syntax inspired by PromQL and OpenMetrics. The syntax of a matcher consists of three tokens: * A valid Prometheus label name. * One of =, !=, =~, or !~. = means equals, != means that the strings are not equal, =~ is used for equality of regex expressions and !~ is used for un-equality of regex expressions. They have the same meaning as known from PromQL selectors. * A UTF-8 string, which may be enclosed in double quotes. Before or after each token, there may be any amount of whitespace. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Matchers []string `json:"matchers,omitempty"` + // Receiver that should be one item of receivers `Additional Validators:` * must be a in name of receivers + Receiver string `json:"receiver"` + // How long to wait before sending a notification again if it has already been sent successfully for an alert. (Usually ~3h or more). `Additional Validators:` * must be a valid time format + RepeatInterval *string `json:"repeatInterval,omitempty"` + // Zero or more child routes. + Routes []CreateAlertConfigRoutePayloadRoutesInner `json:"routes,omitempty"` +} + +type _CreateAlertConfigRoutePayload CreateAlertConfigRoutePayload + +// NewCreateAlertConfigRoutePayload instantiates a new CreateAlertConfigRoutePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertConfigRoutePayload(receiver string) *CreateAlertConfigRoutePayload { + this := CreateAlertConfigRoutePayload{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + this.Receiver = receiver + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// NewCreateAlertConfigRoutePayloadWithDefaults instantiates a new CreateAlertConfigRoutePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertConfigRoutePayloadWithDefaults() *CreateAlertConfigRoutePayload { + this := CreateAlertConfigRoutePayload{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *CreateAlertConfigRoutePayload) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *CreateAlertConfigRoutePayload) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *CreateAlertConfigRoutePayload) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *CreateAlertConfigRoutePayload) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated +func (o *CreateAlertConfigRoutePayload) GetMatch() map[string]interface{} { + if o == nil || IsNil(o.Match) { + var ret map[string]interface{} + return ret + } + return o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CreateAlertConfigRoutePayload) GetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Match) { + return map[string]interface{}{}, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. +// Deprecated +func (o *CreateAlertConfigRoutePayload) SetMatch(v map[string]interface{}) { + o.Match = v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated +func (o *CreateAlertConfigRoutePayload) GetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]interface{} + return ret + } + return o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CreateAlertConfigRoutePayload) GetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.MatchRe) { + return map[string]interface{}{}, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. +// Deprecated +func (o *CreateAlertConfigRoutePayload) SetMatchRe(v map[string]interface{}) { + o.MatchRe = v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *CreateAlertConfigRoutePayload) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value +func (o *CreateAlertConfigRoutePayload) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *CreateAlertConfigRoutePayload) SetReceiver(v string) { + o.Receiver = v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *CreateAlertConfigRoutePayload) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayload) GetRoutes() []CreateAlertConfigRoutePayloadRoutesInner { + if o == nil || IsNil(o.Routes) { + var ret []CreateAlertConfigRoutePayloadRoutesInner + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayload) GetRoutesOk() ([]CreateAlertConfigRoutePayloadRoutesInner, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayload) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []CreateAlertConfigRoutePayloadRoutesInner and assigns it to the Routes field. +func (o *CreateAlertConfigRoutePayload) SetRoutes(v []CreateAlertConfigRoutePayloadRoutesInner) { + o.Routes = v +} + +func (o CreateAlertConfigRoutePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertConfigRoutePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + toSerialize["receiver"] = o.Receiver + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +func (o *CreateAlertConfigRoutePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receiver", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAlertConfigRoutePayload := _CreateAlertConfigRoutePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateAlertConfigRoutePayload) + + if err != nil { + return err + } + + *o = CreateAlertConfigRoutePayload(varCreateAlertConfigRoutePayload) + + return err +} + +type NullableCreateAlertConfigRoutePayload struct { + value *CreateAlertConfigRoutePayload + isSet bool +} + +func (v NullableCreateAlertConfigRoutePayload) Get() *CreateAlertConfigRoutePayload { + return v.value +} + +func (v *NullableCreateAlertConfigRoutePayload) Set(val *CreateAlertConfigRoutePayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertConfigRoutePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertConfigRoutePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertConfigRoutePayload(val *CreateAlertConfigRoutePayload) *NullableCreateAlertConfigRoutePayload { + return &NullableCreateAlertConfigRoutePayload{value: val, isSet: true} +} + +func (v NullableCreateAlertConfigRoutePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertConfigRoutePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_config_route_payload_routes_inner.go b/services/observability/v1api/model_create_alert_config_route_payload_routes_inner.go new file mode 100644 index 000000000..1483142c7 --- /dev/null +++ b/services/observability/v1api/model_create_alert_config_route_payload_routes_inner.go @@ -0,0 +1,470 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateAlertConfigRoutePayloadRoutesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertConfigRoutePayloadRoutesInner{} + +// CreateAlertConfigRoutePayloadRoutesInner As in one level above +type CreateAlertConfigRoutePayloadRoutesInner struct { + // Whether an alert should continue matching subsequent sibling nodes. + Continue *bool `json:"continue,omitempty"` + GroupBy []string `json:"groupBy,omitempty"` + // As in one level above + GroupInterval *string `json:"groupInterval,omitempty"` + // As in one level above + GroupWait *string `json:"groupWait,omitempty"` + // As in one level above + // Deprecated + Match map[string]interface{} `json:"match,omitempty"` + // As in one level above + // Deprecated + MatchRe map[string]interface{} `json:"matchRe,omitempty"` + // As in one level above + Matchers []string `json:"matchers,omitempty"` + // As in one level above + Receiver *string `json:"receiver,omitempty"` + // As in one level above + RepeatInterval *string `json:"repeatInterval,omitempty"` + // Another child routes + Routes []map[string]interface{} `json:"routes,omitempty"` +} + +// NewCreateAlertConfigRoutePayloadRoutesInner instantiates a new CreateAlertConfigRoutePayloadRoutesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertConfigRoutePayloadRoutesInner() *CreateAlertConfigRoutePayloadRoutesInner { + this := CreateAlertConfigRoutePayloadRoutesInner{} + var continue_ bool = false + this.Continue = &continue_ + return &this +} + +// NewCreateAlertConfigRoutePayloadRoutesInnerWithDefaults instantiates a new CreateAlertConfigRoutePayloadRoutesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertConfigRoutePayloadRoutesInnerWithDefaults() *CreateAlertConfigRoutePayloadRoutesInner { + this := CreateAlertConfigRoutePayloadRoutesInner{} + var continue_ bool = false + this.Continue = &continue_ + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatch() map[string]interface{} { + if o == nil || IsNil(o.Match) { + var ret map[string]interface{} + return ret + } + return o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Match) { + return map[string]interface{}{}, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. +// Deprecated +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetMatch(v map[string]interface{}) { + o.Match = v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]interface{} + return ret + } + return o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.MatchRe) { + return map[string]interface{}{}, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. +// Deprecated +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetMatchRe(v map[string]interface{}) { + o.MatchRe = v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetReceiver() string { + if o == nil || IsNil(o.Receiver) { + var ret string + return ret + } + return *o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetReceiverOk() (*string, bool) { + if o == nil || IsNil(o.Receiver) { + return nil, false + } + return o.Receiver, true +} + +// HasReceiver returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasReceiver() bool { + if o != nil && !IsNil(o.Receiver) { + return true + } + + return false +} + +// SetReceiver gets a reference to the given string and assigns it to the Receiver field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetReceiver(v string) { + o.Receiver = &v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRoutes() []map[string]interface{} { + if o == nil || IsNil(o.Routes) { + var ret []map[string]interface{} + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRoutesOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *CreateAlertConfigRoutePayloadRoutesInner) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []map[string]interface{} and assigns it to the Routes field. +func (o *CreateAlertConfigRoutePayloadRoutesInner) SetRoutes(v []map[string]interface{}) { + o.Routes = v +} + +func (o CreateAlertConfigRoutePayloadRoutesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertConfigRoutePayloadRoutesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + if !IsNil(o.Receiver) { + toSerialize["receiver"] = o.Receiver + } + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +type NullableCreateAlertConfigRoutePayloadRoutesInner struct { + value *CreateAlertConfigRoutePayloadRoutesInner + isSet bool +} + +func (v NullableCreateAlertConfigRoutePayloadRoutesInner) Get() *CreateAlertConfigRoutePayloadRoutesInner { + return v.value +} + +func (v *NullableCreateAlertConfigRoutePayloadRoutesInner) Set(val *CreateAlertConfigRoutePayloadRoutesInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertConfigRoutePayloadRoutesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertConfigRoutePayloadRoutesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertConfigRoutePayloadRoutesInner(val *CreateAlertConfigRoutePayloadRoutesInner) *NullableCreateAlertConfigRoutePayloadRoutesInner { + return &NullableCreateAlertConfigRoutePayloadRoutesInner{value: val, isSet: true} +} + +func (v NullableCreateAlertConfigRoutePayloadRoutesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertConfigRoutePayloadRoutesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alert_record_payload.go b/services/observability/v1api/model_create_alert_record_payload.go new file mode 100644 index 000000000..a3d997f80 --- /dev/null +++ b/services/observability/v1api/model_create_alert_record_payload.go @@ -0,0 +1,224 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateAlertRecordPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertRecordPayload{} + +// CreateAlertRecordPayload Record. `Additional Validators:` * total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type CreateAlertRecordPayload struct { + // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. + Expr string `json:"expr"` + // map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the record. `Additional Validators:` * is the identifier and so unique in the group + Record string `json:"record"` +} + +type _CreateAlertRecordPayload CreateAlertRecordPayload + +// NewCreateAlertRecordPayload instantiates a new CreateAlertRecordPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertRecordPayload(expr string, record string) *CreateAlertRecordPayload { + this := CreateAlertRecordPayload{} + this.Expr = expr + this.Record = record + return &this +} + +// NewCreateAlertRecordPayloadWithDefaults instantiates a new CreateAlertRecordPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertRecordPayloadWithDefaults() *CreateAlertRecordPayload { + this := CreateAlertRecordPayload{} + return &this +} + +// GetExpr returns the Expr field value +func (o *CreateAlertRecordPayload) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *CreateAlertRecordPayload) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *CreateAlertRecordPayload) SetExpr(v string) { + o.Expr = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateAlertRecordPayload) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertRecordPayload) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateAlertRecordPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *CreateAlertRecordPayload) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value +func (o *CreateAlertRecordPayload) GetRecord() string { + if o == nil { + var ret string + return ret + } + + return o.Record +} + +// GetRecordOk returns a tuple with the Record field value +// and a boolean to check if the value has been set. +func (o *CreateAlertRecordPayload) GetRecordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Record, true +} + +// SetRecord sets field value +func (o *CreateAlertRecordPayload) SetRecord(v string) { + o.Record = v +} + +func (o CreateAlertRecordPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertRecordPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["expr"] = o.Expr + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["record"] = o.Record + return toSerialize, nil +} + +func (o *CreateAlertRecordPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + "record", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAlertRecordPayload := _CreateAlertRecordPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateAlertRecordPayload) + + if err != nil { + return err + } + + *o = CreateAlertRecordPayload(varCreateAlertRecordPayload) + + return err +} + +type NullableCreateAlertRecordPayload struct { + value *CreateAlertRecordPayload + isSet bool +} + +func (v NullableCreateAlertRecordPayload) Get() *CreateAlertRecordPayload { + return v.value +} + +func (v *NullableCreateAlertRecordPayload) Set(val *CreateAlertRecordPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertRecordPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertRecordPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertRecordPayload(val *CreateAlertRecordPayload) *NullableCreateAlertRecordPayload { + return &NullableCreateAlertRecordPayload{value: val, isSet: true} +} + +func (v NullableCreateAlertRecordPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertRecordPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alertgroups_payload.go b/services/observability/v1api/model_create_alertgroups_payload.go new file mode 100644 index 000000000..88c601338 --- /dev/null +++ b/services/observability/v1api/model_create_alertgroups_payload.go @@ -0,0 +1,228 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateAlertgroupsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertgroupsPayload{} + +// CreateAlertgroupsPayload 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. +type CreateAlertgroupsPayload struct { + // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s + Interval *string `json:"interval,omitempty"` + // The name of the group. Must be unique. `Additional Validators:` * is the identifier and so unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // rules for the alert group + Rules []CreateAlertgroupsPayloadRulesInner `json:"rules"` +} + +type _CreateAlertgroupsPayload CreateAlertgroupsPayload + +// NewCreateAlertgroupsPayload instantiates a new CreateAlertgroupsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertgroupsPayload(name string, rules []CreateAlertgroupsPayloadRulesInner) *CreateAlertgroupsPayload { + this := CreateAlertgroupsPayload{} + var interval string = "60s" + this.Interval = &interval + this.Name = name + this.Rules = rules + return &this +} + +// NewCreateAlertgroupsPayloadWithDefaults instantiates a new CreateAlertgroupsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertgroupsPayloadWithDefaults() *CreateAlertgroupsPayload { + this := CreateAlertgroupsPayload{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *CreateAlertgroupsPayload) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayload) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *CreateAlertgroupsPayload) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *CreateAlertgroupsPayload) SetInterval(v string) { + o.Interval = &v +} + +// GetName returns the Name field value +func (o *CreateAlertgroupsPayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateAlertgroupsPayload) SetName(v string) { + o.Name = v +} + +// GetRules returns the Rules field value +func (o *CreateAlertgroupsPayload) GetRules() []CreateAlertgroupsPayloadRulesInner { + if o == nil { + var ret []CreateAlertgroupsPayloadRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayload) GetRulesOk() ([]CreateAlertgroupsPayloadRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *CreateAlertgroupsPayload) SetRules(v []CreateAlertgroupsPayloadRulesInner) { + o.Rules = v +} + +func (o CreateAlertgroupsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertgroupsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["name"] = o.Name + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *CreateAlertgroupsPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAlertgroupsPayload := _CreateAlertgroupsPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateAlertgroupsPayload) + + if err != nil { + return err + } + + *o = CreateAlertgroupsPayload(varCreateAlertgroupsPayload) + + return err +} + +type NullableCreateAlertgroupsPayload struct { + value *CreateAlertgroupsPayload + isSet bool +} + +func (v NullableCreateAlertgroupsPayload) Get() *CreateAlertgroupsPayload { + return v.value +} + +func (v *NullableCreateAlertgroupsPayload) Set(val *CreateAlertgroupsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertgroupsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertgroupsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertgroupsPayload(val *CreateAlertgroupsPayload) *NullableCreateAlertgroupsPayload { + return &NullableCreateAlertgroupsPayload{value: val, isSet: true} +} + +func (v NullableCreateAlertgroupsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertgroupsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alertgroups_payload_rules_inner.go b/services/observability/v1api/model_create_alertgroups_payload_rules_inner.go new file mode 100644 index 000000000..6bd1c73f3 --- /dev/null +++ b/services/observability/v1api/model_create_alertgroups_payload_rules_inner.go @@ -0,0 +1,347 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateAlertgroupsPayloadRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertgroupsPayloadRulesInner{} + +// CreateAlertgroupsPayloadRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type CreateAlertgroupsPayloadRulesInner struct { + // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed + Alert *string `json:"alert,omitempty"` + // Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule + For *string `json:"for,omitempty"` + // Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed + Record *string `json:"record,omitempty"` +} + +type _CreateAlertgroupsPayloadRulesInner CreateAlertgroupsPayloadRulesInner + +// NewCreateAlertgroupsPayloadRulesInner instantiates a new CreateAlertgroupsPayloadRulesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertgroupsPayloadRulesInner(expr string) *CreateAlertgroupsPayloadRulesInner { + this := CreateAlertgroupsPayloadRulesInner{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewCreateAlertgroupsPayloadRulesInnerWithDefaults instantiates a new CreateAlertgroupsPayloadRulesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertgroupsPayloadRulesInnerWithDefaults() *CreateAlertgroupsPayloadRulesInner { + this := CreateAlertgroupsPayloadRulesInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *CreateAlertgroupsPayloadRulesInner) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayloadRulesInner) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *CreateAlertgroupsPayloadRulesInner) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *CreateAlertgroupsPayloadRulesInner) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *CreateAlertgroupsPayloadRulesInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayloadRulesInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *CreateAlertgroupsPayloadRulesInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *CreateAlertgroupsPayloadRulesInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *CreateAlertgroupsPayloadRulesInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayloadRulesInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *CreateAlertgroupsPayloadRulesInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *CreateAlertgroupsPayloadRulesInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayloadRulesInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *CreateAlertgroupsPayloadRulesInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *CreateAlertgroupsPayloadRulesInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateAlertgroupsPayloadRulesInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayloadRulesInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateAlertgroupsPayloadRulesInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *CreateAlertgroupsPayloadRulesInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *CreateAlertgroupsPayloadRulesInner) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertgroupsPayloadRulesInner) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *CreateAlertgroupsPayloadRulesInner) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *CreateAlertgroupsPayloadRulesInner) SetRecord(v string) { + o.Record = &v +} + +func (o CreateAlertgroupsPayloadRulesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertgroupsPayloadRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *CreateAlertgroupsPayloadRulesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAlertgroupsPayloadRulesInner := _CreateAlertgroupsPayloadRulesInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateAlertgroupsPayloadRulesInner) + + if err != nil { + return err + } + + *o = CreateAlertgroupsPayloadRulesInner(varCreateAlertgroupsPayloadRulesInner) + + return err +} + +type NullableCreateAlertgroupsPayloadRulesInner struct { + value *CreateAlertgroupsPayloadRulesInner + isSet bool +} + +func (v NullableCreateAlertgroupsPayloadRulesInner) Get() *CreateAlertgroupsPayloadRulesInner { + return v.value +} + +func (v *NullableCreateAlertgroupsPayloadRulesInner) Set(val *CreateAlertgroupsPayloadRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertgroupsPayloadRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertgroupsPayloadRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertgroupsPayloadRulesInner(val *CreateAlertgroupsPayloadRulesInner) *NullableCreateAlertgroupsPayloadRulesInner { + return &NullableCreateAlertgroupsPayloadRulesInner{value: val, isSet: true} +} + +func (v NullableCreateAlertgroupsPayloadRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertgroupsPayloadRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_alertrules_payload.go b/services/observability/v1api/model_create_alertrules_payload.go new file mode 100644 index 000000000..96385ae2b --- /dev/null +++ b/services/observability/v1api/model_create_alertrules_payload.go @@ -0,0 +1,302 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateAlertrulesPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAlertrulesPayload{} + +// CreateAlertrulesPayload 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. +type CreateAlertrulesPayload struct { + // 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- + Alert string `json:"alert"` + // map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string + For *string `json:"for,omitempty"` + // map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` +} + +type _CreateAlertrulesPayload CreateAlertrulesPayload + +// NewCreateAlertrulesPayload instantiates a new CreateAlertrulesPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAlertrulesPayload(alert string, expr string) *CreateAlertrulesPayload { + this := CreateAlertrulesPayload{} + this.Alert = alert + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewCreateAlertrulesPayloadWithDefaults instantiates a new CreateAlertrulesPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAlertrulesPayloadWithDefaults() *CreateAlertrulesPayload { + this := CreateAlertrulesPayload{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value +func (o *CreateAlertrulesPayload) GetAlert() string { + if o == nil { + var ret string + return ret + } + + return o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value +// and a boolean to check if the value has been set. +func (o *CreateAlertrulesPayload) GetAlertOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Alert, true +} + +// SetAlert sets field value +func (o *CreateAlertrulesPayload) SetAlert(v string) { + o.Alert = v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *CreateAlertrulesPayload) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertrulesPayload) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *CreateAlertrulesPayload) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *CreateAlertrulesPayload) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *CreateAlertrulesPayload) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *CreateAlertrulesPayload) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *CreateAlertrulesPayload) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *CreateAlertrulesPayload) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertrulesPayload) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *CreateAlertrulesPayload) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *CreateAlertrulesPayload) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateAlertrulesPayload) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertrulesPayload) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateAlertrulesPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *CreateAlertrulesPayload) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o CreateAlertrulesPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAlertrulesPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alert"] = o.Alert + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *CreateAlertrulesPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alert", + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAlertrulesPayload := _CreateAlertrulesPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateAlertrulesPayload) + + if err != nil { + return err + } + + *o = CreateAlertrulesPayload(varCreateAlertrulesPayload) + + return err +} + +type NullableCreateAlertrulesPayload struct { + value *CreateAlertrulesPayload + isSet bool +} + +func (v NullableCreateAlertrulesPayload) Get() *CreateAlertrulesPayload { + return v.value +} + +func (v *NullableCreateAlertrulesPayload) Set(val *CreateAlertrulesPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAlertrulesPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAlertrulesPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAlertrulesPayload(val *CreateAlertrulesPayload) *NullableCreateAlertrulesPayload { + return &NullableCreateAlertrulesPayload{value: val, isSet: true} +} + +func (v NullableCreateAlertrulesPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAlertrulesPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_backup_schedule_payload.go b/services/observability/v1api/model_create_backup_schedule_payload.go new file mode 100644 index 000000000..8929c6130 --- /dev/null +++ b/services/observability/v1api/model_create_backup_schedule_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateBackupSchedulePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateBackupSchedulePayload{} + +// CreateBackupSchedulePayload struct for CreateBackupSchedulePayload +type CreateBackupSchedulePayload struct { + // The schedule for how often to create a backup. `Additional Validators:` * must be a valid cronjob format * must run less than hourly + Schedule string `json:"schedule"` +} + +type _CreateBackupSchedulePayload CreateBackupSchedulePayload + +// NewCreateBackupSchedulePayload instantiates a new CreateBackupSchedulePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateBackupSchedulePayload(schedule string) *CreateBackupSchedulePayload { + this := CreateBackupSchedulePayload{} + this.Schedule = schedule + return &this +} + +// NewCreateBackupSchedulePayloadWithDefaults instantiates a new CreateBackupSchedulePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateBackupSchedulePayloadWithDefaults() *CreateBackupSchedulePayload { + this := CreateBackupSchedulePayload{} + return &this +} + +// GetSchedule returns the Schedule field value +func (o *CreateBackupSchedulePayload) GetSchedule() string { + if o == nil { + var ret string + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *CreateBackupSchedulePayload) GetScheduleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *CreateBackupSchedulePayload) SetSchedule(v string) { + o.Schedule = v +} + +func (o CreateBackupSchedulePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateBackupSchedulePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["schedule"] = o.Schedule + return toSerialize, nil +} + +func (o *CreateBackupSchedulePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "schedule", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateBackupSchedulePayload := _CreateBackupSchedulePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateBackupSchedulePayload) + + if err != nil { + return err + } + + *o = CreateBackupSchedulePayload(varCreateBackupSchedulePayload) + + return err +} + +type NullableCreateBackupSchedulePayload struct { + value *CreateBackupSchedulePayload + isSet bool +} + +func (v NullableCreateBackupSchedulePayload) Get() *CreateBackupSchedulePayload { + return v.value +} + +func (v *NullableCreateBackupSchedulePayload) Set(val *CreateBackupSchedulePayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateBackupSchedulePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateBackupSchedulePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateBackupSchedulePayload(val *CreateBackupSchedulePayload) *NullableCreateBackupSchedulePayload { + return &NullableCreateBackupSchedulePayload{value: val, isSet: true} +} + +func (v NullableCreateBackupSchedulePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateBackupSchedulePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_cert_check_400_response.go b/services/observability/v1api/model_create_cert_check_400_response.go new file mode 100644 index 000000000..4ceba818c --- /dev/null +++ b/services/observability/v1api/model_create_cert_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateCertCheck400Response - struct for CreateCertCheck400Response +type CreateCertCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateCertCheck400Response is a convenience function that returns []string wrapped in CreateCertCheck400Response +func ArrayOfStringAsCreateCertCheck400Response(v *[]string) CreateCertCheck400Response { + return CreateCertCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateCertCheck400Response is a convenience function that returns map[string][]string wrapped in CreateCertCheck400Response +func MapmapOfStringarrayOfStringAsCreateCertCheck400Response(v *map[string][]string) CreateCertCheck400Response { + return CreateCertCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateCertCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateCertCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateCertCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateCertCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateCertCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateCertCheck400Response struct { + value *CreateCertCheck400Response + isSet bool +} + +func (v NullableCreateCertCheck400Response) Get() *CreateCertCheck400Response { + return v.value +} + +func (v *NullableCreateCertCheck400Response) Set(val *CreateCertCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCertCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCertCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCertCheck400Response(val *CreateCertCheck400Response) *NullableCreateCertCheck400Response { + return &NullableCreateCertCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateCertCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCertCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_cert_check_payload.go b/services/observability/v1api/model_create_cert_check_payload.go new file mode 100644 index 000000000..810b6d0b9 --- /dev/null +++ b/services/observability/v1api/model_create_cert_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateCertCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateCertCheckPayload{} + +// CreateCertCheckPayload Cert check body. +type CreateCertCheckPayload struct { + // cert to check + Source string `json:"source"` +} + +type _CreateCertCheckPayload CreateCertCheckPayload + +// NewCreateCertCheckPayload instantiates a new CreateCertCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateCertCheckPayload(source string) *CreateCertCheckPayload { + this := CreateCertCheckPayload{} + this.Source = source + return &this +} + +// NewCreateCertCheckPayloadWithDefaults instantiates a new CreateCertCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateCertCheckPayloadWithDefaults() *CreateCertCheckPayload { + this := CreateCertCheckPayload{} + return &this +} + +// GetSource returns the Source field value +func (o *CreateCertCheckPayload) GetSource() string { + if o == nil { + var ret string + return ret + } + + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value +// and a boolean to check if the value has been set. +func (o *CreateCertCheckPayload) GetSourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Source, true +} + +// SetSource sets field value +func (o *CreateCertCheckPayload) SetSource(v string) { + o.Source = v +} + +func (o CreateCertCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateCertCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["source"] = o.Source + return toSerialize, nil +} + +func (o *CreateCertCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "source", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateCertCheckPayload := _CreateCertCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateCertCheckPayload) + + if err != nil { + return err + } + + *o = CreateCertCheckPayload(varCreateCertCheckPayload) + + return err +} + +type NullableCreateCertCheckPayload struct { + value *CreateCertCheckPayload + isSet bool +} + +func (v NullableCreateCertCheckPayload) Get() *CreateCertCheckPayload { + return v.value +} + +func (v *NullableCreateCertCheckPayload) Set(val *CreateCertCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCertCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCertCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCertCheckPayload(val *CreateCertCheckPayload) *NullableCreateCertCheckPayload { + return &NullableCreateCertCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateCertCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCertCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_credentials_payload.go b/services/observability/v1api/model_create_credentials_payload.go new file mode 100644 index 000000000..3aaf6952f --- /dev/null +++ b/services/observability/v1api/model_create_credentials_payload.go @@ -0,0 +1,126 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateCredentialsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateCredentialsPayload{} + +// CreateCredentialsPayload Create new credentials with (optional) description +type CreateCredentialsPayload struct { + // description + Description *string `json:"description,omitempty"` +} + +// NewCreateCredentialsPayload instantiates a new CreateCredentialsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateCredentialsPayload() *CreateCredentialsPayload { + this := CreateCredentialsPayload{} + return &this +} + +// NewCreateCredentialsPayloadWithDefaults instantiates a new CreateCredentialsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateCredentialsPayloadWithDefaults() *CreateCredentialsPayload { + this := CreateCredentialsPayload{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateCredentialsPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCredentialsPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateCredentialsPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateCredentialsPayload) SetDescription(v string) { + o.Description = &v +} + +func (o CreateCredentialsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateCredentialsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +type NullableCreateCredentialsPayload struct { + value *CreateCredentialsPayload + isSet bool +} + +func (v NullableCreateCredentialsPayload) Get() *CreateCredentialsPayload { + return v.value +} + +func (v *NullableCreateCredentialsPayload) Set(val *CreateCredentialsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCredentialsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCredentialsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCredentialsPayload(val *CreateCredentialsPayload) *NullableCreateCredentialsPayload { + return &NullableCreateCredentialsPayload{value: val, isSet: true} +} + +func (v NullableCreateCredentialsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCredentialsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_credentials_response.go b/services/observability/v1api/model_create_credentials_response.go new file mode 100644 index 000000000..69fffc20d --- /dev/null +++ b/services/observability/v1api/model_create_credentials_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateCredentialsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateCredentialsResponse{} + +// CreateCredentialsResponse struct for CreateCredentialsResponse +type CreateCredentialsResponse struct { + Credentials Credentials `json:"credentials"` + Message string `json:"message"` +} + +type _CreateCredentialsResponse CreateCredentialsResponse + +// NewCreateCredentialsResponse instantiates a new CreateCredentialsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateCredentialsResponse(credentials Credentials, message string) *CreateCredentialsResponse { + this := CreateCredentialsResponse{} + this.Credentials = credentials + this.Message = message + return &this +} + +// NewCreateCredentialsResponseWithDefaults instantiates a new CreateCredentialsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateCredentialsResponseWithDefaults() *CreateCredentialsResponse { + this := CreateCredentialsResponse{} + return &this +} + +// GetCredentials returns the Credentials field value +func (o *CreateCredentialsResponse) GetCredentials() Credentials { + if o == nil { + var ret Credentials + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +func (o *CreateCredentialsResponse) GetCredentialsOk() (*Credentials, bool) { + if o == nil { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *CreateCredentialsResponse) SetCredentials(v Credentials) { + o.Credentials = v +} + +// GetMessage returns the Message field value +func (o *CreateCredentialsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *CreateCredentialsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *CreateCredentialsResponse) SetMessage(v string) { + o.Message = v +} + +func (o CreateCredentialsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateCredentialsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentials"] = o.Credentials + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *CreateCredentialsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "credentials", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateCredentialsResponse := _CreateCredentialsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateCredentialsResponse) + + if err != nil { + return err + } + + *o = CreateCredentialsResponse(varCreateCredentialsResponse) + + return err +} + +type NullableCreateCredentialsResponse struct { + value *CreateCredentialsResponse + isSet bool +} + +func (v NullableCreateCredentialsResponse) Get() *CreateCredentialsResponse { + return v.value +} + +func (v *NullableCreateCredentialsResponse) Set(val *CreateCredentialsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCredentialsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCredentialsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCredentialsResponse(val *CreateCredentialsResponse) *NullableCreateCredentialsResponse { + return &NullableCreateCredentialsResponse{value: val, isSet: true} +} + +func (v NullableCreateCredentialsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCredentialsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_elasticsearch_check_400_response.go b/services/observability/v1api/model_create_elasticsearch_check_400_response.go new file mode 100644 index 000000000..9f9119a03 --- /dev/null +++ b/services/observability/v1api/model_create_elasticsearch_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateElasticsearchCheck400Response - struct for CreateElasticsearchCheck400Response +type CreateElasticsearchCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateElasticsearchCheck400Response is a convenience function that returns []string wrapped in CreateElasticsearchCheck400Response +func ArrayOfStringAsCreateElasticsearchCheck400Response(v *[]string) CreateElasticsearchCheck400Response { + return CreateElasticsearchCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateElasticsearchCheck400Response is a convenience function that returns map[string][]string wrapped in CreateElasticsearchCheck400Response +func MapmapOfStringarrayOfStringAsCreateElasticsearchCheck400Response(v *map[string][]string) CreateElasticsearchCheck400Response { + return CreateElasticsearchCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateElasticsearchCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateElasticsearchCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateElasticsearchCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateElasticsearchCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateElasticsearchCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateElasticsearchCheck400Response struct { + value *CreateElasticsearchCheck400Response + isSet bool +} + +func (v NullableCreateElasticsearchCheck400Response) Get() *CreateElasticsearchCheck400Response { + return v.value +} + +func (v *NullableCreateElasticsearchCheck400Response) Set(val *CreateElasticsearchCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateElasticsearchCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateElasticsearchCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateElasticsearchCheck400Response(val *CreateElasticsearchCheck400Response) *NullableCreateElasticsearchCheck400Response { + return &NullableCreateElasticsearchCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateElasticsearchCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateElasticsearchCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_elasticsearch_check_payload.go b/services/observability/v1api/model_create_elasticsearch_check_payload.go new file mode 100644 index 000000000..8e1d30c16 --- /dev/null +++ b/services/observability/v1api/model_create_elasticsearch_check_payload.go @@ -0,0 +1,232 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateElasticsearchCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateElasticsearchCheckPayload{} + +// CreateElasticsearchCheckPayload Elasticsearch check body. +type CreateElasticsearchCheckPayload struct { + // password + Password *string `json:"password,omitempty"` + // url to check + Server string `json:"server"` + // username + Username *string `json:"username,omitempty"` +} + +type _CreateElasticsearchCheckPayload CreateElasticsearchCheckPayload + +// NewCreateElasticsearchCheckPayload instantiates a new CreateElasticsearchCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateElasticsearchCheckPayload(server string) *CreateElasticsearchCheckPayload { + this := CreateElasticsearchCheckPayload{} + this.Server = server + return &this +} + +// NewCreateElasticsearchCheckPayloadWithDefaults instantiates a new CreateElasticsearchCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateElasticsearchCheckPayloadWithDefaults() *CreateElasticsearchCheckPayload { + this := CreateElasticsearchCheckPayload{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CreateElasticsearchCheckPayload) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateElasticsearchCheckPayload) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CreateElasticsearchCheckPayload) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *CreateElasticsearchCheckPayload) SetPassword(v string) { + o.Password = &v +} + +// GetServer returns the Server field value +func (o *CreateElasticsearchCheckPayload) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *CreateElasticsearchCheckPayload) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *CreateElasticsearchCheckPayload) SetServer(v string) { + o.Server = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *CreateElasticsearchCheckPayload) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateElasticsearchCheckPayload) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *CreateElasticsearchCheckPayload) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *CreateElasticsearchCheckPayload) SetUsername(v string) { + o.Username = &v +} + +func (o CreateElasticsearchCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateElasticsearchCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + toSerialize["server"] = o.Server + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +func (o *CreateElasticsearchCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateElasticsearchCheckPayload := _CreateElasticsearchCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateElasticsearchCheckPayload) + + if err != nil { + return err + } + + *o = CreateElasticsearchCheckPayload(varCreateElasticsearchCheckPayload) + + return err +} + +type NullableCreateElasticsearchCheckPayload struct { + value *CreateElasticsearchCheckPayload + isSet bool +} + +func (v NullableCreateElasticsearchCheckPayload) Get() *CreateElasticsearchCheckPayload { + return v.value +} + +func (v *NullableCreateElasticsearchCheckPayload) Set(val *CreateElasticsearchCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateElasticsearchCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateElasticsearchCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateElasticsearchCheckPayload(val *CreateElasticsearchCheckPayload) *NullableCreateElasticsearchCheckPayload { + return &NullableCreateElasticsearchCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateElasticsearchCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateElasticsearchCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_http_check_400_response.go b/services/observability/v1api/model_create_http_check_400_response.go new file mode 100644 index 000000000..9565a091d --- /dev/null +++ b/services/observability/v1api/model_create_http_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateHttpCheck400Response - struct for CreateHttpCheck400Response +type CreateHttpCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateHttpCheck400Response is a convenience function that returns []string wrapped in CreateHttpCheck400Response +func ArrayOfStringAsCreateHttpCheck400Response(v *[]string) CreateHttpCheck400Response { + return CreateHttpCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateHttpCheck400Response is a convenience function that returns map[string][]string wrapped in CreateHttpCheck400Response +func MapmapOfStringarrayOfStringAsCreateHttpCheck400Response(v *map[string][]string) CreateHttpCheck400Response { + return CreateHttpCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateHttpCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateHttpCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateHttpCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateHttpCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateHttpCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateHttpCheck400Response struct { + value *CreateHttpCheck400Response + isSet bool +} + +func (v NullableCreateHttpCheck400Response) Get() *CreateHttpCheck400Response { + return v.value +} + +func (v *NullableCreateHttpCheck400Response) Set(val *CreateHttpCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateHttpCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateHttpCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateHttpCheck400Response(val *CreateHttpCheck400Response) *NullableCreateHttpCheck400Response { + return &NullableCreateHttpCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateHttpCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateHttpCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_http_check_payload.go b/services/observability/v1api/model_create_http_check_payload.go new file mode 100644 index 000000000..b7a60c537 --- /dev/null +++ b/services/observability/v1api/model_create_http_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateHttpCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateHttpCheckPayload{} + +// CreateHttpCheckPayload Http check body. +type CreateHttpCheckPayload struct { + // url to check + Url string `json:"url"` +} + +type _CreateHttpCheckPayload CreateHttpCheckPayload + +// NewCreateHttpCheckPayload instantiates a new CreateHttpCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateHttpCheckPayload(url string) *CreateHttpCheckPayload { + this := CreateHttpCheckPayload{} + this.Url = url + return &this +} + +// NewCreateHttpCheckPayloadWithDefaults instantiates a new CreateHttpCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateHttpCheckPayloadWithDefaults() *CreateHttpCheckPayload { + this := CreateHttpCheckPayload{} + return &this +} + +// GetUrl returns the Url field value +func (o *CreateHttpCheckPayload) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreateHttpCheckPayload) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreateHttpCheckPayload) SetUrl(v string) { + o.Url = v +} + +func (o CreateHttpCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateHttpCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *CreateHttpCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateHttpCheckPayload := _CreateHttpCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateHttpCheckPayload) + + if err != nil { + return err + } + + *o = CreateHttpCheckPayload(varCreateHttpCheckPayload) + + return err +} + +type NullableCreateHttpCheckPayload struct { + value *CreateHttpCheckPayload + isSet bool +} + +func (v NullableCreateHttpCheckPayload) Get() *CreateHttpCheckPayload { + return v.value +} + +func (v *NullableCreateHttpCheckPayload) Set(val *CreateHttpCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateHttpCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateHttpCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateHttpCheckPayload(val *CreateHttpCheckPayload) *NullableCreateHttpCheckPayload { + return &NullableCreateHttpCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateHttpCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateHttpCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_instance_payload.go b/services/observability/v1api/model_create_instance_payload.go new file mode 100644 index 000000000..cc5ded8ad --- /dev/null +++ b/services/observability/v1api/model_create_instance_payload.go @@ -0,0 +1,273 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateInstancePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateInstancePayload{} + +// CreateInstancePayload Create update instance body. +type CreateInstancePayload struct { + // If true, a default Grafana server admin user is created. It's recommended to set this to false and use STACKIT SSO (`Owner` or `Observability Grafana Server Admin` role) instead. It is still possible to manually create a new Grafana admin user via the Grafana UI later. + GrafanaAdminEnabled *bool `json:"grafanaAdminEnabled,omitempty"` + // Name of the service + Name *string `json:"name,omitempty"` + // Additional parameters + Parameter map[string]interface{} `json:"parameter,omitempty"` + // UUID of the plan to create/update + PlanId string `json:"planId"` +} + +type _CreateInstancePayload CreateInstancePayload + +// NewCreateInstancePayload instantiates a new CreateInstancePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateInstancePayload(planId string) *CreateInstancePayload { + this := CreateInstancePayload{} + var grafanaAdminEnabled bool = true + this.GrafanaAdminEnabled = &grafanaAdminEnabled + this.PlanId = planId + return &this +} + +// NewCreateInstancePayloadWithDefaults instantiates a new CreateInstancePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { + this := CreateInstancePayload{} + var grafanaAdminEnabled bool = true + this.GrafanaAdminEnabled = &grafanaAdminEnabled + return &this +} + +// GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value if set, zero value otherwise. +func (o *CreateInstancePayload) GetGrafanaAdminEnabled() bool { + if o == nil || IsNil(o.GrafanaAdminEnabled) { + var ret bool + return ret + } + return *o.GrafanaAdminEnabled +} + +// GetGrafanaAdminEnabledOk returns a tuple with the GrafanaAdminEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetGrafanaAdminEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.GrafanaAdminEnabled) { + return nil, false + } + return o.GrafanaAdminEnabled, true +} + +// HasGrafanaAdminEnabled returns a boolean if a field has been set. +func (o *CreateInstancePayload) HasGrafanaAdminEnabled() bool { + if o != nil && !IsNil(o.GrafanaAdminEnabled) { + return true + } + + return false +} + +// SetGrafanaAdminEnabled gets a reference to the given bool and assigns it to the GrafanaAdminEnabled field. +func (o *CreateInstancePayload) SetGrafanaAdminEnabled(v bool) { + o.GrafanaAdminEnabled = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateInstancePayload) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateInstancePayload) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateInstancePayload) SetName(v string) { + o.Name = &v +} + +// GetParameter returns the Parameter field value if set, zero value otherwise. +func (o *CreateInstancePayload) GetParameter() map[string]interface{} { + if o == nil || IsNil(o.Parameter) { + var ret map[string]interface{} + return ret + } + return o.Parameter +} + +// GetParameterOk returns a tuple with the Parameter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetParameterOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Parameter) { + return map[string]interface{}{}, false + } + return o.Parameter, true +} + +// HasParameter returns a boolean if a field has been set. +func (o *CreateInstancePayload) HasParameter() bool { + if o != nil && !IsNil(o.Parameter) { + return true + } + + return false +} + +// SetParameter gets a reference to the given map[string]interface{} and assigns it to the Parameter field. +func (o *CreateInstancePayload) SetParameter(v map[string]interface{}) { + o.Parameter = v +} + +// GetPlanId returns the PlanId field value +func (o *CreateInstancePayload) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *CreateInstancePayload) SetPlanId(v string) { + o.PlanId = v +} + +func (o CreateInstancePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GrafanaAdminEnabled) { + toSerialize["grafanaAdminEnabled"] = o.GrafanaAdminEnabled + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parameter) { + toSerialize["parameter"] = o.Parameter + } + toSerialize["planId"] = o.PlanId + return toSerialize, nil +} + +func (o *CreateInstancePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "planId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateInstancePayload := _CreateInstancePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateInstancePayload) + + if err != nil { + return err + } + + *o = CreateInstancePayload(varCreateInstancePayload) + + return err +} + +type NullableCreateInstancePayload struct { + value *CreateInstancePayload + isSet bool +} + +func (v NullableCreateInstancePayload) Get() *CreateInstancePayload { + return v.value +} + +func (v *NullableCreateInstancePayload) Set(val *CreateInstancePayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateInstancePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateInstancePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateInstancePayload(val *CreateInstancePayload) *NullableCreateInstancePayload { + return &NullableCreateInstancePayload{value: val, isSet: true} +} + +func (v NullableCreateInstancePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateInstancePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_instance_response.go b/services/observability/v1api/model_create_instance_response.go new file mode 100644 index 000000000..8ab03c9e7 --- /dev/null +++ b/services/observability/v1api/model_create_instance_response.go @@ -0,0 +1,213 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateInstanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateInstanceResponse{} + +// CreateInstanceResponse struct for CreateInstanceResponse +type CreateInstanceResponse struct { + DashboardUrl string `json:"dashboardUrl"` + InstanceId string `json:"instanceId"` + Message string `json:"message"` +} + +type _CreateInstanceResponse CreateInstanceResponse + +// NewCreateInstanceResponse instantiates a new CreateInstanceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateInstanceResponse(dashboardUrl string, instanceId string, message string) *CreateInstanceResponse { + this := CreateInstanceResponse{} + this.DashboardUrl = dashboardUrl + this.InstanceId = instanceId + this.Message = message + return &this +} + +// NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { + this := CreateInstanceResponse{} + return &this +} + +// GetDashboardUrl returns the DashboardUrl field value +func (o *CreateInstanceResponse) GetDashboardUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DashboardUrl +} + +// GetDashboardUrlOk returns a tuple with the DashboardUrl field value +// and a boolean to check if the value has been set. +func (o *CreateInstanceResponse) GetDashboardUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DashboardUrl, true +} + +// SetDashboardUrl sets field value +func (o *CreateInstanceResponse) SetDashboardUrl(v string) { + o.DashboardUrl = v +} + +// GetInstanceId returns the InstanceId field value +func (o *CreateInstanceResponse) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *CreateInstanceResponse) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *CreateInstanceResponse) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetMessage returns the Message field value +func (o *CreateInstanceResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *CreateInstanceResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *CreateInstanceResponse) SetMessage(v string) { + o.Message = v +} + +func (o CreateInstanceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["dashboardUrl"] = o.DashboardUrl + toSerialize["instanceId"] = o.InstanceId + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *CreateInstanceResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "dashboardUrl", + "instanceId", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateInstanceResponse := _CreateInstanceResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateInstanceResponse) + + if err != nil { + return err + } + + *o = CreateInstanceResponse(varCreateInstanceResponse) + + return err +} + +type NullableCreateInstanceResponse struct { + value *CreateInstanceResponse + isSet bool +} + +func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse { + return v.value +} + +func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateInstanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateInstanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse { + return &NullableCreateInstanceResponse{value: val, isSet: true} +} + +func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_logs_alertgroups_payload.go b/services/observability/v1api/model_create_logs_alertgroups_payload.go new file mode 100644 index 000000000..8484dba01 --- /dev/null +++ b/services/observability/v1api/model_create_logs_alertgroups_payload.go @@ -0,0 +1,228 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateLogsAlertgroupsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateLogsAlertgroupsPayload{} + +// CreateLogsAlertgroupsPayload 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. +type CreateLogsAlertgroupsPayload struct { + // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s + Interval *string `json:"interval,omitempty"` + // The name of the group. Must be unique. `Additional Validators:` * is the identifier and so unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // rules for the alert group + Rules []CreateLogsAlertgroupsPayloadRulesInner `json:"rules"` +} + +type _CreateLogsAlertgroupsPayload CreateLogsAlertgroupsPayload + +// NewCreateLogsAlertgroupsPayload instantiates a new CreateLogsAlertgroupsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateLogsAlertgroupsPayload(name string, rules []CreateLogsAlertgroupsPayloadRulesInner) *CreateLogsAlertgroupsPayload { + this := CreateLogsAlertgroupsPayload{} + var interval string = "60s" + this.Interval = &interval + this.Name = name + this.Rules = rules + return &this +} + +// NewCreateLogsAlertgroupsPayloadWithDefaults instantiates a new CreateLogsAlertgroupsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateLogsAlertgroupsPayloadWithDefaults() *CreateLogsAlertgroupsPayload { + this := CreateLogsAlertgroupsPayload{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *CreateLogsAlertgroupsPayload) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayload) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *CreateLogsAlertgroupsPayload) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *CreateLogsAlertgroupsPayload) SetInterval(v string) { + o.Interval = &v +} + +// GetName returns the Name field value +func (o *CreateLogsAlertgroupsPayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateLogsAlertgroupsPayload) SetName(v string) { + o.Name = v +} + +// GetRules returns the Rules field value +func (o *CreateLogsAlertgroupsPayload) GetRules() []CreateLogsAlertgroupsPayloadRulesInner { + if o == nil { + var ret []CreateLogsAlertgroupsPayloadRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayload) GetRulesOk() ([]CreateLogsAlertgroupsPayloadRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *CreateLogsAlertgroupsPayload) SetRules(v []CreateLogsAlertgroupsPayloadRulesInner) { + o.Rules = v +} + +func (o CreateLogsAlertgroupsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateLogsAlertgroupsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["name"] = o.Name + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *CreateLogsAlertgroupsPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateLogsAlertgroupsPayload := _CreateLogsAlertgroupsPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateLogsAlertgroupsPayload) + + if err != nil { + return err + } + + *o = CreateLogsAlertgroupsPayload(varCreateLogsAlertgroupsPayload) + + return err +} + +type NullableCreateLogsAlertgroupsPayload struct { + value *CreateLogsAlertgroupsPayload + isSet bool +} + +func (v NullableCreateLogsAlertgroupsPayload) Get() *CreateLogsAlertgroupsPayload { + return v.value +} + +func (v *NullableCreateLogsAlertgroupsPayload) Set(val *CreateLogsAlertgroupsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateLogsAlertgroupsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateLogsAlertgroupsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateLogsAlertgroupsPayload(val *CreateLogsAlertgroupsPayload) *NullableCreateLogsAlertgroupsPayload { + return &NullableCreateLogsAlertgroupsPayload{value: val, isSet: true} +} + +func (v NullableCreateLogsAlertgroupsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateLogsAlertgroupsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_logs_alertgroups_payload_rules_inner.go b/services/observability/v1api/model_create_logs_alertgroups_payload_rules_inner.go new file mode 100644 index 000000000..db25d4007 --- /dev/null +++ b/services/observability/v1api/model_create_logs_alertgroups_payload_rules_inner.go @@ -0,0 +1,347 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateLogsAlertgroupsPayloadRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateLogsAlertgroupsPayloadRulesInner{} + +// CreateLogsAlertgroupsPayloadRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type CreateLogsAlertgroupsPayloadRulesInner struct { + // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed + Alert *string `json:"alert,omitempty"` + // Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The LogQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule + For *string `json:"for,omitempty"` + // Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed + Record *string `json:"record,omitempty"` +} + +type _CreateLogsAlertgroupsPayloadRulesInner CreateLogsAlertgroupsPayloadRulesInner + +// NewCreateLogsAlertgroupsPayloadRulesInner instantiates a new CreateLogsAlertgroupsPayloadRulesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateLogsAlertgroupsPayloadRulesInner(expr string) *CreateLogsAlertgroupsPayloadRulesInner { + this := CreateLogsAlertgroupsPayloadRulesInner{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewCreateLogsAlertgroupsPayloadRulesInnerWithDefaults instantiates a new CreateLogsAlertgroupsPayloadRulesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateLogsAlertgroupsPayloadRulesInnerWithDefaults() *CreateLogsAlertgroupsPayloadRulesInner { + this := CreateLogsAlertgroupsPayloadRulesInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *CreateLogsAlertgroupsPayloadRulesInner) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *CreateLogsAlertgroupsPayloadRulesInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *CreateLogsAlertgroupsPayloadRulesInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *CreateLogsAlertgroupsPayloadRulesInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *CreateLogsAlertgroupsPayloadRulesInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *CreateLogsAlertgroupsPayloadRulesInner) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *CreateLogsAlertgroupsPayloadRulesInner) SetRecord(v string) { + o.Record = &v +} + +func (o CreateLogsAlertgroupsPayloadRulesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateLogsAlertgroupsPayloadRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *CreateLogsAlertgroupsPayloadRulesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateLogsAlertgroupsPayloadRulesInner := _CreateLogsAlertgroupsPayloadRulesInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateLogsAlertgroupsPayloadRulesInner) + + if err != nil { + return err + } + + *o = CreateLogsAlertgroupsPayloadRulesInner(varCreateLogsAlertgroupsPayloadRulesInner) + + return err +} + +type NullableCreateLogsAlertgroupsPayloadRulesInner struct { + value *CreateLogsAlertgroupsPayloadRulesInner + isSet bool +} + +func (v NullableCreateLogsAlertgroupsPayloadRulesInner) Get() *CreateLogsAlertgroupsPayloadRulesInner { + return v.value +} + +func (v *NullableCreateLogsAlertgroupsPayloadRulesInner) Set(val *CreateLogsAlertgroupsPayloadRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateLogsAlertgroupsPayloadRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateLogsAlertgroupsPayloadRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateLogsAlertgroupsPayloadRulesInner(val *CreateLogsAlertgroupsPayloadRulesInner) *NullableCreateLogsAlertgroupsPayloadRulesInner { + return &NullableCreateLogsAlertgroupsPayloadRulesInner{value: val, isSet: true} +} + +func (v NullableCreateLogsAlertgroupsPayloadRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateLogsAlertgroupsPayloadRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_mongodb_check_400_response.go b/services/observability/v1api/model_create_mongodb_check_400_response.go new file mode 100644 index 000000000..e2bcd9756 --- /dev/null +++ b/services/observability/v1api/model_create_mongodb_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateMongodbCheck400Response - struct for CreateMongodbCheck400Response +type CreateMongodbCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateMongodbCheck400Response is a convenience function that returns []string wrapped in CreateMongodbCheck400Response +func ArrayOfStringAsCreateMongodbCheck400Response(v *[]string) CreateMongodbCheck400Response { + return CreateMongodbCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateMongodbCheck400Response is a convenience function that returns map[string][]string wrapped in CreateMongodbCheck400Response +func MapmapOfStringarrayOfStringAsCreateMongodbCheck400Response(v *map[string][]string) CreateMongodbCheck400Response { + return CreateMongodbCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateMongodbCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateMongodbCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateMongodbCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateMongodbCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateMongodbCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateMongodbCheck400Response struct { + value *CreateMongodbCheck400Response + isSet bool +} + +func (v NullableCreateMongodbCheck400Response) Get() *CreateMongodbCheck400Response { + return v.value +} + +func (v *NullableCreateMongodbCheck400Response) Set(val *CreateMongodbCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateMongodbCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateMongodbCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateMongodbCheck400Response(val *CreateMongodbCheck400Response) *NullableCreateMongodbCheck400Response { + return &NullableCreateMongodbCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateMongodbCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateMongodbCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_mongodb_check_payload.go b/services/observability/v1api/model_create_mongodb_check_payload.go new file mode 100644 index 000000000..0bc6e1b9f --- /dev/null +++ b/services/observability/v1api/model_create_mongodb_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateMongodbCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateMongodbCheckPayload{} + +// CreateMongodbCheckPayload Mongodb check body. +type CreateMongodbCheckPayload struct { + // url to check + Server string `json:"server"` +} + +type _CreateMongodbCheckPayload CreateMongodbCheckPayload + +// NewCreateMongodbCheckPayload instantiates a new CreateMongodbCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateMongodbCheckPayload(server string) *CreateMongodbCheckPayload { + this := CreateMongodbCheckPayload{} + this.Server = server + return &this +} + +// NewCreateMongodbCheckPayloadWithDefaults instantiates a new CreateMongodbCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateMongodbCheckPayloadWithDefaults() *CreateMongodbCheckPayload { + this := CreateMongodbCheckPayload{} + return &this +} + +// GetServer returns the Server field value +func (o *CreateMongodbCheckPayload) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *CreateMongodbCheckPayload) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *CreateMongodbCheckPayload) SetServer(v string) { + o.Server = v +} + +func (o CreateMongodbCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateMongodbCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["server"] = o.Server + return toSerialize, nil +} + +func (o *CreateMongodbCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateMongodbCheckPayload := _CreateMongodbCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateMongodbCheckPayload) + + if err != nil { + return err + } + + *o = CreateMongodbCheckPayload(varCreateMongodbCheckPayload) + + return err +} + +type NullableCreateMongodbCheckPayload struct { + value *CreateMongodbCheckPayload + isSet bool +} + +func (v NullableCreateMongodbCheckPayload) Get() *CreateMongodbCheckPayload { + return v.value +} + +func (v *NullableCreateMongodbCheckPayload) Set(val *CreateMongodbCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateMongodbCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateMongodbCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateMongodbCheckPayload(val *CreateMongodbCheckPayload) *NullableCreateMongodbCheckPayload { + return &NullableCreateMongodbCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateMongodbCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateMongodbCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_mysql_check_400_response.go b/services/observability/v1api/model_create_mysql_check_400_response.go new file mode 100644 index 000000000..3192fe5d1 --- /dev/null +++ b/services/observability/v1api/model_create_mysql_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateMysqlCheck400Response - struct for CreateMysqlCheck400Response +type CreateMysqlCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateMysqlCheck400Response is a convenience function that returns []string wrapped in CreateMysqlCheck400Response +func ArrayOfStringAsCreateMysqlCheck400Response(v *[]string) CreateMysqlCheck400Response { + return CreateMysqlCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateMysqlCheck400Response is a convenience function that returns map[string][]string wrapped in CreateMysqlCheck400Response +func MapmapOfStringarrayOfStringAsCreateMysqlCheck400Response(v *map[string][]string) CreateMysqlCheck400Response { + return CreateMysqlCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateMysqlCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateMysqlCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateMysqlCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateMysqlCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateMysqlCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateMysqlCheck400Response struct { + value *CreateMysqlCheck400Response + isSet bool +} + +func (v NullableCreateMysqlCheck400Response) Get() *CreateMysqlCheck400Response { + return v.value +} + +func (v *NullableCreateMysqlCheck400Response) Set(val *CreateMysqlCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateMysqlCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateMysqlCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateMysqlCheck400Response(val *CreateMysqlCheck400Response) *NullableCreateMysqlCheck400Response { + return &NullableCreateMysqlCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateMysqlCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateMysqlCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_mysql_check_payload.go b/services/observability/v1api/model_create_mysql_check_payload.go new file mode 100644 index 000000000..06b6a7a76 --- /dev/null +++ b/services/observability/v1api/model_create_mysql_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateMysqlCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateMysqlCheckPayload{} + +// CreateMysqlCheckPayload MySQL check body. +type CreateMysqlCheckPayload struct { + // url to check + Server string `json:"server"` +} + +type _CreateMysqlCheckPayload CreateMysqlCheckPayload + +// NewCreateMysqlCheckPayload instantiates a new CreateMysqlCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateMysqlCheckPayload(server string) *CreateMysqlCheckPayload { + this := CreateMysqlCheckPayload{} + this.Server = server + return &this +} + +// NewCreateMysqlCheckPayloadWithDefaults instantiates a new CreateMysqlCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateMysqlCheckPayloadWithDefaults() *CreateMysqlCheckPayload { + this := CreateMysqlCheckPayload{} + return &this +} + +// GetServer returns the Server field value +func (o *CreateMysqlCheckPayload) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *CreateMysqlCheckPayload) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *CreateMysqlCheckPayload) SetServer(v string) { + o.Server = v +} + +func (o CreateMysqlCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateMysqlCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["server"] = o.Server + return toSerialize, nil +} + +func (o *CreateMysqlCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateMysqlCheckPayload := _CreateMysqlCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateMysqlCheckPayload) + + if err != nil { + return err + } + + *o = CreateMysqlCheckPayload(varCreateMysqlCheckPayload) + + return err +} + +type NullableCreateMysqlCheckPayload struct { + value *CreateMysqlCheckPayload + isSet bool +} + +func (v NullableCreateMysqlCheckPayload) Get() *CreateMysqlCheckPayload { + return v.value +} + +func (v *NullableCreateMysqlCheckPayload) Set(val *CreateMysqlCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateMysqlCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateMysqlCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateMysqlCheckPayload(val *CreateMysqlCheckPayload) *NullableCreateMysqlCheckPayload { + return &NullableCreateMysqlCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateMysqlCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateMysqlCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_network_check_400_response.go b/services/observability/v1api/model_create_network_check_400_response.go new file mode 100644 index 000000000..7f57b32b3 --- /dev/null +++ b/services/observability/v1api/model_create_network_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateNetworkCheck400Response - struct for CreateNetworkCheck400Response +type CreateNetworkCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateNetworkCheck400Response is a convenience function that returns []string wrapped in CreateNetworkCheck400Response +func ArrayOfStringAsCreateNetworkCheck400Response(v *[]string) CreateNetworkCheck400Response { + return CreateNetworkCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateNetworkCheck400Response is a convenience function that returns map[string][]string wrapped in CreateNetworkCheck400Response +func MapmapOfStringarrayOfStringAsCreateNetworkCheck400Response(v *map[string][]string) CreateNetworkCheck400Response { + return CreateNetworkCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateNetworkCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateNetworkCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateNetworkCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateNetworkCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateNetworkCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateNetworkCheck400Response struct { + value *CreateNetworkCheck400Response + isSet bool +} + +func (v NullableCreateNetworkCheck400Response) Get() *CreateNetworkCheck400Response { + return v.value +} + +func (v *NullableCreateNetworkCheck400Response) Set(val *CreateNetworkCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNetworkCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNetworkCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNetworkCheck400Response(val *CreateNetworkCheck400Response) *NullableCreateNetworkCheck400Response { + return &NullableCreateNetworkCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateNetworkCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNetworkCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_network_check_payload.go b/services/observability/v1api/model_create_network_check_payload.go new file mode 100644 index 000000000..7364ecfca --- /dev/null +++ b/services/observability/v1api/model_create_network_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateNetworkCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateNetworkCheckPayload{} + +// CreateNetworkCheckPayload Network check body. +type CreateNetworkCheckPayload struct { + // network to check + Address string `json:"address"` +} + +type _CreateNetworkCheckPayload CreateNetworkCheckPayload + +// NewCreateNetworkCheckPayload instantiates a new CreateNetworkCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateNetworkCheckPayload(address string) *CreateNetworkCheckPayload { + this := CreateNetworkCheckPayload{} + this.Address = address + return &this +} + +// NewCreateNetworkCheckPayloadWithDefaults instantiates a new CreateNetworkCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateNetworkCheckPayloadWithDefaults() *CreateNetworkCheckPayload { + this := CreateNetworkCheckPayload{} + return &this +} + +// GetAddress returns the Address field value +func (o *CreateNetworkCheckPayload) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *CreateNetworkCheckPayload) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *CreateNetworkCheckPayload) SetAddress(v string) { + o.Address = v +} + +func (o CreateNetworkCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateNetworkCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + return toSerialize, nil +} + +func (o *CreateNetworkCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateNetworkCheckPayload := _CreateNetworkCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateNetworkCheckPayload) + + if err != nil { + return err + } + + *o = CreateNetworkCheckPayload(varCreateNetworkCheckPayload) + + return err +} + +type NullableCreateNetworkCheckPayload struct { + value *CreateNetworkCheckPayload + isSet bool +} + +func (v NullableCreateNetworkCheckPayload) Get() *CreateNetworkCheckPayload { + return v.value +} + +func (v *NullableCreateNetworkCheckPayload) Set(val *CreateNetworkCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNetworkCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNetworkCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNetworkCheckPayload(val *CreateNetworkCheckPayload) *NullableCreateNetworkCheckPayload { + return &NullableCreateNetworkCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateNetworkCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNetworkCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_ping_check_400_response.go b/services/observability/v1api/model_create_ping_check_400_response.go new file mode 100644 index 000000000..a8670ac22 --- /dev/null +++ b/services/observability/v1api/model_create_ping_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreatePingCheck400Response - struct for CreatePingCheck400Response +type CreatePingCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreatePingCheck400Response is a convenience function that returns []string wrapped in CreatePingCheck400Response +func ArrayOfStringAsCreatePingCheck400Response(v *[]string) CreatePingCheck400Response { + return CreatePingCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreatePingCheck400Response is a convenience function that returns map[string][]string wrapped in CreatePingCheck400Response +func MapmapOfStringarrayOfStringAsCreatePingCheck400Response(v *map[string][]string) CreatePingCheck400Response { + return CreatePingCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreatePingCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreatePingCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreatePingCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreatePingCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreatePingCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreatePingCheck400Response struct { + value *CreatePingCheck400Response + isSet bool +} + +func (v NullableCreatePingCheck400Response) Get() *CreatePingCheck400Response { + return v.value +} + +func (v *NullableCreatePingCheck400Response) Set(val *CreatePingCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreatePingCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreatePingCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreatePingCheck400Response(val *CreatePingCheck400Response) *NullableCreatePingCheck400Response { + return &NullableCreatePingCheck400Response{value: val, isSet: true} +} + +func (v NullableCreatePingCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreatePingCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_ping_check_payload.go b/services/observability/v1api/model_create_ping_check_payload.go new file mode 100644 index 000000000..cf332c436 --- /dev/null +++ b/services/observability/v1api/model_create_ping_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreatePingCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreatePingCheckPayload{} + +// CreatePingCheckPayload Ping check body. +type CreatePingCheckPayload struct { + // domain to check + Url string `json:"url"` +} + +type _CreatePingCheckPayload CreatePingCheckPayload + +// NewCreatePingCheckPayload instantiates a new CreatePingCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreatePingCheckPayload(url string) *CreatePingCheckPayload { + this := CreatePingCheckPayload{} + this.Url = url + return &this +} + +// NewCreatePingCheckPayloadWithDefaults instantiates a new CreatePingCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreatePingCheckPayloadWithDefaults() *CreatePingCheckPayload { + this := CreatePingCheckPayload{} + return &this +} + +// GetUrl returns the Url field value +func (o *CreatePingCheckPayload) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreatePingCheckPayload) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreatePingCheckPayload) SetUrl(v string) { + o.Url = v +} + +func (o CreatePingCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreatePingCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *CreatePingCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreatePingCheckPayload := _CreatePingCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreatePingCheckPayload) + + if err != nil { + return err + } + + *o = CreatePingCheckPayload(varCreatePingCheckPayload) + + return err +} + +type NullableCreatePingCheckPayload struct { + value *CreatePingCheckPayload + isSet bool +} + +func (v NullableCreatePingCheckPayload) Get() *CreatePingCheckPayload { + return v.value +} + +func (v *NullableCreatePingCheckPayload) Set(val *CreatePingCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreatePingCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreatePingCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreatePingCheckPayload(val *CreatePingCheckPayload) *NullableCreatePingCheckPayload { + return &NullableCreatePingCheckPayload{value: val, isSet: true} +} + +func (v NullableCreatePingCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreatePingCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_postgresql_check_400_response.go b/services/observability/v1api/model_create_postgresql_check_400_response.go new file mode 100644 index 000000000..31f2fba41 --- /dev/null +++ b/services/observability/v1api/model_create_postgresql_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreatePostgresqlCheck400Response - struct for CreatePostgresqlCheck400Response +type CreatePostgresqlCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreatePostgresqlCheck400Response is a convenience function that returns []string wrapped in CreatePostgresqlCheck400Response +func ArrayOfStringAsCreatePostgresqlCheck400Response(v *[]string) CreatePostgresqlCheck400Response { + return CreatePostgresqlCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreatePostgresqlCheck400Response is a convenience function that returns map[string][]string wrapped in CreatePostgresqlCheck400Response +func MapmapOfStringarrayOfStringAsCreatePostgresqlCheck400Response(v *map[string][]string) CreatePostgresqlCheck400Response { + return CreatePostgresqlCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreatePostgresqlCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreatePostgresqlCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreatePostgresqlCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreatePostgresqlCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreatePostgresqlCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreatePostgresqlCheck400Response struct { + value *CreatePostgresqlCheck400Response + isSet bool +} + +func (v NullableCreatePostgresqlCheck400Response) Get() *CreatePostgresqlCheck400Response { + return v.value +} + +func (v *NullableCreatePostgresqlCheck400Response) Set(val *CreatePostgresqlCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreatePostgresqlCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreatePostgresqlCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreatePostgresqlCheck400Response(val *CreatePostgresqlCheck400Response) *NullableCreatePostgresqlCheck400Response { + return &NullableCreatePostgresqlCheck400Response{value: val, isSet: true} +} + +func (v NullableCreatePostgresqlCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreatePostgresqlCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_postgresql_check_payload.go b/services/observability/v1api/model_create_postgresql_check_payload.go new file mode 100644 index 000000000..7e02c322a --- /dev/null +++ b/services/observability/v1api/model_create_postgresql_check_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreatePostgresqlCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreatePostgresqlCheckPayload{} + +// CreatePostgresqlCheckPayload Postgresql check body. +type CreatePostgresqlCheckPayload struct { + // url to check + Address string `json:"address"` +} + +type _CreatePostgresqlCheckPayload CreatePostgresqlCheckPayload + +// NewCreatePostgresqlCheckPayload instantiates a new CreatePostgresqlCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreatePostgresqlCheckPayload(address string) *CreatePostgresqlCheckPayload { + this := CreatePostgresqlCheckPayload{} + this.Address = address + return &this +} + +// NewCreatePostgresqlCheckPayloadWithDefaults instantiates a new CreatePostgresqlCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreatePostgresqlCheckPayloadWithDefaults() *CreatePostgresqlCheckPayload { + this := CreatePostgresqlCheckPayload{} + return &this +} + +// GetAddress returns the Address field value +func (o *CreatePostgresqlCheckPayload) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *CreatePostgresqlCheckPayload) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *CreatePostgresqlCheckPayload) SetAddress(v string) { + o.Address = v +} + +func (o CreatePostgresqlCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreatePostgresqlCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + return toSerialize, nil +} + +func (o *CreatePostgresqlCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreatePostgresqlCheckPayload := _CreatePostgresqlCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreatePostgresqlCheckPayload) + + if err != nil { + return err + } + + *o = CreatePostgresqlCheckPayload(varCreatePostgresqlCheckPayload) + + return err +} + +type NullableCreatePostgresqlCheckPayload struct { + value *CreatePostgresqlCheckPayload + isSet bool +} + +func (v NullableCreatePostgresqlCheckPayload) Get() *CreatePostgresqlCheckPayload { + return v.value +} + +func (v *NullableCreatePostgresqlCheckPayload) Set(val *CreatePostgresqlCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreatePostgresqlCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreatePostgresqlCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreatePostgresqlCheckPayload(val *CreatePostgresqlCheckPayload) *NullableCreatePostgresqlCheckPayload { + return &NullableCreatePostgresqlCheckPayload{value: val, isSet: true} +} + +func (v NullableCreatePostgresqlCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreatePostgresqlCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_rabbitmq_check_400_response.go b/services/observability/v1api/model_create_rabbitmq_check_400_response.go new file mode 100644 index 000000000..af6628163 --- /dev/null +++ b/services/observability/v1api/model_create_rabbitmq_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateRabbitmqCheck400Response - struct for CreateRabbitmqCheck400Response +type CreateRabbitmqCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateRabbitmqCheck400Response is a convenience function that returns []string wrapped in CreateRabbitmqCheck400Response +func ArrayOfStringAsCreateRabbitmqCheck400Response(v *[]string) CreateRabbitmqCheck400Response { + return CreateRabbitmqCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateRabbitmqCheck400Response is a convenience function that returns map[string][]string wrapped in CreateRabbitmqCheck400Response +func MapmapOfStringarrayOfStringAsCreateRabbitmqCheck400Response(v *map[string][]string) CreateRabbitmqCheck400Response { + return CreateRabbitmqCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateRabbitmqCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateRabbitmqCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateRabbitmqCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateRabbitmqCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateRabbitmqCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateRabbitmqCheck400Response struct { + value *CreateRabbitmqCheck400Response + isSet bool +} + +func (v NullableCreateRabbitmqCheck400Response) Get() *CreateRabbitmqCheck400Response { + return v.value +} + +func (v *NullableCreateRabbitmqCheck400Response) Set(val *CreateRabbitmqCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateRabbitmqCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateRabbitmqCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateRabbitmqCheck400Response(val *CreateRabbitmqCheck400Response) *NullableCreateRabbitmqCheck400Response { + return &NullableCreateRabbitmqCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateRabbitmqCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateRabbitmqCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_rabbitmq_check_payload.go b/services/observability/v1api/model_create_rabbitmq_check_payload.go new file mode 100644 index 000000000..dc9dd0b7d --- /dev/null +++ b/services/observability/v1api/model_create_rabbitmq_check_payload.go @@ -0,0 +1,232 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateRabbitmqCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateRabbitmqCheckPayload{} + +// CreateRabbitmqCheckPayload RabbitMQ check body. +type CreateRabbitmqCheckPayload struct { + // password + Password *string `json:"password,omitempty"` + // url to check + Url string `json:"url"` + // username + Username *string `json:"username,omitempty"` +} + +type _CreateRabbitmqCheckPayload CreateRabbitmqCheckPayload + +// NewCreateRabbitmqCheckPayload instantiates a new CreateRabbitmqCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateRabbitmqCheckPayload(url string) *CreateRabbitmqCheckPayload { + this := CreateRabbitmqCheckPayload{} + this.Url = url + return &this +} + +// NewCreateRabbitmqCheckPayloadWithDefaults instantiates a new CreateRabbitmqCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateRabbitmqCheckPayloadWithDefaults() *CreateRabbitmqCheckPayload { + this := CreateRabbitmqCheckPayload{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CreateRabbitmqCheckPayload) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateRabbitmqCheckPayload) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CreateRabbitmqCheckPayload) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *CreateRabbitmqCheckPayload) SetPassword(v string) { + o.Password = &v +} + +// GetUrl returns the Url field value +func (o *CreateRabbitmqCheckPayload) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreateRabbitmqCheckPayload) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreateRabbitmqCheckPayload) SetUrl(v string) { + o.Url = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *CreateRabbitmqCheckPayload) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateRabbitmqCheckPayload) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *CreateRabbitmqCheckPayload) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *CreateRabbitmqCheckPayload) SetUsername(v string) { + o.Username = &v +} + +func (o CreateRabbitmqCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateRabbitmqCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + toSerialize["url"] = o.Url + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +func (o *CreateRabbitmqCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateRabbitmqCheckPayload := _CreateRabbitmqCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateRabbitmqCheckPayload) + + if err != nil { + return err + } + + *o = CreateRabbitmqCheckPayload(varCreateRabbitmqCheckPayload) + + return err +} + +type NullableCreateRabbitmqCheckPayload struct { + value *CreateRabbitmqCheckPayload + isSet bool +} + +func (v NullableCreateRabbitmqCheckPayload) Get() *CreateRabbitmqCheckPayload { + return v.value +} + +func (v *NullableCreateRabbitmqCheckPayload) Set(val *CreateRabbitmqCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateRabbitmqCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateRabbitmqCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateRabbitmqCheckPayload(val *CreateRabbitmqCheckPayload) *NullableCreateRabbitmqCheckPayload { + return &NullableCreateRabbitmqCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateRabbitmqCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateRabbitmqCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_redis_check_400_response.go b/services/observability/v1api/model_create_redis_check_400_response.go new file mode 100644 index 000000000..43ad46dd3 --- /dev/null +++ b/services/observability/v1api/model_create_redis_check_400_response.go @@ -0,0 +1,160 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// CreateRedisCheck400Response - struct for CreateRedisCheck400Response +type CreateRedisCheck400Response struct { + ArrayOfString *[]string + MapmapOfStringarrayOfString *map[string][]string +} + +// []stringAsCreateRedisCheck400Response is a convenience function that returns []string wrapped in CreateRedisCheck400Response +func ArrayOfStringAsCreateRedisCheck400Response(v *[]string) CreateRedisCheck400Response { + return CreateRedisCheck400Response{ + ArrayOfString: v, + } +} + +// map[string][]stringAsCreateRedisCheck400Response is a convenience function that returns map[string][]string wrapped in CreateRedisCheck400Response +func MapmapOfStringarrayOfStringAsCreateRedisCheck400Response(v *map[string][]string) CreateRedisCheck400Response { + return CreateRedisCheck400Response{ + MapmapOfStringarrayOfString: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateRedisCheck400Response) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into MapmapOfStringarrayOfString + err = json.Unmarshal(data, &dst.MapmapOfStringarrayOfString) + if err == nil { + jsonMapmapOfStringarrayOfString, _ := json.Marshal(dst.MapmapOfStringarrayOfString) + if string(jsonMapmapOfStringarrayOfString) == "{}" { // empty struct + dst.MapmapOfStringarrayOfString = nil + } else { + match++ + } + } else { + dst.MapmapOfStringarrayOfString = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.MapmapOfStringarrayOfString = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateRedisCheck400Response)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateRedisCheck400Response) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.MapmapOfStringarrayOfString != nil { + return json.Marshal(&src.MapmapOfStringarrayOfString) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateRedisCheck400Response) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj CreateRedisCheck400Response) GetActualInstanceValue() interface{} { + if obj.ArrayOfString != nil { + return *obj.ArrayOfString + } + + if obj.MapmapOfStringarrayOfString != nil { + return *obj.MapmapOfStringarrayOfString + } + + // all schemas are nil + return nil +} + +type NullableCreateRedisCheck400Response struct { + value *CreateRedisCheck400Response + isSet bool +} + +func (v NullableCreateRedisCheck400Response) Get() *CreateRedisCheck400Response { + return v.value +} + +func (v *NullableCreateRedisCheck400Response) Set(val *CreateRedisCheck400Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateRedisCheck400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateRedisCheck400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateRedisCheck400Response(val *CreateRedisCheck400Response) *NullableCreateRedisCheck400Response { + return &NullableCreateRedisCheck400Response{value: val, isSet: true} +} + +func (v NullableCreateRedisCheck400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateRedisCheck400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_redis_check_payload.go b/services/observability/v1api/model_create_redis_check_payload.go new file mode 100644 index 000000000..517060842 --- /dev/null +++ b/services/observability/v1api/model_create_redis_check_payload.go @@ -0,0 +1,232 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateRedisCheckPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateRedisCheckPayload{} + +// CreateRedisCheckPayload Redis check body. +type CreateRedisCheckPayload struct { + // password + Password *string `json:"password,omitempty"` + // url to check + Server string `json:"server"` + // username + Username *string `json:"username,omitempty"` +} + +type _CreateRedisCheckPayload CreateRedisCheckPayload + +// NewCreateRedisCheckPayload instantiates a new CreateRedisCheckPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateRedisCheckPayload(server string) *CreateRedisCheckPayload { + this := CreateRedisCheckPayload{} + this.Server = server + return &this +} + +// NewCreateRedisCheckPayloadWithDefaults instantiates a new CreateRedisCheckPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateRedisCheckPayloadWithDefaults() *CreateRedisCheckPayload { + this := CreateRedisCheckPayload{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CreateRedisCheckPayload) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateRedisCheckPayload) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CreateRedisCheckPayload) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *CreateRedisCheckPayload) SetPassword(v string) { + o.Password = &v +} + +// GetServer returns the Server field value +func (o *CreateRedisCheckPayload) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *CreateRedisCheckPayload) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *CreateRedisCheckPayload) SetServer(v string) { + o.Server = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *CreateRedisCheckPayload) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateRedisCheckPayload) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *CreateRedisCheckPayload) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *CreateRedisCheckPayload) SetUsername(v string) { + o.Username = &v +} + +func (o CreateRedisCheckPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateRedisCheckPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + toSerialize["server"] = o.Server + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +func (o *CreateRedisCheckPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateRedisCheckPayload := _CreateRedisCheckPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateRedisCheckPayload) + + if err != nil { + return err + } + + *o = CreateRedisCheckPayload(varCreateRedisCheckPayload) + + return err +} + +type NullableCreateRedisCheckPayload struct { + value *CreateRedisCheckPayload + isSet bool +} + +func (v NullableCreateRedisCheckPayload) Get() *CreateRedisCheckPayload { + return v.value +} + +func (v *NullableCreateRedisCheckPayload) Set(val *CreateRedisCheckPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateRedisCheckPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateRedisCheckPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateRedisCheckPayload(val *CreateRedisCheckPayload) *NullableCreateRedisCheckPayload { + return &NullableCreateRedisCheckPayload{value: val, isSet: true} +} + +func (v NullableCreateRedisCheckPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateRedisCheckPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload.go b/services/observability/v1api/model_create_scrape_config_payload.go new file mode 100644 index 000000000..39e6d154b --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload.go @@ -0,0 +1,690 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateScrapeConfigPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayload{} + +// CreateScrapeConfigPayload struct for CreateScrapeConfigPayload +type CreateScrapeConfigPayload struct { + BasicAuth *CreateScrapeConfigPayloadBasicAuth `json:"basicAuth,omitempty"` + // Sets the 'Authorization' header on every scrape request with the configured bearer token. It is mutually exclusive with 'bearer_token_file'. `Additional Validators:` * needs to be a valid bearer token * if bearerToken is in the body no other authentication method should be in the body + BearerToken *string `json:"bearerToken,omitempty"` + // Note that any globally configured 'external_labels' are unaffected by this setting. In communication with external systems, they are always applied only when a time series does not have a given label yet and are ignored otherwise. + HonorLabels *bool `json:"honorLabels,omitempty"` + // honor_timestamps controls whether Prometheus respects the timestamps present in scraped data. If honor_timestamps is set to 'true', the timestamps of the metrics exposed by the target will be used. + HonorTimeStamps *bool `json:"honorTimeStamps,omitempty"` + // HTTP-based service discovery provides a more generic way to configure static targets and serves as an interface to plug in custom service discovery mechanisms. + HttpSdConfigs []CreateScrapeConfigPayloadHttpSdConfigsInner `json:"httpSdConfigs,omitempty"` + // The job name assigned to scraped metrics by default. `Additional Validators:` * must be unique * key and values should only include the characters: a-zA-Z0-9- + JobName string `json:"jobName"` + // The HTTP resource path on which to fetch metrics from targets. E.g. /metrics + MetricsPath *string `json:"metricsPath,omitempty"` + // List of metric relabel configurations + MetricsRelabelConfigs []CreateScrapeConfigPayloadMetricsRelabelConfigsInner `json:"metricsRelabelConfigs,omitempty"` + Oauth2 *CreateScrapeConfigPayloadOauth2 `json:"oauth2,omitempty"` + // Optional http params `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters + Params map[string]interface{} `json:"params,omitempty"` + // Per-scrape limit on number of scraped samples that will be accepted. If more than this number of samples are present after metric relabeling the entire scrape will be treated as failed. The total limit depends on the service plan target limits * samples + SampleLimit *float32 `json:"sampleLimit,omitempty"` + // Configures the protocol scheme used for requests. https or http + Scheme string `json:"scheme"` + // How frequently to scrape targets from this job. E.g. 5m `Additional Validators:` * must be a valid time format* must be >= 60s + ScrapeInterval string `json:"scrapeInterval"` + // Per-scrape timeout when scraping this job. `Additional Validators:` * must be a valid time format* must be smaller than scrapeInterval + ScrapeTimeout string `json:"scrapeTimeout"` + // A list of scrape configurations. + StaticConfigs []CreateScrapeConfigPayloadStaticConfigsInner `json:"staticConfigs"` + TlsConfig *CreateScrapeConfigPayloadTlsConfig `json:"tlsConfig,omitempty"` +} + +type _CreateScrapeConfigPayload CreateScrapeConfigPayload + +// NewCreateScrapeConfigPayload instantiates a new CreateScrapeConfigPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayload(jobName string, scheme string, scrapeInterval string, scrapeTimeout string, staticConfigs []CreateScrapeConfigPayloadStaticConfigsInner) *CreateScrapeConfigPayload { + this := CreateScrapeConfigPayload{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + this.JobName = jobName + var metricsPath string = "/metrics" + this.MetricsPath = &metricsPath + this.Scheme = scheme + this.ScrapeInterval = scrapeInterval + this.ScrapeTimeout = scrapeTimeout + this.StaticConfigs = staticConfigs + return &this +} + +// NewCreateScrapeConfigPayloadWithDefaults instantiates a new CreateScrapeConfigPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadWithDefaults() *CreateScrapeConfigPayload { + this := CreateScrapeConfigPayload{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + var metricsPath string = "/metrics" + this.MetricsPath = &metricsPath + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetBasicAuth() CreateScrapeConfigPayloadBasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret CreateScrapeConfigPayloadBasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetBasicAuthOk() (*CreateScrapeConfigPayloadBasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given CreateScrapeConfigPayloadBasicAuth and assigns it to the BasicAuth field. +func (o *CreateScrapeConfigPayload) SetBasicAuth(v CreateScrapeConfigPayloadBasicAuth) { + o.BasicAuth = &v +} + +// GetBearerToken returns the BearerToken field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetBearerToken() string { + if o == nil || IsNil(o.BearerToken) { + var ret string + return ret + } + return *o.BearerToken +} + +// GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetBearerTokenOk() (*string, bool) { + if o == nil || IsNil(o.BearerToken) { + return nil, false + } + return o.BearerToken, true +} + +// HasBearerToken returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasBearerToken() bool { + if o != nil && !IsNil(o.BearerToken) { + return true + } + + return false +} + +// SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +func (o *CreateScrapeConfigPayload) SetBearerToken(v string) { + o.BearerToken = &v +} + +// GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetHonorLabels() bool { + if o == nil || IsNil(o.HonorLabels) { + var ret bool + return ret + } + return *o.HonorLabels +} + +// GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetHonorLabelsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorLabels) { + return nil, false + } + return o.HonorLabels, true +} + +// HasHonorLabels returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasHonorLabels() bool { + if o != nil && !IsNil(o.HonorLabels) { + return true + } + + return false +} + +// SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +func (o *CreateScrapeConfigPayload) SetHonorLabels(v bool) { + o.HonorLabels = &v +} + +// GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetHonorTimeStamps() bool { + if o == nil || IsNil(o.HonorTimeStamps) { + var ret bool + return ret + } + return *o.HonorTimeStamps +} + +// GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetHonorTimeStampsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorTimeStamps) { + return nil, false + } + return o.HonorTimeStamps, true +} + +// HasHonorTimeStamps returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasHonorTimeStamps() bool { + if o != nil && !IsNil(o.HonorTimeStamps) { + return true + } + + return false +} + +// SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +func (o *CreateScrapeConfigPayload) SetHonorTimeStamps(v bool) { + o.HonorTimeStamps = &v +} + +// GetHttpSdConfigs returns the HttpSdConfigs field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetHttpSdConfigs() []CreateScrapeConfigPayloadHttpSdConfigsInner { + if o == nil || IsNil(o.HttpSdConfigs) { + var ret []CreateScrapeConfigPayloadHttpSdConfigsInner + return ret + } + return o.HttpSdConfigs +} + +// GetHttpSdConfigsOk returns a tuple with the HttpSdConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetHttpSdConfigsOk() ([]CreateScrapeConfigPayloadHttpSdConfigsInner, bool) { + if o == nil || IsNil(o.HttpSdConfigs) { + return nil, false + } + return o.HttpSdConfigs, true +} + +// HasHttpSdConfigs returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasHttpSdConfigs() bool { + if o != nil && !IsNil(o.HttpSdConfigs) { + return true + } + + return false +} + +// SetHttpSdConfigs gets a reference to the given []CreateScrapeConfigPayloadHttpSdConfigsInner and assigns it to the HttpSdConfigs field. +func (o *CreateScrapeConfigPayload) SetHttpSdConfigs(v []CreateScrapeConfigPayloadHttpSdConfigsInner) { + o.HttpSdConfigs = v +} + +// GetJobName returns the JobName field value +func (o *CreateScrapeConfigPayload) GetJobName() string { + if o == nil { + var ret string + return ret + } + + return o.JobName +} + +// GetJobNameOk returns a tuple with the JobName field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetJobNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobName, true +} + +// SetJobName sets field value +func (o *CreateScrapeConfigPayload) SetJobName(v string) { + o.JobName = v +} + +// GetMetricsPath returns the MetricsPath field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetMetricsPath() string { + if o == nil || IsNil(o.MetricsPath) { + var ret string + return ret + } + return *o.MetricsPath +} + +// GetMetricsPathOk returns a tuple with the MetricsPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetMetricsPathOk() (*string, bool) { + if o == nil || IsNil(o.MetricsPath) { + return nil, false + } + return o.MetricsPath, true +} + +// HasMetricsPath returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasMetricsPath() bool { + if o != nil && !IsNil(o.MetricsPath) { + return true + } + + return false +} + +// SetMetricsPath gets a reference to the given string and assigns it to the MetricsPath field. +func (o *CreateScrapeConfigPayload) SetMetricsPath(v string) { + o.MetricsPath = &v +} + +// GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetMetricsRelabelConfigs() []CreateScrapeConfigPayloadMetricsRelabelConfigsInner { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + var ret []CreateScrapeConfigPayloadMetricsRelabelConfigsInner + return ret + } + return o.MetricsRelabelConfigs +} + +// GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetMetricsRelabelConfigsOk() ([]CreateScrapeConfigPayloadMetricsRelabelConfigsInner, bool) { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + return nil, false + } + return o.MetricsRelabelConfigs, true +} + +// HasMetricsRelabelConfigs returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasMetricsRelabelConfigs() bool { + if o != nil && !IsNil(o.MetricsRelabelConfigs) { + return true + } + + return false +} + +// SetMetricsRelabelConfigs gets a reference to the given []CreateScrapeConfigPayloadMetricsRelabelConfigsInner and assigns it to the MetricsRelabelConfigs field. +func (o *CreateScrapeConfigPayload) SetMetricsRelabelConfigs(v []CreateScrapeConfigPayloadMetricsRelabelConfigsInner) { + o.MetricsRelabelConfigs = v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetOauth2() CreateScrapeConfigPayloadOauth2 { + if o == nil || IsNil(o.Oauth2) { + var ret CreateScrapeConfigPayloadOauth2 + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetOauth2Ok() (*CreateScrapeConfigPayloadOauth2, bool) { + if o == nil || IsNil(o.Oauth2) { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasOauth2() bool { + if o != nil && !IsNil(o.Oauth2) { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given CreateScrapeConfigPayloadOauth2 and assigns it to the Oauth2 field. +func (o *CreateScrapeConfigPayload) SetOauth2(v CreateScrapeConfigPayloadOauth2) { + o.Oauth2 = &v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetParams() map[string]interface{} { + if o == nil || IsNil(o.Params) { + var ret map[string]interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetParamsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Params) { + return map[string]interface{}{}, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given map[string]interface{} and assigns it to the Params field. +func (o *CreateScrapeConfigPayload) SetParams(v map[string]interface{}) { + o.Params = v +} + +// GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetSampleLimit() float32 { + if o == nil || IsNil(o.SampleLimit) { + var ret float32 + return ret + } + return *o.SampleLimit +} + +// GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetSampleLimitOk() (*float32, bool) { + if o == nil || IsNil(o.SampleLimit) { + return nil, false + } + return o.SampleLimit, true +} + +// HasSampleLimit returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasSampleLimit() bool { + if o != nil && !IsNil(o.SampleLimit) { + return true + } + + return false +} + +// SetSampleLimit gets a reference to the given float32 and assigns it to the SampleLimit field. +func (o *CreateScrapeConfigPayload) SetSampleLimit(v float32) { + o.SampleLimit = &v +} + +// GetScheme returns the Scheme field value +func (o *CreateScrapeConfigPayload) GetScheme() string { + if o == nil { + var ret string + return ret + } + + return o.Scheme +} + +// GetSchemeOk returns a tuple with the Scheme field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Scheme, true +} + +// SetScheme sets field value +func (o *CreateScrapeConfigPayload) SetScheme(v string) { + o.Scheme = v +} + +// GetScrapeInterval returns the ScrapeInterval field value +func (o *CreateScrapeConfigPayload) GetScrapeInterval() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeInterval +} + +// GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetScrapeIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeInterval, true +} + +// SetScrapeInterval sets field value +func (o *CreateScrapeConfigPayload) SetScrapeInterval(v string) { + o.ScrapeInterval = v +} + +// GetScrapeTimeout returns the ScrapeTimeout field value +func (o *CreateScrapeConfigPayload) GetScrapeTimeout() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeTimeout +} + +// GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetScrapeTimeoutOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeTimeout, true +} + +// SetScrapeTimeout sets field value +func (o *CreateScrapeConfigPayload) SetScrapeTimeout(v string) { + o.ScrapeTimeout = v +} + +// GetStaticConfigs returns the StaticConfigs field value +func (o *CreateScrapeConfigPayload) GetStaticConfigs() []CreateScrapeConfigPayloadStaticConfigsInner { + if o == nil { + var ret []CreateScrapeConfigPayloadStaticConfigsInner + return ret + } + + return o.StaticConfigs +} + +// GetStaticConfigsOk returns a tuple with the StaticConfigs field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetStaticConfigsOk() ([]CreateScrapeConfigPayloadStaticConfigsInner, bool) { + if o == nil { + return nil, false + } + return o.StaticConfigs, true +} + +// SetStaticConfigs sets field value +func (o *CreateScrapeConfigPayload) SetStaticConfigs(v []CreateScrapeConfigPayloadStaticConfigsInner) { + o.StaticConfigs = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayload) GetTlsConfig() CreateScrapeConfigPayloadTlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret CreateScrapeConfigPayloadTlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayload) GetTlsConfigOk() (*CreateScrapeConfigPayloadTlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayload) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given CreateScrapeConfigPayloadTlsConfig and assigns it to the TlsConfig field. +func (o *CreateScrapeConfigPayload) SetTlsConfig(v CreateScrapeConfigPayloadTlsConfig) { + o.TlsConfig = &v +} + +func (o CreateScrapeConfigPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.BearerToken) { + toSerialize["bearerToken"] = o.BearerToken + } + if !IsNil(o.HonorLabels) { + toSerialize["honorLabels"] = o.HonorLabels + } + if !IsNil(o.HonorTimeStamps) { + toSerialize["honorTimeStamps"] = o.HonorTimeStamps + } + if !IsNil(o.HttpSdConfigs) { + toSerialize["httpSdConfigs"] = o.HttpSdConfigs + } + toSerialize["jobName"] = o.JobName + if !IsNil(o.MetricsPath) { + toSerialize["metricsPath"] = o.MetricsPath + } + if !IsNil(o.MetricsRelabelConfigs) { + toSerialize["metricsRelabelConfigs"] = o.MetricsRelabelConfigs + } + if !IsNil(o.Oauth2) { + toSerialize["oauth2"] = o.Oauth2 + } + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + if !IsNil(o.SampleLimit) { + toSerialize["sampleLimit"] = o.SampleLimit + } + toSerialize["scheme"] = o.Scheme + toSerialize["scrapeInterval"] = o.ScrapeInterval + toSerialize["scrapeTimeout"] = o.ScrapeTimeout + toSerialize["staticConfigs"] = o.StaticConfigs + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + return toSerialize, nil +} + +func (o *CreateScrapeConfigPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "jobName", + "scheme", + "scrapeInterval", + "scrapeTimeout", + "staticConfigs", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateScrapeConfigPayload := _CreateScrapeConfigPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateScrapeConfigPayload) + + if err != nil { + return err + } + + *o = CreateScrapeConfigPayload(varCreateScrapeConfigPayload) + + return err +} + +type NullableCreateScrapeConfigPayload struct { + value *CreateScrapeConfigPayload + isSet bool +} + +func (v NullableCreateScrapeConfigPayload) Get() *CreateScrapeConfigPayload { + return v.value +} + +func (v *NullableCreateScrapeConfigPayload) Set(val *CreateScrapeConfigPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayload(val *CreateScrapeConfigPayload) *NullableCreateScrapeConfigPayload { + return &NullableCreateScrapeConfigPayload{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_basic_auth.go b/services/observability/v1api/model_create_scrape_config_payload_basic_auth.go new file mode 100644 index 000000000..56fb04518 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_basic_auth.go @@ -0,0 +1,163 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadBasicAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadBasicAuth{} + +// CreateScrapeConfigPayloadBasicAuth 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 +type CreateScrapeConfigPayloadBasicAuth struct { + // password + Password *string `json:"password,omitempty"` + // username + Username *string `json:"username,omitempty"` +} + +// NewCreateScrapeConfigPayloadBasicAuth instantiates a new CreateScrapeConfigPayloadBasicAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadBasicAuth() *CreateScrapeConfigPayloadBasicAuth { + this := CreateScrapeConfigPayloadBasicAuth{} + return &this +} + +// NewCreateScrapeConfigPayloadBasicAuthWithDefaults instantiates a new CreateScrapeConfigPayloadBasicAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadBasicAuthWithDefaults() *CreateScrapeConfigPayloadBasicAuth { + this := CreateScrapeConfigPayloadBasicAuth{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadBasicAuth) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadBasicAuth) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadBasicAuth) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *CreateScrapeConfigPayloadBasicAuth) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadBasicAuth) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadBasicAuth) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadBasicAuth) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *CreateScrapeConfigPayloadBasicAuth) SetUsername(v string) { + o.Username = &v +} + +func (o CreateScrapeConfigPayloadBasicAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadBasicAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadBasicAuth struct { + value *CreateScrapeConfigPayloadBasicAuth + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadBasicAuth) Get() *CreateScrapeConfigPayloadBasicAuth { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadBasicAuth) Set(val *CreateScrapeConfigPayloadBasicAuth) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadBasicAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadBasicAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadBasicAuth(val *CreateScrapeConfigPayloadBasicAuth) *NullableCreateScrapeConfigPayloadBasicAuth { + return &NullableCreateScrapeConfigPayloadBasicAuth{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadBasicAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadBasicAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner.go b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner.go new file mode 100644 index 000000000..edfa2f7e6 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner.go @@ -0,0 +1,307 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateScrapeConfigPayloadHttpSdConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadHttpSdConfigsInner{} + +// CreateScrapeConfigPayloadHttpSdConfigsInner struct for CreateScrapeConfigPayloadHttpSdConfigsInner +type CreateScrapeConfigPayloadHttpSdConfigsInner struct { + BasicAuth *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth `json:"basicAuth,omitempty"` + Oauth2 *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 `json:"oauth2,omitempty"` + // Refresh interval to re-query the endpoint. E.g. 60s `Additional Validators:` * must be a valid time format* must be >= 60s + RefreshInterval *string `json:"refreshInterval,omitempty"` + TlsConfig *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig `json:"tlsConfig,omitempty"` + // URL from which the targets are fetched. + Url string `json:"url"` +} + +type _CreateScrapeConfigPayloadHttpSdConfigsInner CreateScrapeConfigPayloadHttpSdConfigsInner + +// NewCreateScrapeConfigPayloadHttpSdConfigsInner instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadHttpSdConfigsInner(url string) *CreateScrapeConfigPayloadHttpSdConfigsInner { + this := CreateScrapeConfigPayloadHttpSdConfigsInner{} + var refreshInterval string = "60s" + this.RefreshInterval = &refreshInterval + this.Url = url + return &this +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerWithDefaults instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerWithDefaults() *CreateScrapeConfigPayloadHttpSdConfigsInner { + this := CreateScrapeConfigPayloadHttpSdConfigsInner{} + var refreshInterval string = "60s" + this.RefreshInterval = &refreshInterval + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetBasicAuth() CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetBasicAuthOk() (*CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth and assigns it to the BasicAuth field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) SetBasicAuth(v CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) { + o.BasicAuth = &v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetOauth2() CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 { + if o == nil || IsNil(o.Oauth2) { + var ret CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetOauth2Ok() (*CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2, bool) { + if o == nil || IsNil(o.Oauth2) { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasOauth2() bool { + if o != nil && !IsNil(o.Oauth2) { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 and assigns it to the Oauth2 field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) SetOauth2(v CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) { + o.Oauth2 = &v +} + +// GetRefreshInterval returns the RefreshInterval field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetRefreshInterval() string { + if o == nil || IsNil(o.RefreshInterval) { + var ret string + return ret + } + return *o.RefreshInterval +} + +// GetRefreshIntervalOk returns a tuple with the RefreshInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetRefreshIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RefreshInterval) { + return nil, false + } + return o.RefreshInterval, true +} + +// HasRefreshInterval returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasRefreshInterval() bool { + if o != nil && !IsNil(o.RefreshInterval) { + return true + } + + return false +} + +// SetRefreshInterval gets a reference to the given string and assigns it to the RefreshInterval field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) SetRefreshInterval(v string) { + o.RefreshInterval = &v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetTlsConfig() CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetTlsConfigOk() (*CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig and assigns it to the TlsConfig field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) SetTlsConfig(v CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) { + o.TlsConfig = &v +} + +// GetUrl returns the Url field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) SetUrl(v string) { + o.Url = v +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.Oauth2) { + toSerialize["oauth2"] = o.Oauth2 + } + if !IsNil(o.RefreshInterval) { + toSerialize["refreshInterval"] = o.RefreshInterval + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateScrapeConfigPayloadHttpSdConfigsInner := _CreateScrapeConfigPayloadHttpSdConfigsInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateScrapeConfigPayloadHttpSdConfigsInner) + + if err != nil { + return err + } + + *o = CreateScrapeConfigPayloadHttpSdConfigsInner(varCreateScrapeConfigPayloadHttpSdConfigsInner) + + return err +} + +type NullableCreateScrapeConfigPayloadHttpSdConfigsInner struct { + value *CreateScrapeConfigPayloadHttpSdConfigsInner + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInner) Get() *CreateScrapeConfigPayloadHttpSdConfigsInner { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInner) Set(val *CreateScrapeConfigPayloadHttpSdConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadHttpSdConfigsInner(val *CreateScrapeConfigPayloadHttpSdConfigsInner) *NullableCreateScrapeConfigPayloadHttpSdConfigsInner { + return &NullableCreateScrapeConfigPayloadHttpSdConfigsInner{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_basic_auth.go b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_basic_auth.go new file mode 100644 index 000000000..622839fb7 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_basic_auth.go @@ -0,0 +1,163 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth{} + +// CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth 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 +type CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth struct { + // password + Password *string `json:"password,omitempty"` + // username + Username *string `json:"username,omitempty"` +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth() *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth{} + return &this +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuthWithDefaults instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuthWithDefaults() *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) SetUsername(v string) { + o.Username = &v +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth struct { + value *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) Get() *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) Set(val *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth(val *CreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth { + return &NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerBasicAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go new file mode 100644 index 000000000..743f5f21d --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go @@ -0,0 +1,289 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2{} + +// CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 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 +type CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 struct { + // clientId + ClientId string `json:"clientId"` + // clientSecret + ClientSecret string `json:"clientSecret"` + // The URL to fetch the token from. + Scopes []string `json:"scopes,omitempty"` + TlsConfig *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig `json:"tlsConfig,omitempty"` + // The URL to fetch the token from. + TokenUrl string `json:"tokenUrl"` +} + +type _CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2(clientId string, clientSecret string, tokenUrl string) *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2{} + this.ClientId = clientId + this.ClientSecret = clientSecret + this.TokenUrl = tokenUrl + return &this +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2WithDefaults instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2WithDefaults() *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetClientSecret(v string) { + o.ClientSecret = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetScopes(v []string) { + o.Scopes = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetTlsConfig() CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetTlsConfigOk() (*CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetTlsConfig(v CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) { + o.TlsConfig = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetTokenUrl(v string) { + o.TokenUrl = v +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientId"] = o.ClientId + toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["tokenUrl"] = o.TokenUrl + return toSerialize, nil +} + +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "clientId", + "clientSecret", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 := _CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) + + if err != nil { + return err + } + + *o = CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2(varCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) + + return err +} + +type NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 struct { + value *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) Get() *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) Set(val *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2(val *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 { + return &NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go new file mode 100644 index 000000000..0df21924e --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig{} + +// CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig Configures the scrape request's TLS settings. +type CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig() *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfigWithDefaults instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfigWithDefaults() *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig struct { + value *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) Get() *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) Set(val *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig(val *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig { + return &NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_tls_config.go b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_tls_config.go new file mode 100644 index 000000000..76d2f3d7e --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_http_sd_configs_inner_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig{} + +// CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig Configures the scrape request's TLS settings. +type CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig() *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfigWithDefaults instantiates a new CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfigWithDefaults() *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig { + this := CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig struct { + value *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) Get() *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) Set(val *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig(val *CreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig { + return &NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadHttpSdConfigsInnerTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_metrics_relabel_configs_inner.go b/services/observability/v1api/model_create_scrape_config_payload_metrics_relabel_configs_inner.go new file mode 100644 index 000000000..a379a0a97 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_metrics_relabel_configs_inner.go @@ -0,0 +1,364 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadMetricsRelabelConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadMetricsRelabelConfigsInner{} + +// CreateScrapeConfigPayloadMetricsRelabelConfigsInner struct for CreateScrapeConfigPayloadMetricsRelabelConfigsInner +type CreateScrapeConfigPayloadMetricsRelabelConfigsInner struct { + // Action to perform based on regex matching. `Additional Validators:` * if action is replace, targetLabel needs to be in body + Action *string `json:"action,omitempty"` + // Modulus to take of the hash of the source label values. + Modulus *float32 `json:"modulus,omitempty"` + // Regular expression against which the extracted value is matched. + Regex *string `json:"regex,omitempty"` + // Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. + Replacement *string `json:"replacement,omitempty"` + // Separator placed between concatenated source label values. + Separator *string `json:"separator,omitempty"` + // The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions. + SourceLabels []string `json:"sourceLabels,omitempty"` + // Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available. + TargetLabel *string `json:"targetLabel,omitempty"` +} + +// NewCreateScrapeConfigPayloadMetricsRelabelConfigsInner instantiates a new CreateScrapeConfigPayloadMetricsRelabelConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadMetricsRelabelConfigsInner() *CreateScrapeConfigPayloadMetricsRelabelConfigsInner { + this := CreateScrapeConfigPayloadMetricsRelabelConfigsInner{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// NewCreateScrapeConfigPayloadMetricsRelabelConfigsInnerWithDefaults instantiates a new CreateScrapeConfigPayloadMetricsRelabelConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadMetricsRelabelConfigsInnerWithDefaults() *CreateScrapeConfigPayloadMetricsRelabelConfigsInner { + this := CreateScrapeConfigPayloadMetricsRelabelConfigsInner{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetAction(v string) { + o.Action = &v +} + +// GetModulus returns the Modulus field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetModulus() float32 { + if o == nil || IsNil(o.Modulus) { + var ret float32 + return ret + } + return *o.Modulus +} + +// GetModulusOk returns a tuple with the Modulus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetModulusOk() (*float32, bool) { + if o == nil || IsNil(o.Modulus) { + return nil, false + } + return o.Modulus, true +} + +// HasModulus returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasModulus() bool { + if o != nil && !IsNil(o.Modulus) { + return true + } + + return false +} + +// SetModulus gets a reference to the given float32 and assigns it to the Modulus field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetModulus(v float32) { + o.Modulus = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetRegex() string { + if o == nil || IsNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetRegexOk() (*string, bool) { + if o == nil || IsNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasRegex() bool { + if o != nil && !IsNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetRegex(v string) { + o.Regex = &v +} + +// GetReplacement returns the Replacement field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetReplacement() string { + if o == nil || IsNil(o.Replacement) { + var ret string + return ret + } + return *o.Replacement +} + +// GetReplacementOk returns a tuple with the Replacement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetReplacementOk() (*string, bool) { + if o == nil || IsNil(o.Replacement) { + return nil, false + } + return o.Replacement, true +} + +// HasReplacement returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasReplacement() bool { + if o != nil && !IsNil(o.Replacement) { + return true + } + + return false +} + +// SetReplacement gets a reference to the given string and assigns it to the Replacement field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetReplacement(v string) { + o.Replacement = &v +} + +// GetSeparator returns the Separator field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSeparator() string { + if o == nil || IsNil(o.Separator) { + var ret string + return ret + } + return *o.Separator +} + +// GetSeparatorOk returns a tuple with the Separator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSeparatorOk() (*string, bool) { + if o == nil || IsNil(o.Separator) { + return nil, false + } + return o.Separator, true +} + +// HasSeparator returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasSeparator() bool { + if o != nil && !IsNil(o.Separator) { + return true + } + + return false +} + +// SetSeparator gets a reference to the given string and assigns it to the Separator field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetSeparator(v string) { + o.Separator = &v +} + +// GetSourceLabels returns the SourceLabels field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSourceLabels() []string { + if o == nil || IsNil(o.SourceLabels) { + var ret []string + return ret + } + return o.SourceLabels +} + +// GetSourceLabelsOk returns a tuple with the SourceLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSourceLabelsOk() ([]string, bool) { + if o == nil || IsNil(o.SourceLabels) { + return nil, false + } + return o.SourceLabels, true +} + +// HasSourceLabels returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasSourceLabels() bool { + if o != nil && !IsNil(o.SourceLabels) { + return true + } + + return false +} + +// SetSourceLabels gets a reference to the given []string and assigns it to the SourceLabels field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetSourceLabels(v []string) { + o.SourceLabels = v +} + +// GetTargetLabel returns the TargetLabel field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetTargetLabel() string { + if o == nil || IsNil(o.TargetLabel) { + var ret string + return ret + } + return *o.TargetLabel +} + +// GetTargetLabelOk returns a tuple with the TargetLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetTargetLabelOk() (*string, bool) { + if o == nil || IsNil(o.TargetLabel) { + return nil, false + } + return o.TargetLabel, true +} + +// HasTargetLabel returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasTargetLabel() bool { + if o != nil && !IsNil(o.TargetLabel) { + return true + } + + return false +} + +// SetTargetLabel gets a reference to the given string and assigns it to the TargetLabel field. +func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) SetTargetLabel(v string) { + o.TargetLabel = &v +} + +func (o CreateScrapeConfigPayloadMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadMetricsRelabelConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Modulus) { + toSerialize["modulus"] = o.Modulus + } + if !IsNil(o.Regex) { + toSerialize["regex"] = o.Regex + } + if !IsNil(o.Replacement) { + toSerialize["replacement"] = o.Replacement + } + if !IsNil(o.Separator) { + toSerialize["separator"] = o.Separator + } + if !IsNil(o.SourceLabels) { + toSerialize["sourceLabels"] = o.SourceLabels + } + if !IsNil(o.TargetLabel) { + toSerialize["targetLabel"] = o.TargetLabel + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner struct { + value *CreateScrapeConfigPayloadMetricsRelabelConfigsInner + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner) Get() *CreateScrapeConfigPayloadMetricsRelabelConfigsInner { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner) Set(val *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner(val *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) *NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner { + return &NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadMetricsRelabelConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_oauth2.go b/services/observability/v1api/model_create_scrape_config_payload_oauth2.go new file mode 100644 index 000000000..b8f9ef842 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_oauth2.go @@ -0,0 +1,289 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateScrapeConfigPayloadOauth2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadOauth2{} + +// CreateScrapeConfigPayloadOauth2 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 +type CreateScrapeConfigPayloadOauth2 struct { + // clientId + ClientId string `json:"clientId"` + // clientSecret + ClientSecret string `json:"clientSecret"` + // The URL to fetch the token from. + Scopes []string `json:"scopes,omitempty"` + TlsConfig *CreateScrapeConfigPayloadOauth2TlsConfig `json:"tlsConfig,omitempty"` + // The URL to fetch the token from. + TokenUrl string `json:"tokenUrl"` +} + +type _CreateScrapeConfigPayloadOauth2 CreateScrapeConfigPayloadOauth2 + +// NewCreateScrapeConfigPayloadOauth2 instantiates a new CreateScrapeConfigPayloadOauth2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadOauth2(clientId string, clientSecret string, tokenUrl string) *CreateScrapeConfigPayloadOauth2 { + this := CreateScrapeConfigPayloadOauth2{} + this.ClientId = clientId + this.ClientSecret = clientSecret + this.TokenUrl = tokenUrl + return &this +} + +// NewCreateScrapeConfigPayloadOauth2WithDefaults instantiates a new CreateScrapeConfigPayloadOauth2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadOauth2WithDefaults() *CreateScrapeConfigPayloadOauth2 { + this := CreateScrapeConfigPayloadOauth2{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *CreateScrapeConfigPayloadOauth2) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadOauth2) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *CreateScrapeConfigPayloadOauth2) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *CreateScrapeConfigPayloadOauth2) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadOauth2) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *CreateScrapeConfigPayloadOauth2) SetClientSecret(v string) { + o.ClientSecret = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadOauth2) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadOauth2) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadOauth2) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *CreateScrapeConfigPayloadOauth2) SetScopes(v []string) { + o.Scopes = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadOauth2) GetTlsConfig() CreateScrapeConfigPayloadOauth2TlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret CreateScrapeConfigPayloadOauth2TlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadOauth2) GetTlsConfigOk() (*CreateScrapeConfigPayloadOauth2TlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadOauth2) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given CreateScrapeConfigPayloadOauth2TlsConfig and assigns it to the TlsConfig field. +func (o *CreateScrapeConfigPayloadOauth2) SetTlsConfig(v CreateScrapeConfigPayloadOauth2TlsConfig) { + o.TlsConfig = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *CreateScrapeConfigPayloadOauth2) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadOauth2) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *CreateScrapeConfigPayloadOauth2) SetTokenUrl(v string) { + o.TokenUrl = v +} + +func (o CreateScrapeConfigPayloadOauth2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadOauth2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientId"] = o.ClientId + toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["tokenUrl"] = o.TokenUrl + return toSerialize, nil +} + +func (o *CreateScrapeConfigPayloadOauth2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "clientId", + "clientSecret", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateScrapeConfigPayloadOauth2 := _CreateScrapeConfigPayloadOauth2{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateScrapeConfigPayloadOauth2) + + if err != nil { + return err + } + + *o = CreateScrapeConfigPayloadOauth2(varCreateScrapeConfigPayloadOauth2) + + return err +} + +type NullableCreateScrapeConfigPayloadOauth2 struct { + value *CreateScrapeConfigPayloadOauth2 + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadOauth2) Get() *CreateScrapeConfigPayloadOauth2 { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadOauth2) Set(val *CreateScrapeConfigPayloadOauth2) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadOauth2) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadOauth2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadOauth2(val *CreateScrapeConfigPayloadOauth2) *NullableCreateScrapeConfigPayloadOauth2 { + return &NullableCreateScrapeConfigPayloadOauth2{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadOauth2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadOauth2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_oauth2_tls_config.go b/services/observability/v1api/model_create_scrape_config_payload_oauth2_tls_config.go new file mode 100644 index 000000000..f787f4e23 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_oauth2_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadOauth2TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadOauth2TlsConfig{} + +// CreateScrapeConfigPayloadOauth2TlsConfig Configures the scrape request's TLS settings. +type CreateScrapeConfigPayloadOauth2TlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewCreateScrapeConfigPayloadOauth2TlsConfig instantiates a new CreateScrapeConfigPayloadOauth2TlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadOauth2TlsConfig() *CreateScrapeConfigPayloadOauth2TlsConfig { + this := CreateScrapeConfigPayloadOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewCreateScrapeConfigPayloadOauth2TlsConfigWithDefaults instantiates a new CreateScrapeConfigPayloadOauth2TlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadOauth2TlsConfigWithDefaults() *CreateScrapeConfigPayloadOauth2TlsConfig { + this := CreateScrapeConfigPayloadOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadOauth2TlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadOauth2TlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadOauth2TlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *CreateScrapeConfigPayloadOauth2TlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o CreateScrapeConfigPayloadOauth2TlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadOauth2TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadOauth2TlsConfig struct { + value *CreateScrapeConfigPayloadOauth2TlsConfig + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadOauth2TlsConfig) Get() *CreateScrapeConfigPayloadOauth2TlsConfig { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadOauth2TlsConfig) Set(val *CreateScrapeConfigPayloadOauth2TlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadOauth2TlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadOauth2TlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadOauth2TlsConfig(val *CreateScrapeConfigPayloadOauth2TlsConfig) *NullableCreateScrapeConfigPayloadOauth2TlsConfig { + return &NullableCreateScrapeConfigPayloadOauth2TlsConfig{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadOauth2TlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadOauth2TlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_static_configs_inner.go b/services/observability/v1api/model_create_scrape_config_payload_static_configs_inner.go new file mode 100644 index 000000000..0a58e8b90 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_static_configs_inner.go @@ -0,0 +1,195 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateScrapeConfigPayloadStaticConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadStaticConfigsInner{} + +// CreateScrapeConfigPayloadStaticConfigsInner struct for CreateScrapeConfigPayloadStaticConfigsInner +type CreateScrapeConfigPayloadStaticConfigsInner struct { + // Labels assigned to all metrics scraped from the targets. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The targets specified by the static config. + Targets []string `json:"targets"` +} + +type _CreateScrapeConfigPayloadStaticConfigsInner CreateScrapeConfigPayloadStaticConfigsInner + +// NewCreateScrapeConfigPayloadStaticConfigsInner instantiates a new CreateScrapeConfigPayloadStaticConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadStaticConfigsInner(targets []string) *CreateScrapeConfigPayloadStaticConfigsInner { + this := CreateScrapeConfigPayloadStaticConfigsInner{} + this.Targets = targets + return &this +} + +// NewCreateScrapeConfigPayloadStaticConfigsInnerWithDefaults instantiates a new CreateScrapeConfigPayloadStaticConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadStaticConfigsInnerWithDefaults() *CreateScrapeConfigPayloadStaticConfigsInner { + this := CreateScrapeConfigPayloadStaticConfigsInner{} + return &this +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadStaticConfigsInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadStaticConfigsInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadStaticConfigsInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *CreateScrapeConfigPayloadStaticConfigsInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetTargets returns the Targets field value +func (o *CreateScrapeConfigPayloadStaticConfigsInner) GetTargets() []string { + if o == nil { + var ret []string + return ret + } + + return o.Targets +} + +// GetTargetsOk returns a tuple with the Targets field value +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadStaticConfigsInner) GetTargetsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Targets, true +} + +// SetTargets sets field value +func (o *CreateScrapeConfigPayloadStaticConfigsInner) SetTargets(v []string) { + o.Targets = v +} + +func (o CreateScrapeConfigPayloadStaticConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadStaticConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["targets"] = o.Targets + return toSerialize, nil +} + +func (o *CreateScrapeConfigPayloadStaticConfigsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "targets", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateScrapeConfigPayloadStaticConfigsInner := _CreateScrapeConfigPayloadStaticConfigsInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateScrapeConfigPayloadStaticConfigsInner) + + if err != nil { + return err + } + + *o = CreateScrapeConfigPayloadStaticConfigsInner(varCreateScrapeConfigPayloadStaticConfigsInner) + + return err +} + +type NullableCreateScrapeConfigPayloadStaticConfigsInner struct { + value *CreateScrapeConfigPayloadStaticConfigsInner + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadStaticConfigsInner) Get() *CreateScrapeConfigPayloadStaticConfigsInner { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadStaticConfigsInner) Set(val *CreateScrapeConfigPayloadStaticConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadStaticConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadStaticConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadStaticConfigsInner(val *CreateScrapeConfigPayloadStaticConfigsInner) *NullableCreateScrapeConfigPayloadStaticConfigsInner { + return &NullableCreateScrapeConfigPayloadStaticConfigsInner{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadStaticConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadStaticConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_create_scrape_config_payload_tls_config.go b/services/observability/v1api/model_create_scrape_config_payload_tls_config.go new file mode 100644 index 000000000..5a57c44e4 --- /dev/null +++ b/services/observability/v1api/model_create_scrape_config_payload_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the CreateScrapeConfigPayloadTlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateScrapeConfigPayloadTlsConfig{} + +// CreateScrapeConfigPayloadTlsConfig Configures the scrape request's TLS settings. +type CreateScrapeConfigPayloadTlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewCreateScrapeConfigPayloadTlsConfig instantiates a new CreateScrapeConfigPayloadTlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateScrapeConfigPayloadTlsConfig() *CreateScrapeConfigPayloadTlsConfig { + this := CreateScrapeConfigPayloadTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewCreateScrapeConfigPayloadTlsConfigWithDefaults instantiates a new CreateScrapeConfigPayloadTlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateScrapeConfigPayloadTlsConfigWithDefaults() *CreateScrapeConfigPayloadTlsConfig { + this := CreateScrapeConfigPayloadTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *CreateScrapeConfigPayloadTlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateScrapeConfigPayloadTlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *CreateScrapeConfigPayloadTlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *CreateScrapeConfigPayloadTlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o CreateScrapeConfigPayloadTlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateScrapeConfigPayloadTlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullableCreateScrapeConfigPayloadTlsConfig struct { + value *CreateScrapeConfigPayloadTlsConfig + isSet bool +} + +func (v NullableCreateScrapeConfigPayloadTlsConfig) Get() *CreateScrapeConfigPayloadTlsConfig { + return v.value +} + +func (v *NullableCreateScrapeConfigPayloadTlsConfig) Set(val *CreateScrapeConfigPayloadTlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCreateScrapeConfigPayloadTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateScrapeConfigPayloadTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateScrapeConfigPayloadTlsConfig(val *CreateScrapeConfigPayloadTlsConfig) *NullableCreateScrapeConfigPayloadTlsConfig { + return &NullableCreateScrapeConfigPayloadTlsConfig{value: val, isSet: true} +} + +func (v NullableCreateScrapeConfigPayloadTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateScrapeConfigPayloadTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_credentials.go b/services/observability/v1api/model_credentials.go new file mode 100644 index 000000000..7f5b42b98 --- /dev/null +++ b/services/observability/v1api/model_credentials.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Credentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Credentials{} + +// Credentials struct for Credentials +type Credentials struct { + Description *string `json:"description,omitempty"` + Password string `json:"password"` + Username string `json:"username"` +} + +type _Credentials Credentials + +// NewCredentials instantiates a new Credentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCredentials(password string, username string) *Credentials { + this := Credentials{} + this.Password = password + this.Username = username + return &this +} + +// NewCredentialsWithDefaults instantiates a new Credentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCredentialsWithDefaults() *Credentials { + this := Credentials{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Credentials) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Credentials) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Credentials) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Credentials) SetDescription(v string) { + o.Description = &v +} + +// GetPassword returns the Password field value +func (o *Credentials) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *Credentials) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *Credentials) SetPassword(v string) { + o.Password = v +} + +// GetUsername returns the Username field value +func (o *Credentials) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *Credentials) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *Credentials) SetUsername(v string) { + o.Username = v +} + +func (o Credentials) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Credentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["password"] = o.Password + toSerialize["username"] = o.Username + return toSerialize, nil +} + +func (o *Credentials) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "password", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCredentials := _Credentials{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCredentials) + + if err != nil { + return err + } + + *o = Credentials(varCredentials) + + return err +} + +type NullableCredentials struct { + value *Credentials + isSet bool +} + +func (v NullableCredentials) Get() *Credentials { + return v.value +} + +func (v *NullableCredentials) Set(val *Credentials) { + v.value = val + v.isSet = true +} + +func (v NullableCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentials(val *Credentials) *NullableCredentials { + return &NullableCredentials{value: val, isSet: true} +} + +func (v NullableCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_credentials_remote_write_config.go b/services/observability/v1api/model_credentials_remote_write_config.go new file mode 100644 index 000000000..8cff6016a --- /dev/null +++ b/services/observability/v1api/model_credentials_remote_write_config.go @@ -0,0 +1,213 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CredentialsRemoteWriteConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CredentialsRemoteWriteConfig{} + +// CredentialsRemoteWriteConfig struct for CredentialsRemoteWriteConfig +type CredentialsRemoteWriteConfig struct { + CredentialsMaxLimit int32 `json:"credentialsMaxLimit"` + MaxLimit int32 `json:"maxLimit"` + Message string `json:"message"` +} + +type _CredentialsRemoteWriteConfig CredentialsRemoteWriteConfig + +// NewCredentialsRemoteWriteConfig instantiates a new CredentialsRemoteWriteConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCredentialsRemoteWriteConfig(credentialsMaxLimit int32, maxLimit int32, message string) *CredentialsRemoteWriteConfig { + this := CredentialsRemoteWriteConfig{} + this.CredentialsMaxLimit = credentialsMaxLimit + this.MaxLimit = maxLimit + this.Message = message + return &this +} + +// NewCredentialsRemoteWriteConfigWithDefaults instantiates a new CredentialsRemoteWriteConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCredentialsRemoteWriteConfigWithDefaults() *CredentialsRemoteWriteConfig { + this := CredentialsRemoteWriteConfig{} + return &this +} + +// GetCredentialsMaxLimit returns the CredentialsMaxLimit field value +func (o *CredentialsRemoteWriteConfig) GetCredentialsMaxLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CredentialsMaxLimit +} + +// GetCredentialsMaxLimitOk returns a tuple with the CredentialsMaxLimit field value +// and a boolean to check if the value has been set. +func (o *CredentialsRemoteWriteConfig) GetCredentialsMaxLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CredentialsMaxLimit, true +} + +// SetCredentialsMaxLimit sets field value +func (o *CredentialsRemoteWriteConfig) SetCredentialsMaxLimit(v int32) { + o.CredentialsMaxLimit = v +} + +// GetMaxLimit returns the MaxLimit field value +func (o *CredentialsRemoteWriteConfig) GetMaxLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxLimit +} + +// GetMaxLimitOk returns a tuple with the MaxLimit field value +// and a boolean to check if the value has been set. +func (o *CredentialsRemoteWriteConfig) GetMaxLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxLimit, true +} + +// SetMaxLimit sets field value +func (o *CredentialsRemoteWriteConfig) SetMaxLimit(v int32) { + o.MaxLimit = v +} + +// GetMessage returns the Message field value +func (o *CredentialsRemoteWriteConfig) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *CredentialsRemoteWriteConfig) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *CredentialsRemoteWriteConfig) SetMessage(v string) { + o.Message = v +} + +func (o CredentialsRemoteWriteConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CredentialsRemoteWriteConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentialsMaxLimit"] = o.CredentialsMaxLimit + toSerialize["maxLimit"] = o.MaxLimit + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *CredentialsRemoteWriteConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "credentialsMaxLimit", + "maxLimit", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCredentialsRemoteWriteConfig := _CredentialsRemoteWriteConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCredentialsRemoteWriteConfig) + + if err != nil { + return err + } + + *o = CredentialsRemoteWriteConfig(varCredentialsRemoteWriteConfig) + + return err +} + +type NullableCredentialsRemoteWriteConfig struct { + value *CredentialsRemoteWriteConfig + isSet bool +} + +func (v NullableCredentialsRemoteWriteConfig) Get() *CredentialsRemoteWriteConfig { + return v.value +} + +func (v *NullableCredentialsRemoteWriteConfig) Set(val *CredentialsRemoteWriteConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCredentialsRemoteWriteConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentialsRemoteWriteConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentialsRemoteWriteConfig(val *CredentialsRemoteWriteConfig) *NullableCredentialsRemoteWriteConfig { + return &NullableCredentialsRemoteWriteConfig{value: val, isSet: true} +} + +func (v NullableCredentialsRemoteWriteConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentialsRemoteWriteConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_credentials_remote_write_delete_response.go b/services/observability/v1api/model_credentials_remote_write_delete_response.go new file mode 100644 index 000000000..e33a8c023 --- /dev/null +++ b/services/observability/v1api/model_credentials_remote_write_delete_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CredentialsRemoteWriteDeleteResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CredentialsRemoteWriteDeleteResponse{} + +// CredentialsRemoteWriteDeleteResponse struct for CredentialsRemoteWriteDeleteResponse +type CredentialsRemoteWriteDeleteResponse struct { + MaxLimit int32 `json:"maxLimit"` + Message string `json:"message"` +} + +type _CredentialsRemoteWriteDeleteResponse CredentialsRemoteWriteDeleteResponse + +// NewCredentialsRemoteWriteDeleteResponse instantiates a new CredentialsRemoteWriteDeleteResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCredentialsRemoteWriteDeleteResponse(maxLimit int32, message string) *CredentialsRemoteWriteDeleteResponse { + this := CredentialsRemoteWriteDeleteResponse{} + this.MaxLimit = maxLimit + this.Message = message + return &this +} + +// NewCredentialsRemoteWriteDeleteResponseWithDefaults instantiates a new CredentialsRemoteWriteDeleteResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCredentialsRemoteWriteDeleteResponseWithDefaults() *CredentialsRemoteWriteDeleteResponse { + this := CredentialsRemoteWriteDeleteResponse{} + return &this +} + +// GetMaxLimit returns the MaxLimit field value +func (o *CredentialsRemoteWriteDeleteResponse) GetMaxLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxLimit +} + +// GetMaxLimitOk returns a tuple with the MaxLimit field value +// and a boolean to check if the value has been set. +func (o *CredentialsRemoteWriteDeleteResponse) GetMaxLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxLimit, true +} + +// SetMaxLimit sets field value +func (o *CredentialsRemoteWriteDeleteResponse) SetMaxLimit(v int32) { + o.MaxLimit = v +} + +// GetMessage returns the Message field value +func (o *CredentialsRemoteWriteDeleteResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *CredentialsRemoteWriteDeleteResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *CredentialsRemoteWriteDeleteResponse) SetMessage(v string) { + o.Message = v +} + +func (o CredentialsRemoteWriteDeleteResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CredentialsRemoteWriteDeleteResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["maxLimit"] = o.MaxLimit + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *CredentialsRemoteWriteDeleteResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "maxLimit", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCredentialsRemoteWriteDeleteResponse := _CredentialsRemoteWriteDeleteResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCredentialsRemoteWriteDeleteResponse) + + if err != nil { + return err + } + + *o = CredentialsRemoteWriteDeleteResponse(varCredentialsRemoteWriteDeleteResponse) + + return err +} + +type NullableCredentialsRemoteWriteDeleteResponse struct { + value *CredentialsRemoteWriteDeleteResponse + isSet bool +} + +func (v NullableCredentialsRemoteWriteDeleteResponse) Get() *CredentialsRemoteWriteDeleteResponse { + return v.value +} + +func (v *NullableCredentialsRemoteWriteDeleteResponse) Set(val *CredentialsRemoteWriteDeleteResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCredentialsRemoteWriteDeleteResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentialsRemoteWriteDeleteResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentialsRemoteWriteDeleteResponse(val *CredentialsRemoteWriteDeleteResponse) *NullableCredentialsRemoteWriteDeleteResponse { + return &NullableCredentialsRemoteWriteDeleteResponse{value: val, isSet: true} +} + +func (v NullableCredentialsRemoteWriteDeleteResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentialsRemoteWriteDeleteResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_delete_scrape_config_response.go b/services/observability/v1api/model_delete_scrape_config_response.go new file mode 100644 index 000000000..689797fed --- /dev/null +++ b/services/observability/v1api/model_delete_scrape_config_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the DeleteScrapeConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteScrapeConfigResponse{} + +// DeleteScrapeConfigResponse struct for DeleteScrapeConfigResponse +type DeleteScrapeConfigResponse struct { + Data []Job `json:"data"` + Message string `json:"message"` +} + +type _DeleteScrapeConfigResponse DeleteScrapeConfigResponse + +// NewDeleteScrapeConfigResponse instantiates a new DeleteScrapeConfigResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteScrapeConfigResponse(data []Job, message string) *DeleteScrapeConfigResponse { + this := DeleteScrapeConfigResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewDeleteScrapeConfigResponseWithDefaults instantiates a new DeleteScrapeConfigResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteScrapeConfigResponseWithDefaults() *DeleteScrapeConfigResponse { + this := DeleteScrapeConfigResponse{} + return &this +} + +// GetData returns the Data field value +func (o *DeleteScrapeConfigResponse) GetData() []Job { + if o == nil { + var ret []Job + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *DeleteScrapeConfigResponse) GetDataOk() ([]Job, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *DeleteScrapeConfigResponse) SetData(v []Job) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *DeleteScrapeConfigResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *DeleteScrapeConfigResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *DeleteScrapeConfigResponse) SetMessage(v string) { + o.Message = v +} + +func (o DeleteScrapeConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteScrapeConfigResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *DeleteScrapeConfigResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeleteScrapeConfigResponse := _DeleteScrapeConfigResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varDeleteScrapeConfigResponse) + + if err != nil { + return err + } + + *o = DeleteScrapeConfigResponse(varDeleteScrapeConfigResponse) + + return err +} + +type NullableDeleteScrapeConfigResponse struct { + value *DeleteScrapeConfigResponse + isSet bool +} + +func (v NullableDeleteScrapeConfigResponse) Get() *DeleteScrapeConfigResponse { + return v.value +} + +func (v *NullableDeleteScrapeConfigResponse) Set(val *DeleteScrapeConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteScrapeConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteScrapeConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteScrapeConfigResponse(val *DeleteScrapeConfigResponse) *NullableDeleteScrapeConfigResponse { + return &NullableDeleteScrapeConfigResponse{value: val, isSet: true} +} + +func (v NullableDeleteScrapeConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteScrapeConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_elasticsearch_check_child_response.go b/services/observability/v1api/model_elasticsearch_check_child_response.go new file mode 100644 index 000000000..d54436e21 --- /dev/null +++ b/services/observability/v1api/model_elasticsearch_check_child_response.go @@ -0,0 +1,257 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ElasticsearchCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ElasticsearchCheckChildResponse{} + +// ElasticsearchCheckChildResponse struct for ElasticsearchCheckChildResponse +type ElasticsearchCheckChildResponse struct { + Id string `json:"id"` + Password *string `json:"password,omitempty"` + Server string `json:"server"` + Username *string `json:"username,omitempty"` +} + +type _ElasticsearchCheckChildResponse ElasticsearchCheckChildResponse + +// NewElasticsearchCheckChildResponse instantiates a new ElasticsearchCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewElasticsearchCheckChildResponse(id string, server string) *ElasticsearchCheckChildResponse { + this := ElasticsearchCheckChildResponse{} + this.Id = id + this.Server = server + return &this +} + +// NewElasticsearchCheckChildResponseWithDefaults instantiates a new ElasticsearchCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewElasticsearchCheckChildResponseWithDefaults() *ElasticsearchCheckChildResponse { + this := ElasticsearchCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *ElasticsearchCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ElasticsearchCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ElasticsearchCheckChildResponse) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckChildResponse) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ElasticsearchCheckChildResponse) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ElasticsearchCheckChildResponse) SetPassword(v string) { + o.Password = &v +} + +// GetServer returns the Server field value +func (o *ElasticsearchCheckChildResponse) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckChildResponse) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *ElasticsearchCheckChildResponse) SetServer(v string) { + o.Server = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ElasticsearchCheckChildResponse) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckChildResponse) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ElasticsearchCheckChildResponse) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ElasticsearchCheckChildResponse) SetUsername(v string) { + o.Username = &v +} + +func (o ElasticsearchCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ElasticsearchCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + toSerialize["server"] = o.Server + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +func (o *ElasticsearchCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varElasticsearchCheckChildResponse := _ElasticsearchCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varElasticsearchCheckChildResponse) + + if err != nil { + return err + } + + *o = ElasticsearchCheckChildResponse(varElasticsearchCheckChildResponse) + + return err +} + +type NullableElasticsearchCheckChildResponse struct { + value *ElasticsearchCheckChildResponse + isSet bool +} + +func (v NullableElasticsearchCheckChildResponse) Get() *ElasticsearchCheckChildResponse { + return v.value +} + +func (v *NullableElasticsearchCheckChildResponse) Set(val *ElasticsearchCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableElasticsearchCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableElasticsearchCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableElasticsearchCheckChildResponse(val *ElasticsearchCheckChildResponse) *NullableElasticsearchCheckChildResponse { + return &NullableElasticsearchCheckChildResponse{value: val, isSet: true} +} + +func (v NullableElasticsearchCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableElasticsearchCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_elasticsearch_check_response.go b/services/observability/v1api/model_elasticsearch_check_response.go new file mode 100644 index 000000000..2eb2e8488 --- /dev/null +++ b/services/observability/v1api/model_elasticsearch_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ElasticsearchCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ElasticsearchCheckResponse{} + +// ElasticsearchCheckResponse struct for ElasticsearchCheckResponse +type ElasticsearchCheckResponse struct { + ElasticsearchCheck *ElasticsearchCheckChildResponse `json:"elasticsearchCheck,omitempty"` + ElasticsearchChecks []ElasticsearchCheckChildResponse `json:"elasticsearchChecks"` + Message string `json:"message"` +} + +type _ElasticsearchCheckResponse ElasticsearchCheckResponse + +// NewElasticsearchCheckResponse instantiates a new ElasticsearchCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewElasticsearchCheckResponse(elasticsearchChecks []ElasticsearchCheckChildResponse, message string) *ElasticsearchCheckResponse { + this := ElasticsearchCheckResponse{} + this.ElasticsearchChecks = elasticsearchChecks + this.Message = message + return &this +} + +// NewElasticsearchCheckResponseWithDefaults instantiates a new ElasticsearchCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewElasticsearchCheckResponseWithDefaults() *ElasticsearchCheckResponse { + this := ElasticsearchCheckResponse{} + return &this +} + +// GetElasticsearchCheck returns the ElasticsearchCheck field value if set, zero value otherwise. +func (o *ElasticsearchCheckResponse) GetElasticsearchCheck() ElasticsearchCheckChildResponse { + if o == nil || IsNil(o.ElasticsearchCheck) { + var ret ElasticsearchCheckChildResponse + return ret + } + return *o.ElasticsearchCheck +} + +// GetElasticsearchCheckOk returns a tuple with the ElasticsearchCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckResponse) GetElasticsearchCheckOk() (*ElasticsearchCheckChildResponse, bool) { + if o == nil || IsNil(o.ElasticsearchCheck) { + return nil, false + } + return o.ElasticsearchCheck, true +} + +// HasElasticsearchCheck returns a boolean if a field has been set. +func (o *ElasticsearchCheckResponse) HasElasticsearchCheck() bool { + if o != nil && !IsNil(o.ElasticsearchCheck) { + return true + } + + return false +} + +// SetElasticsearchCheck gets a reference to the given ElasticsearchCheckChildResponse and assigns it to the ElasticsearchCheck field. +func (o *ElasticsearchCheckResponse) SetElasticsearchCheck(v ElasticsearchCheckChildResponse) { + o.ElasticsearchCheck = &v +} + +// GetElasticsearchChecks returns the ElasticsearchChecks field value +func (o *ElasticsearchCheckResponse) GetElasticsearchChecks() []ElasticsearchCheckChildResponse { + if o == nil { + var ret []ElasticsearchCheckChildResponse + return ret + } + + return o.ElasticsearchChecks +} + +// GetElasticsearchChecksOk returns a tuple with the ElasticsearchChecks field value +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckResponse) GetElasticsearchChecksOk() ([]ElasticsearchCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.ElasticsearchChecks, true +} + +// SetElasticsearchChecks sets field value +func (o *ElasticsearchCheckResponse) SetElasticsearchChecks(v []ElasticsearchCheckChildResponse) { + o.ElasticsearchChecks = v +} + +// GetMessage returns the Message field value +func (o *ElasticsearchCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ElasticsearchCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ElasticsearchCheckResponse) SetMessage(v string) { + o.Message = v +} + +func (o ElasticsearchCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ElasticsearchCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ElasticsearchCheck) { + toSerialize["elasticsearchCheck"] = o.ElasticsearchCheck + } + toSerialize["elasticsearchChecks"] = o.ElasticsearchChecks + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *ElasticsearchCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "elasticsearchChecks", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varElasticsearchCheckResponse := _ElasticsearchCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varElasticsearchCheckResponse) + + if err != nil { + return err + } + + *o = ElasticsearchCheckResponse(varElasticsearchCheckResponse) + + return err +} + +type NullableElasticsearchCheckResponse struct { + value *ElasticsearchCheckResponse + isSet bool +} + +func (v NullableElasticsearchCheckResponse) Get() *ElasticsearchCheckResponse { + return v.value +} + +func (v *NullableElasticsearchCheckResponse) Set(val *ElasticsearchCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableElasticsearchCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableElasticsearchCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableElasticsearchCheckResponse(val *ElasticsearchCheckResponse) *NullableElasticsearchCheckResponse { + return &NullableElasticsearchCheckResponse{value: val, isSet: true} +} + +func (v NullableElasticsearchCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableElasticsearchCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_email_config.go b/services/observability/v1api/model_email_config.go new file mode 100644 index 000000000..c367d40fe --- /dev/null +++ b/services/observability/v1api/model_email_config.go @@ -0,0 +1,377 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the EmailConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EmailConfig{} + +// EmailConfig struct for EmailConfig +type EmailConfig struct { + AuthIdentity *string `json:"authIdentity,omitempty"` + AuthPassword *string `json:"authPassword,omitempty"` + AuthUsername *string `json:"authUsername,omitempty"` + From *string `json:"from,omitempty"` + SendResolved *bool `json:"sendResolved,omitempty"` + Smarthost *string `json:"smarthost,omitempty"` + To string `json:"to"` +} + +type _EmailConfig EmailConfig + +// NewEmailConfig instantiates a new EmailConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEmailConfig(to string) *EmailConfig { + this := EmailConfig{} + var sendResolved bool = false + this.SendResolved = &sendResolved + this.To = to + return &this +} + +// NewEmailConfigWithDefaults instantiates a new EmailConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEmailConfigWithDefaults() *EmailConfig { + this := EmailConfig{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// GetAuthIdentity returns the AuthIdentity field value if set, zero value otherwise. +func (o *EmailConfig) GetAuthIdentity() string { + if o == nil || IsNil(o.AuthIdentity) { + var ret string + return ret + } + return *o.AuthIdentity +} + +// GetAuthIdentityOk returns a tuple with the AuthIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetAuthIdentityOk() (*string, bool) { + if o == nil || IsNil(o.AuthIdentity) { + return nil, false + } + return o.AuthIdentity, true +} + +// HasAuthIdentity returns a boolean if a field has been set. +func (o *EmailConfig) HasAuthIdentity() bool { + if o != nil && !IsNil(o.AuthIdentity) { + return true + } + + return false +} + +// SetAuthIdentity gets a reference to the given string and assigns it to the AuthIdentity field. +func (o *EmailConfig) SetAuthIdentity(v string) { + o.AuthIdentity = &v +} + +// GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. +func (o *EmailConfig) GetAuthPassword() string { + if o == nil || IsNil(o.AuthPassword) { + var ret string + return ret + } + return *o.AuthPassword +} + +// GetAuthPasswordOk returns a tuple with the AuthPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetAuthPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AuthPassword) { + return nil, false + } + return o.AuthPassword, true +} + +// HasAuthPassword returns a boolean if a field has been set. +func (o *EmailConfig) HasAuthPassword() bool { + if o != nil && !IsNil(o.AuthPassword) { + return true + } + + return false +} + +// SetAuthPassword gets a reference to the given string and assigns it to the AuthPassword field. +func (o *EmailConfig) SetAuthPassword(v string) { + o.AuthPassword = &v +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise. +func (o *EmailConfig) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername) { + var ret string + return ret + } + return *o.AuthUsername +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetAuthUsernameOk() (*string, bool) { + if o == nil || IsNil(o.AuthUsername) { + return nil, false + } + return o.AuthUsername, true +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *EmailConfig) HasAuthUsername() bool { + if o != nil && !IsNil(o.AuthUsername) { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given string and assigns it to the AuthUsername field. +func (o *EmailConfig) SetAuthUsername(v string) { + o.AuthUsername = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *EmailConfig) GetFrom() string { + if o == nil || IsNil(o.From) { + var ret string + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetFromOk() (*string, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *EmailConfig) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given string and assigns it to the From field. +func (o *EmailConfig) SetFrom(v string) { + o.From = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *EmailConfig) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *EmailConfig) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *EmailConfig) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetSmarthost returns the Smarthost field value if set, zero value otherwise. +func (o *EmailConfig) GetSmarthost() string { + if o == nil || IsNil(o.Smarthost) { + var ret string + return ret + } + return *o.Smarthost +} + +// GetSmarthostOk returns a tuple with the Smarthost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetSmarthostOk() (*string, bool) { + if o == nil || IsNil(o.Smarthost) { + return nil, false + } + return o.Smarthost, true +} + +// HasSmarthost returns a boolean if a field has been set. +func (o *EmailConfig) HasSmarthost() bool { + if o != nil && !IsNil(o.Smarthost) { + return true + } + + return false +} + +// SetSmarthost gets a reference to the given string and assigns it to the Smarthost field. +func (o *EmailConfig) SetSmarthost(v string) { + o.Smarthost = &v +} + +// GetTo returns the To field value +func (o *EmailConfig) GetTo() string { + if o == nil { + var ret string + return ret + } + + return o.To +} + +// GetToOk returns a tuple with the To field value +// and a boolean to check if the value has been set. +func (o *EmailConfig) GetToOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.To, true +} + +// SetTo sets field value +func (o *EmailConfig) SetTo(v string) { + o.To = v +} + +func (o EmailConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EmailConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthIdentity) { + toSerialize["authIdentity"] = o.AuthIdentity + } + if !IsNil(o.AuthPassword) { + toSerialize["authPassword"] = o.AuthPassword + } + if !IsNil(o.AuthUsername) { + toSerialize["authUsername"] = o.AuthUsername + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Smarthost) { + toSerialize["smarthost"] = o.Smarthost + } + toSerialize["to"] = o.To + return toSerialize, nil +} + +func (o *EmailConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "to", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varEmailConfig := _EmailConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEmailConfig) + + if err != nil { + return err + } + + *o = EmailConfig(varEmailConfig) + + return err +} + +type NullableEmailConfig struct { + value *EmailConfig + isSet bool +} + +func (v NullableEmailConfig) Get() *EmailConfig { + return v.value +} + +func (v *NullableEmailConfig) Set(val *EmailConfig) { + v.value = val + v.isSet = true +} + +func (v NullableEmailConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableEmailConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEmailConfig(val *EmailConfig) *NullableEmailConfig { + return &NullableEmailConfig{value: val, isSet: true} +} + +func (v NullableEmailConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEmailConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_error.go b/services/observability/v1api/model_error.go new file mode 100644 index 000000000..f79d2008a --- /dev/null +++ b/services/observability/v1api/model_error.go @@ -0,0 +1,193 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Error type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Error{} + +// Error struct for Error +type Error struct { + Errors []map[string]string `json:"errors,omitempty"` + Message string `json:"message"` +} + +type _Error Error + +// NewError instantiates a new Error object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewError(message string) *Error { + this := Error{} + this.Message = message + return &this +} + +// NewErrorWithDefaults instantiates a new Error object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetErrors returns the Errors field value if set, zero value otherwise. +func (o *Error) GetErrors() []map[string]string { + if o == nil || IsNil(o.Errors) { + var ret []map[string]string + return ret + } + return o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetErrorsOk() ([]map[string]string, bool) { + if o == nil || IsNil(o.Errors) { + return nil, false + } + return o.Errors, true +} + +// HasErrors returns a boolean if a field has been set. +func (o *Error) HasErrors() bool { + if o != nil && !IsNil(o.Errors) { + return true + } + + return false +} + +// SetErrors gets a reference to the given []map[string]string and assigns it to the Errors field. +func (o *Error) SetErrors(v []map[string]string) { + o.Errors = v +} + +// GetMessage returns the Message field value +func (o *Error) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *Error) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *Error) SetMessage(v string) { + o.Message = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Error) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Errors) { + toSerialize["errors"] = o.Errors + } + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *Error) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varError := _Error{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varError) + + if err != nil { + return err + } + + *o = Error(varError) + + return err +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_get_alert_configs_response.go b/services/observability/v1api/model_get_alert_configs_response.go new file mode 100644 index 000000000..bc9598aca --- /dev/null +++ b/services/observability/v1api/model_get_alert_configs_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetAlertConfigsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAlertConfigsResponse{} + +// GetAlertConfigsResponse struct for GetAlertConfigsResponse +type GetAlertConfigsResponse struct { + Data Alert `json:"data"` + Message string `json:"message"` +} + +type _GetAlertConfigsResponse GetAlertConfigsResponse + +// NewGetAlertConfigsResponse instantiates a new GetAlertConfigsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAlertConfigsResponse(data Alert, message string) *GetAlertConfigsResponse { + this := GetAlertConfigsResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewGetAlertConfigsResponseWithDefaults instantiates a new GetAlertConfigsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAlertConfigsResponseWithDefaults() *GetAlertConfigsResponse { + this := GetAlertConfigsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *GetAlertConfigsResponse) GetData() Alert { + if o == nil { + var ret Alert + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *GetAlertConfigsResponse) GetDataOk() (*Alert, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *GetAlertConfigsResponse) SetData(v Alert) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *GetAlertConfigsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *GetAlertConfigsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *GetAlertConfigsResponse) SetMessage(v string) { + o.Message = v +} + +func (o GetAlertConfigsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAlertConfigsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *GetAlertConfigsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetAlertConfigsResponse := _GetAlertConfigsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetAlertConfigsResponse) + + if err != nil { + return err + } + + *o = GetAlertConfigsResponse(varGetAlertConfigsResponse) + + return err +} + +type NullableGetAlertConfigsResponse struct { + value *GetAlertConfigsResponse + isSet bool +} + +func (v NullableGetAlertConfigsResponse) Get() *GetAlertConfigsResponse { + return v.value +} + +func (v *NullableGetAlertConfigsResponse) Set(val *GetAlertConfigsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetAlertConfigsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAlertConfigsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAlertConfigsResponse(val *GetAlertConfigsResponse) *NullableGetAlertConfigsResponse { + return &NullableGetAlertConfigsResponse{value: val, isSet: true} +} + +func (v NullableGetAlertConfigsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAlertConfigsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_get_credentials_response.go b/services/observability/v1api/model_get_credentials_response.go new file mode 100644 index 000000000..302b6a105 --- /dev/null +++ b/services/observability/v1api/model_get_credentials_response.go @@ -0,0 +1,249 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetCredentialsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetCredentialsResponse{} + +// GetCredentialsResponse struct for GetCredentialsResponse +type GetCredentialsResponse struct { + CredentialsInfo *map[string]string `json:"credentialsInfo,omitempty"` + Id string `json:"id"` + Message string `json:"message"` + Name string `json:"name"` +} + +type _GetCredentialsResponse GetCredentialsResponse + +// NewGetCredentialsResponse instantiates a new GetCredentialsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetCredentialsResponse(id string, message string, name string) *GetCredentialsResponse { + this := GetCredentialsResponse{} + this.Id = id + this.Message = message + this.Name = name + return &this +} + +// NewGetCredentialsResponseWithDefaults instantiates a new GetCredentialsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetCredentialsResponseWithDefaults() *GetCredentialsResponse { + this := GetCredentialsResponse{} + return &this +} + +// GetCredentialsInfo returns the CredentialsInfo field value if set, zero value otherwise. +func (o *GetCredentialsResponse) GetCredentialsInfo() map[string]string { + if o == nil || IsNil(o.CredentialsInfo) { + var ret map[string]string + return ret + } + return *o.CredentialsInfo +} + +// GetCredentialsInfoOk returns a tuple with the CredentialsInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetCredentialsResponse) GetCredentialsInfoOk() (*map[string]string, bool) { + if o == nil || IsNil(o.CredentialsInfo) { + return nil, false + } + return o.CredentialsInfo, true +} + +// HasCredentialsInfo returns a boolean if a field has been set. +func (o *GetCredentialsResponse) HasCredentialsInfo() bool { + if o != nil && !IsNil(o.CredentialsInfo) { + return true + } + + return false +} + +// SetCredentialsInfo gets a reference to the given map[string]string and assigns it to the CredentialsInfo field. +func (o *GetCredentialsResponse) SetCredentialsInfo(v map[string]string) { + o.CredentialsInfo = &v +} + +// GetId returns the Id field value +func (o *GetCredentialsResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetCredentialsResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetCredentialsResponse) SetId(v string) { + o.Id = v +} + +// GetMessage returns the Message field value +func (o *GetCredentialsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *GetCredentialsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *GetCredentialsResponse) SetMessage(v string) { + o.Message = v +} + +// GetName returns the Name field value +func (o *GetCredentialsResponse) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *GetCredentialsResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetCredentialsResponse) SetName(v string) { + o.Name = v +} + +func (o GetCredentialsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetCredentialsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CredentialsInfo) { + toSerialize["credentialsInfo"] = o.CredentialsInfo + } + toSerialize["id"] = o.Id + toSerialize["message"] = o.Message + toSerialize["name"] = o.Name + return toSerialize, nil +} + +func (o *GetCredentialsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "message", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetCredentialsResponse := _GetCredentialsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetCredentialsResponse) + + if err != nil { + return err + } + + *o = GetCredentialsResponse(varGetCredentialsResponse) + + return err +} + +type NullableGetCredentialsResponse struct { + value *GetCredentialsResponse + isSet bool +} + +func (v NullableGetCredentialsResponse) Get() *GetCredentialsResponse { + return v.value +} + +func (v *NullableGetCredentialsResponse) Set(val *GetCredentialsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetCredentialsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetCredentialsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetCredentialsResponse(val *GetCredentialsResponse) *NullableGetCredentialsResponse { + return &NullableGetCredentialsResponse{value: val, isSet: true} +} + +func (v NullableGetCredentialsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetCredentialsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_get_instance_response.go b/services/observability/v1api/model_get_instance_response.go new file mode 100644 index 000000000..5427e6d5c --- /dev/null +++ b/services/observability/v1api/model_get_instance_response.go @@ -0,0 +1,552 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetInstanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetInstanceResponse{} + +// GetInstanceResponse struct for GetInstanceResponse +type GetInstanceResponse struct { + DashboardUrl string `json:"dashboardUrl"` + Error NullableString `json:"error,omitempty"` + Id string `json:"id"` + Instance InstanceSensitiveData `json:"instance"` + IsUpdatable *bool `json:"isUpdatable,omitempty"` + Message string `json:"message"` + Name *string `json:"name,omitempty"` + Parameters *map[string]string `json:"parameters,omitempty"` + PlanId string `json:"planId"` + PlanName string `json:"planName"` + PlanSchema *string `json:"planSchema,omitempty"` + ServiceName string `json:"serviceName"` + Status string `json:"status"` +} + +type _GetInstanceResponse GetInstanceResponse + +// NewGetInstanceResponse instantiates a new GetInstanceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetInstanceResponse(dashboardUrl string, id string, instance InstanceSensitiveData, message string, planId string, planName string, serviceName string, status string) *GetInstanceResponse { + this := GetInstanceResponse{} + this.DashboardUrl = dashboardUrl + this.Id = id + this.Instance = instance + var isUpdatable bool = true + this.IsUpdatable = &isUpdatable + this.Message = message + this.PlanId = planId + this.PlanName = planName + var planSchema string = "" + this.PlanSchema = &planSchema + this.ServiceName = serviceName + this.Status = status + return &this +} + +// NewGetInstanceResponseWithDefaults instantiates a new GetInstanceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetInstanceResponseWithDefaults() *GetInstanceResponse { + this := GetInstanceResponse{} + var isUpdatable bool = true + this.IsUpdatable = &isUpdatable + var planSchema string = "" + this.PlanSchema = &planSchema + return &this +} + +// GetDashboardUrl returns the DashboardUrl field value +func (o *GetInstanceResponse) GetDashboardUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DashboardUrl +} + +// GetDashboardUrlOk returns a tuple with the DashboardUrl field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetDashboardUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DashboardUrl, true +} + +// SetDashboardUrl sets field value +func (o *GetInstanceResponse) SetDashboardUrl(v string) { + o.DashboardUrl = v +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetInstanceResponse) GetError() string { + if o == nil || IsNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetInstanceResponse) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *GetInstanceResponse) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *GetInstanceResponse) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *GetInstanceResponse) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *GetInstanceResponse) UnsetError() { + o.Error.Unset() +} + +// GetId returns the Id field value +func (o *GetInstanceResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetInstanceResponse) SetId(v string) { + o.Id = v +} + +// GetInstance returns the Instance field value +func (o *GetInstanceResponse) GetInstance() InstanceSensitiveData { + if o == nil { + var ret InstanceSensitiveData + return ret + } + + return o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetInstanceOk() (*InstanceSensitiveData, bool) { + if o == nil { + return nil, false + } + return &o.Instance, true +} + +// SetInstance sets field value +func (o *GetInstanceResponse) SetInstance(v InstanceSensitiveData) { + o.Instance = v +} + +// GetIsUpdatable returns the IsUpdatable field value if set, zero value otherwise. +func (o *GetInstanceResponse) GetIsUpdatable() bool { + if o == nil || IsNil(o.IsUpdatable) { + var ret bool + return ret + } + return *o.IsUpdatable +} + +// GetIsUpdatableOk returns a tuple with the IsUpdatable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetIsUpdatableOk() (*bool, bool) { + if o == nil || IsNil(o.IsUpdatable) { + return nil, false + } + return o.IsUpdatable, true +} + +// HasIsUpdatable returns a boolean if a field has been set. +func (o *GetInstanceResponse) HasIsUpdatable() bool { + if o != nil && !IsNil(o.IsUpdatable) { + return true + } + + return false +} + +// SetIsUpdatable gets a reference to the given bool and assigns it to the IsUpdatable field. +func (o *GetInstanceResponse) SetIsUpdatable(v bool) { + o.IsUpdatable = &v +} + +// GetMessage returns the Message field value +func (o *GetInstanceResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *GetInstanceResponse) SetMessage(v string) { + o.Message = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetInstanceResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GetInstanceResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GetInstanceResponse) SetName(v string) { + o.Name = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *GetInstanceResponse) GetParameters() map[string]string { + if o == nil || IsNil(o.Parameters) { + var ret map[string]string + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetParametersOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *GetInstanceResponse) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field. +func (o *GetInstanceResponse) SetParameters(v map[string]string) { + o.Parameters = &v +} + +// GetPlanId returns the PlanId field value +func (o *GetInstanceResponse) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *GetInstanceResponse) SetPlanId(v string) { + o.PlanId = v +} + +// GetPlanName returns the PlanName field value +func (o *GetInstanceResponse) GetPlanName() string { + if o == nil { + var ret string + return ret + } + + return o.PlanName +} + +// GetPlanNameOk returns a tuple with the PlanName field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetPlanNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanName, true +} + +// SetPlanName sets field value +func (o *GetInstanceResponse) SetPlanName(v string) { + o.PlanName = v +} + +// GetPlanSchema returns the PlanSchema field value if set, zero value otherwise. +func (o *GetInstanceResponse) GetPlanSchema() string { + if o == nil || IsNil(o.PlanSchema) { + var ret string + return ret + } + return *o.PlanSchema +} + +// GetPlanSchemaOk returns a tuple with the PlanSchema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetPlanSchemaOk() (*string, bool) { + if o == nil || IsNil(o.PlanSchema) { + return nil, false + } + return o.PlanSchema, true +} + +// HasPlanSchema returns a boolean if a field has been set. +func (o *GetInstanceResponse) HasPlanSchema() bool { + if o != nil && !IsNil(o.PlanSchema) { + return true + } + + return false +} + +// SetPlanSchema gets a reference to the given string and assigns it to the PlanSchema field. +func (o *GetInstanceResponse) SetPlanSchema(v string) { + o.PlanSchema = &v +} + +// GetServiceName returns the ServiceName field value +func (o *GetInstanceResponse) GetServiceName() string { + if o == nil { + var ret string + return ret + } + + return o.ServiceName +} + +// GetServiceNameOk returns a tuple with the ServiceName field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetServiceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServiceName, true +} + +// SetServiceName sets field value +func (o *GetInstanceResponse) SetServiceName(v string) { + o.ServiceName = v +} + +// GetStatus returns the Status field value +func (o *GetInstanceResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetInstanceResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetInstanceResponse) SetStatus(v string) { + o.Status = v +} + +func (o GetInstanceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["dashboardUrl"] = o.DashboardUrl + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + toSerialize["id"] = o.Id + toSerialize["instance"] = o.Instance + if !IsNil(o.IsUpdatable) { + toSerialize["isUpdatable"] = o.IsUpdatable + } + toSerialize["message"] = o.Message + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + toSerialize["planId"] = o.PlanId + toSerialize["planName"] = o.PlanName + if !IsNil(o.PlanSchema) { + toSerialize["planSchema"] = o.PlanSchema + } + toSerialize["serviceName"] = o.ServiceName + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetInstanceResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "dashboardUrl", + "id", + "instance", + "message", + "planId", + "planName", + "serviceName", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetInstanceResponse := _GetInstanceResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetInstanceResponse) + + if err != nil { + return err + } + + *o = GetInstanceResponse(varGetInstanceResponse) + + return err +} + +type NullableGetInstanceResponse struct { + value *GetInstanceResponse + isSet bool +} + +func (v NullableGetInstanceResponse) Get() *GetInstanceResponse { + return v.value +} + +func (v *NullableGetInstanceResponse) Set(val *GetInstanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetInstanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetInstanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetInstanceResponse(val *GetInstanceResponse) *NullableGetInstanceResponse { + return &NullableGetInstanceResponse{value: val, isSet: true} +} + +func (v NullableGetInstanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetInstanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_get_metrics_storage_retention_response.go b/services/observability/v1api/model_get_metrics_storage_retention_response.go new file mode 100644 index 000000000..3cc92bb87 --- /dev/null +++ b/services/observability/v1api/model_get_metrics_storage_retention_response.go @@ -0,0 +1,241 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetMetricsStorageRetentionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMetricsStorageRetentionResponse{} + +// GetMetricsStorageRetentionResponse struct for GetMetricsStorageRetentionResponse +type GetMetricsStorageRetentionResponse struct { + Message string `json:"message"` + MetricsRetentionTime1h string `json:"metricsRetentionTime1h"` + MetricsRetentionTime5m string `json:"metricsRetentionTime5m"` + MetricsRetentionTimeRaw string `json:"metricsRetentionTimeRaw"` +} + +type _GetMetricsStorageRetentionResponse GetMetricsStorageRetentionResponse + +// NewGetMetricsStorageRetentionResponse instantiates a new GetMetricsStorageRetentionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetMetricsStorageRetentionResponse(message string, metricsRetentionTime1h string, metricsRetentionTime5m string, metricsRetentionTimeRaw string) *GetMetricsStorageRetentionResponse { + this := GetMetricsStorageRetentionResponse{} + this.Message = message + this.MetricsRetentionTime1h = metricsRetentionTime1h + this.MetricsRetentionTime5m = metricsRetentionTime5m + this.MetricsRetentionTimeRaw = metricsRetentionTimeRaw + return &this +} + +// NewGetMetricsStorageRetentionResponseWithDefaults instantiates a new GetMetricsStorageRetentionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetMetricsStorageRetentionResponseWithDefaults() *GetMetricsStorageRetentionResponse { + this := GetMetricsStorageRetentionResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *GetMetricsStorageRetentionResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *GetMetricsStorageRetentionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *GetMetricsStorageRetentionResponse) SetMessage(v string) { + o.Message = v +} + +// GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime1h() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsRetentionTime1h +} + +// GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value +// and a boolean to check if the value has been set. +func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime1hOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime1h, true +} + +// SetMetricsRetentionTime1h sets field value +func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTime1h(v string) { + o.MetricsRetentionTime1h = v +} + +// GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime5m() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsRetentionTime5m +} + +// GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value +// and a boolean to check if the value has been set. +func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime5mOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime5m, true +} + +// SetMetricsRetentionTime5m sets field value +func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTime5m(v string) { + o.MetricsRetentionTime5m = v +} + +// GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTimeRaw() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsRetentionTimeRaw +} + +// GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value +// and a boolean to check if the value has been set. +func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTimeRawOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTimeRaw, true +} + +// SetMetricsRetentionTimeRaw sets field value +func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTimeRaw(v string) { + o.MetricsRetentionTimeRaw = v +} + +func (o GetMetricsStorageRetentionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMetricsStorageRetentionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["metricsRetentionTime1h"] = o.MetricsRetentionTime1h + toSerialize["metricsRetentionTime5m"] = o.MetricsRetentionTime5m + toSerialize["metricsRetentionTimeRaw"] = o.MetricsRetentionTimeRaw + return toSerialize, nil +} + +func (o *GetMetricsStorageRetentionResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "metricsRetentionTime1h", + "metricsRetentionTime5m", + "metricsRetentionTimeRaw", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetMetricsStorageRetentionResponse := _GetMetricsStorageRetentionResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetMetricsStorageRetentionResponse) + + if err != nil { + return err + } + + *o = GetMetricsStorageRetentionResponse(varGetMetricsStorageRetentionResponse) + + return err +} + +type NullableGetMetricsStorageRetentionResponse struct { + value *GetMetricsStorageRetentionResponse + isSet bool +} + +func (v NullableGetMetricsStorageRetentionResponse) Get() *GetMetricsStorageRetentionResponse { + return v.value +} + +func (v *NullableGetMetricsStorageRetentionResponse) Set(val *GetMetricsStorageRetentionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetMetricsStorageRetentionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMetricsStorageRetentionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMetricsStorageRetentionResponse(val *GetMetricsStorageRetentionResponse) *NullableGetMetricsStorageRetentionResponse { + return &NullableGetMetricsStorageRetentionResponse{value: val, isSet: true} +} + +func (v NullableGetMetricsStorageRetentionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMetricsStorageRetentionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_get_scrape_config_response.go b/services/observability/v1api/model_get_scrape_config_response.go new file mode 100644 index 000000000..4bbd0a14d --- /dev/null +++ b/services/observability/v1api/model_get_scrape_config_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetScrapeConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetScrapeConfigResponse{} + +// GetScrapeConfigResponse struct for GetScrapeConfigResponse +type GetScrapeConfigResponse struct { + Data Job `json:"data"` + Message string `json:"message"` +} + +type _GetScrapeConfigResponse GetScrapeConfigResponse + +// NewGetScrapeConfigResponse instantiates a new GetScrapeConfigResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetScrapeConfigResponse(data Job, message string) *GetScrapeConfigResponse { + this := GetScrapeConfigResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewGetScrapeConfigResponseWithDefaults instantiates a new GetScrapeConfigResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetScrapeConfigResponseWithDefaults() *GetScrapeConfigResponse { + this := GetScrapeConfigResponse{} + return &this +} + +// GetData returns the Data field value +func (o *GetScrapeConfigResponse) GetData() Job { + if o == nil { + var ret Job + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *GetScrapeConfigResponse) GetDataOk() (*Job, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *GetScrapeConfigResponse) SetData(v Job) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *GetScrapeConfigResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *GetScrapeConfigResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *GetScrapeConfigResponse) SetMessage(v string) { + o.Message = v +} + +func (o GetScrapeConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetScrapeConfigResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *GetScrapeConfigResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetScrapeConfigResponse := _GetScrapeConfigResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetScrapeConfigResponse) + + if err != nil { + return err + } + + *o = GetScrapeConfigResponse(varGetScrapeConfigResponse) + + return err +} + +type NullableGetScrapeConfigResponse struct { + value *GetScrapeConfigResponse + isSet bool +} + +func (v NullableGetScrapeConfigResponse) Get() *GetScrapeConfigResponse { + return v.value +} + +func (v *NullableGetScrapeConfigResponse) Set(val *GetScrapeConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetScrapeConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetScrapeConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetScrapeConfigResponse(val *GetScrapeConfigResponse) *NullableGetScrapeConfigResponse { + return &NullableGetScrapeConfigResponse{value: val, isSet: true} +} + +func (v NullableGetScrapeConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetScrapeConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_global.go b/services/observability/v1api/model_global.go new file mode 100644 index 000000000..acedaa73e --- /dev/null +++ b/services/observability/v1api/model_global.go @@ -0,0 +1,381 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the Global type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Global{} + +// Global struct for Global +type Global struct { + OpsgenieApiKey *string `json:"opsgenieApiKey,omitempty"` + OpsgenieApiUrl *string `json:"opsgenieApiUrl,omitempty"` + ResolveTimeout *string `json:"resolveTimeout,omitempty"` + SmtpAuthIdentity *string `json:"smtpAuthIdentity,omitempty"` + SmtpAuthPassword *string `json:"smtpAuthPassword,omitempty"` + SmtpAuthUsername *string `json:"smtpAuthUsername,omitempty"` + SmtpFrom *string `json:"smtpFrom,omitempty"` + SmtpSmarthost *string `json:"smtpSmarthost,omitempty"` +} + +// NewGlobal instantiates a new Global object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGlobal() *Global { + this := Global{} + var resolveTimeout string = "5m" + this.ResolveTimeout = &resolveTimeout + return &this +} + +// NewGlobalWithDefaults instantiates a new Global object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGlobalWithDefaults() *Global { + this := Global{} + var resolveTimeout string = "5m" + this.ResolveTimeout = &resolveTimeout + return &this +} + +// GetOpsgenieApiKey returns the OpsgenieApiKey field value if set, zero value otherwise. +func (o *Global) GetOpsgenieApiKey() string { + if o == nil || IsNil(o.OpsgenieApiKey) { + var ret string + return ret + } + return *o.OpsgenieApiKey +} + +// GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetOpsgenieApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.OpsgenieApiKey) { + return nil, false + } + return o.OpsgenieApiKey, true +} + +// HasOpsgenieApiKey returns a boolean if a field has been set. +func (o *Global) HasOpsgenieApiKey() bool { + if o != nil && !IsNil(o.OpsgenieApiKey) { + return true + } + + return false +} + +// SetOpsgenieApiKey gets a reference to the given string and assigns it to the OpsgenieApiKey field. +func (o *Global) SetOpsgenieApiKey(v string) { + o.OpsgenieApiKey = &v +} + +// GetOpsgenieApiUrl returns the OpsgenieApiUrl field value if set, zero value otherwise. +func (o *Global) GetOpsgenieApiUrl() string { + if o == nil || IsNil(o.OpsgenieApiUrl) { + var ret string + return ret + } + return *o.OpsgenieApiUrl +} + +// GetOpsgenieApiUrlOk returns a tuple with the OpsgenieApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetOpsgenieApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.OpsgenieApiUrl) { + return nil, false + } + return o.OpsgenieApiUrl, true +} + +// HasOpsgenieApiUrl returns a boolean if a field has been set. +func (o *Global) HasOpsgenieApiUrl() bool { + if o != nil && !IsNil(o.OpsgenieApiUrl) { + return true + } + + return false +} + +// SetOpsgenieApiUrl gets a reference to the given string and assigns it to the OpsgenieApiUrl field. +func (o *Global) SetOpsgenieApiUrl(v string) { + o.OpsgenieApiUrl = &v +} + +// GetResolveTimeout returns the ResolveTimeout field value if set, zero value otherwise. +func (o *Global) GetResolveTimeout() string { + if o == nil || IsNil(o.ResolveTimeout) { + var ret string + return ret + } + return *o.ResolveTimeout +} + +// GetResolveTimeoutOk returns a tuple with the ResolveTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetResolveTimeoutOk() (*string, bool) { + if o == nil || IsNil(o.ResolveTimeout) { + return nil, false + } + return o.ResolveTimeout, true +} + +// HasResolveTimeout returns a boolean if a field has been set. +func (o *Global) HasResolveTimeout() bool { + if o != nil && !IsNil(o.ResolveTimeout) { + return true + } + + return false +} + +// SetResolveTimeout gets a reference to the given string and assigns it to the ResolveTimeout field. +func (o *Global) SetResolveTimeout(v string) { + o.ResolveTimeout = &v +} + +// GetSmtpAuthIdentity returns the SmtpAuthIdentity field value if set, zero value otherwise. +func (o *Global) GetSmtpAuthIdentity() string { + if o == nil || IsNil(o.SmtpAuthIdentity) { + var ret string + return ret + } + return *o.SmtpAuthIdentity +} + +// GetSmtpAuthIdentityOk returns a tuple with the SmtpAuthIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetSmtpAuthIdentityOk() (*string, bool) { + if o == nil || IsNil(o.SmtpAuthIdentity) { + return nil, false + } + return o.SmtpAuthIdentity, true +} + +// HasSmtpAuthIdentity returns a boolean if a field has been set. +func (o *Global) HasSmtpAuthIdentity() bool { + if o != nil && !IsNil(o.SmtpAuthIdentity) { + return true + } + + return false +} + +// SetSmtpAuthIdentity gets a reference to the given string and assigns it to the SmtpAuthIdentity field. +func (o *Global) SetSmtpAuthIdentity(v string) { + o.SmtpAuthIdentity = &v +} + +// GetSmtpAuthPassword returns the SmtpAuthPassword field value if set, zero value otherwise. +func (o *Global) GetSmtpAuthPassword() string { + if o == nil || IsNil(o.SmtpAuthPassword) { + var ret string + return ret + } + return *o.SmtpAuthPassword +} + +// GetSmtpAuthPasswordOk returns a tuple with the SmtpAuthPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetSmtpAuthPasswordOk() (*string, bool) { + if o == nil || IsNil(o.SmtpAuthPassword) { + return nil, false + } + return o.SmtpAuthPassword, true +} + +// HasSmtpAuthPassword returns a boolean if a field has been set. +func (o *Global) HasSmtpAuthPassword() bool { + if o != nil && !IsNil(o.SmtpAuthPassword) { + return true + } + + return false +} + +// SetSmtpAuthPassword gets a reference to the given string and assigns it to the SmtpAuthPassword field. +func (o *Global) SetSmtpAuthPassword(v string) { + o.SmtpAuthPassword = &v +} + +// GetSmtpAuthUsername returns the SmtpAuthUsername field value if set, zero value otherwise. +func (o *Global) GetSmtpAuthUsername() string { + if o == nil || IsNil(o.SmtpAuthUsername) { + var ret string + return ret + } + return *o.SmtpAuthUsername +} + +// GetSmtpAuthUsernameOk returns a tuple with the SmtpAuthUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetSmtpAuthUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SmtpAuthUsername) { + return nil, false + } + return o.SmtpAuthUsername, true +} + +// HasSmtpAuthUsername returns a boolean if a field has been set. +func (o *Global) HasSmtpAuthUsername() bool { + if o != nil && !IsNil(o.SmtpAuthUsername) { + return true + } + + return false +} + +// SetSmtpAuthUsername gets a reference to the given string and assigns it to the SmtpAuthUsername field. +func (o *Global) SetSmtpAuthUsername(v string) { + o.SmtpAuthUsername = &v +} + +// GetSmtpFrom returns the SmtpFrom field value if set, zero value otherwise. +func (o *Global) GetSmtpFrom() string { + if o == nil || IsNil(o.SmtpFrom) { + var ret string + return ret + } + return *o.SmtpFrom +} + +// GetSmtpFromOk returns a tuple with the SmtpFrom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetSmtpFromOk() (*string, bool) { + if o == nil || IsNil(o.SmtpFrom) { + return nil, false + } + return o.SmtpFrom, true +} + +// HasSmtpFrom returns a boolean if a field has been set. +func (o *Global) HasSmtpFrom() bool { + if o != nil && !IsNil(o.SmtpFrom) { + return true + } + + return false +} + +// SetSmtpFrom gets a reference to the given string and assigns it to the SmtpFrom field. +func (o *Global) SetSmtpFrom(v string) { + o.SmtpFrom = &v +} + +// GetSmtpSmarthost returns the SmtpSmarthost field value if set, zero value otherwise. +func (o *Global) GetSmtpSmarthost() string { + if o == nil || IsNil(o.SmtpSmarthost) { + var ret string + return ret + } + return *o.SmtpSmarthost +} + +// GetSmtpSmarthostOk returns a tuple with the SmtpSmarthost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Global) GetSmtpSmarthostOk() (*string, bool) { + if o == nil || IsNil(o.SmtpSmarthost) { + return nil, false + } + return o.SmtpSmarthost, true +} + +// HasSmtpSmarthost returns a boolean if a field has been set. +func (o *Global) HasSmtpSmarthost() bool { + if o != nil && !IsNil(o.SmtpSmarthost) { + return true + } + + return false +} + +// SetSmtpSmarthost gets a reference to the given string and assigns it to the SmtpSmarthost field. +func (o *Global) SetSmtpSmarthost(v string) { + o.SmtpSmarthost = &v +} + +func (o Global) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Global) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OpsgenieApiKey) { + toSerialize["opsgenieApiKey"] = o.OpsgenieApiKey + } + if !IsNil(o.OpsgenieApiUrl) { + toSerialize["opsgenieApiUrl"] = o.OpsgenieApiUrl + } + if !IsNil(o.ResolveTimeout) { + toSerialize["resolveTimeout"] = o.ResolveTimeout + } + if !IsNil(o.SmtpAuthIdentity) { + toSerialize["smtpAuthIdentity"] = o.SmtpAuthIdentity + } + if !IsNil(o.SmtpAuthPassword) { + toSerialize["smtpAuthPassword"] = o.SmtpAuthPassword + } + if !IsNil(o.SmtpAuthUsername) { + toSerialize["smtpAuthUsername"] = o.SmtpAuthUsername + } + if !IsNil(o.SmtpFrom) { + toSerialize["smtpFrom"] = o.SmtpFrom + } + if !IsNil(o.SmtpSmarthost) { + toSerialize["smtpSmarthost"] = o.SmtpSmarthost + } + return toSerialize, nil +} + +type NullableGlobal struct { + value *Global + isSet bool +} + +func (v NullableGlobal) Get() *Global { + return v.value +} + +func (v *NullableGlobal) Set(val *Global) { + v.value = val + v.isSet = true +} + +func (v NullableGlobal) IsSet() bool { + return v.isSet +} + +func (v *NullableGlobal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGlobal(val *Global) *NullableGlobal { + return &NullableGlobal{value: val, isSet: true} +} + +func (v NullableGlobal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGlobal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_grafana_configs.go b/services/observability/v1api/model_grafana_configs.go new file mode 100644 index 000000000..ace32674e --- /dev/null +++ b/services/observability/v1api/model_grafana_configs.go @@ -0,0 +1,265 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GrafanaConfigs type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GrafanaConfigs{} + +// GrafanaConfigs struct for GrafanaConfigs +type GrafanaConfigs struct { + GenericOauth *GrafanaOauth `json:"genericOauth,omitempty"` + Message string `json:"message"` + PublicReadAccess *bool `json:"publicReadAccess,omitempty"` + UseStackitSso *bool `json:"useStackitSso,omitempty"` +} + +type _GrafanaConfigs GrafanaConfigs + +// NewGrafanaConfigs instantiates a new GrafanaConfigs object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGrafanaConfigs(message string) *GrafanaConfigs { + this := GrafanaConfigs{} + this.Message = message + return &this +} + +// NewGrafanaConfigsWithDefaults instantiates a new GrafanaConfigs object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGrafanaConfigsWithDefaults() *GrafanaConfigs { + this := GrafanaConfigs{} + return &this +} + +// GetGenericOauth returns the GenericOauth field value if set, zero value otherwise. +func (o *GrafanaConfigs) GetGenericOauth() GrafanaOauth { + if o == nil || IsNil(o.GenericOauth) { + var ret GrafanaOauth + return ret + } + return *o.GenericOauth +} + +// GetGenericOauthOk returns a tuple with the GenericOauth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaConfigs) GetGenericOauthOk() (*GrafanaOauth, bool) { + if o == nil || IsNil(o.GenericOauth) { + return nil, false + } + return o.GenericOauth, true +} + +// HasGenericOauth returns a boolean if a field has been set. +func (o *GrafanaConfigs) HasGenericOauth() bool { + if o != nil && !IsNil(o.GenericOauth) { + return true + } + + return false +} + +// SetGenericOauth gets a reference to the given GrafanaOauth and assigns it to the GenericOauth field. +func (o *GrafanaConfigs) SetGenericOauth(v GrafanaOauth) { + o.GenericOauth = &v +} + +// GetMessage returns the Message field value +func (o *GrafanaConfigs) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *GrafanaConfigs) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *GrafanaConfigs) SetMessage(v string) { + o.Message = v +} + +// GetPublicReadAccess returns the PublicReadAccess field value if set, zero value otherwise. +func (o *GrafanaConfigs) GetPublicReadAccess() bool { + if o == nil || IsNil(o.PublicReadAccess) { + var ret bool + return ret + } + return *o.PublicReadAccess +} + +// GetPublicReadAccessOk returns a tuple with the PublicReadAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaConfigs) GetPublicReadAccessOk() (*bool, bool) { + if o == nil || IsNil(o.PublicReadAccess) { + return nil, false + } + return o.PublicReadAccess, true +} + +// HasPublicReadAccess returns a boolean if a field has been set. +func (o *GrafanaConfigs) HasPublicReadAccess() bool { + if o != nil && !IsNil(o.PublicReadAccess) { + return true + } + + return false +} + +// SetPublicReadAccess gets a reference to the given bool and assigns it to the PublicReadAccess field. +func (o *GrafanaConfigs) SetPublicReadAccess(v bool) { + o.PublicReadAccess = &v +} + +// GetUseStackitSso returns the UseStackitSso field value if set, zero value otherwise. +func (o *GrafanaConfigs) GetUseStackitSso() bool { + if o == nil || IsNil(o.UseStackitSso) { + var ret bool + return ret + } + return *o.UseStackitSso +} + +// GetUseStackitSsoOk returns a tuple with the UseStackitSso field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaConfigs) GetUseStackitSsoOk() (*bool, bool) { + if o == nil || IsNil(o.UseStackitSso) { + return nil, false + } + return o.UseStackitSso, true +} + +// HasUseStackitSso returns a boolean if a field has been set. +func (o *GrafanaConfigs) HasUseStackitSso() bool { + if o != nil && !IsNil(o.UseStackitSso) { + return true + } + + return false +} + +// SetUseStackitSso gets a reference to the given bool and assigns it to the UseStackitSso field. +func (o *GrafanaConfigs) SetUseStackitSso(v bool) { + o.UseStackitSso = &v +} + +func (o GrafanaConfigs) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GrafanaConfigs) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GenericOauth) { + toSerialize["genericOauth"] = o.GenericOauth + } + toSerialize["message"] = o.Message + if !IsNil(o.PublicReadAccess) { + toSerialize["publicReadAccess"] = o.PublicReadAccess + } + if !IsNil(o.UseStackitSso) { + toSerialize["useStackitSso"] = o.UseStackitSso + } + return toSerialize, nil +} + +func (o *GrafanaConfigs) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGrafanaConfigs := _GrafanaConfigs{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGrafanaConfigs) + + if err != nil { + return err + } + + *o = GrafanaConfigs(varGrafanaConfigs) + + return err +} + +type NullableGrafanaConfigs struct { + value *GrafanaConfigs + isSet bool +} + +func (v NullableGrafanaConfigs) Get() *GrafanaConfigs { + return v.value +} + +func (v *NullableGrafanaConfigs) Set(val *GrafanaConfigs) { + v.value = val + v.isSet = true +} + +func (v NullableGrafanaConfigs) IsSet() bool { + return v.isSet +} + +func (v *NullableGrafanaConfigs) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGrafanaConfigs(val *GrafanaConfigs) *NullableGrafanaConfigs { + return &NullableGrafanaConfigs{value: val, isSet: true} +} + +func (v NullableGrafanaConfigs) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGrafanaConfigs) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_grafana_oauth.go b/services/observability/v1api/model_grafana_oauth.go new file mode 100644 index 000000000..a040f0c55 --- /dev/null +++ b/services/observability/v1api/model_grafana_oauth.go @@ -0,0 +1,517 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GrafanaOauth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GrafanaOauth{} + +// GrafanaOauth struct for GrafanaOauth +type GrafanaOauth struct { + AllowAssignGrafanaAdmin *bool `json:"allowAssignGrafanaAdmin,omitempty"` + ApiUrl string `json:"apiUrl"` + AuthUrl string `json:"authUrl"` + Enabled bool `json:"enabled"` + Name *string `json:"name,omitempty"` + OauthClientId string `json:"oauthClientId"` + OauthClientSecret string `json:"oauthClientSecret"` + RoleAttributePath string `json:"roleAttributePath"` + RoleAttributeStrict *bool `json:"roleAttributeStrict,omitempty"` + Scopes *string `json:"scopes,omitempty"` + TokenUrl string `json:"tokenUrl"` + UsePkce *bool `json:"usePkce,omitempty"` +} + +type _GrafanaOauth GrafanaOauth + +// NewGrafanaOauth instantiates a new GrafanaOauth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGrafanaOauth(apiUrl string, authUrl string, enabled bool, oauthClientId string, oauthClientSecret string, roleAttributePath string, tokenUrl string) *GrafanaOauth { + this := GrafanaOauth{} + var allowAssignGrafanaAdmin bool = false + this.AllowAssignGrafanaAdmin = &allowAssignGrafanaAdmin + this.ApiUrl = apiUrl + this.AuthUrl = authUrl + this.Enabled = enabled + this.OauthClientId = oauthClientId + this.OauthClientSecret = oauthClientSecret + this.RoleAttributePath = roleAttributePath + var roleAttributeStrict bool = true + this.RoleAttributeStrict = &roleAttributeStrict + var scopes string = "openid profile email" + this.Scopes = &scopes + this.TokenUrl = tokenUrl + return &this +} + +// NewGrafanaOauthWithDefaults instantiates a new GrafanaOauth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGrafanaOauthWithDefaults() *GrafanaOauth { + this := GrafanaOauth{} + var allowAssignGrafanaAdmin bool = false + this.AllowAssignGrafanaAdmin = &allowAssignGrafanaAdmin + var roleAttributeStrict bool = true + this.RoleAttributeStrict = &roleAttributeStrict + var scopes string = "openid profile email" + this.Scopes = &scopes + return &this +} + +// GetAllowAssignGrafanaAdmin returns the AllowAssignGrafanaAdmin field value if set, zero value otherwise. +func (o *GrafanaOauth) GetAllowAssignGrafanaAdmin() bool { + if o == nil || IsNil(o.AllowAssignGrafanaAdmin) { + var ret bool + return ret + } + return *o.AllowAssignGrafanaAdmin +} + +// GetAllowAssignGrafanaAdminOk returns a tuple with the AllowAssignGrafanaAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetAllowAssignGrafanaAdminOk() (*bool, bool) { + if o == nil || IsNil(o.AllowAssignGrafanaAdmin) { + return nil, false + } + return o.AllowAssignGrafanaAdmin, true +} + +// HasAllowAssignGrafanaAdmin returns a boolean if a field has been set. +func (o *GrafanaOauth) HasAllowAssignGrafanaAdmin() bool { + if o != nil && !IsNil(o.AllowAssignGrafanaAdmin) { + return true + } + + return false +} + +// SetAllowAssignGrafanaAdmin gets a reference to the given bool and assigns it to the AllowAssignGrafanaAdmin field. +func (o *GrafanaOauth) SetAllowAssignGrafanaAdmin(v bool) { + o.AllowAssignGrafanaAdmin = &v +} + +// GetApiUrl returns the ApiUrl field value +func (o *GrafanaOauth) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *GrafanaOauth) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetAuthUrl returns the AuthUrl field value +func (o *GrafanaOauth) GetAuthUrl() string { + if o == nil { + var ret string + return ret + } + + return o.AuthUrl +} + +// GetAuthUrlOk returns a tuple with the AuthUrl field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetAuthUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthUrl, true +} + +// SetAuthUrl sets field value +func (o *GrafanaOauth) SetAuthUrl(v string) { + o.AuthUrl = v +} + +// GetEnabled returns the Enabled field value +func (o *GrafanaOauth) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *GrafanaOauth) SetEnabled(v bool) { + o.Enabled = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GrafanaOauth) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GrafanaOauth) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GrafanaOauth) SetName(v string) { + o.Name = &v +} + +// GetOauthClientId returns the OauthClientId field value +func (o *GrafanaOauth) GetOauthClientId() string { + if o == nil { + var ret string + return ret + } + + return o.OauthClientId +} + +// GetOauthClientIdOk returns a tuple with the OauthClientId field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetOauthClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OauthClientId, true +} + +// SetOauthClientId sets field value +func (o *GrafanaOauth) SetOauthClientId(v string) { + o.OauthClientId = v +} + +// GetOauthClientSecret returns the OauthClientSecret field value +func (o *GrafanaOauth) GetOauthClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.OauthClientSecret +} + +// GetOauthClientSecretOk returns a tuple with the OauthClientSecret field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetOauthClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OauthClientSecret, true +} + +// SetOauthClientSecret sets field value +func (o *GrafanaOauth) SetOauthClientSecret(v string) { + o.OauthClientSecret = v +} + +// GetRoleAttributePath returns the RoleAttributePath field value +func (o *GrafanaOauth) GetRoleAttributePath() string { + if o == nil { + var ret string + return ret + } + + return o.RoleAttributePath +} + +// GetRoleAttributePathOk returns a tuple with the RoleAttributePath field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetRoleAttributePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleAttributePath, true +} + +// SetRoleAttributePath sets field value +func (o *GrafanaOauth) SetRoleAttributePath(v string) { + o.RoleAttributePath = v +} + +// GetRoleAttributeStrict returns the RoleAttributeStrict field value if set, zero value otherwise. +func (o *GrafanaOauth) GetRoleAttributeStrict() bool { + if o == nil || IsNil(o.RoleAttributeStrict) { + var ret bool + return ret + } + return *o.RoleAttributeStrict +} + +// GetRoleAttributeStrictOk returns a tuple with the RoleAttributeStrict field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetRoleAttributeStrictOk() (*bool, bool) { + if o == nil || IsNil(o.RoleAttributeStrict) { + return nil, false + } + return o.RoleAttributeStrict, true +} + +// HasRoleAttributeStrict returns a boolean if a field has been set. +func (o *GrafanaOauth) HasRoleAttributeStrict() bool { + if o != nil && !IsNil(o.RoleAttributeStrict) { + return true + } + + return false +} + +// SetRoleAttributeStrict gets a reference to the given bool and assigns it to the RoleAttributeStrict field. +func (o *GrafanaOauth) SetRoleAttributeStrict(v bool) { + o.RoleAttributeStrict = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *GrafanaOauth) GetScopes() string { + if o == nil || IsNil(o.Scopes) { + var ret string + return ret + } + return *o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetScopesOk() (*string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *GrafanaOauth) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given string and assigns it to the Scopes field. +func (o *GrafanaOauth) SetScopes(v string) { + o.Scopes = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *GrafanaOauth) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *GrafanaOauth) SetTokenUrl(v string) { + o.TokenUrl = v +} + +// GetUsePkce returns the UsePkce field value if set, zero value otherwise. +func (o *GrafanaOauth) GetUsePkce() bool { + if o == nil || IsNil(o.UsePkce) { + var ret bool + return ret + } + return *o.UsePkce +} + +// GetUsePkceOk returns a tuple with the UsePkce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GrafanaOauth) GetUsePkceOk() (*bool, bool) { + if o == nil || IsNil(o.UsePkce) { + return nil, false + } + return o.UsePkce, true +} + +// HasUsePkce returns a boolean if a field has been set. +func (o *GrafanaOauth) HasUsePkce() bool { + if o != nil && !IsNil(o.UsePkce) { + return true + } + + return false +} + +// SetUsePkce gets a reference to the given bool and assigns it to the UsePkce field. +func (o *GrafanaOauth) SetUsePkce(v bool) { + o.UsePkce = &v +} + +func (o GrafanaOauth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GrafanaOauth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowAssignGrafanaAdmin) { + toSerialize["allowAssignGrafanaAdmin"] = o.AllowAssignGrafanaAdmin + } + toSerialize["apiUrl"] = o.ApiUrl + toSerialize["authUrl"] = o.AuthUrl + toSerialize["enabled"] = o.Enabled + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["oauthClientId"] = o.OauthClientId + toSerialize["oauthClientSecret"] = o.OauthClientSecret + toSerialize["roleAttributePath"] = o.RoleAttributePath + if !IsNil(o.RoleAttributeStrict) { + toSerialize["roleAttributeStrict"] = o.RoleAttributeStrict + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + toSerialize["tokenUrl"] = o.TokenUrl + if !IsNil(o.UsePkce) { + toSerialize["usePkce"] = o.UsePkce + } + return toSerialize, nil +} + +func (o *GrafanaOauth) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "apiUrl", + "authUrl", + "enabled", + "oauthClientId", + "oauthClientSecret", + "roleAttributePath", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGrafanaOauth := _GrafanaOauth{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGrafanaOauth) + + if err != nil { + return err + } + + *o = GrafanaOauth(varGrafanaOauth) + + return err +} + +type NullableGrafanaOauth struct { + value *GrafanaOauth + isSet bool +} + +func (v NullableGrafanaOauth) Get() *GrafanaOauth { + return v.value +} + +func (v *NullableGrafanaOauth) Set(val *GrafanaOauth) { + v.value = val + v.isSet = true +} + +func (v NullableGrafanaOauth) IsSet() bool { + return v.isSet +} + +func (v *NullableGrafanaOauth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGrafanaOauth(val *GrafanaOauth) *NullableGrafanaOauth { + return &NullableGrafanaOauth{value: val, isSet: true} +} + +func (v NullableGrafanaOauth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGrafanaOauth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_http_check_child_response.go b/services/observability/v1api/model_http_check_child_response.go new file mode 100644 index 000000000..7b0fce4a6 --- /dev/null +++ b/services/observability/v1api/model_http_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the HttpCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HttpCheckChildResponse{} + +// HttpCheckChildResponse struct for HttpCheckChildResponse +type HttpCheckChildResponse struct { + Id string `json:"id"` + Url string `json:"url"` +} + +type _HttpCheckChildResponse HttpCheckChildResponse + +// NewHttpCheckChildResponse instantiates a new HttpCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHttpCheckChildResponse(id string, url string) *HttpCheckChildResponse { + this := HttpCheckChildResponse{} + this.Id = id + this.Url = url + return &this +} + +// NewHttpCheckChildResponseWithDefaults instantiates a new HttpCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHttpCheckChildResponseWithDefaults() *HttpCheckChildResponse { + this := HttpCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *HttpCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *HttpCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *HttpCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *HttpCheckChildResponse) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *HttpCheckChildResponse) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *HttpCheckChildResponse) SetUrl(v string) { + o.Url = v +} + +func (o HttpCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HttpCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *HttpCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varHttpCheckChildResponse := _HttpCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varHttpCheckChildResponse) + + if err != nil { + return err + } + + *o = HttpCheckChildResponse(varHttpCheckChildResponse) + + return err +} + +type NullableHttpCheckChildResponse struct { + value *HttpCheckChildResponse + isSet bool +} + +func (v NullableHttpCheckChildResponse) Get() *HttpCheckChildResponse { + return v.value +} + +func (v *NullableHttpCheckChildResponse) Set(val *HttpCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableHttpCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableHttpCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHttpCheckChildResponse(val *HttpCheckChildResponse) *NullableHttpCheckChildResponse { + return &NullableHttpCheckChildResponse{value: val, isSet: true} +} + +func (v NullableHttpCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHttpCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_http_check_response.go b/services/observability/v1api/model_http_check_response.go new file mode 100644 index 000000000..df4f2fd7a --- /dev/null +++ b/services/observability/v1api/model_http_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the HttpCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HttpCheckResponse{} + +// HttpCheckResponse struct for HttpCheckResponse +type HttpCheckResponse struct { + HttpCheck *HttpCheckChildResponse `json:"httpCheck,omitempty"` + HttpChecks []HttpCheckChildResponse `json:"httpChecks"` + Message string `json:"message"` +} + +type _HttpCheckResponse HttpCheckResponse + +// NewHttpCheckResponse instantiates a new HttpCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHttpCheckResponse(httpChecks []HttpCheckChildResponse, message string) *HttpCheckResponse { + this := HttpCheckResponse{} + this.HttpChecks = httpChecks + this.Message = message + return &this +} + +// NewHttpCheckResponseWithDefaults instantiates a new HttpCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHttpCheckResponseWithDefaults() *HttpCheckResponse { + this := HttpCheckResponse{} + return &this +} + +// GetHttpCheck returns the HttpCheck field value if set, zero value otherwise. +func (o *HttpCheckResponse) GetHttpCheck() HttpCheckChildResponse { + if o == nil || IsNil(o.HttpCheck) { + var ret HttpCheckChildResponse + return ret + } + return *o.HttpCheck +} + +// GetHttpCheckOk returns a tuple with the HttpCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HttpCheckResponse) GetHttpCheckOk() (*HttpCheckChildResponse, bool) { + if o == nil || IsNil(o.HttpCheck) { + return nil, false + } + return o.HttpCheck, true +} + +// HasHttpCheck returns a boolean if a field has been set. +func (o *HttpCheckResponse) HasHttpCheck() bool { + if o != nil && !IsNil(o.HttpCheck) { + return true + } + + return false +} + +// SetHttpCheck gets a reference to the given HttpCheckChildResponse and assigns it to the HttpCheck field. +func (o *HttpCheckResponse) SetHttpCheck(v HttpCheckChildResponse) { + o.HttpCheck = &v +} + +// GetHttpChecks returns the HttpChecks field value +func (o *HttpCheckResponse) GetHttpChecks() []HttpCheckChildResponse { + if o == nil { + var ret []HttpCheckChildResponse + return ret + } + + return o.HttpChecks +} + +// GetHttpChecksOk returns a tuple with the HttpChecks field value +// and a boolean to check if the value has been set. +func (o *HttpCheckResponse) GetHttpChecksOk() ([]HttpCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.HttpChecks, true +} + +// SetHttpChecks sets field value +func (o *HttpCheckResponse) SetHttpChecks(v []HttpCheckChildResponse) { + o.HttpChecks = v +} + +// GetMessage returns the Message field value +func (o *HttpCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *HttpCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *HttpCheckResponse) SetMessage(v string) { + o.Message = v +} + +func (o HttpCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HttpCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.HttpCheck) { + toSerialize["httpCheck"] = o.HttpCheck + } + toSerialize["httpChecks"] = o.HttpChecks + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *HttpCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "httpChecks", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varHttpCheckResponse := _HttpCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varHttpCheckResponse) + + if err != nil { + return err + } + + *o = HttpCheckResponse(varHttpCheckResponse) + + return err +} + +type NullableHttpCheckResponse struct { + value *HttpCheckResponse + isSet bool +} + +func (v NullableHttpCheckResponse) Get() *HttpCheckResponse { + return v.value +} + +func (v *NullableHttpCheckResponse) Set(val *HttpCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableHttpCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableHttpCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHttpCheckResponse(val *HttpCheckResponse) *NullableHttpCheckResponse { + return &NullableHttpCheckResponse{value: val, isSet: true} +} + +func (v NullableHttpCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHttpCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_http_service_sd.go b/services/observability/v1api/model_http_service_sd.go new file mode 100644 index 000000000..2db6d76cf --- /dev/null +++ b/services/observability/v1api/model_http_service_sd.go @@ -0,0 +1,305 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the HTTPServiceSD type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HTTPServiceSD{} + +// HTTPServiceSD struct for HTTPServiceSD +type HTTPServiceSD struct { + BasicAuth *BasicAuth `json:"basicAuth,omitempty"` + Oauth2 *OAuth2 `json:"oauth2,omitempty"` + RefreshInterval *string `json:"refreshInterval,omitempty"` + TlsConfig *TLSConfig `json:"tlsConfig,omitempty"` + Url string `json:"url"` +} + +type _HTTPServiceSD HTTPServiceSD + +// NewHTTPServiceSD instantiates a new HTTPServiceSD object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHTTPServiceSD(url string) *HTTPServiceSD { + this := HTTPServiceSD{} + var refreshInterval string = "60s" + this.RefreshInterval = &refreshInterval + this.Url = url + return &this +} + +// NewHTTPServiceSDWithDefaults instantiates a new HTTPServiceSD object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHTTPServiceSDWithDefaults() *HTTPServiceSD { + this := HTTPServiceSD{} + var refreshInterval string = "60s" + this.RefreshInterval = &refreshInterval + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *HTTPServiceSD) GetBasicAuth() BasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret BasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HTTPServiceSD) GetBasicAuthOk() (*BasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *HTTPServiceSD) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given BasicAuth and assigns it to the BasicAuth field. +func (o *HTTPServiceSD) SetBasicAuth(v BasicAuth) { + o.BasicAuth = &v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *HTTPServiceSD) GetOauth2() OAuth2 { + if o == nil || IsNil(o.Oauth2) { + var ret OAuth2 + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HTTPServiceSD) GetOauth2Ok() (*OAuth2, bool) { + if o == nil || IsNil(o.Oauth2) { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *HTTPServiceSD) HasOauth2() bool { + if o != nil && !IsNil(o.Oauth2) { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given OAuth2 and assigns it to the Oauth2 field. +func (o *HTTPServiceSD) SetOauth2(v OAuth2) { + o.Oauth2 = &v +} + +// GetRefreshInterval returns the RefreshInterval field value if set, zero value otherwise. +func (o *HTTPServiceSD) GetRefreshInterval() string { + if o == nil || IsNil(o.RefreshInterval) { + var ret string + return ret + } + return *o.RefreshInterval +} + +// GetRefreshIntervalOk returns a tuple with the RefreshInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HTTPServiceSD) GetRefreshIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RefreshInterval) { + return nil, false + } + return o.RefreshInterval, true +} + +// HasRefreshInterval returns a boolean if a field has been set. +func (o *HTTPServiceSD) HasRefreshInterval() bool { + if o != nil && !IsNil(o.RefreshInterval) { + return true + } + + return false +} + +// SetRefreshInterval gets a reference to the given string and assigns it to the RefreshInterval field. +func (o *HTTPServiceSD) SetRefreshInterval(v string) { + o.RefreshInterval = &v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *HTTPServiceSD) GetTlsConfig() TLSConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret TLSConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HTTPServiceSD) GetTlsConfigOk() (*TLSConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *HTTPServiceSD) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given TLSConfig and assigns it to the TlsConfig field. +func (o *HTTPServiceSD) SetTlsConfig(v TLSConfig) { + o.TlsConfig = &v +} + +// GetUrl returns the Url field value +func (o *HTTPServiceSD) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *HTTPServiceSD) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *HTTPServiceSD) SetUrl(v string) { + o.Url = v +} + +func (o HTTPServiceSD) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HTTPServiceSD) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.Oauth2) { + toSerialize["oauth2"] = o.Oauth2 + } + if !IsNil(o.RefreshInterval) { + toSerialize["refreshInterval"] = o.RefreshInterval + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *HTTPServiceSD) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varHTTPServiceSD := _HTTPServiceSD{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varHTTPServiceSD) + + if err != nil { + return err + } + + *o = HTTPServiceSD(varHTTPServiceSD) + + return err +} + +type NullableHTTPServiceSD struct { + value *HTTPServiceSD + isSet bool +} + +func (v NullableHTTPServiceSD) Get() *HTTPServiceSD { + return v.value +} + +func (v *NullableHTTPServiceSD) Set(val *HTTPServiceSD) { + v.value = val + v.isSet = true +} + +func (v NullableHTTPServiceSD) IsSet() bool { + return v.isSet +} + +func (v *NullableHTTPServiceSD) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHTTPServiceSD(val *HTTPServiceSD) *NullableHTTPServiceSD { + return &NullableHTTPServiceSD{value: val, isSet: true} +} + +func (v NullableHTTPServiceSD) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHTTPServiceSD) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_inhibit_rules.go b/services/observability/v1api/model_inhibit_rules.go new file mode 100644 index 000000000..947df43d3 --- /dev/null +++ b/services/observability/v1api/model_inhibit_rules.go @@ -0,0 +1,341 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the InhibitRules type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InhibitRules{} + +// InhibitRules struct for InhibitRules +type InhibitRules struct { + Equal []string `json:"equal,omitempty"` + SourceMatch *map[string]string `json:"sourceMatch,omitempty"` + SourceMatchRe *map[string]string `json:"sourceMatchRe,omitempty"` + SourceMatchers []string `json:"sourceMatchers,omitempty"` + TargetMatch *map[string]string `json:"targetMatch,omitempty"` + TargetMatchRe *map[string]string `json:"targetMatchRe,omitempty"` + TargetMatchers []string `json:"targetMatchers,omitempty"` +} + +// NewInhibitRules instantiates a new InhibitRules object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInhibitRules() *InhibitRules { + this := InhibitRules{} + return &this +} + +// NewInhibitRulesWithDefaults instantiates a new InhibitRules object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInhibitRulesWithDefaults() *InhibitRules { + this := InhibitRules{} + return &this +} + +// GetEqual returns the Equal field value if set, zero value otherwise. +func (o *InhibitRules) GetEqual() []string { + if o == nil || IsNil(o.Equal) { + var ret []string + return ret + } + return o.Equal +} + +// GetEqualOk returns a tuple with the Equal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetEqualOk() ([]string, bool) { + if o == nil || IsNil(o.Equal) { + return nil, false + } + return o.Equal, true +} + +// HasEqual returns a boolean if a field has been set. +func (o *InhibitRules) HasEqual() bool { + if o != nil && !IsNil(o.Equal) { + return true + } + + return false +} + +// SetEqual gets a reference to the given []string and assigns it to the Equal field. +func (o *InhibitRules) SetEqual(v []string) { + o.Equal = v +} + +// GetSourceMatch returns the SourceMatch field value if set, zero value otherwise. +func (o *InhibitRules) GetSourceMatch() map[string]string { + if o == nil || IsNil(o.SourceMatch) { + var ret map[string]string + return ret + } + return *o.SourceMatch +} + +// GetSourceMatchOk returns a tuple with the SourceMatch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetSourceMatchOk() (*map[string]string, bool) { + if o == nil || IsNil(o.SourceMatch) { + return nil, false + } + return o.SourceMatch, true +} + +// HasSourceMatch returns a boolean if a field has been set. +func (o *InhibitRules) HasSourceMatch() bool { + if o != nil && !IsNil(o.SourceMatch) { + return true + } + + return false +} + +// SetSourceMatch gets a reference to the given map[string]string and assigns it to the SourceMatch field. +func (o *InhibitRules) SetSourceMatch(v map[string]string) { + o.SourceMatch = &v +} + +// GetSourceMatchRe returns the SourceMatchRe field value if set, zero value otherwise. +func (o *InhibitRules) GetSourceMatchRe() map[string]string { + if o == nil || IsNil(o.SourceMatchRe) { + var ret map[string]string + return ret + } + return *o.SourceMatchRe +} + +// GetSourceMatchReOk returns a tuple with the SourceMatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetSourceMatchReOk() (*map[string]string, bool) { + if o == nil || IsNil(o.SourceMatchRe) { + return nil, false + } + return o.SourceMatchRe, true +} + +// HasSourceMatchRe returns a boolean if a field has been set. +func (o *InhibitRules) HasSourceMatchRe() bool { + if o != nil && !IsNil(o.SourceMatchRe) { + return true + } + + return false +} + +// SetSourceMatchRe gets a reference to the given map[string]string and assigns it to the SourceMatchRe field. +func (o *InhibitRules) SetSourceMatchRe(v map[string]string) { + o.SourceMatchRe = &v +} + +// GetSourceMatchers returns the SourceMatchers field value if set, zero value otherwise. +func (o *InhibitRules) GetSourceMatchers() []string { + if o == nil || IsNil(o.SourceMatchers) { + var ret []string + return ret + } + return o.SourceMatchers +} + +// GetSourceMatchersOk returns a tuple with the SourceMatchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetSourceMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.SourceMatchers) { + return nil, false + } + return o.SourceMatchers, true +} + +// HasSourceMatchers returns a boolean if a field has been set. +func (o *InhibitRules) HasSourceMatchers() bool { + if o != nil && !IsNil(o.SourceMatchers) { + return true + } + + return false +} + +// SetSourceMatchers gets a reference to the given []string and assigns it to the SourceMatchers field. +func (o *InhibitRules) SetSourceMatchers(v []string) { + o.SourceMatchers = v +} + +// GetTargetMatch returns the TargetMatch field value if set, zero value otherwise. +func (o *InhibitRules) GetTargetMatch() map[string]string { + if o == nil || IsNil(o.TargetMatch) { + var ret map[string]string + return ret + } + return *o.TargetMatch +} + +// GetTargetMatchOk returns a tuple with the TargetMatch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetTargetMatchOk() (*map[string]string, bool) { + if o == nil || IsNil(o.TargetMatch) { + return nil, false + } + return o.TargetMatch, true +} + +// HasTargetMatch returns a boolean if a field has been set. +func (o *InhibitRules) HasTargetMatch() bool { + if o != nil && !IsNil(o.TargetMatch) { + return true + } + + return false +} + +// SetTargetMatch gets a reference to the given map[string]string and assigns it to the TargetMatch field. +func (o *InhibitRules) SetTargetMatch(v map[string]string) { + o.TargetMatch = &v +} + +// GetTargetMatchRe returns the TargetMatchRe field value if set, zero value otherwise. +func (o *InhibitRules) GetTargetMatchRe() map[string]string { + if o == nil || IsNil(o.TargetMatchRe) { + var ret map[string]string + return ret + } + return *o.TargetMatchRe +} + +// GetTargetMatchReOk returns a tuple with the TargetMatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetTargetMatchReOk() (*map[string]string, bool) { + if o == nil || IsNil(o.TargetMatchRe) { + return nil, false + } + return o.TargetMatchRe, true +} + +// HasTargetMatchRe returns a boolean if a field has been set. +func (o *InhibitRules) HasTargetMatchRe() bool { + if o != nil && !IsNil(o.TargetMatchRe) { + return true + } + + return false +} + +// SetTargetMatchRe gets a reference to the given map[string]string and assigns it to the TargetMatchRe field. +func (o *InhibitRules) SetTargetMatchRe(v map[string]string) { + o.TargetMatchRe = &v +} + +// GetTargetMatchers returns the TargetMatchers field value if set, zero value otherwise. +func (o *InhibitRules) GetTargetMatchers() []string { + if o == nil || IsNil(o.TargetMatchers) { + var ret []string + return ret + } + return o.TargetMatchers +} + +// GetTargetMatchersOk returns a tuple with the TargetMatchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InhibitRules) GetTargetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.TargetMatchers) { + return nil, false + } + return o.TargetMatchers, true +} + +// HasTargetMatchers returns a boolean if a field has been set. +func (o *InhibitRules) HasTargetMatchers() bool { + if o != nil && !IsNil(o.TargetMatchers) { + return true + } + + return false +} + +// SetTargetMatchers gets a reference to the given []string and assigns it to the TargetMatchers field. +func (o *InhibitRules) SetTargetMatchers(v []string) { + o.TargetMatchers = v +} + +func (o InhibitRules) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InhibitRules) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Equal) { + toSerialize["equal"] = o.Equal + } + if !IsNil(o.SourceMatch) { + toSerialize["sourceMatch"] = o.SourceMatch + } + if !IsNil(o.SourceMatchRe) { + toSerialize["sourceMatchRe"] = o.SourceMatchRe + } + if !IsNil(o.SourceMatchers) { + toSerialize["sourceMatchers"] = o.SourceMatchers + } + if !IsNil(o.TargetMatch) { + toSerialize["targetMatch"] = o.TargetMatch + } + if !IsNil(o.TargetMatchRe) { + toSerialize["targetMatchRe"] = o.TargetMatchRe + } + if !IsNil(o.TargetMatchers) { + toSerialize["targetMatchers"] = o.TargetMatchers + } + return toSerialize, nil +} + +type NullableInhibitRules struct { + value *InhibitRules + isSet bool +} + +func (v NullableInhibitRules) Get() *InhibitRules { + return v.value +} + +func (v *NullableInhibitRules) Set(val *InhibitRules) { + v.value = val + v.isSet = true +} + +func (v NullableInhibitRules) IsSet() bool { + return v.isSet +} + +func (v *NullableInhibitRules) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInhibitRules(val *InhibitRules) *NullableInhibitRules { + return &NullableInhibitRules{value: val, isSet: true} +} + +func (v NullableInhibitRules) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInhibitRules) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_instance.go b/services/observability/v1api/model_instance.go new file mode 100644 index 000000000..94df019bc --- /dev/null +++ b/services/observability/v1api/model_instance.go @@ -0,0 +1,425 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Instance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Instance{} + +// Instance struct for Instance +type Instance struct { + Cluster string `json:"cluster"` + GrafanaPublicReadAccess bool `json:"grafanaPublicReadAccess"` + GrafanaUseStackitSso bool `json:"grafanaUseStackitSso"` + Instance string `json:"instance"` + MetricsRetentionTime1h int32 `json:"metricsRetentionTime1h"` + MetricsRetentionTime5m int32 `json:"metricsRetentionTime5m"` + MetricsRetentionTimeRaw int32 `json:"metricsRetentionTimeRaw"` + Name *string `json:"name,omitempty"` + Plan PlanModel `json:"plan"` + State *string `json:"state,omitempty"` +} + +type _Instance Instance + +// NewInstance instantiates a new Instance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInstance(cluster string, grafanaPublicReadAccess bool, grafanaUseStackitSso bool, instance string, metricsRetentionTime1h int32, metricsRetentionTime5m int32, metricsRetentionTimeRaw int32, plan PlanModel) *Instance { + this := Instance{} + this.Cluster = cluster + this.GrafanaPublicReadAccess = grafanaPublicReadAccess + this.GrafanaUseStackitSso = grafanaUseStackitSso + this.Instance = instance + this.MetricsRetentionTime1h = metricsRetentionTime1h + this.MetricsRetentionTime5m = metricsRetentionTime5m + this.MetricsRetentionTimeRaw = metricsRetentionTimeRaw + this.Plan = plan + return &this +} + +// NewInstanceWithDefaults instantiates a new Instance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInstanceWithDefaults() *Instance { + this := Instance{} + return &this +} + +// GetCluster returns the Cluster field value +func (o *Instance) GetCluster() string { + if o == nil { + var ret string + return ret + } + + return o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value +// and a boolean to check if the value has been set. +func (o *Instance) GetClusterOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cluster, true +} + +// SetCluster sets field value +func (o *Instance) SetCluster(v string) { + o.Cluster = v +} + +// GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value +func (o *Instance) GetGrafanaPublicReadAccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.GrafanaPublicReadAccess +} + +// GetGrafanaPublicReadAccessOk returns a tuple with the GrafanaPublicReadAccess field value +// and a boolean to check if the value has been set. +func (o *Instance) GetGrafanaPublicReadAccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaPublicReadAccess, true +} + +// SetGrafanaPublicReadAccess sets field value +func (o *Instance) SetGrafanaPublicReadAccess(v bool) { + o.GrafanaPublicReadAccess = v +} + +// GetGrafanaUseStackitSso returns the GrafanaUseStackitSso field value +func (o *Instance) GetGrafanaUseStackitSso() bool { + if o == nil { + var ret bool + return ret + } + + return o.GrafanaUseStackitSso +} + +// GetGrafanaUseStackitSsoOk returns a tuple with the GrafanaUseStackitSso field value +// and a boolean to check if the value has been set. +func (o *Instance) GetGrafanaUseStackitSsoOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaUseStackitSso, true +} + +// SetGrafanaUseStackitSso sets field value +func (o *Instance) SetGrafanaUseStackitSso(v bool) { + o.GrafanaUseStackitSso = v +} + +// GetInstance returns the Instance field value +func (o *Instance) GetInstance() string { + if o == nil { + var ret string + return ret + } + + return o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value +// and a boolean to check if the value has been set. +func (o *Instance) GetInstanceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Instance, true +} + +// SetInstance sets field value +func (o *Instance) SetInstance(v string) { + o.Instance = v +} + +// GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +func (o *Instance) GetMetricsRetentionTime1h() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MetricsRetentionTime1h +} + +// GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value +// and a boolean to check if the value has been set. +func (o *Instance) GetMetricsRetentionTime1hOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime1h, true +} + +// SetMetricsRetentionTime1h sets field value +func (o *Instance) SetMetricsRetentionTime1h(v int32) { + o.MetricsRetentionTime1h = v +} + +// GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +func (o *Instance) GetMetricsRetentionTime5m() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MetricsRetentionTime5m +} + +// GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value +// and a boolean to check if the value has been set. +func (o *Instance) GetMetricsRetentionTime5mOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime5m, true +} + +// SetMetricsRetentionTime5m sets field value +func (o *Instance) SetMetricsRetentionTime5m(v int32) { + o.MetricsRetentionTime5m = v +} + +// GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +func (o *Instance) GetMetricsRetentionTimeRaw() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MetricsRetentionTimeRaw +} + +// GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value +// and a boolean to check if the value has been set. +func (o *Instance) GetMetricsRetentionTimeRawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTimeRaw, true +} + +// SetMetricsRetentionTimeRaw sets field value +func (o *Instance) SetMetricsRetentionTimeRaw(v int32) { + o.MetricsRetentionTimeRaw = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Instance) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Instance) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Instance) SetName(v string) { + o.Name = &v +} + +// GetPlan returns the Plan field value +func (o *Instance) GetPlan() PlanModel { + if o == nil { + var ret PlanModel + return ret + } + + return o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value +// and a boolean to check if the value has been set. +func (o *Instance) GetPlanOk() (*PlanModel, bool) { + if o == nil { + return nil, false + } + return &o.Plan, true +} + +// SetPlan sets field value +func (o *Instance) SetPlan(v PlanModel) { + o.Plan = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *Instance) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *Instance) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *Instance) SetState(v string) { + o.State = &v +} + +func (o Instance) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Instance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cluster"] = o.Cluster + toSerialize["grafanaPublicReadAccess"] = o.GrafanaPublicReadAccess + toSerialize["grafanaUseStackitSso"] = o.GrafanaUseStackitSso + toSerialize["instance"] = o.Instance + toSerialize["metricsRetentionTime1h"] = o.MetricsRetentionTime1h + toSerialize["metricsRetentionTime5m"] = o.MetricsRetentionTime5m + toSerialize["metricsRetentionTimeRaw"] = o.MetricsRetentionTimeRaw + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["plan"] = o.Plan + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + return toSerialize, nil +} + +func (o *Instance) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cluster", + "grafanaPublicReadAccess", + "grafanaUseStackitSso", + "instance", + "metricsRetentionTime1h", + "metricsRetentionTime5m", + "metricsRetentionTimeRaw", + "plan", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstance := _Instance{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInstance) + + if err != nil { + return err + } + + *o = Instance(varInstance) + + return err +} + +type NullableInstance struct { + value *Instance + isSet bool +} + +func (v NullableInstance) Get() *Instance { + return v.value +} + +func (v *NullableInstance) Set(val *Instance) { + v.value = val + v.isSet = true +} + +func (v NullableInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstance(val *Instance) *NullableInstance { + return &NullableInstance{value: val, isSet: true} +} + +func (v NullableInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_instance_response.go b/services/observability/v1api/model_instance_response.go new file mode 100644 index 000000000..238f5ceb5 --- /dev/null +++ b/services/observability/v1api/model_instance_response.go @@ -0,0 +1,157 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the InstanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceResponse{} + +// InstanceResponse struct for InstanceResponse +type InstanceResponse struct { + Message string `json:"message"` +} + +type _InstanceResponse InstanceResponse + +// NewInstanceResponse instantiates a new InstanceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInstanceResponse(message string) *InstanceResponse { + this := InstanceResponse{} + this.Message = message + return &this +} + +// NewInstanceResponseWithDefaults instantiates a new InstanceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInstanceResponseWithDefaults() *InstanceResponse { + this := InstanceResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *InstanceResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *InstanceResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *InstanceResponse) SetMessage(v string) { + o.Message = v +} + +func (o InstanceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *InstanceResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceResponse := _InstanceResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInstanceResponse) + + if err != nil { + return err + } + + *o = InstanceResponse(varInstanceResponse) + + return err +} + +type NullableInstanceResponse struct { + value *InstanceResponse + isSet bool +} + +func (v NullableInstanceResponse) Get() *InstanceResponse { + return v.value +} + +func (v *NullableInstanceResponse) Set(val *InstanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceResponse(val *InstanceResponse) *NullableInstanceResponse { + return &NullableInstanceResponse{value: val, isSet: true} +} + +func (v NullableInstanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_instance_sensitive_data.go b/services/observability/v1api/model_instance_sensitive_data.go new file mode 100644 index 000000000..f69855b6b --- /dev/null +++ b/services/observability/v1api/model_instance_sensitive_data.go @@ -0,0 +1,975 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the InstanceSensitiveData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceSensitiveData{} + +// InstanceSensitiveData struct for InstanceSensitiveData +type InstanceSensitiveData struct { + AlertingUrl string `json:"alertingUrl"` + Cluster string `json:"cluster"` + DashboardUrl string `json:"dashboardUrl"` + GrafanaAdminEnabled bool `json:"grafanaAdminEnabled"` + // Deprecated + GrafanaAdminPassword string `json:"grafanaAdminPassword"` + // Deprecated + GrafanaAdminUser string `json:"grafanaAdminUser"` + GrafanaPublicReadAccess bool `json:"grafanaPublicReadAccess"` + GrafanaUrl string `json:"grafanaUrl"` + GrafanaUseStackitSso bool `json:"grafanaUseStackitSso"` + Instance string `json:"instance"` + // Deprecated + JaegerHttpTracesUrl *string `json:"jaegerHttpTracesUrl,omitempty"` + JaegerHttpUrl string `json:"jaegerHttpUrl"` + JaegerTracesUrl string `json:"jaegerTracesUrl"` + JaegerUiUrl string `json:"jaegerUiUrl"` + LogsPushUrl string `json:"logsPushUrl"` + LogsUrl string `json:"logsUrl"` + MetricsEndpointUrl string `json:"metricsEndpointUrl"` + MetricsRetentionTime1h int32 `json:"metricsRetentionTime1h"` + MetricsRetentionTime5m int32 `json:"metricsRetentionTime5m"` + MetricsRetentionTimeRaw int32 `json:"metricsRetentionTimeRaw"` + MetricsUrl string `json:"metricsUrl"` + Name *string `json:"name,omitempty"` + OtlpGrpcTracesUrl string `json:"otlpGrpcTracesUrl"` + OtlpHttpTracesUrl string `json:"otlpHttpTracesUrl"` + OtlpTracesUrl string `json:"otlpTracesUrl"` + Plan PlanModel `json:"plan"` + PushMetricsUrl string `json:"pushMetricsUrl"` + TargetsUrl string `json:"targetsUrl"` + ZipkinSpansUrl string `json:"zipkinSpansUrl"` +} + +type _InstanceSensitiveData InstanceSensitiveData + +// NewInstanceSensitiveData instantiates a new InstanceSensitiveData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInstanceSensitiveData(alertingUrl string, cluster string, dashboardUrl string, grafanaAdminEnabled bool, grafanaAdminPassword string, grafanaAdminUser string, grafanaPublicReadAccess bool, grafanaUrl string, grafanaUseStackitSso bool, instance string, jaegerHttpUrl string, jaegerTracesUrl string, jaegerUiUrl string, logsPushUrl string, logsUrl string, metricsEndpointUrl string, metricsRetentionTime1h int32, metricsRetentionTime5m int32, metricsRetentionTimeRaw int32, metricsUrl string, otlpGrpcTracesUrl string, otlpHttpTracesUrl string, otlpTracesUrl string, plan PlanModel, pushMetricsUrl string, targetsUrl string, zipkinSpansUrl string) *InstanceSensitiveData { + this := InstanceSensitiveData{} + this.AlertingUrl = alertingUrl + this.Cluster = cluster + this.DashboardUrl = dashboardUrl + this.GrafanaAdminEnabled = grafanaAdminEnabled + this.GrafanaAdminPassword = grafanaAdminPassword + this.GrafanaAdminUser = grafanaAdminUser + this.GrafanaPublicReadAccess = grafanaPublicReadAccess + this.GrafanaUrl = grafanaUrl + this.GrafanaUseStackitSso = grafanaUseStackitSso + this.Instance = instance + this.JaegerHttpUrl = jaegerHttpUrl + this.JaegerTracesUrl = jaegerTracesUrl + this.JaegerUiUrl = jaegerUiUrl + this.LogsPushUrl = logsPushUrl + this.LogsUrl = logsUrl + this.MetricsEndpointUrl = metricsEndpointUrl + this.MetricsRetentionTime1h = metricsRetentionTime1h + this.MetricsRetentionTime5m = metricsRetentionTime5m + this.MetricsRetentionTimeRaw = metricsRetentionTimeRaw + this.MetricsUrl = metricsUrl + var name string = "" + this.Name = &name + this.OtlpGrpcTracesUrl = otlpGrpcTracesUrl + this.OtlpHttpTracesUrl = otlpHttpTracesUrl + this.OtlpTracesUrl = otlpTracesUrl + this.Plan = plan + this.PushMetricsUrl = pushMetricsUrl + this.TargetsUrl = targetsUrl + this.ZipkinSpansUrl = zipkinSpansUrl + return &this +} + +// NewInstanceSensitiveDataWithDefaults instantiates a new InstanceSensitiveData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInstanceSensitiveDataWithDefaults() *InstanceSensitiveData { + this := InstanceSensitiveData{} + var grafanaAdminEnabled bool = true + this.GrafanaAdminEnabled = grafanaAdminEnabled + var name string = "" + this.Name = &name + return &this +} + +// GetAlertingUrl returns the AlertingUrl field value +func (o *InstanceSensitiveData) GetAlertingUrl() string { + if o == nil { + var ret string + return ret + } + + return o.AlertingUrl +} + +// GetAlertingUrlOk returns a tuple with the AlertingUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetAlertingUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AlertingUrl, true +} + +// SetAlertingUrl sets field value +func (o *InstanceSensitiveData) SetAlertingUrl(v string) { + o.AlertingUrl = v +} + +// GetCluster returns the Cluster field value +func (o *InstanceSensitiveData) GetCluster() string { + if o == nil { + var ret string + return ret + } + + return o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetClusterOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cluster, true +} + +// SetCluster sets field value +func (o *InstanceSensitiveData) SetCluster(v string) { + o.Cluster = v +} + +// GetDashboardUrl returns the DashboardUrl field value +func (o *InstanceSensitiveData) GetDashboardUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DashboardUrl +} + +// GetDashboardUrlOk returns a tuple with the DashboardUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetDashboardUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DashboardUrl, true +} + +// SetDashboardUrl sets field value +func (o *InstanceSensitiveData) SetDashboardUrl(v string) { + o.DashboardUrl = v +} + +// GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value +func (o *InstanceSensitiveData) GetGrafanaAdminEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.GrafanaAdminEnabled +} + +// GetGrafanaAdminEnabledOk returns a tuple with the GrafanaAdminEnabled field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetGrafanaAdminEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaAdminEnabled, true +} + +// SetGrafanaAdminEnabled sets field value +func (o *InstanceSensitiveData) SetGrafanaAdminEnabled(v bool) { + o.GrafanaAdminEnabled = v +} + +// GetGrafanaAdminPassword returns the GrafanaAdminPassword field value +// Deprecated +func (o *InstanceSensitiveData) GetGrafanaAdminPassword() string { + if o == nil { + var ret string + return ret + } + + return o.GrafanaAdminPassword +} + +// GetGrafanaAdminPasswordOk returns a tuple with the GrafanaAdminPassword field value +// and a boolean to check if the value has been set. +// Deprecated +func (o *InstanceSensitiveData) GetGrafanaAdminPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaAdminPassword, true +} + +// SetGrafanaAdminPassword sets field value +// Deprecated +func (o *InstanceSensitiveData) SetGrafanaAdminPassword(v string) { + o.GrafanaAdminPassword = v +} + +// GetGrafanaAdminUser returns the GrafanaAdminUser field value +// Deprecated +func (o *InstanceSensitiveData) GetGrafanaAdminUser() string { + if o == nil { + var ret string + return ret + } + + return o.GrafanaAdminUser +} + +// GetGrafanaAdminUserOk returns a tuple with the GrafanaAdminUser field value +// and a boolean to check if the value has been set. +// Deprecated +func (o *InstanceSensitiveData) GetGrafanaAdminUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaAdminUser, true +} + +// SetGrafanaAdminUser sets field value +// Deprecated +func (o *InstanceSensitiveData) SetGrafanaAdminUser(v string) { + o.GrafanaAdminUser = v +} + +// GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value +func (o *InstanceSensitiveData) GetGrafanaPublicReadAccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.GrafanaPublicReadAccess +} + +// GetGrafanaPublicReadAccessOk returns a tuple with the GrafanaPublicReadAccess field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetGrafanaPublicReadAccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaPublicReadAccess, true +} + +// SetGrafanaPublicReadAccess sets field value +func (o *InstanceSensitiveData) SetGrafanaPublicReadAccess(v bool) { + o.GrafanaPublicReadAccess = v +} + +// GetGrafanaUrl returns the GrafanaUrl field value +func (o *InstanceSensitiveData) GetGrafanaUrl() string { + if o == nil { + var ret string + return ret + } + + return o.GrafanaUrl +} + +// GetGrafanaUrlOk returns a tuple with the GrafanaUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetGrafanaUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaUrl, true +} + +// SetGrafanaUrl sets field value +func (o *InstanceSensitiveData) SetGrafanaUrl(v string) { + o.GrafanaUrl = v +} + +// GetGrafanaUseStackitSso returns the GrafanaUseStackitSso field value +func (o *InstanceSensitiveData) GetGrafanaUseStackitSso() bool { + if o == nil { + var ret bool + return ret + } + + return o.GrafanaUseStackitSso +} + +// GetGrafanaUseStackitSsoOk returns a tuple with the GrafanaUseStackitSso field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetGrafanaUseStackitSsoOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaUseStackitSso, true +} + +// SetGrafanaUseStackitSso sets field value +func (o *InstanceSensitiveData) SetGrafanaUseStackitSso(v bool) { + o.GrafanaUseStackitSso = v +} + +// GetInstance returns the Instance field value +func (o *InstanceSensitiveData) GetInstance() string { + if o == nil { + var ret string + return ret + } + + return o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetInstanceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Instance, true +} + +// SetInstance sets field value +func (o *InstanceSensitiveData) SetInstance(v string) { + o.Instance = v +} + +// GetJaegerHttpTracesUrl returns the JaegerHttpTracesUrl field value if set, zero value otherwise. +// Deprecated +func (o *InstanceSensitiveData) GetJaegerHttpTracesUrl() string { + if o == nil || IsNil(o.JaegerHttpTracesUrl) { + var ret string + return ret + } + return *o.JaegerHttpTracesUrl +} + +// GetJaegerHttpTracesUrlOk returns a tuple with the JaegerHttpTracesUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *InstanceSensitiveData) GetJaegerHttpTracesUrlOk() (*string, bool) { + if o == nil || IsNil(o.JaegerHttpTracesUrl) { + return nil, false + } + return o.JaegerHttpTracesUrl, true +} + +// HasJaegerHttpTracesUrl returns a boolean if a field has been set. +func (o *InstanceSensitiveData) HasJaegerHttpTracesUrl() bool { + if o != nil && !IsNil(o.JaegerHttpTracesUrl) { + return true + } + + return false +} + +// SetJaegerHttpTracesUrl gets a reference to the given string and assigns it to the JaegerHttpTracesUrl field. +// Deprecated +func (o *InstanceSensitiveData) SetJaegerHttpTracesUrl(v string) { + o.JaegerHttpTracesUrl = &v +} + +// GetJaegerHttpUrl returns the JaegerHttpUrl field value +func (o *InstanceSensitiveData) GetJaegerHttpUrl() string { + if o == nil { + var ret string + return ret + } + + return o.JaegerHttpUrl +} + +// GetJaegerHttpUrlOk returns a tuple with the JaegerHttpUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetJaegerHttpUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JaegerHttpUrl, true +} + +// SetJaegerHttpUrl sets field value +func (o *InstanceSensitiveData) SetJaegerHttpUrl(v string) { + o.JaegerHttpUrl = v +} + +// GetJaegerTracesUrl returns the JaegerTracesUrl field value +func (o *InstanceSensitiveData) GetJaegerTracesUrl() string { + if o == nil { + var ret string + return ret + } + + return o.JaegerTracesUrl +} + +// GetJaegerTracesUrlOk returns a tuple with the JaegerTracesUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetJaegerTracesUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JaegerTracesUrl, true +} + +// SetJaegerTracesUrl sets field value +func (o *InstanceSensitiveData) SetJaegerTracesUrl(v string) { + o.JaegerTracesUrl = v +} + +// GetJaegerUiUrl returns the JaegerUiUrl field value +func (o *InstanceSensitiveData) GetJaegerUiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.JaegerUiUrl +} + +// GetJaegerUiUrlOk returns a tuple with the JaegerUiUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetJaegerUiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JaegerUiUrl, true +} + +// SetJaegerUiUrl sets field value +func (o *InstanceSensitiveData) SetJaegerUiUrl(v string) { + o.JaegerUiUrl = v +} + +// GetLogsPushUrl returns the LogsPushUrl field value +func (o *InstanceSensitiveData) GetLogsPushUrl() string { + if o == nil { + var ret string + return ret + } + + return o.LogsPushUrl +} + +// GetLogsPushUrlOk returns a tuple with the LogsPushUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetLogsPushUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsPushUrl, true +} + +// SetLogsPushUrl sets field value +func (o *InstanceSensitiveData) SetLogsPushUrl(v string) { + o.LogsPushUrl = v +} + +// GetLogsUrl returns the LogsUrl field value +func (o *InstanceSensitiveData) GetLogsUrl() string { + if o == nil { + var ret string + return ret + } + + return o.LogsUrl +} + +// GetLogsUrlOk returns a tuple with the LogsUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetLogsUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LogsUrl, true +} + +// SetLogsUrl sets field value +func (o *InstanceSensitiveData) SetLogsUrl(v string) { + o.LogsUrl = v +} + +// GetMetricsEndpointUrl returns the MetricsEndpointUrl field value +func (o *InstanceSensitiveData) GetMetricsEndpointUrl() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsEndpointUrl +} + +// GetMetricsEndpointUrlOk returns a tuple with the MetricsEndpointUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetMetricsEndpointUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsEndpointUrl, true +} + +// SetMetricsEndpointUrl sets field value +func (o *InstanceSensitiveData) SetMetricsEndpointUrl(v string) { + o.MetricsEndpointUrl = v +} + +// GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +func (o *InstanceSensitiveData) GetMetricsRetentionTime1h() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MetricsRetentionTime1h +} + +// GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetMetricsRetentionTime1hOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime1h, true +} + +// SetMetricsRetentionTime1h sets field value +func (o *InstanceSensitiveData) SetMetricsRetentionTime1h(v int32) { + o.MetricsRetentionTime1h = v +} + +// GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +func (o *InstanceSensitiveData) GetMetricsRetentionTime5m() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MetricsRetentionTime5m +} + +// GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetMetricsRetentionTime5mOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime5m, true +} + +// SetMetricsRetentionTime5m sets field value +func (o *InstanceSensitiveData) SetMetricsRetentionTime5m(v int32) { + o.MetricsRetentionTime5m = v +} + +// GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +func (o *InstanceSensitiveData) GetMetricsRetentionTimeRaw() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MetricsRetentionTimeRaw +} + +// GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetMetricsRetentionTimeRawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTimeRaw, true +} + +// SetMetricsRetentionTimeRaw sets field value +func (o *InstanceSensitiveData) SetMetricsRetentionTimeRaw(v int32) { + o.MetricsRetentionTimeRaw = v +} + +// GetMetricsUrl returns the MetricsUrl field value +func (o *InstanceSensitiveData) GetMetricsUrl() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsUrl +} + +// GetMetricsUrlOk returns a tuple with the MetricsUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetMetricsUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsUrl, true +} + +// SetMetricsUrl sets field value +func (o *InstanceSensitiveData) SetMetricsUrl(v string) { + o.MetricsUrl = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *InstanceSensitiveData) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *InstanceSensitiveData) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *InstanceSensitiveData) SetName(v string) { + o.Name = &v +} + +// GetOtlpGrpcTracesUrl returns the OtlpGrpcTracesUrl field value +func (o *InstanceSensitiveData) GetOtlpGrpcTracesUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OtlpGrpcTracesUrl +} + +// GetOtlpGrpcTracesUrlOk returns a tuple with the OtlpGrpcTracesUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetOtlpGrpcTracesUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OtlpGrpcTracesUrl, true +} + +// SetOtlpGrpcTracesUrl sets field value +func (o *InstanceSensitiveData) SetOtlpGrpcTracesUrl(v string) { + o.OtlpGrpcTracesUrl = v +} + +// GetOtlpHttpTracesUrl returns the OtlpHttpTracesUrl field value +func (o *InstanceSensitiveData) GetOtlpHttpTracesUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OtlpHttpTracesUrl +} + +// GetOtlpHttpTracesUrlOk returns a tuple with the OtlpHttpTracesUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetOtlpHttpTracesUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OtlpHttpTracesUrl, true +} + +// SetOtlpHttpTracesUrl sets field value +func (o *InstanceSensitiveData) SetOtlpHttpTracesUrl(v string) { + o.OtlpHttpTracesUrl = v +} + +// GetOtlpTracesUrl returns the OtlpTracesUrl field value +func (o *InstanceSensitiveData) GetOtlpTracesUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OtlpTracesUrl +} + +// GetOtlpTracesUrlOk returns a tuple with the OtlpTracesUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetOtlpTracesUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OtlpTracesUrl, true +} + +// SetOtlpTracesUrl sets field value +func (o *InstanceSensitiveData) SetOtlpTracesUrl(v string) { + o.OtlpTracesUrl = v +} + +// GetPlan returns the Plan field value +func (o *InstanceSensitiveData) GetPlan() PlanModel { + if o == nil { + var ret PlanModel + return ret + } + + return o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetPlanOk() (*PlanModel, bool) { + if o == nil { + return nil, false + } + return &o.Plan, true +} + +// SetPlan sets field value +func (o *InstanceSensitiveData) SetPlan(v PlanModel) { + o.Plan = v +} + +// GetPushMetricsUrl returns the PushMetricsUrl field value +func (o *InstanceSensitiveData) GetPushMetricsUrl() string { + if o == nil { + var ret string + return ret + } + + return o.PushMetricsUrl +} + +// GetPushMetricsUrlOk returns a tuple with the PushMetricsUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetPushMetricsUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PushMetricsUrl, true +} + +// SetPushMetricsUrl sets field value +func (o *InstanceSensitiveData) SetPushMetricsUrl(v string) { + o.PushMetricsUrl = v +} + +// GetTargetsUrl returns the TargetsUrl field value +func (o *InstanceSensitiveData) GetTargetsUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TargetsUrl +} + +// GetTargetsUrlOk returns a tuple with the TargetsUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetTargetsUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TargetsUrl, true +} + +// SetTargetsUrl sets field value +func (o *InstanceSensitiveData) SetTargetsUrl(v string) { + o.TargetsUrl = v +} + +// GetZipkinSpansUrl returns the ZipkinSpansUrl field value +func (o *InstanceSensitiveData) GetZipkinSpansUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ZipkinSpansUrl +} + +// GetZipkinSpansUrlOk returns a tuple with the ZipkinSpansUrl field value +// and a boolean to check if the value has been set. +func (o *InstanceSensitiveData) GetZipkinSpansUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ZipkinSpansUrl, true +} + +// SetZipkinSpansUrl sets field value +func (o *InstanceSensitiveData) SetZipkinSpansUrl(v string) { + o.ZipkinSpansUrl = v +} + +func (o InstanceSensitiveData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceSensitiveData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alertingUrl"] = o.AlertingUrl + toSerialize["cluster"] = o.Cluster + toSerialize["dashboardUrl"] = o.DashboardUrl + toSerialize["grafanaAdminEnabled"] = o.GrafanaAdminEnabled + toSerialize["grafanaAdminPassword"] = o.GrafanaAdminPassword + toSerialize["grafanaAdminUser"] = o.GrafanaAdminUser + toSerialize["grafanaPublicReadAccess"] = o.GrafanaPublicReadAccess + toSerialize["grafanaUrl"] = o.GrafanaUrl + toSerialize["grafanaUseStackitSso"] = o.GrafanaUseStackitSso + toSerialize["instance"] = o.Instance + if !IsNil(o.JaegerHttpTracesUrl) { + toSerialize["jaegerHttpTracesUrl"] = o.JaegerHttpTracesUrl + } + toSerialize["jaegerHttpUrl"] = o.JaegerHttpUrl + toSerialize["jaegerTracesUrl"] = o.JaegerTracesUrl + toSerialize["jaegerUiUrl"] = o.JaegerUiUrl + toSerialize["logsPushUrl"] = o.LogsPushUrl + toSerialize["logsUrl"] = o.LogsUrl + toSerialize["metricsEndpointUrl"] = o.MetricsEndpointUrl + toSerialize["metricsRetentionTime1h"] = o.MetricsRetentionTime1h + toSerialize["metricsRetentionTime5m"] = o.MetricsRetentionTime5m + toSerialize["metricsRetentionTimeRaw"] = o.MetricsRetentionTimeRaw + toSerialize["metricsUrl"] = o.MetricsUrl + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["otlpGrpcTracesUrl"] = o.OtlpGrpcTracesUrl + toSerialize["otlpHttpTracesUrl"] = o.OtlpHttpTracesUrl + toSerialize["otlpTracesUrl"] = o.OtlpTracesUrl + toSerialize["plan"] = o.Plan + toSerialize["pushMetricsUrl"] = o.PushMetricsUrl + toSerialize["targetsUrl"] = o.TargetsUrl + toSerialize["zipkinSpansUrl"] = o.ZipkinSpansUrl + return toSerialize, nil +} + +func (o *InstanceSensitiveData) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alertingUrl", + "cluster", + "dashboardUrl", + "grafanaAdminEnabled", + "grafanaAdminPassword", + "grafanaAdminUser", + "grafanaPublicReadAccess", + "grafanaUrl", + "grafanaUseStackitSso", + "instance", + "jaegerHttpUrl", + "jaegerTracesUrl", + "jaegerUiUrl", + "logsPushUrl", + "logsUrl", + "metricsEndpointUrl", + "metricsRetentionTime1h", + "metricsRetentionTime5m", + "metricsRetentionTimeRaw", + "metricsUrl", + "otlpGrpcTracesUrl", + "otlpHttpTracesUrl", + "otlpTracesUrl", + "plan", + "pushMetricsUrl", + "targetsUrl", + "zipkinSpansUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceSensitiveData := _InstanceSensitiveData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInstanceSensitiveData) + + if err != nil { + return err + } + + *o = InstanceSensitiveData(varInstanceSensitiveData) + + return err +} + +type NullableInstanceSensitiveData struct { + value *InstanceSensitiveData + isSet bool +} + +func (v NullableInstanceSensitiveData) Get() *InstanceSensitiveData { + return v.value +} + +func (v *NullableInstanceSensitiveData) Set(val *InstanceSensitiveData) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceSensitiveData) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceSensitiveData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceSensitiveData(val *InstanceSensitiveData) *NullableInstanceSensitiveData { + return &NullableInstanceSensitiveData{value: val, isSet: true} +} + +func (v NullableInstanceSensitiveData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceSensitiveData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_job.go b/services/observability/v1api/model_job.go new file mode 100644 index 000000000..61ba92f06 --- /dev/null +++ b/services/observability/v1api/model_job.go @@ -0,0 +1,689 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Job type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Job{} + +// Job struct for Job +type Job struct { + BasicAuth *BasicAuth `json:"basicAuth,omitempty"` + BearerToken *string `json:"bearerToken,omitempty"` + HonorLabels *bool `json:"honorLabels,omitempty"` + HonorTimeStamps *bool `json:"honorTimeStamps,omitempty"` + HttpSdConfigs []HTTPServiceSD `json:"httpSdConfigs,omitempty"` + JobName string `json:"jobName"` + MetricsPath *string `json:"metricsPath,omitempty"` + MetricsRelabelConfigs []MetricsRelabelConfig `json:"metricsRelabelConfigs,omitempty"` + Oauth2 *OAuth2 `json:"oauth2,omitempty"` + Params *map[string][]string `json:"params,omitempty"` + SampleLimit *int32 `json:"sampleLimit,omitempty"` + Scheme *string `json:"scheme,omitempty"` + ScrapeInterval string `json:"scrapeInterval"` + ScrapeTimeout string `json:"scrapeTimeout"` + StaticConfigs []StaticConfigs `json:"staticConfigs"` + TlsConfig *TLSConfig `json:"tlsConfig,omitempty"` +} + +type _Job Job + +// NewJob instantiates a new Job object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJob(jobName string, scrapeInterval string, scrapeTimeout string, staticConfigs []StaticConfigs) *Job { + this := Job{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + this.JobName = jobName + var metricsPath string = "/metrics" + this.MetricsPath = &metricsPath + var scheme string = "http" + this.Scheme = &scheme + this.ScrapeInterval = scrapeInterval + this.ScrapeTimeout = scrapeTimeout + this.StaticConfigs = staticConfigs + return &this +} + +// NewJobWithDefaults instantiates a new Job object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJobWithDefaults() *Job { + this := Job{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + var metricsPath string = "/metrics" + this.MetricsPath = &metricsPath + var scheme string = "http" + this.Scheme = &scheme + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *Job) GetBasicAuth() BasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret BasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetBasicAuthOk() (*BasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *Job) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given BasicAuth and assigns it to the BasicAuth field. +func (o *Job) SetBasicAuth(v BasicAuth) { + o.BasicAuth = &v +} + +// GetBearerToken returns the BearerToken field value if set, zero value otherwise. +func (o *Job) GetBearerToken() string { + if o == nil || IsNil(o.BearerToken) { + var ret string + return ret + } + return *o.BearerToken +} + +// GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetBearerTokenOk() (*string, bool) { + if o == nil || IsNil(o.BearerToken) { + return nil, false + } + return o.BearerToken, true +} + +// HasBearerToken returns a boolean if a field has been set. +func (o *Job) HasBearerToken() bool { + if o != nil && !IsNil(o.BearerToken) { + return true + } + + return false +} + +// SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +func (o *Job) SetBearerToken(v string) { + o.BearerToken = &v +} + +// GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +func (o *Job) GetHonorLabels() bool { + if o == nil || IsNil(o.HonorLabels) { + var ret bool + return ret + } + return *o.HonorLabels +} + +// GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetHonorLabelsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorLabels) { + return nil, false + } + return o.HonorLabels, true +} + +// HasHonorLabels returns a boolean if a field has been set. +func (o *Job) HasHonorLabels() bool { + if o != nil && !IsNil(o.HonorLabels) { + return true + } + + return false +} + +// SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +func (o *Job) SetHonorLabels(v bool) { + o.HonorLabels = &v +} + +// GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +func (o *Job) GetHonorTimeStamps() bool { + if o == nil || IsNil(o.HonorTimeStamps) { + var ret bool + return ret + } + return *o.HonorTimeStamps +} + +// GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetHonorTimeStampsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorTimeStamps) { + return nil, false + } + return o.HonorTimeStamps, true +} + +// HasHonorTimeStamps returns a boolean if a field has been set. +func (o *Job) HasHonorTimeStamps() bool { + if o != nil && !IsNil(o.HonorTimeStamps) { + return true + } + + return false +} + +// SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +func (o *Job) SetHonorTimeStamps(v bool) { + o.HonorTimeStamps = &v +} + +// GetHttpSdConfigs returns the HttpSdConfigs field value if set, zero value otherwise. +func (o *Job) GetHttpSdConfigs() []HTTPServiceSD { + if o == nil || IsNil(o.HttpSdConfigs) { + var ret []HTTPServiceSD + return ret + } + return o.HttpSdConfigs +} + +// GetHttpSdConfigsOk returns a tuple with the HttpSdConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetHttpSdConfigsOk() ([]HTTPServiceSD, bool) { + if o == nil || IsNil(o.HttpSdConfigs) { + return nil, false + } + return o.HttpSdConfigs, true +} + +// HasHttpSdConfigs returns a boolean if a field has been set. +func (o *Job) HasHttpSdConfigs() bool { + if o != nil && !IsNil(o.HttpSdConfigs) { + return true + } + + return false +} + +// SetHttpSdConfigs gets a reference to the given []HTTPServiceSD and assigns it to the HttpSdConfigs field. +func (o *Job) SetHttpSdConfigs(v []HTTPServiceSD) { + o.HttpSdConfigs = v +} + +// GetJobName returns the JobName field value +func (o *Job) GetJobName() string { + if o == nil { + var ret string + return ret + } + + return o.JobName +} + +// GetJobNameOk returns a tuple with the JobName field value +// and a boolean to check if the value has been set. +func (o *Job) GetJobNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobName, true +} + +// SetJobName sets field value +func (o *Job) SetJobName(v string) { + o.JobName = v +} + +// GetMetricsPath returns the MetricsPath field value if set, zero value otherwise. +func (o *Job) GetMetricsPath() string { + if o == nil || IsNil(o.MetricsPath) { + var ret string + return ret + } + return *o.MetricsPath +} + +// GetMetricsPathOk returns a tuple with the MetricsPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetMetricsPathOk() (*string, bool) { + if o == nil || IsNil(o.MetricsPath) { + return nil, false + } + return o.MetricsPath, true +} + +// HasMetricsPath returns a boolean if a field has been set. +func (o *Job) HasMetricsPath() bool { + if o != nil && !IsNil(o.MetricsPath) { + return true + } + + return false +} + +// SetMetricsPath gets a reference to the given string and assigns it to the MetricsPath field. +func (o *Job) SetMetricsPath(v string) { + o.MetricsPath = &v +} + +// GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +func (o *Job) GetMetricsRelabelConfigs() []MetricsRelabelConfig { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + var ret []MetricsRelabelConfig + return ret + } + return o.MetricsRelabelConfigs +} + +// GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetMetricsRelabelConfigsOk() ([]MetricsRelabelConfig, bool) { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + return nil, false + } + return o.MetricsRelabelConfigs, true +} + +// HasMetricsRelabelConfigs returns a boolean if a field has been set. +func (o *Job) HasMetricsRelabelConfigs() bool { + if o != nil && !IsNil(o.MetricsRelabelConfigs) { + return true + } + + return false +} + +// SetMetricsRelabelConfigs gets a reference to the given []MetricsRelabelConfig and assigns it to the MetricsRelabelConfigs field. +func (o *Job) SetMetricsRelabelConfigs(v []MetricsRelabelConfig) { + o.MetricsRelabelConfigs = v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *Job) GetOauth2() OAuth2 { + if o == nil || IsNil(o.Oauth2) { + var ret OAuth2 + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetOauth2Ok() (*OAuth2, bool) { + if o == nil || IsNil(o.Oauth2) { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *Job) HasOauth2() bool { + if o != nil && !IsNil(o.Oauth2) { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given OAuth2 and assigns it to the Oauth2 field. +func (o *Job) SetOauth2(v OAuth2) { + o.Oauth2 = &v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *Job) GetParams() map[string][]string { + if o == nil || IsNil(o.Params) { + var ret map[string][]string + return ret + } + return *o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetParamsOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *Job) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given map[string][]string and assigns it to the Params field. +func (o *Job) SetParams(v map[string][]string) { + o.Params = &v +} + +// GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +func (o *Job) GetSampleLimit() int32 { + if o == nil || IsNil(o.SampleLimit) { + var ret int32 + return ret + } + return *o.SampleLimit +} + +// GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetSampleLimitOk() (*int32, bool) { + if o == nil || IsNil(o.SampleLimit) { + return nil, false + } + return o.SampleLimit, true +} + +// HasSampleLimit returns a boolean if a field has been set. +func (o *Job) HasSampleLimit() bool { + if o != nil && !IsNil(o.SampleLimit) { + return true + } + + return false +} + +// SetSampleLimit gets a reference to the given int32 and assigns it to the SampleLimit field. +func (o *Job) SetSampleLimit(v int32) { + o.SampleLimit = &v +} + +// GetScheme returns the Scheme field value if set, zero value otherwise. +func (o *Job) GetScheme() string { + if o == nil || IsNil(o.Scheme) { + var ret string + return ret + } + return *o.Scheme +} + +// GetSchemeOk returns a tuple with the Scheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetSchemeOk() (*string, bool) { + if o == nil || IsNil(o.Scheme) { + return nil, false + } + return o.Scheme, true +} + +// HasScheme returns a boolean if a field has been set. +func (o *Job) HasScheme() bool { + if o != nil && !IsNil(o.Scheme) { + return true + } + + return false +} + +// SetScheme gets a reference to the given string and assigns it to the Scheme field. +func (o *Job) SetScheme(v string) { + o.Scheme = &v +} + +// GetScrapeInterval returns the ScrapeInterval field value +func (o *Job) GetScrapeInterval() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeInterval +} + +// GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value +// and a boolean to check if the value has been set. +func (o *Job) GetScrapeIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeInterval, true +} + +// SetScrapeInterval sets field value +func (o *Job) SetScrapeInterval(v string) { + o.ScrapeInterval = v +} + +// GetScrapeTimeout returns the ScrapeTimeout field value +func (o *Job) GetScrapeTimeout() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeTimeout +} + +// GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value +// and a boolean to check if the value has been set. +func (o *Job) GetScrapeTimeoutOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeTimeout, true +} + +// SetScrapeTimeout sets field value +func (o *Job) SetScrapeTimeout(v string) { + o.ScrapeTimeout = v +} + +// GetStaticConfigs returns the StaticConfigs field value +func (o *Job) GetStaticConfigs() []StaticConfigs { + if o == nil { + var ret []StaticConfigs + return ret + } + + return o.StaticConfigs +} + +// GetStaticConfigsOk returns a tuple with the StaticConfigs field value +// and a boolean to check if the value has been set. +func (o *Job) GetStaticConfigsOk() ([]StaticConfigs, bool) { + if o == nil { + return nil, false + } + return o.StaticConfigs, true +} + +// SetStaticConfigs sets field value +func (o *Job) SetStaticConfigs(v []StaticConfigs) { + o.StaticConfigs = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *Job) GetTlsConfig() TLSConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret TLSConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetTlsConfigOk() (*TLSConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *Job) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given TLSConfig and assigns it to the TlsConfig field. +func (o *Job) SetTlsConfig(v TLSConfig) { + o.TlsConfig = &v +} + +func (o Job) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Job) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.BearerToken) { + toSerialize["bearerToken"] = o.BearerToken + } + if !IsNil(o.HonorLabels) { + toSerialize["honorLabels"] = o.HonorLabels + } + if !IsNil(o.HonorTimeStamps) { + toSerialize["honorTimeStamps"] = o.HonorTimeStamps + } + if !IsNil(o.HttpSdConfigs) { + toSerialize["httpSdConfigs"] = o.HttpSdConfigs + } + toSerialize["jobName"] = o.JobName + if !IsNil(o.MetricsPath) { + toSerialize["metricsPath"] = o.MetricsPath + } + if !IsNil(o.MetricsRelabelConfigs) { + toSerialize["metricsRelabelConfigs"] = o.MetricsRelabelConfigs + } + if !IsNil(o.Oauth2) { + toSerialize["oauth2"] = o.Oauth2 + } + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + if !IsNil(o.SampleLimit) { + toSerialize["sampleLimit"] = o.SampleLimit + } + if !IsNil(o.Scheme) { + toSerialize["scheme"] = o.Scheme + } + toSerialize["scrapeInterval"] = o.ScrapeInterval + toSerialize["scrapeTimeout"] = o.ScrapeTimeout + toSerialize["staticConfigs"] = o.StaticConfigs + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + return toSerialize, nil +} + +func (o *Job) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "jobName", + "scrapeInterval", + "scrapeTimeout", + "staticConfigs", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varJob := _Job{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varJob) + + if err != nil { + return err + } + + *o = Job(varJob) + + return err +} + +type NullableJob struct { + value *Job + isSet bool +} + +func (v NullableJob) Get() *Job { + return v.value +} + +func (v *NullableJob) Set(val *Job) { + v.value = val + v.isSet = true +} + +func (v NullableJob) IsSet() bool { + return v.isSet +} + +func (v *NullableJob) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJob(val *Job) *NullableJob { + return &NullableJob{value: val, isSet: true} +} + +func (v NullableJob) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJob) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_list_acl_response.go b/services/observability/v1api/model_list_acl_response.go new file mode 100644 index 000000000..b942ab7e7 --- /dev/null +++ b/services/observability/v1api/model_list_acl_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListACLResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListACLResponse{} + +// ListACLResponse struct for ListACLResponse +type ListACLResponse struct { + Acl []string `json:"acl"` + Message string `json:"message"` +} + +type _ListACLResponse ListACLResponse + +// NewListACLResponse instantiates a new ListACLResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListACLResponse(acl []string, message string) *ListACLResponse { + this := ListACLResponse{} + this.Acl = acl + this.Message = message + return &this +} + +// NewListACLResponseWithDefaults instantiates a new ListACLResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListACLResponseWithDefaults() *ListACLResponse { + this := ListACLResponse{} + return &this +} + +// GetAcl returns the Acl field value +func (o *ListACLResponse) GetAcl() []string { + if o == nil { + var ret []string + return ret + } + + return o.Acl +} + +// GetAclOk returns a tuple with the Acl field value +// and a boolean to check if the value has been set. +func (o *ListACLResponse) GetAclOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Acl, true +} + +// SetAcl sets field value +func (o *ListACLResponse) SetAcl(v []string) { + o.Acl = v +} + +// GetMessage returns the Message field value +func (o *ListACLResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ListACLResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ListACLResponse) SetMessage(v string) { + o.Message = v +} + +func (o ListACLResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListACLResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["acl"] = o.Acl + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *ListACLResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "acl", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListACLResponse := _ListACLResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListACLResponse) + + if err != nil { + return err + } + + *o = ListACLResponse(varListACLResponse) + + return err +} + +type NullableListACLResponse struct { + value *ListACLResponse + isSet bool +} + +func (v NullableListACLResponse) Get() *ListACLResponse { + return v.value +} + +func (v *NullableListACLResponse) Set(val *ListACLResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListACLResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListACLResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListACLResponse(val *ListACLResponse) *NullableListACLResponse { + return &NullableListACLResponse{value: val, isSet: true} +} + +func (v NullableListACLResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListACLResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_list_credentials_response.go b/services/observability/v1api/model_list_credentials_response.go new file mode 100644 index 000000000..db6eeb5fc --- /dev/null +++ b/services/observability/v1api/model_list_credentials_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListCredentialsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListCredentialsResponse{} + +// ListCredentialsResponse struct for ListCredentialsResponse +type ListCredentialsResponse struct { + Credentials []ServiceKeysList `json:"credentials"` + Message string `json:"message"` +} + +type _ListCredentialsResponse ListCredentialsResponse + +// NewListCredentialsResponse instantiates a new ListCredentialsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListCredentialsResponse(credentials []ServiceKeysList, message string) *ListCredentialsResponse { + this := ListCredentialsResponse{} + this.Credentials = credentials + this.Message = message + return &this +} + +// NewListCredentialsResponseWithDefaults instantiates a new ListCredentialsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { + this := ListCredentialsResponse{} + return &this +} + +// GetCredentials returns the Credentials field value +func (o *ListCredentialsResponse) GetCredentials() []ServiceKeysList { + if o == nil { + var ret []ServiceKeysList + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +func (o *ListCredentialsResponse) GetCredentialsOk() ([]ServiceKeysList, bool) { + if o == nil { + return nil, false + } + return o.Credentials, true +} + +// SetCredentials sets field value +func (o *ListCredentialsResponse) SetCredentials(v []ServiceKeysList) { + o.Credentials = v +} + +// GetMessage returns the Message field value +func (o *ListCredentialsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ListCredentialsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ListCredentialsResponse) SetMessage(v string) { + o.Message = v +} + +func (o ListCredentialsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentials"] = o.Credentials + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *ListCredentialsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "credentials", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListCredentialsResponse := _ListCredentialsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListCredentialsResponse) + + if err != nil { + return err + } + + *o = ListCredentialsResponse(varListCredentialsResponse) + + return err +} + +type NullableListCredentialsResponse struct { + value *ListCredentialsResponse + isSet bool +} + +func (v NullableListCredentialsResponse) Get() *ListCredentialsResponse { + return v.value +} + +func (v *NullableListCredentialsResponse) Set(val *ListCredentialsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListCredentialsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListCredentialsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListCredentialsResponse(val *ListCredentialsResponse) *NullableListCredentialsResponse { + return &NullableListCredentialsResponse{value: val, isSet: true} +} + +func (v NullableListCredentialsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListCredentialsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_list_instances_response.go b/services/observability/v1api/model_list_instances_response.go new file mode 100644 index 000000000..3a21b5af1 --- /dev/null +++ b/services/observability/v1api/model_list_instances_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListInstancesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListInstancesResponse{} + +// ListInstancesResponse struct for ListInstancesResponse +type ListInstancesResponse struct { + Instances []ProjectInstanceFull `json:"instances"` + Message string `json:"message"` +} + +type _ListInstancesResponse ListInstancesResponse + +// NewListInstancesResponse instantiates a new ListInstancesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListInstancesResponse(instances []ProjectInstanceFull, message string) *ListInstancesResponse { + this := ListInstancesResponse{} + this.Instances = instances + this.Message = message + return &this +} + +// NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListInstancesResponseWithDefaults() *ListInstancesResponse { + this := ListInstancesResponse{} + return &this +} + +// GetInstances returns the Instances field value +func (o *ListInstancesResponse) GetInstances() []ProjectInstanceFull { + if o == nil { + var ret []ProjectInstanceFull + return ret + } + + return o.Instances +} + +// GetInstancesOk returns a tuple with the Instances field value +// and a boolean to check if the value has been set. +func (o *ListInstancesResponse) GetInstancesOk() ([]ProjectInstanceFull, bool) { + if o == nil { + return nil, false + } + return o.Instances, true +} + +// SetInstances sets field value +func (o *ListInstancesResponse) SetInstances(v []ProjectInstanceFull) { + o.Instances = v +} + +// GetMessage returns the Message field value +func (o *ListInstancesResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ListInstancesResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ListInstancesResponse) SetMessage(v string) { + o.Message = v +} + +func (o ListInstancesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instances"] = o.Instances + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *ListInstancesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "instances", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListInstancesResponse := _ListInstancesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListInstancesResponse) + + if err != nil { + return err + } + + *o = ListInstancesResponse(varListInstancesResponse) + + return err +} + +type NullableListInstancesResponse struct { + value *ListInstancesResponse + isSet bool +} + +func (v NullableListInstancesResponse) Get() *ListInstancesResponse { + return v.value +} + +func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListInstancesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListInstancesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse { + return &NullableListInstancesResponse{value: val, isSet: true} +} + +func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_list_scrape_configs_response.go b/services/observability/v1api/model_list_scrape_configs_response.go new file mode 100644 index 000000000..71f1c23f5 --- /dev/null +++ b/services/observability/v1api/model_list_scrape_configs_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListScrapeConfigsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListScrapeConfigsResponse{} + +// ListScrapeConfigsResponse struct for ListScrapeConfigsResponse +type ListScrapeConfigsResponse struct { + Data []Job `json:"data"` + Message string `json:"message"` +} + +type _ListScrapeConfigsResponse ListScrapeConfigsResponse + +// NewListScrapeConfigsResponse instantiates a new ListScrapeConfigsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListScrapeConfigsResponse(data []Job, message string) *ListScrapeConfigsResponse { + this := ListScrapeConfigsResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewListScrapeConfigsResponseWithDefaults instantiates a new ListScrapeConfigsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListScrapeConfigsResponseWithDefaults() *ListScrapeConfigsResponse { + this := ListScrapeConfigsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *ListScrapeConfigsResponse) GetData() []Job { + if o == nil { + var ret []Job + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ListScrapeConfigsResponse) GetDataOk() ([]Job, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *ListScrapeConfigsResponse) SetData(v []Job) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *ListScrapeConfigsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ListScrapeConfigsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ListScrapeConfigsResponse) SetMessage(v string) { + o.Message = v +} + +func (o ListScrapeConfigsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListScrapeConfigsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *ListScrapeConfigsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListScrapeConfigsResponse := _ListScrapeConfigsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListScrapeConfigsResponse) + + if err != nil { + return err + } + + *o = ListScrapeConfigsResponse(varListScrapeConfigsResponse) + + return err +} + +type NullableListScrapeConfigsResponse struct { + value *ListScrapeConfigsResponse + isSet bool +} + +func (v NullableListScrapeConfigsResponse) Get() *ListScrapeConfigsResponse { + return v.value +} + +func (v *NullableListScrapeConfigsResponse) Set(val *ListScrapeConfigsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListScrapeConfigsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListScrapeConfigsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListScrapeConfigsResponse(val *ListScrapeConfigsResponse) *NullableListScrapeConfigsResponse { + return &NullableListScrapeConfigsResponse{value: val, isSet: true} +} + +func (v NullableListScrapeConfigsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListScrapeConfigsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_logs_config.go b/services/observability/v1api/model_logs_config.go new file mode 100644 index 000000000..3b9755053 --- /dev/null +++ b/services/observability/v1api/model_logs_config.go @@ -0,0 +1,157 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the LogsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LogsConfig{} + +// LogsConfig struct for LogsConfig +type LogsConfig struct { + Retention string `json:"retention"` +} + +type _LogsConfig LogsConfig + +// NewLogsConfig instantiates a new LogsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLogsConfig(retention string) *LogsConfig { + this := LogsConfig{} + this.Retention = retention + return &this +} + +// NewLogsConfigWithDefaults instantiates a new LogsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLogsConfigWithDefaults() *LogsConfig { + this := LogsConfig{} + return &this +} + +// GetRetention returns the Retention field value +func (o *LogsConfig) GetRetention() string { + if o == nil { + var ret string + return ret + } + + return o.Retention +} + +// GetRetentionOk returns a tuple with the Retention field value +// and a boolean to check if the value has been set. +func (o *LogsConfig) GetRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Retention, true +} + +// SetRetention sets field value +func (o *LogsConfig) SetRetention(v string) { + o.Retention = v +} + +func (o LogsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LogsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["retention"] = o.Retention + return toSerialize, nil +} + +func (o *LogsConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "retention", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLogsConfig := _LogsConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLogsConfig) + + if err != nil { + return err + } + + *o = LogsConfig(varLogsConfig) + + return err +} + +type NullableLogsConfig struct { + value *LogsConfig + isSet bool +} + +func (v NullableLogsConfig) Get() *LogsConfig { + return v.value +} + +func (v *NullableLogsConfig) Set(val *LogsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableLogsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableLogsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLogsConfig(val *LogsConfig) *NullableLogsConfig { + return &NullableLogsConfig{value: val, isSet: true} +} + +func (v NullableLogsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLogsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_logs_config_response.go b/services/observability/v1api/model_logs_config_response.go new file mode 100644 index 000000000..4b4d5fe91 --- /dev/null +++ b/services/observability/v1api/model_logs_config_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the LogsConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LogsConfigResponse{} + +// LogsConfigResponse struct for LogsConfigResponse +type LogsConfigResponse struct { + Config LogsConfig `json:"config"` + Message string `json:"message"` +} + +type _LogsConfigResponse LogsConfigResponse + +// NewLogsConfigResponse instantiates a new LogsConfigResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLogsConfigResponse(config LogsConfig, message string) *LogsConfigResponse { + this := LogsConfigResponse{} + this.Config = config + this.Message = message + return &this +} + +// NewLogsConfigResponseWithDefaults instantiates a new LogsConfigResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLogsConfigResponseWithDefaults() *LogsConfigResponse { + this := LogsConfigResponse{} + return &this +} + +// GetConfig returns the Config field value +func (o *LogsConfigResponse) GetConfig() LogsConfig { + if o == nil { + var ret LogsConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *LogsConfigResponse) GetConfigOk() (*LogsConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *LogsConfigResponse) SetConfig(v LogsConfig) { + o.Config = v +} + +// GetMessage returns the Message field value +func (o *LogsConfigResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *LogsConfigResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *LogsConfigResponse) SetMessage(v string) { + o.Message = v +} + +func (o LogsConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LogsConfigResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *LogsConfigResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "config", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLogsConfigResponse := _LogsConfigResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLogsConfigResponse) + + if err != nil { + return err + } + + *o = LogsConfigResponse(varLogsConfigResponse) + + return err +} + +type NullableLogsConfigResponse struct { + value *LogsConfigResponse + isSet bool +} + +func (v NullableLogsConfigResponse) Get() *LogsConfigResponse { + return v.value +} + +func (v *NullableLogsConfigResponse) Set(val *LogsConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableLogsConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableLogsConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLogsConfigResponse(val *LogsConfigResponse) *NullableLogsConfigResponse { + return &NullableLogsConfigResponse{value: val, isSet: true} +} + +func (v NullableLogsConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLogsConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_message.go b/services/observability/v1api/model_message.go new file mode 100644 index 000000000..09beb61fe --- /dev/null +++ b/services/observability/v1api/model_message.go @@ -0,0 +1,157 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Message type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Message{} + +// Message struct for Message +type Message struct { + Message string `json:"message"` +} + +type _Message Message + +// NewMessage instantiates a new Message object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMessage(message string) *Message { + this := Message{} + this.Message = message + return &this +} + +// NewMessageWithDefaults instantiates a new Message object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMessageWithDefaults() *Message { + this := Message{} + return &this +} + +// GetMessage returns the Message field value +func (o *Message) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *Message) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *Message) SetMessage(v string) { + o.Message = v +} + +func (o Message) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Message) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *Message) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMessage := _Message{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMessage) + + if err != nil { + return err + } + + *o = Message(varMessage) + + return err +} + +type NullableMessage struct { + value *Message + isSet bool +} + +func (v NullableMessage) Get() *Message { + return v.value +} + +func (v *NullableMessage) Set(val *Message) { + v.value = val + v.isSet = true +} + +func (v NullableMessage) IsSet() bool { + return v.isSet +} + +func (v *NullableMessage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMessage(val *Message) *NullableMessage { + return &NullableMessage{value: val, isSet: true} +} + +func (v NullableMessage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMessage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_metrics_relabel_config.go b/services/observability/v1api/model_metrics_relabel_config.go new file mode 100644 index 000000000..64c9ffc74 --- /dev/null +++ b/services/observability/v1api/model_metrics_relabel_config.go @@ -0,0 +1,389 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the MetricsRelabelConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetricsRelabelConfig{} + +// MetricsRelabelConfig struct for MetricsRelabelConfig +type MetricsRelabelConfig struct { + Action *string `json:"action,omitempty"` + Modulus *int32 `json:"modulus,omitempty"` + Regex *string `json:"regex,omitempty"` + Replacement *string `json:"replacement,omitempty"` + Separator *string `json:"separator,omitempty"` + SourceLabels []string `json:"sourceLabels"` + TargetLabel *string `json:"targetLabel,omitempty"` +} + +type _MetricsRelabelConfig MetricsRelabelConfig + +// NewMetricsRelabelConfig instantiates a new MetricsRelabelConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetricsRelabelConfig(sourceLabels []string) *MetricsRelabelConfig { + this := MetricsRelabelConfig{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + this.SourceLabels = sourceLabels + return &this +} + +// NewMetricsRelabelConfigWithDefaults instantiates a new MetricsRelabelConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetricsRelabelConfigWithDefaults() *MetricsRelabelConfig { + this := MetricsRelabelConfig{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *MetricsRelabelConfig) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *MetricsRelabelConfig) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *MetricsRelabelConfig) SetAction(v string) { + o.Action = &v +} + +// GetModulus returns the Modulus field value if set, zero value otherwise. +func (o *MetricsRelabelConfig) GetModulus() int32 { + if o == nil || IsNil(o.Modulus) { + var ret int32 + return ret + } + return *o.Modulus +} + +// GetModulusOk returns a tuple with the Modulus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetModulusOk() (*int32, bool) { + if o == nil || IsNil(o.Modulus) { + return nil, false + } + return o.Modulus, true +} + +// HasModulus returns a boolean if a field has been set. +func (o *MetricsRelabelConfig) HasModulus() bool { + if o != nil && !IsNil(o.Modulus) { + return true + } + + return false +} + +// SetModulus gets a reference to the given int32 and assigns it to the Modulus field. +func (o *MetricsRelabelConfig) SetModulus(v int32) { + o.Modulus = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *MetricsRelabelConfig) GetRegex() string { + if o == nil || IsNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetRegexOk() (*string, bool) { + if o == nil || IsNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *MetricsRelabelConfig) HasRegex() bool { + if o != nil && !IsNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *MetricsRelabelConfig) SetRegex(v string) { + o.Regex = &v +} + +// GetReplacement returns the Replacement field value if set, zero value otherwise. +func (o *MetricsRelabelConfig) GetReplacement() string { + if o == nil || IsNil(o.Replacement) { + var ret string + return ret + } + return *o.Replacement +} + +// GetReplacementOk returns a tuple with the Replacement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetReplacementOk() (*string, bool) { + if o == nil || IsNil(o.Replacement) { + return nil, false + } + return o.Replacement, true +} + +// HasReplacement returns a boolean if a field has been set. +func (o *MetricsRelabelConfig) HasReplacement() bool { + if o != nil && !IsNil(o.Replacement) { + return true + } + + return false +} + +// SetReplacement gets a reference to the given string and assigns it to the Replacement field. +func (o *MetricsRelabelConfig) SetReplacement(v string) { + o.Replacement = &v +} + +// GetSeparator returns the Separator field value if set, zero value otherwise. +func (o *MetricsRelabelConfig) GetSeparator() string { + if o == nil || IsNil(o.Separator) { + var ret string + return ret + } + return *o.Separator +} + +// GetSeparatorOk returns a tuple with the Separator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetSeparatorOk() (*string, bool) { + if o == nil || IsNil(o.Separator) { + return nil, false + } + return o.Separator, true +} + +// HasSeparator returns a boolean if a field has been set. +func (o *MetricsRelabelConfig) HasSeparator() bool { + if o != nil && !IsNil(o.Separator) { + return true + } + + return false +} + +// SetSeparator gets a reference to the given string and assigns it to the Separator field. +func (o *MetricsRelabelConfig) SetSeparator(v string) { + o.Separator = &v +} + +// GetSourceLabels returns the SourceLabels field value +func (o *MetricsRelabelConfig) GetSourceLabels() []string { + if o == nil { + var ret []string + return ret + } + + return o.SourceLabels +} + +// GetSourceLabelsOk returns a tuple with the SourceLabels field value +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetSourceLabelsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.SourceLabels, true +} + +// SetSourceLabels sets field value +func (o *MetricsRelabelConfig) SetSourceLabels(v []string) { + o.SourceLabels = v +} + +// GetTargetLabel returns the TargetLabel field value if set, zero value otherwise. +func (o *MetricsRelabelConfig) GetTargetLabel() string { + if o == nil || IsNil(o.TargetLabel) { + var ret string + return ret + } + return *o.TargetLabel +} + +// GetTargetLabelOk returns a tuple with the TargetLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRelabelConfig) GetTargetLabelOk() (*string, bool) { + if o == nil || IsNil(o.TargetLabel) { + return nil, false + } + return o.TargetLabel, true +} + +// HasTargetLabel returns a boolean if a field has been set. +func (o *MetricsRelabelConfig) HasTargetLabel() bool { + if o != nil && !IsNil(o.TargetLabel) { + return true + } + + return false +} + +// SetTargetLabel gets a reference to the given string and assigns it to the TargetLabel field. +func (o *MetricsRelabelConfig) SetTargetLabel(v string) { + o.TargetLabel = &v +} + +func (o MetricsRelabelConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetricsRelabelConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Modulus) { + toSerialize["modulus"] = o.Modulus + } + if !IsNil(o.Regex) { + toSerialize["regex"] = o.Regex + } + if !IsNil(o.Replacement) { + toSerialize["replacement"] = o.Replacement + } + if !IsNil(o.Separator) { + toSerialize["separator"] = o.Separator + } + toSerialize["sourceLabels"] = o.SourceLabels + if !IsNil(o.TargetLabel) { + toSerialize["targetLabel"] = o.TargetLabel + } + return toSerialize, nil +} + +func (o *MetricsRelabelConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "sourceLabels", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMetricsRelabelConfig := _MetricsRelabelConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMetricsRelabelConfig) + + if err != nil { + return err + } + + *o = MetricsRelabelConfig(varMetricsRelabelConfig) + + return err +} + +type NullableMetricsRelabelConfig struct { + value *MetricsRelabelConfig + isSet bool +} + +func (v NullableMetricsRelabelConfig) Get() *MetricsRelabelConfig { + return v.value +} + +func (v *NullableMetricsRelabelConfig) Set(val *MetricsRelabelConfig) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsRelabelConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsRelabelConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsRelabelConfig(val *MetricsRelabelConfig) *NullableMetricsRelabelConfig { + return &NullableMetricsRelabelConfig{value: val, isSet: true} +} + +func (v NullableMetricsRelabelConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsRelabelConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_mongodb_check_child_response.go b/services/observability/v1api/model_mongodb_check_child_response.go new file mode 100644 index 000000000..9facc8139 --- /dev/null +++ b/services/observability/v1api/model_mongodb_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the MongodbCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MongodbCheckChildResponse{} + +// MongodbCheckChildResponse struct for MongodbCheckChildResponse +type MongodbCheckChildResponse struct { + Id string `json:"id"` + Server string `json:"server"` +} + +type _MongodbCheckChildResponse MongodbCheckChildResponse + +// NewMongodbCheckChildResponse instantiates a new MongodbCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMongodbCheckChildResponse(id string, server string) *MongodbCheckChildResponse { + this := MongodbCheckChildResponse{} + this.Id = id + this.Server = server + return &this +} + +// NewMongodbCheckChildResponseWithDefaults instantiates a new MongodbCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMongodbCheckChildResponseWithDefaults() *MongodbCheckChildResponse { + this := MongodbCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *MongodbCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *MongodbCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MongodbCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetServer returns the Server field value +func (o *MongodbCheckChildResponse) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *MongodbCheckChildResponse) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *MongodbCheckChildResponse) SetServer(v string) { + o.Server = v +} + +func (o MongodbCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MongodbCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["server"] = o.Server + return toSerialize, nil +} + +func (o *MongodbCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMongodbCheckChildResponse := _MongodbCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMongodbCheckChildResponse) + + if err != nil { + return err + } + + *o = MongodbCheckChildResponse(varMongodbCheckChildResponse) + + return err +} + +type NullableMongodbCheckChildResponse struct { + value *MongodbCheckChildResponse + isSet bool +} + +func (v NullableMongodbCheckChildResponse) Get() *MongodbCheckChildResponse { + return v.value +} + +func (v *NullableMongodbCheckChildResponse) Set(val *MongodbCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMongodbCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMongodbCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMongodbCheckChildResponse(val *MongodbCheckChildResponse) *NullableMongodbCheckChildResponse { + return &NullableMongodbCheckChildResponse{value: val, isSet: true} +} + +func (v NullableMongodbCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMongodbCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_mongodb_check_response.go b/services/observability/v1api/model_mongodb_check_response.go new file mode 100644 index 000000000..2ee5b4ec3 --- /dev/null +++ b/services/observability/v1api/model_mongodb_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the MongodbCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MongodbCheckResponse{} + +// MongodbCheckResponse struct for MongodbCheckResponse +type MongodbCheckResponse struct { + Message string `json:"message"` + MongodbCheck *MongodbCheckChildResponse `json:"mongodbCheck,omitempty"` + MongodbChecks []MongodbCheckChildResponse `json:"mongodbChecks"` +} + +type _MongodbCheckResponse MongodbCheckResponse + +// NewMongodbCheckResponse instantiates a new MongodbCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMongodbCheckResponse(message string, mongodbChecks []MongodbCheckChildResponse) *MongodbCheckResponse { + this := MongodbCheckResponse{} + this.Message = message + this.MongodbChecks = mongodbChecks + return &this +} + +// NewMongodbCheckResponseWithDefaults instantiates a new MongodbCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMongodbCheckResponseWithDefaults() *MongodbCheckResponse { + this := MongodbCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *MongodbCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *MongodbCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *MongodbCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetMongodbCheck returns the MongodbCheck field value if set, zero value otherwise. +func (o *MongodbCheckResponse) GetMongodbCheck() MongodbCheckChildResponse { + if o == nil || IsNil(o.MongodbCheck) { + var ret MongodbCheckChildResponse + return ret + } + return *o.MongodbCheck +} + +// GetMongodbCheckOk returns a tuple with the MongodbCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MongodbCheckResponse) GetMongodbCheckOk() (*MongodbCheckChildResponse, bool) { + if o == nil || IsNil(o.MongodbCheck) { + return nil, false + } + return o.MongodbCheck, true +} + +// HasMongodbCheck returns a boolean if a field has been set. +func (o *MongodbCheckResponse) HasMongodbCheck() bool { + if o != nil && !IsNil(o.MongodbCheck) { + return true + } + + return false +} + +// SetMongodbCheck gets a reference to the given MongodbCheckChildResponse and assigns it to the MongodbCheck field. +func (o *MongodbCheckResponse) SetMongodbCheck(v MongodbCheckChildResponse) { + o.MongodbCheck = &v +} + +// GetMongodbChecks returns the MongodbChecks field value +func (o *MongodbCheckResponse) GetMongodbChecks() []MongodbCheckChildResponse { + if o == nil { + var ret []MongodbCheckChildResponse + return ret + } + + return o.MongodbChecks +} + +// GetMongodbChecksOk returns a tuple with the MongodbChecks field value +// and a boolean to check if the value has been set. +func (o *MongodbCheckResponse) GetMongodbChecksOk() ([]MongodbCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.MongodbChecks, true +} + +// SetMongodbChecks sets field value +func (o *MongodbCheckResponse) SetMongodbChecks(v []MongodbCheckChildResponse) { + o.MongodbChecks = v +} + +func (o MongodbCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MongodbCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.MongodbCheck) { + toSerialize["mongodbCheck"] = o.MongodbCheck + } + toSerialize["mongodbChecks"] = o.MongodbChecks + return toSerialize, nil +} + +func (o *MongodbCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "mongodbChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMongodbCheckResponse := _MongodbCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMongodbCheckResponse) + + if err != nil { + return err + } + + *o = MongodbCheckResponse(varMongodbCheckResponse) + + return err +} + +type NullableMongodbCheckResponse struct { + value *MongodbCheckResponse + isSet bool +} + +func (v NullableMongodbCheckResponse) Get() *MongodbCheckResponse { + return v.value +} + +func (v *NullableMongodbCheckResponse) Set(val *MongodbCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMongodbCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMongodbCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMongodbCheckResponse(val *MongodbCheckResponse) *NullableMongodbCheckResponse { + return &NullableMongodbCheckResponse{value: val, isSet: true} +} + +func (v NullableMongodbCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMongodbCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_mysql_check_child_response.go b/services/observability/v1api/model_mysql_check_child_response.go new file mode 100644 index 000000000..3fbde799b --- /dev/null +++ b/services/observability/v1api/model_mysql_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the MysqlCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MysqlCheckChildResponse{} + +// MysqlCheckChildResponse struct for MysqlCheckChildResponse +type MysqlCheckChildResponse struct { + Id string `json:"id"` + Server string `json:"server"` +} + +type _MysqlCheckChildResponse MysqlCheckChildResponse + +// NewMysqlCheckChildResponse instantiates a new MysqlCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMysqlCheckChildResponse(id string, server string) *MysqlCheckChildResponse { + this := MysqlCheckChildResponse{} + this.Id = id + this.Server = server + return &this +} + +// NewMysqlCheckChildResponseWithDefaults instantiates a new MysqlCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMysqlCheckChildResponseWithDefaults() *MysqlCheckChildResponse { + this := MysqlCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *MysqlCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *MysqlCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MysqlCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetServer returns the Server field value +func (o *MysqlCheckChildResponse) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *MysqlCheckChildResponse) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *MysqlCheckChildResponse) SetServer(v string) { + o.Server = v +} + +func (o MysqlCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MysqlCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["server"] = o.Server + return toSerialize, nil +} + +func (o *MysqlCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMysqlCheckChildResponse := _MysqlCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMysqlCheckChildResponse) + + if err != nil { + return err + } + + *o = MysqlCheckChildResponse(varMysqlCheckChildResponse) + + return err +} + +type NullableMysqlCheckChildResponse struct { + value *MysqlCheckChildResponse + isSet bool +} + +func (v NullableMysqlCheckChildResponse) Get() *MysqlCheckChildResponse { + return v.value +} + +func (v *NullableMysqlCheckChildResponse) Set(val *MysqlCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMysqlCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMysqlCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMysqlCheckChildResponse(val *MysqlCheckChildResponse) *NullableMysqlCheckChildResponse { + return &NullableMysqlCheckChildResponse{value: val, isSet: true} +} + +func (v NullableMysqlCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMysqlCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_mysql_check_response.go b/services/observability/v1api/model_mysql_check_response.go new file mode 100644 index 000000000..5dbeeeb30 --- /dev/null +++ b/services/observability/v1api/model_mysql_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the MysqlCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MysqlCheckResponse{} + +// MysqlCheckResponse struct for MysqlCheckResponse +type MysqlCheckResponse struct { + Message string `json:"message"` + MysqlCheck *MysqlCheckChildResponse `json:"mysqlCheck,omitempty"` + MysqlChecks []MysqlCheckChildResponse `json:"mysqlChecks"` +} + +type _MysqlCheckResponse MysqlCheckResponse + +// NewMysqlCheckResponse instantiates a new MysqlCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMysqlCheckResponse(message string, mysqlChecks []MysqlCheckChildResponse) *MysqlCheckResponse { + this := MysqlCheckResponse{} + this.Message = message + this.MysqlChecks = mysqlChecks + return &this +} + +// NewMysqlCheckResponseWithDefaults instantiates a new MysqlCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMysqlCheckResponseWithDefaults() *MysqlCheckResponse { + this := MysqlCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *MysqlCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *MysqlCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *MysqlCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetMysqlCheck returns the MysqlCheck field value if set, zero value otherwise. +func (o *MysqlCheckResponse) GetMysqlCheck() MysqlCheckChildResponse { + if o == nil || IsNil(o.MysqlCheck) { + var ret MysqlCheckChildResponse + return ret + } + return *o.MysqlCheck +} + +// GetMysqlCheckOk returns a tuple with the MysqlCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlCheckResponse) GetMysqlCheckOk() (*MysqlCheckChildResponse, bool) { + if o == nil || IsNil(o.MysqlCheck) { + return nil, false + } + return o.MysqlCheck, true +} + +// HasMysqlCheck returns a boolean if a field has been set. +func (o *MysqlCheckResponse) HasMysqlCheck() bool { + if o != nil && !IsNil(o.MysqlCheck) { + return true + } + + return false +} + +// SetMysqlCheck gets a reference to the given MysqlCheckChildResponse and assigns it to the MysqlCheck field. +func (o *MysqlCheckResponse) SetMysqlCheck(v MysqlCheckChildResponse) { + o.MysqlCheck = &v +} + +// GetMysqlChecks returns the MysqlChecks field value +func (o *MysqlCheckResponse) GetMysqlChecks() []MysqlCheckChildResponse { + if o == nil { + var ret []MysqlCheckChildResponse + return ret + } + + return o.MysqlChecks +} + +// GetMysqlChecksOk returns a tuple with the MysqlChecks field value +// and a boolean to check if the value has been set. +func (o *MysqlCheckResponse) GetMysqlChecksOk() ([]MysqlCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.MysqlChecks, true +} + +// SetMysqlChecks sets field value +func (o *MysqlCheckResponse) SetMysqlChecks(v []MysqlCheckChildResponse) { + o.MysqlChecks = v +} + +func (o MysqlCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MysqlCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.MysqlCheck) { + toSerialize["mysqlCheck"] = o.MysqlCheck + } + toSerialize["mysqlChecks"] = o.MysqlChecks + return toSerialize, nil +} + +func (o *MysqlCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "mysqlChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMysqlCheckResponse := _MysqlCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varMysqlCheckResponse) + + if err != nil { + return err + } + + *o = MysqlCheckResponse(varMysqlCheckResponse) + + return err +} + +type NullableMysqlCheckResponse struct { + value *MysqlCheckResponse + isSet bool +} + +func (v NullableMysqlCheckResponse) Get() *MysqlCheckResponse { + return v.value +} + +func (v *NullableMysqlCheckResponse) Set(val *MysqlCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMysqlCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMysqlCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMysqlCheckResponse(val *MysqlCheckResponse) *NullableMysqlCheckResponse { + return &NullableMysqlCheckResponse{value: val, isSet: true} +} + +func (v NullableMysqlCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMysqlCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_network_check_child_response.go b/services/observability/v1api/model_network_check_child_response.go new file mode 100644 index 000000000..8b2258e56 --- /dev/null +++ b/services/observability/v1api/model_network_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the NetworkCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkCheckChildResponse{} + +// NetworkCheckChildResponse struct for NetworkCheckChildResponse +type NetworkCheckChildResponse struct { + Address string `json:"address"` + Id string `json:"id"` +} + +type _NetworkCheckChildResponse NetworkCheckChildResponse + +// NewNetworkCheckChildResponse instantiates a new NetworkCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkCheckChildResponse(address string, id string) *NetworkCheckChildResponse { + this := NetworkCheckChildResponse{} + this.Address = address + this.Id = id + return &this +} + +// NewNetworkCheckChildResponseWithDefaults instantiates a new NetworkCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkCheckChildResponseWithDefaults() *NetworkCheckChildResponse { + this := NetworkCheckChildResponse{} + return &this +} + +// GetAddress returns the Address field value +func (o *NetworkCheckChildResponse) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NetworkCheckChildResponse) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NetworkCheckChildResponse) SetAddress(v string) { + o.Address = v +} + +// GetId returns the Id field value +func (o *NetworkCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NetworkCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NetworkCheckChildResponse) SetId(v string) { + o.Id = v +} + +func (o NetworkCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + toSerialize["id"] = o.Id + return toSerialize, nil +} + +func (o *NetworkCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNetworkCheckChildResponse := _NetworkCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varNetworkCheckChildResponse) + + if err != nil { + return err + } + + *o = NetworkCheckChildResponse(varNetworkCheckChildResponse) + + return err +} + +type NullableNetworkCheckChildResponse struct { + value *NetworkCheckChildResponse + isSet bool +} + +func (v NullableNetworkCheckChildResponse) Get() *NetworkCheckChildResponse { + return v.value +} + +func (v *NullableNetworkCheckChildResponse) Set(val *NetworkCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkCheckChildResponse(val *NetworkCheckChildResponse) *NullableNetworkCheckChildResponse { + return &NullableNetworkCheckChildResponse{value: val, isSet: true} +} + +func (v NullableNetworkCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_network_check_response.go b/services/observability/v1api/model_network_check_response.go new file mode 100644 index 000000000..6769bdcfb --- /dev/null +++ b/services/observability/v1api/model_network_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the NetworkCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkCheckResponse{} + +// NetworkCheckResponse struct for NetworkCheckResponse +type NetworkCheckResponse struct { + Message string `json:"message"` + NetworkCheck *NetworkCheckChildResponse `json:"networkCheck,omitempty"` + NetworkChecks []NetworkCheckChildResponse `json:"networkChecks"` +} + +type _NetworkCheckResponse NetworkCheckResponse + +// NewNetworkCheckResponse instantiates a new NetworkCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkCheckResponse(message string, networkChecks []NetworkCheckChildResponse) *NetworkCheckResponse { + this := NetworkCheckResponse{} + this.Message = message + this.NetworkChecks = networkChecks + return &this +} + +// NewNetworkCheckResponseWithDefaults instantiates a new NetworkCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkCheckResponseWithDefaults() *NetworkCheckResponse { + this := NetworkCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *NetworkCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *NetworkCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *NetworkCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetNetworkCheck returns the NetworkCheck field value if set, zero value otherwise. +func (o *NetworkCheckResponse) GetNetworkCheck() NetworkCheckChildResponse { + if o == nil || IsNil(o.NetworkCheck) { + var ret NetworkCheckChildResponse + return ret + } + return *o.NetworkCheck +} + +// GetNetworkCheckOk returns a tuple with the NetworkCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NetworkCheckResponse) GetNetworkCheckOk() (*NetworkCheckChildResponse, bool) { + if o == nil || IsNil(o.NetworkCheck) { + return nil, false + } + return o.NetworkCheck, true +} + +// HasNetworkCheck returns a boolean if a field has been set. +func (o *NetworkCheckResponse) HasNetworkCheck() bool { + if o != nil && !IsNil(o.NetworkCheck) { + return true + } + + return false +} + +// SetNetworkCheck gets a reference to the given NetworkCheckChildResponse and assigns it to the NetworkCheck field. +func (o *NetworkCheckResponse) SetNetworkCheck(v NetworkCheckChildResponse) { + o.NetworkCheck = &v +} + +// GetNetworkChecks returns the NetworkChecks field value +func (o *NetworkCheckResponse) GetNetworkChecks() []NetworkCheckChildResponse { + if o == nil { + var ret []NetworkCheckChildResponse + return ret + } + + return o.NetworkChecks +} + +// GetNetworkChecksOk returns a tuple with the NetworkChecks field value +// and a boolean to check if the value has been set. +func (o *NetworkCheckResponse) GetNetworkChecksOk() ([]NetworkCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.NetworkChecks, true +} + +// SetNetworkChecks sets field value +func (o *NetworkCheckResponse) SetNetworkChecks(v []NetworkCheckChildResponse) { + o.NetworkChecks = v +} + +func (o NetworkCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.NetworkCheck) { + toSerialize["networkCheck"] = o.NetworkCheck + } + toSerialize["networkChecks"] = o.NetworkChecks + return toSerialize, nil +} + +func (o *NetworkCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "networkChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNetworkCheckResponse := _NetworkCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varNetworkCheckResponse) + + if err != nil { + return err + } + + *o = NetworkCheckResponse(varNetworkCheckResponse) + + return err +} + +type NullableNetworkCheckResponse struct { + value *NetworkCheckResponse + isSet bool +} + +func (v NullableNetworkCheckResponse) Get() *NetworkCheckResponse { + return v.value +} + +func (v *NullableNetworkCheckResponse) Set(val *NetworkCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkCheckResponse(val *NetworkCheckResponse) *NullableNetworkCheckResponse { + return &NullableNetworkCheckResponse{value: val, isSet: true} +} + +func (v NullableNetworkCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_o_auth2.go b/services/observability/v1api/model_o_auth2.go new file mode 100644 index 000000000..98ec076d5 --- /dev/null +++ b/services/observability/v1api/model_o_auth2.go @@ -0,0 +1,285 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the OAuth2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2{} + +// OAuth2 struct for OAuth2 +type OAuth2 struct { + ClientId string `json:"clientId"` + ClientSecret string `json:"clientSecret"` + Scopes []string `json:"scopes,omitempty"` + TlsConfig *TLSConfig `json:"tlsConfig,omitempty"` + TokenUrl string `json:"tokenUrl"` +} + +type _OAuth2 OAuth2 + +// NewOAuth2 instantiates a new OAuth2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOAuth2(clientId string, clientSecret string, tokenUrl string) *OAuth2 { + this := OAuth2{} + this.ClientId = clientId + this.ClientSecret = clientSecret + this.TokenUrl = tokenUrl + return &this +} + +// NewOAuth2WithDefaults instantiates a new OAuth2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOAuth2WithDefaults() *OAuth2 { + this := OAuth2{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *OAuth2) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *OAuth2) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *OAuth2) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *OAuth2) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *OAuth2) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *OAuth2) SetClientSecret(v string) { + o.ClientSecret = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *OAuth2) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuth2) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *OAuth2) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *OAuth2) SetScopes(v []string) { + o.Scopes = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *OAuth2) GetTlsConfig() TLSConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret TLSConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuth2) GetTlsConfigOk() (*TLSConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *OAuth2) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given TLSConfig and assigns it to the TlsConfig field. +func (o *OAuth2) SetTlsConfig(v TLSConfig) { + o.TlsConfig = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *OAuth2) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *OAuth2) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *OAuth2) SetTokenUrl(v string) { + o.TokenUrl = v +} + +func (o OAuth2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuth2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientId"] = o.ClientId + toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["tokenUrl"] = o.TokenUrl + return toSerialize, nil +} + +func (o *OAuth2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "clientId", + "clientSecret", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varOAuth2 := _OAuth2{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOAuth2) + + if err != nil { + return err + } + + *o = OAuth2(varOAuth2) + + return err +} + +type NullableOAuth2 struct { + value *OAuth2 + isSet bool +} + +func (v NullableOAuth2) Get() *OAuth2 { + return v.value +} + +func (v *NullableOAuth2) Set(val *OAuth2) { + v.value = val + v.isSet = true +} + +func (v NullableOAuth2) IsSet() bool { + return v.isSet +} + +func (v *NullableOAuth2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOAuth2(val *OAuth2) *NullableOAuth2 { + return &NullableOAuth2{value: val, isSet: true} +} + +func (v NullableOAuth2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOAuth2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_offerings.go b/services/observability/v1api/model_offerings.go new file mode 100644 index 000000000..5fe5bd4d1 --- /dev/null +++ b/services/observability/v1api/model_offerings.go @@ -0,0 +1,297 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Offerings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Offerings{} + +// Offerings struct for Offerings +type Offerings struct { + Description string `json:"description"` + DocumentationUrl string `json:"documentationUrl"` + ImageUrl string `json:"imageUrl"` + Name string `json:"name"` + Plans []Plan `json:"plans"` + Tags []string `json:"tags"` +} + +type _Offerings Offerings + +// NewOfferings instantiates a new Offerings object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOfferings(description string, documentationUrl string, imageUrl string, name string, plans []Plan, tags []string) *Offerings { + this := Offerings{} + this.Description = description + this.DocumentationUrl = documentationUrl + this.ImageUrl = imageUrl + this.Name = name + this.Plans = plans + this.Tags = tags + return &this +} + +// NewOfferingsWithDefaults instantiates a new Offerings object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOfferingsWithDefaults() *Offerings { + this := Offerings{} + return &this +} + +// GetDescription returns the Description field value +func (o *Offerings) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *Offerings) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *Offerings) SetDescription(v string) { + o.Description = v +} + +// GetDocumentationUrl returns the DocumentationUrl field value +func (o *Offerings) GetDocumentationUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DocumentationUrl +} + +// GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value +// and a boolean to check if the value has been set. +func (o *Offerings) GetDocumentationUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DocumentationUrl, true +} + +// SetDocumentationUrl sets field value +func (o *Offerings) SetDocumentationUrl(v string) { + o.DocumentationUrl = v +} + +// GetImageUrl returns the ImageUrl field value +func (o *Offerings) GetImageUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ImageUrl +} + +// GetImageUrlOk returns a tuple with the ImageUrl field value +// and a boolean to check if the value has been set. +func (o *Offerings) GetImageUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ImageUrl, true +} + +// SetImageUrl sets field value +func (o *Offerings) SetImageUrl(v string) { + o.ImageUrl = v +} + +// GetName returns the Name field value +func (o *Offerings) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Offerings) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Offerings) SetName(v string) { + o.Name = v +} + +// GetPlans returns the Plans field value +func (o *Offerings) GetPlans() []Plan { + if o == nil { + var ret []Plan + return ret + } + + return o.Plans +} + +// GetPlansOk returns a tuple with the Plans field value +// and a boolean to check if the value has been set. +func (o *Offerings) GetPlansOk() ([]Plan, bool) { + if o == nil { + return nil, false + } + return o.Plans, true +} + +// SetPlans sets field value +func (o *Offerings) SetPlans(v []Plan) { + o.Plans = v +} + +// GetTags returns the Tags field value +func (o *Offerings) GetTags() []string { + if o == nil { + var ret []string + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *Offerings) GetTagsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *Offerings) SetTags(v []string) { + o.Tags = v +} + +func (o Offerings) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Offerings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["documentationUrl"] = o.DocumentationUrl + toSerialize["imageUrl"] = o.ImageUrl + toSerialize["name"] = o.Name + toSerialize["plans"] = o.Plans + toSerialize["tags"] = o.Tags + return toSerialize, nil +} + +func (o *Offerings) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "description", + "documentationUrl", + "imageUrl", + "name", + "plans", + "tags", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varOfferings := _Offerings{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOfferings) + + if err != nil { + return err + } + + *o = Offerings(varOfferings) + + return err +} + +type NullableOfferings struct { + value *Offerings + isSet bool +} + +func (v NullableOfferings) Get() *Offerings { + return v.value +} + +func (v *NullableOfferings) Set(val *Offerings) { + v.value = val + v.isSet = true +} + +func (v NullableOfferings) IsSet() bool { + return v.isSet +} + +func (v *NullableOfferings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOfferings(val *Offerings) *NullableOfferings { + return &NullableOfferings{value: val, isSet: true} +} + +func (v NullableOfferings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOfferings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_opsgenie_config.go b/services/observability/v1api/model_opsgenie_config.go new file mode 100644 index 000000000..8a17d6c4a --- /dev/null +++ b/services/observability/v1api/model_opsgenie_config.go @@ -0,0 +1,273 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the OpsgenieConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpsgenieConfig{} + +// OpsgenieConfig struct for OpsgenieConfig +type OpsgenieConfig struct { + ApiKey *string `json:"apiKey,omitempty"` + ApiUrl *string `json:"apiUrl,omitempty"` + Priority *string `json:"priority,omitempty"` + SendResolved *bool `json:"sendResolved,omitempty"` + Tags *string `json:"tags,omitempty"` +} + +// NewOpsgenieConfig instantiates a new OpsgenieConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpsgenieConfig() *OpsgenieConfig { + this := OpsgenieConfig{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewOpsgenieConfigWithDefaults instantiates a new OpsgenieConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpsgenieConfigWithDefaults() *OpsgenieConfig { + this := OpsgenieConfig{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetApiKey returns the ApiKey field value if set, zero value otherwise. +func (o *OpsgenieConfig) GetApiKey() string { + if o == nil || IsNil(o.ApiKey) { + var ret string + return ret + } + return *o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpsgenieConfig) GetApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.ApiKey) { + return nil, false + } + return o.ApiKey, true +} + +// HasApiKey returns a boolean if a field has been set. +func (o *OpsgenieConfig) HasApiKey() bool { + if o != nil && !IsNil(o.ApiKey) { + return true + } + + return false +} + +// SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +func (o *OpsgenieConfig) SetApiKey(v string) { + o.ApiKey = &v +} + +// GetApiUrl returns the ApiUrl field value if set, zero value otherwise. +func (o *OpsgenieConfig) GetApiUrl() string { + if o == nil || IsNil(o.ApiUrl) { + var ret string + return ret + } + return *o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpsgenieConfig) GetApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.ApiUrl) { + return nil, false + } + return o.ApiUrl, true +} + +// HasApiUrl returns a boolean if a field has been set. +func (o *OpsgenieConfig) HasApiUrl() bool { + if o != nil && !IsNil(o.ApiUrl) { + return true + } + + return false +} + +// SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field. +func (o *OpsgenieConfig) SetApiUrl(v string) { + o.ApiUrl = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *OpsgenieConfig) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpsgenieConfig) GetPriorityOk() (*string, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *OpsgenieConfig) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *OpsgenieConfig) SetPriority(v string) { + o.Priority = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *OpsgenieConfig) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpsgenieConfig) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *OpsgenieConfig) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *OpsgenieConfig) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *OpsgenieConfig) GetTags() string { + if o == nil || IsNil(o.Tags) { + var ret string + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpsgenieConfig) GetTagsOk() (*string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *OpsgenieConfig) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given string and assigns it to the Tags field. +func (o *OpsgenieConfig) SetTags(v string) { + o.Tags = &v +} + +func (o OpsgenieConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpsgenieConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiKey) { + toSerialize["apiKey"] = o.ApiKey + } + if !IsNil(o.ApiUrl) { + toSerialize["apiUrl"] = o.ApiUrl + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableOpsgenieConfig struct { + value *OpsgenieConfig + isSet bool +} + +func (v NullableOpsgenieConfig) Get() *OpsgenieConfig { + return v.value +} + +func (v *NullableOpsgenieConfig) Set(val *OpsgenieConfig) { + v.value = val + v.isSet = true +} + +func (v NullableOpsgenieConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableOpsgenieConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpsgenieConfig(val *OpsgenieConfig) *NullableOpsgenieConfig { + return &NullableOpsgenieConfig{value: val, isSet: true} +} + +func (v NullableOpsgenieConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpsgenieConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_alert_records_request_inner.go b/services/observability/v1api/model_partial_update_alert_records_request_inner.go new file mode 100644 index 000000000..e8ad7bb48 --- /dev/null +++ b/services/observability/v1api/model_partial_update_alert_records_request_inner.go @@ -0,0 +1,224 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateAlertRecordsRequestInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateAlertRecordsRequestInner{} + +// PartialUpdateAlertRecordsRequestInner Record. `Additional Validators:` * total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type PartialUpdateAlertRecordsRequestInner struct { + // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. + Expr string `json:"expr"` + // map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the record. `Additional Validators:` * is the identifier and so unique in the group + Record string `json:"record"` +} + +type _PartialUpdateAlertRecordsRequestInner PartialUpdateAlertRecordsRequestInner + +// NewPartialUpdateAlertRecordsRequestInner instantiates a new PartialUpdateAlertRecordsRequestInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateAlertRecordsRequestInner(expr string, record string) *PartialUpdateAlertRecordsRequestInner { + this := PartialUpdateAlertRecordsRequestInner{} + this.Expr = expr + this.Record = record + return &this +} + +// NewPartialUpdateAlertRecordsRequestInnerWithDefaults instantiates a new PartialUpdateAlertRecordsRequestInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateAlertRecordsRequestInnerWithDefaults() *PartialUpdateAlertRecordsRequestInner { + this := PartialUpdateAlertRecordsRequestInner{} + return &this +} + +// GetExpr returns the Expr field value +func (o *PartialUpdateAlertRecordsRequestInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertRecordsRequestInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *PartialUpdateAlertRecordsRequestInner) SetExpr(v string) { + o.Expr = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *PartialUpdateAlertRecordsRequestInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertRecordsRequestInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *PartialUpdateAlertRecordsRequestInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *PartialUpdateAlertRecordsRequestInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value +func (o *PartialUpdateAlertRecordsRequestInner) GetRecord() string { + if o == nil { + var ret string + return ret + } + + return o.Record +} + +// GetRecordOk returns a tuple with the Record field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertRecordsRequestInner) GetRecordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Record, true +} + +// SetRecord sets field value +func (o *PartialUpdateAlertRecordsRequestInner) SetRecord(v string) { + o.Record = v +} + +func (o PartialUpdateAlertRecordsRequestInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateAlertRecordsRequestInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["expr"] = o.Expr + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["record"] = o.Record + return toSerialize, nil +} + +func (o *PartialUpdateAlertRecordsRequestInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + "record", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateAlertRecordsRequestInner := _PartialUpdateAlertRecordsRequestInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateAlertRecordsRequestInner) + + if err != nil { + return err + } + + *o = PartialUpdateAlertRecordsRequestInner(varPartialUpdateAlertRecordsRequestInner) + + return err +} + +type NullablePartialUpdateAlertRecordsRequestInner struct { + value *PartialUpdateAlertRecordsRequestInner + isSet bool +} + +func (v NullablePartialUpdateAlertRecordsRequestInner) Get() *PartialUpdateAlertRecordsRequestInner { + return v.value +} + +func (v *NullablePartialUpdateAlertRecordsRequestInner) Set(val *PartialUpdateAlertRecordsRequestInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateAlertRecordsRequestInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateAlertRecordsRequestInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateAlertRecordsRequestInner(val *PartialUpdateAlertRecordsRequestInner) *NullablePartialUpdateAlertRecordsRequestInner { + return &NullablePartialUpdateAlertRecordsRequestInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateAlertRecordsRequestInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateAlertRecordsRequestInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_alertgroups_request_inner.go b/services/observability/v1api/model_partial_update_alertgroups_request_inner.go new file mode 100644 index 000000000..bde752a71 --- /dev/null +++ b/services/observability/v1api/model_partial_update_alertgroups_request_inner.go @@ -0,0 +1,228 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateAlertgroupsRequestInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateAlertgroupsRequestInner{} + +// PartialUpdateAlertgroupsRequestInner 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. +type PartialUpdateAlertgroupsRequestInner struct { + // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s + Interval *string `json:"interval,omitempty"` + // The name of the group. Must be unique. `Additional Validators:` * is the identifier and so unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // rules for the alert group + Rules []PartialUpdateAlertgroupsRequestInnerRulesInner `json:"rules"` +} + +type _PartialUpdateAlertgroupsRequestInner PartialUpdateAlertgroupsRequestInner + +// NewPartialUpdateAlertgroupsRequestInner instantiates a new PartialUpdateAlertgroupsRequestInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateAlertgroupsRequestInner(name string, rules []PartialUpdateAlertgroupsRequestInnerRulesInner) *PartialUpdateAlertgroupsRequestInner { + this := PartialUpdateAlertgroupsRequestInner{} + var interval string = "60s" + this.Interval = &interval + this.Name = name + this.Rules = rules + return &this +} + +// NewPartialUpdateAlertgroupsRequestInnerWithDefaults instantiates a new PartialUpdateAlertgroupsRequestInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateAlertgroupsRequestInnerWithDefaults() *PartialUpdateAlertgroupsRequestInner { + this := PartialUpdateAlertgroupsRequestInner{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *PartialUpdateAlertgroupsRequestInner) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInner) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *PartialUpdateAlertgroupsRequestInner) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *PartialUpdateAlertgroupsRequestInner) SetInterval(v string) { + o.Interval = &v +} + +// GetName returns the Name field value +func (o *PartialUpdateAlertgroupsRequestInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PartialUpdateAlertgroupsRequestInner) SetName(v string) { + o.Name = v +} + +// GetRules returns the Rules field value +func (o *PartialUpdateAlertgroupsRequestInner) GetRules() []PartialUpdateAlertgroupsRequestInnerRulesInner { + if o == nil { + var ret []PartialUpdateAlertgroupsRequestInnerRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInner) GetRulesOk() ([]PartialUpdateAlertgroupsRequestInnerRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *PartialUpdateAlertgroupsRequestInner) SetRules(v []PartialUpdateAlertgroupsRequestInnerRulesInner) { + o.Rules = v +} + +func (o PartialUpdateAlertgroupsRequestInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateAlertgroupsRequestInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["name"] = o.Name + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *PartialUpdateAlertgroupsRequestInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateAlertgroupsRequestInner := _PartialUpdateAlertgroupsRequestInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateAlertgroupsRequestInner) + + if err != nil { + return err + } + + *o = PartialUpdateAlertgroupsRequestInner(varPartialUpdateAlertgroupsRequestInner) + + return err +} + +type NullablePartialUpdateAlertgroupsRequestInner struct { + value *PartialUpdateAlertgroupsRequestInner + isSet bool +} + +func (v NullablePartialUpdateAlertgroupsRequestInner) Get() *PartialUpdateAlertgroupsRequestInner { + return v.value +} + +func (v *NullablePartialUpdateAlertgroupsRequestInner) Set(val *PartialUpdateAlertgroupsRequestInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateAlertgroupsRequestInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateAlertgroupsRequestInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateAlertgroupsRequestInner(val *PartialUpdateAlertgroupsRequestInner) *NullablePartialUpdateAlertgroupsRequestInner { + return &NullablePartialUpdateAlertgroupsRequestInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateAlertgroupsRequestInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateAlertgroupsRequestInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_alertgroups_request_inner_rules_inner.go b/services/observability/v1api/model_partial_update_alertgroups_request_inner_rules_inner.go new file mode 100644 index 000000000..00a96d53d --- /dev/null +++ b/services/observability/v1api/model_partial_update_alertgroups_request_inner_rules_inner.go @@ -0,0 +1,347 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateAlertgroupsRequestInnerRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateAlertgroupsRequestInnerRulesInner{} + +// PartialUpdateAlertgroupsRequestInnerRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type PartialUpdateAlertgroupsRequestInnerRulesInner struct { + // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed + Alert *string `json:"alert,omitempty"` + // Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule + For *string `json:"for,omitempty"` + // Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed + Record *string `json:"record,omitempty"` +} + +type _PartialUpdateAlertgroupsRequestInnerRulesInner PartialUpdateAlertgroupsRequestInnerRulesInner + +// NewPartialUpdateAlertgroupsRequestInnerRulesInner instantiates a new PartialUpdateAlertgroupsRequestInnerRulesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateAlertgroupsRequestInnerRulesInner(expr string) *PartialUpdateAlertgroupsRequestInnerRulesInner { + this := PartialUpdateAlertgroupsRequestInnerRulesInner{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewPartialUpdateAlertgroupsRequestInnerRulesInnerWithDefaults instantiates a new PartialUpdateAlertgroupsRequestInnerRulesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateAlertgroupsRequestInnerRulesInnerWithDefaults() *PartialUpdateAlertgroupsRequestInnerRulesInner { + this := PartialUpdateAlertgroupsRequestInnerRulesInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) SetRecord(v string) { + o.Record = &v +} + +func (o PartialUpdateAlertgroupsRequestInnerRulesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateAlertgroupsRequestInnerRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *PartialUpdateAlertgroupsRequestInnerRulesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateAlertgroupsRequestInnerRulesInner := _PartialUpdateAlertgroupsRequestInnerRulesInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateAlertgroupsRequestInnerRulesInner) + + if err != nil { + return err + } + + *o = PartialUpdateAlertgroupsRequestInnerRulesInner(varPartialUpdateAlertgroupsRequestInnerRulesInner) + + return err +} + +type NullablePartialUpdateAlertgroupsRequestInnerRulesInner struct { + value *PartialUpdateAlertgroupsRequestInnerRulesInner + isSet bool +} + +func (v NullablePartialUpdateAlertgroupsRequestInnerRulesInner) Get() *PartialUpdateAlertgroupsRequestInnerRulesInner { + return v.value +} + +func (v *NullablePartialUpdateAlertgroupsRequestInnerRulesInner) Set(val *PartialUpdateAlertgroupsRequestInnerRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateAlertgroupsRequestInnerRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateAlertgroupsRequestInnerRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateAlertgroupsRequestInnerRulesInner(val *PartialUpdateAlertgroupsRequestInnerRulesInner) *NullablePartialUpdateAlertgroupsRequestInnerRulesInner { + return &NullablePartialUpdateAlertgroupsRequestInnerRulesInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateAlertgroupsRequestInnerRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateAlertgroupsRequestInnerRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_alertrules_request_inner.go b/services/observability/v1api/model_partial_update_alertrules_request_inner.go new file mode 100644 index 000000000..091802e2b --- /dev/null +++ b/services/observability/v1api/model_partial_update_alertrules_request_inner.go @@ -0,0 +1,302 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateAlertrulesRequestInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateAlertrulesRequestInner{} + +// PartialUpdateAlertrulesRequestInner 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. +type PartialUpdateAlertrulesRequestInner struct { + // 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- + Alert string `json:"alert"` + // map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string + For *string `json:"for,omitempty"` + // map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` +} + +type _PartialUpdateAlertrulesRequestInner PartialUpdateAlertrulesRequestInner + +// NewPartialUpdateAlertrulesRequestInner instantiates a new PartialUpdateAlertrulesRequestInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateAlertrulesRequestInner(alert string, expr string) *PartialUpdateAlertrulesRequestInner { + this := PartialUpdateAlertrulesRequestInner{} + this.Alert = alert + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewPartialUpdateAlertrulesRequestInnerWithDefaults instantiates a new PartialUpdateAlertrulesRequestInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateAlertrulesRequestInnerWithDefaults() *PartialUpdateAlertrulesRequestInner { + this := PartialUpdateAlertrulesRequestInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value +func (o *PartialUpdateAlertrulesRequestInner) GetAlert() string { + if o == nil { + var ret string + return ret + } + + return o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertrulesRequestInner) GetAlertOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Alert, true +} + +// SetAlert sets field value +func (o *PartialUpdateAlertrulesRequestInner) SetAlert(v string) { + o.Alert = v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *PartialUpdateAlertrulesRequestInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertrulesRequestInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *PartialUpdateAlertrulesRequestInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *PartialUpdateAlertrulesRequestInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *PartialUpdateAlertrulesRequestInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertrulesRequestInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *PartialUpdateAlertrulesRequestInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *PartialUpdateAlertrulesRequestInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertrulesRequestInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *PartialUpdateAlertrulesRequestInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *PartialUpdateAlertrulesRequestInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *PartialUpdateAlertrulesRequestInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateAlertrulesRequestInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *PartialUpdateAlertrulesRequestInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *PartialUpdateAlertrulesRequestInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o PartialUpdateAlertrulesRequestInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateAlertrulesRequestInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alert"] = o.Alert + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *PartialUpdateAlertrulesRequestInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alert", + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateAlertrulesRequestInner := _PartialUpdateAlertrulesRequestInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateAlertrulesRequestInner) + + if err != nil { + return err + } + + *o = PartialUpdateAlertrulesRequestInner(varPartialUpdateAlertrulesRequestInner) + + return err +} + +type NullablePartialUpdateAlertrulesRequestInner struct { + value *PartialUpdateAlertrulesRequestInner + isSet bool +} + +func (v NullablePartialUpdateAlertrulesRequestInner) Get() *PartialUpdateAlertrulesRequestInner { + return v.value +} + +func (v *NullablePartialUpdateAlertrulesRequestInner) Set(val *PartialUpdateAlertrulesRequestInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateAlertrulesRequestInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateAlertrulesRequestInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateAlertrulesRequestInner(val *PartialUpdateAlertrulesRequestInner) *NullablePartialUpdateAlertrulesRequestInner { + return &NullablePartialUpdateAlertrulesRequestInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateAlertrulesRequestInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateAlertrulesRequestInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner.go new file mode 100644 index 000000000..32fa484fe --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner.go @@ -0,0 +1,690 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateScrapeConfigsRequestInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInner{} + +// PartialUpdateScrapeConfigsRequestInner struct for PartialUpdateScrapeConfigsRequestInner +type PartialUpdateScrapeConfigsRequestInner struct { + BasicAuth *PartialUpdateScrapeConfigsRequestInnerBasicAuth `json:"basicAuth,omitempty"` + // Sets the 'Authorization' header on every scrape request with the configured bearer token. It is mutually exclusive with 'bearer_token_file'. `Additional Validators:` * needs to be a valid bearer token * if bearerToken is in the body no other authentication method should be in the body + BearerToken *string `json:"bearerToken,omitempty"` + // Note that any globally configured 'external_labels' are unaffected by this setting. In communication with external systems, they are always applied only when a time series does not have a given label yet and are ignored otherwise. + HonorLabels *bool `json:"honorLabels,omitempty"` + // honor_timestamps controls whether Prometheus respects the timestamps present in scraped data. If honor_timestamps is set to 'true', the timestamps of the metrics exposed by the target will be used. + HonorTimeStamps *bool `json:"honorTimeStamps,omitempty"` + // HTTP-based service discovery provides a more generic way to configure static targets and serves as an interface to plug in custom service discovery mechanisms. + HttpSdConfigs []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner `json:"httpSdConfigs,omitempty"` + // The job name assigned to scraped metrics by default. `Additional Validators:` * must be unique * key and values should only include the characters: a-zA-Z0-9- + JobName string `json:"jobName"` + // The HTTP resource path on which to fetch metrics from targets. E.g. /metrics + MetricsPath *string `json:"metricsPath,omitempty"` + // List of metric relabel configurations + MetricsRelabelConfigs []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner `json:"metricsRelabelConfigs,omitempty"` + Oauth2 *PartialUpdateScrapeConfigsRequestInnerOauth2 `json:"oauth2,omitempty"` + // Optional http params `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters + Params map[string]interface{} `json:"params,omitempty"` + // Per-scrape limit on number of scraped samples that will be accepted. If more than this number of samples are present after metric relabeling the entire scrape will be treated as failed. The total limit depends on the service plan target limits * samples + SampleLimit *float32 `json:"sampleLimit,omitempty"` + // Configures the protocol scheme used for requests. https or http + Scheme string `json:"scheme"` + // How frequently to scrape targets from this job. E.g. 5m `Additional Validators:` * must be a valid time format* must be >= 60s + ScrapeInterval string `json:"scrapeInterval"` + // Per-scrape timeout when scraping this job. `Additional Validators:` * must be a valid time format* must be smaller than scrapeInterval + ScrapeTimeout string `json:"scrapeTimeout"` + // A list of scrape configurations. + StaticConfigs []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner `json:"staticConfigs"` + TlsConfig *PartialUpdateScrapeConfigsRequestInnerTlsConfig `json:"tlsConfig,omitempty"` +} + +type _PartialUpdateScrapeConfigsRequestInner PartialUpdateScrapeConfigsRequestInner + +// NewPartialUpdateScrapeConfigsRequestInner instantiates a new PartialUpdateScrapeConfigsRequestInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInner(jobName string, scheme string, scrapeInterval string, scrapeTimeout string, staticConfigs []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) *PartialUpdateScrapeConfigsRequestInner { + this := PartialUpdateScrapeConfigsRequestInner{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + this.JobName = jobName + var metricsPath string = "/metrics" + this.MetricsPath = &metricsPath + this.Scheme = scheme + this.ScrapeInterval = scrapeInterval + this.ScrapeTimeout = scrapeTimeout + this.StaticConfigs = staticConfigs + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInner { + this := PartialUpdateScrapeConfigsRequestInner{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + var metricsPath string = "/metrics" + this.MetricsPath = &metricsPath + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetBasicAuth() PartialUpdateScrapeConfigsRequestInnerBasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret PartialUpdateScrapeConfigsRequestInnerBasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetBasicAuthOk() (*PartialUpdateScrapeConfigsRequestInnerBasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given PartialUpdateScrapeConfigsRequestInnerBasicAuth and assigns it to the BasicAuth field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetBasicAuth(v PartialUpdateScrapeConfigsRequestInnerBasicAuth) { + o.BasicAuth = &v +} + +// GetBearerToken returns the BearerToken field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetBearerToken() string { + if o == nil || IsNil(o.BearerToken) { + var ret string + return ret + } + return *o.BearerToken +} + +// GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetBearerTokenOk() (*string, bool) { + if o == nil || IsNil(o.BearerToken) { + return nil, false + } + return o.BearerToken, true +} + +// HasBearerToken returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasBearerToken() bool { + if o != nil && !IsNil(o.BearerToken) { + return true + } + + return false +} + +// SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetBearerToken(v string) { + o.BearerToken = &v +} + +// GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorLabels() bool { + if o == nil || IsNil(o.HonorLabels) { + var ret bool + return ret + } + return *o.HonorLabels +} + +// GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorLabelsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorLabels) { + return nil, false + } + return o.HonorLabels, true +} + +// HasHonorLabels returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasHonorLabels() bool { + if o != nil && !IsNil(o.HonorLabels) { + return true + } + + return false +} + +// SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetHonorLabels(v bool) { + o.HonorLabels = &v +} + +// GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorTimeStamps() bool { + if o == nil || IsNil(o.HonorTimeStamps) { + var ret bool + return ret + } + return *o.HonorTimeStamps +} + +// GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetHonorTimeStampsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorTimeStamps) { + return nil, false + } + return o.HonorTimeStamps, true +} + +// HasHonorTimeStamps returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasHonorTimeStamps() bool { + if o != nil && !IsNil(o.HonorTimeStamps) { + return true + } + + return false +} + +// SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetHonorTimeStamps(v bool) { + o.HonorTimeStamps = &v +} + +// GetHttpSdConfigs returns the HttpSdConfigs field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetHttpSdConfigs() []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { + if o == nil || IsNil(o.HttpSdConfigs) { + var ret []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + return ret + } + return o.HttpSdConfigs +} + +// GetHttpSdConfigsOk returns a tuple with the HttpSdConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetHttpSdConfigsOk() ([]PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner, bool) { + if o == nil || IsNil(o.HttpSdConfigs) { + return nil, false + } + return o.HttpSdConfigs, true +} + +// HasHttpSdConfigs returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasHttpSdConfigs() bool { + if o != nil && !IsNil(o.HttpSdConfigs) { + return true + } + + return false +} + +// SetHttpSdConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner and assigns it to the HttpSdConfigs field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetHttpSdConfigs(v []PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) { + o.HttpSdConfigs = v +} + +// GetJobName returns the JobName field value +func (o *PartialUpdateScrapeConfigsRequestInner) GetJobName() string { + if o == nil { + var ret string + return ret + } + + return o.JobName +} + +// GetJobNameOk returns a tuple with the JobName field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetJobNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobName, true +} + +// SetJobName sets field value +func (o *PartialUpdateScrapeConfigsRequestInner) SetJobName(v string) { + o.JobName = v +} + +// GetMetricsPath returns the MetricsPath field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsPath() string { + if o == nil || IsNil(o.MetricsPath) { + var ret string + return ret + } + return *o.MetricsPath +} + +// GetMetricsPathOk returns a tuple with the MetricsPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsPathOk() (*string, bool) { + if o == nil || IsNil(o.MetricsPath) { + return nil, false + } + return o.MetricsPath, true +} + +// HasMetricsPath returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasMetricsPath() bool { + if o != nil && !IsNil(o.MetricsPath) { + return true + } + + return false +} + +// SetMetricsPath gets a reference to the given string and assigns it to the MetricsPath field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetMetricsPath(v string) { + o.MetricsPath = &v +} + +// GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsRelabelConfigs() []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + var ret []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + return ret + } + return o.MetricsRelabelConfigs +} + +// GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetMetricsRelabelConfigsOk() ([]PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner, bool) { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + return nil, false + } + return o.MetricsRelabelConfigs, true +} + +// HasMetricsRelabelConfigs returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasMetricsRelabelConfigs() bool { + if o != nil && !IsNil(o.MetricsRelabelConfigs) { + return true + } + + return false +} + +// SetMetricsRelabelConfigs gets a reference to the given []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner and assigns it to the MetricsRelabelConfigs field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetMetricsRelabelConfigs(v []PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) { + o.MetricsRelabelConfigs = v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetOauth2() PartialUpdateScrapeConfigsRequestInnerOauth2 { + if o == nil || IsNil(o.Oauth2) { + var ret PartialUpdateScrapeConfigsRequestInnerOauth2 + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetOauth2Ok() (*PartialUpdateScrapeConfigsRequestInnerOauth2, bool) { + if o == nil || IsNil(o.Oauth2) { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasOauth2() bool { + if o != nil && !IsNil(o.Oauth2) { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given PartialUpdateScrapeConfigsRequestInnerOauth2 and assigns it to the Oauth2 field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetOauth2(v PartialUpdateScrapeConfigsRequestInnerOauth2) { + o.Oauth2 = &v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetParams() map[string]interface{} { + if o == nil || IsNil(o.Params) { + var ret map[string]interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetParamsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Params) { + return map[string]interface{}{}, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given map[string]interface{} and assigns it to the Params field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetParams(v map[string]interface{}) { + o.Params = v +} + +// GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetSampleLimit() float32 { + if o == nil || IsNil(o.SampleLimit) { + var ret float32 + return ret + } + return *o.SampleLimit +} + +// GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetSampleLimitOk() (*float32, bool) { + if o == nil || IsNil(o.SampleLimit) { + return nil, false + } + return o.SampleLimit, true +} + +// HasSampleLimit returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasSampleLimit() bool { + if o != nil && !IsNil(o.SampleLimit) { + return true + } + + return false +} + +// SetSampleLimit gets a reference to the given float32 and assigns it to the SampleLimit field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetSampleLimit(v float32) { + o.SampleLimit = &v +} + +// GetScheme returns the Scheme field value +func (o *PartialUpdateScrapeConfigsRequestInner) GetScheme() string { + if o == nil { + var ret string + return ret + } + + return o.Scheme +} + +// GetSchemeOk returns a tuple with the Scheme field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Scheme, true +} + +// SetScheme sets field value +func (o *PartialUpdateScrapeConfigsRequestInner) SetScheme(v string) { + o.Scheme = v +} + +// GetScrapeInterval returns the ScrapeInterval field value +func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeInterval() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeInterval +} + +// GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeInterval, true +} + +// SetScrapeInterval sets field value +func (o *PartialUpdateScrapeConfigsRequestInner) SetScrapeInterval(v string) { + o.ScrapeInterval = v +} + +// GetScrapeTimeout returns the ScrapeTimeout field value +func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeTimeout() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeTimeout +} + +// GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetScrapeTimeoutOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeTimeout, true +} + +// SetScrapeTimeout sets field value +func (o *PartialUpdateScrapeConfigsRequestInner) SetScrapeTimeout(v string) { + o.ScrapeTimeout = v +} + +// GetStaticConfigs returns the StaticConfigs field value +func (o *PartialUpdateScrapeConfigsRequestInner) GetStaticConfigs() []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { + if o == nil { + var ret []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + return ret + } + + return o.StaticConfigs +} + +// GetStaticConfigsOk returns a tuple with the StaticConfigs field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetStaticConfigsOk() ([]PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner, bool) { + if o == nil { + return nil, false + } + return o.StaticConfigs, true +} + +// SetStaticConfigs sets field value +func (o *PartialUpdateScrapeConfigsRequestInner) SetStaticConfigs(v []PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) { + o.StaticConfigs = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInner) GetTlsConfig() PartialUpdateScrapeConfigsRequestInnerTlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret PartialUpdateScrapeConfigsRequestInnerTlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) GetTlsConfigOk() (*PartialUpdateScrapeConfigsRequestInnerTlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInner) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerTlsConfig and assigns it to the TlsConfig field. +func (o *PartialUpdateScrapeConfigsRequestInner) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerTlsConfig) { + o.TlsConfig = &v +} + +func (o PartialUpdateScrapeConfigsRequestInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.BearerToken) { + toSerialize["bearerToken"] = o.BearerToken + } + if !IsNil(o.HonorLabels) { + toSerialize["honorLabels"] = o.HonorLabels + } + if !IsNil(o.HonorTimeStamps) { + toSerialize["honorTimeStamps"] = o.HonorTimeStamps + } + if !IsNil(o.HttpSdConfigs) { + toSerialize["httpSdConfigs"] = o.HttpSdConfigs + } + toSerialize["jobName"] = o.JobName + if !IsNil(o.MetricsPath) { + toSerialize["metricsPath"] = o.MetricsPath + } + if !IsNil(o.MetricsRelabelConfigs) { + toSerialize["metricsRelabelConfigs"] = o.MetricsRelabelConfigs + } + if !IsNil(o.Oauth2) { + toSerialize["oauth2"] = o.Oauth2 + } + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + if !IsNil(o.SampleLimit) { + toSerialize["sampleLimit"] = o.SampleLimit + } + toSerialize["scheme"] = o.Scheme + toSerialize["scrapeInterval"] = o.ScrapeInterval + toSerialize["scrapeTimeout"] = o.ScrapeTimeout + toSerialize["staticConfigs"] = o.StaticConfigs + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + return toSerialize, nil +} + +func (o *PartialUpdateScrapeConfigsRequestInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "jobName", + "scheme", + "scrapeInterval", + "scrapeTimeout", + "staticConfigs", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateScrapeConfigsRequestInner := _PartialUpdateScrapeConfigsRequestInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateScrapeConfigsRequestInner) + + if err != nil { + return err + } + + *o = PartialUpdateScrapeConfigsRequestInner(varPartialUpdateScrapeConfigsRequestInner) + + return err +} + +type NullablePartialUpdateScrapeConfigsRequestInner struct { + value *PartialUpdateScrapeConfigsRequestInner + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInner) Get() *PartialUpdateScrapeConfigsRequestInner { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInner) Set(val *PartialUpdateScrapeConfigsRequestInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInner(val *PartialUpdateScrapeConfigsRequestInner) *NullablePartialUpdateScrapeConfigsRequestInner { + return &NullablePartialUpdateScrapeConfigsRequestInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_basic_auth.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_basic_auth.go new file mode 100644 index 000000000..3c4585fc3 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_basic_auth.go @@ -0,0 +1,163 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerBasicAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerBasicAuth{} + +// PartialUpdateScrapeConfigsRequestInnerBasicAuth 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 +type PartialUpdateScrapeConfigsRequestInnerBasicAuth struct { + // password + Password *string `json:"password,omitempty"` + // username + Username *string `json:"username,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerBasicAuth instantiates a new PartialUpdateScrapeConfigsRequestInnerBasicAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerBasicAuth() *PartialUpdateScrapeConfigsRequestInnerBasicAuth { + this := PartialUpdateScrapeConfigsRequestInnerBasicAuth{} + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerBasicAuthWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerBasicAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerBasicAuthWithDefaults() *PartialUpdateScrapeConfigsRequestInnerBasicAuth { + this := PartialUpdateScrapeConfigsRequestInnerBasicAuth{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *PartialUpdateScrapeConfigsRequestInnerBasicAuth) SetUsername(v string) { + o.Username = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerBasicAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerBasicAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth struct { + value *PartialUpdateScrapeConfigsRequestInnerBasicAuth + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) Get() *PartialUpdateScrapeConfigsRequestInnerBasicAuth { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) Set(val *PartialUpdateScrapeConfigsRequestInnerBasicAuth) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerBasicAuth(val *PartialUpdateScrapeConfigsRequestInnerBasicAuth) *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth { + return &NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerBasicAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go new file mode 100644 index 000000000..05d82087d --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner.go @@ -0,0 +1,307 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{} + +// PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct for PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner +type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct { + BasicAuth *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth `json:"basicAuth,omitempty"` + Oauth2 *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 `json:"oauth2,omitempty"` + // Refresh interval to re-query the endpoint. E.g. 60s `Additional Validators:` * must be a valid time format* must be >= 60s + RefreshInterval *string `json:"refreshInterval,omitempty"` + TlsConfig *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig `json:"tlsConfig,omitempty"` + // URL from which the targets are fetched. + Url string `json:"url"` +} + +type _PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner(url string) *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{} + var refreshInterval string = "60s" + this.RefreshInterval = &refreshInterval + this.Url = url + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{} + var refreshInterval string = "60s" + this.RefreshInterval = &refreshInterval + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetBasicAuth() PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetBasicAuthOk() (*PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth and assigns it to the BasicAuth field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetBasicAuth(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) { + o.BasicAuth = &v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetOauth2() PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { + if o == nil || IsNil(o.Oauth2) { + var ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetOauth2Ok() (*PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2, bool) { + if o == nil || IsNil(o.Oauth2) { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasOauth2() bool { + if o != nil && !IsNil(o.Oauth2) { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 and assigns it to the Oauth2 field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetOauth2(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) { + o.Oauth2 = &v +} + +// GetRefreshInterval returns the RefreshInterval field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetRefreshInterval() string { + if o == nil || IsNil(o.RefreshInterval) { + var ret string + return ret + } + return *o.RefreshInterval +} + +// GetRefreshIntervalOk returns a tuple with the RefreshInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetRefreshIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RefreshInterval) { + return nil, false + } + return o.RefreshInterval, true +} + +// HasRefreshInterval returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasRefreshInterval() bool { + if o != nil && !IsNil(o.RefreshInterval) { + return true + } + + return false +} + +// SetRefreshInterval gets a reference to the given string and assigns it to the RefreshInterval field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetRefreshInterval(v string) { + o.RefreshInterval = &v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetTlsConfig() PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetTlsConfigOk() (*PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig and assigns it to the TlsConfig field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) { + o.TlsConfig = &v +} + +// GetUrl returns the Url field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) SetUrl(v string) { + o.Url = v +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.Oauth2) { + toSerialize["oauth2"] = o.Oauth2 + } + if !IsNil(o.RefreshInterval) { + toSerialize["refreshInterval"] = o.RefreshInterval + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner := _PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) + + if err != nil { + return err + } + + *o = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner(varPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) + + return err +} + +type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner struct { + value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner { + return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_basic_auth.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_basic_auth.go new file mode 100644 index 000000000..229447402 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_basic_auth.go @@ -0,0 +1,163 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth{} + +// PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth 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 +type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth struct { + // password + Password *string `json:"password,omitempty"` + // username + Username *string `json:"username,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth{} + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuthWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuthWithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) SetUsername(v string) { + o.Username = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth struct { + value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth { + return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerBasicAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go new file mode 100644 index 000000000..c685736fb --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2.go @@ -0,0 +1,289 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{} + +// PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 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 +type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 struct { + // clientId + ClientId string `json:"clientId"` + // clientSecret + ClientSecret string `json:"clientSecret"` + // The URL to fetch the token from. + Scopes []string `json:"scopes,omitempty"` + TlsConfig *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig `json:"tlsConfig,omitempty"` + // The URL to fetch the token from. + TokenUrl string `json:"tokenUrl"` +} + +type _PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2(clientId string, clientSecret string, tokenUrl string) *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{} + this.ClientId = clientId + this.ClientSecret = clientSecret + this.TokenUrl = tokenUrl + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2WithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2WithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetClientSecret(v string) { + o.ClientSecret = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetScopes(v []string) { + o.Scopes = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTlsConfig() PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTlsConfigOk() (*PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig and assigns it to the TlsConfig field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) { + o.TlsConfig = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) SetTokenUrl(v string) { + o.TokenUrl = v +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientId"] = o.ClientId + toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["tokenUrl"] = o.TokenUrl + return toSerialize, nil +} + +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "clientId", + "clientSecret", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 := _PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) + + if err != nil { + return err + } + + *o = PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2(varPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) + + return err +} + +type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 struct { + value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2 { + return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go new file mode 100644 index 000000000..6b7d26241 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_oauth2_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{} + +// PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig Configures the scrape request's TLS settings. +type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfigWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfigWithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig struct { + value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig { + return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerOauth2TlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_tls_config.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_tls_config.go new file mode 100644 index 000000000..5a65a5f31 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_http_sd_configs_inner_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig{} + +// PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig Configures the scrape request's TLS settings. +type PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfigWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfigWithDefaults() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig struct { + value *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) Get() *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) Set(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig(val *PartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig { + return &NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerHttpSdConfigsInnerTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go new file mode 100644 index 000000000..99dd813e9 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_metrics_relabel_configs_inner.go @@ -0,0 +1,364 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{} + +// PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct for PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner +type PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct { + // Action to perform based on regex matching. `Additional Validators:` * if action is replace, targetLabel needs to be in body + Action *string `json:"action,omitempty"` + // Modulus to take of the hash of the source label values. + Modulus *float32 `json:"modulus,omitempty"` + // Regular expression against which the extracted value is matched. + Regex *string `json:"regex,omitempty"` + // Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. + Replacement *string `json:"replacement,omitempty"` + // Separator placed between concatenated source label values. + Separator *string `json:"separator,omitempty"` + // The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions. + SourceLabels []string `json:"sourceLabels,omitempty"` + // Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available. + TargetLabel *string `json:"targetLabel,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner instantiates a new PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { + this := PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { + this := PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetAction(v string) { + o.Action = &v +} + +// GetModulus returns the Modulus field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetModulus() float32 { + if o == nil || IsNil(o.Modulus) { + var ret float32 + return ret + } + return *o.Modulus +} + +// GetModulusOk returns a tuple with the Modulus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetModulusOk() (*float32, bool) { + if o == nil || IsNil(o.Modulus) { + return nil, false + } + return o.Modulus, true +} + +// HasModulus returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasModulus() bool { + if o != nil && !IsNil(o.Modulus) { + return true + } + + return false +} + +// SetModulus gets a reference to the given float32 and assigns it to the Modulus field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetModulus(v float32) { + o.Modulus = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetRegex() string { + if o == nil || IsNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetRegexOk() (*string, bool) { + if o == nil || IsNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasRegex() bool { + if o != nil && !IsNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetRegex(v string) { + o.Regex = &v +} + +// GetReplacement returns the Replacement field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetReplacement() string { + if o == nil || IsNil(o.Replacement) { + var ret string + return ret + } + return *o.Replacement +} + +// GetReplacementOk returns a tuple with the Replacement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetReplacementOk() (*string, bool) { + if o == nil || IsNil(o.Replacement) { + return nil, false + } + return o.Replacement, true +} + +// HasReplacement returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasReplacement() bool { + if o != nil && !IsNil(o.Replacement) { + return true + } + + return false +} + +// SetReplacement gets a reference to the given string and assigns it to the Replacement field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetReplacement(v string) { + o.Replacement = &v +} + +// GetSeparator returns the Separator field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSeparator() string { + if o == nil || IsNil(o.Separator) { + var ret string + return ret + } + return *o.Separator +} + +// GetSeparatorOk returns a tuple with the Separator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSeparatorOk() (*string, bool) { + if o == nil || IsNil(o.Separator) { + return nil, false + } + return o.Separator, true +} + +// HasSeparator returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasSeparator() bool { + if o != nil && !IsNil(o.Separator) { + return true + } + + return false +} + +// SetSeparator gets a reference to the given string and assigns it to the Separator field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetSeparator(v string) { + o.Separator = &v +} + +// GetSourceLabels returns the SourceLabels field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSourceLabels() []string { + if o == nil || IsNil(o.SourceLabels) { + var ret []string + return ret + } + return o.SourceLabels +} + +// GetSourceLabelsOk returns a tuple with the SourceLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetSourceLabelsOk() ([]string, bool) { + if o == nil || IsNil(o.SourceLabels) { + return nil, false + } + return o.SourceLabels, true +} + +// HasSourceLabels returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasSourceLabels() bool { + if o != nil && !IsNil(o.SourceLabels) { + return true + } + + return false +} + +// SetSourceLabels gets a reference to the given []string and assigns it to the SourceLabels field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetSourceLabels(v []string) { + o.SourceLabels = v +} + +// GetTargetLabel returns the TargetLabel field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetTargetLabel() string { + if o == nil || IsNil(o.TargetLabel) { + var ret string + return ret + } + return *o.TargetLabel +} + +// GetTargetLabelOk returns a tuple with the TargetLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) GetTargetLabelOk() (*string, bool) { + if o == nil || IsNil(o.TargetLabel) { + return nil, false + } + return o.TargetLabel, true +} + +// HasTargetLabel returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) HasTargetLabel() bool { + if o != nil && !IsNil(o.TargetLabel) { + return true + } + + return false +} + +// SetTargetLabel gets a reference to the given string and assigns it to the TargetLabel field. +func (o *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) SetTargetLabel(v string) { + o.TargetLabel = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Modulus) { + toSerialize["modulus"] = o.Modulus + } + if !IsNil(o.Regex) { + toSerialize["regex"] = o.Regex + } + if !IsNil(o.Replacement) { + toSerialize["replacement"] = o.Replacement + } + if !IsNil(o.Separator) { + toSerialize["separator"] = o.Separator + } + if !IsNil(o.SourceLabels) { + toSerialize["sourceLabels"] = o.SourceLabels + } + if !IsNil(o.TargetLabel) { + toSerialize["targetLabel"] = o.TargetLabel + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner struct { + value *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) Get() *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) Set(val *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner(val *PartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner { + return &NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerMetricsRelabelConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2.go new file mode 100644 index 000000000..9cdd13ffc --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2.go @@ -0,0 +1,289 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerOauth2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerOauth2{} + +// PartialUpdateScrapeConfigsRequestInnerOauth2 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 +type PartialUpdateScrapeConfigsRequestInnerOauth2 struct { + // clientId + ClientId string `json:"clientId"` + // clientSecret + ClientSecret string `json:"clientSecret"` + // The URL to fetch the token from. + Scopes []string `json:"scopes,omitempty"` + TlsConfig *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig `json:"tlsConfig,omitempty"` + // The URL to fetch the token from. + TokenUrl string `json:"tokenUrl"` +} + +type _PartialUpdateScrapeConfigsRequestInnerOauth2 PartialUpdateScrapeConfigsRequestInnerOauth2 + +// NewPartialUpdateScrapeConfigsRequestInnerOauth2 instantiates a new PartialUpdateScrapeConfigsRequestInnerOauth2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerOauth2(clientId string, clientSecret string, tokenUrl string) *PartialUpdateScrapeConfigsRequestInnerOauth2 { + this := PartialUpdateScrapeConfigsRequestInnerOauth2{} + this.ClientId = clientId + this.ClientSecret = clientSecret + this.TokenUrl = tokenUrl + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerOauth2WithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerOauth2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerOauth2WithDefaults() *PartialUpdateScrapeConfigsRequestInnerOauth2 { + this := PartialUpdateScrapeConfigsRequestInnerOauth2{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) SetClientSecret(v string) { + o.ClientSecret = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) SetScopes(v []string) { + o.Scopes = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetTlsConfig() PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetTlsConfigOk() (*PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig and assigns it to the TlsConfig field. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) SetTlsConfig(v PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) { + o.TlsConfig = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) SetTokenUrl(v string) { + o.TokenUrl = v +} + +func (o PartialUpdateScrapeConfigsRequestInnerOauth2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerOauth2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["clientId"] = o.ClientId + toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + toSerialize["tokenUrl"] = o.TokenUrl + return toSerialize, nil +} + +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "clientId", + "clientSecret", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateScrapeConfigsRequestInnerOauth2 := _PartialUpdateScrapeConfigsRequestInnerOauth2{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateScrapeConfigsRequestInnerOauth2) + + if err != nil { + return err + } + + *o = PartialUpdateScrapeConfigsRequestInnerOauth2(varPartialUpdateScrapeConfigsRequestInnerOauth2) + + return err +} + +type NullablePartialUpdateScrapeConfigsRequestInnerOauth2 struct { + value *PartialUpdateScrapeConfigsRequestInnerOauth2 + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerOauth2) Get() *PartialUpdateScrapeConfigsRequestInnerOauth2 { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerOauth2) Set(val *PartialUpdateScrapeConfigsRequestInnerOauth2) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerOauth2) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerOauth2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerOauth2(val *PartialUpdateScrapeConfigsRequestInnerOauth2) *NullablePartialUpdateScrapeConfigsRequestInnerOauth2 { + return &NullablePartialUpdateScrapeConfigsRequestInnerOauth2{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerOauth2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerOauth2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2_tls_config.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2_tls_config.go new file mode 100644 index 000000000..6ea5e24fe --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_oauth2_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig{} + +// PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig Configures the scrape request's TLS settings. +type PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig instantiates a new PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig() *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerOauth2TlsConfigWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerOauth2TlsConfigWithDefaults() *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig struct { + value *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) Get() *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) Set(val *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig(val *PartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) *NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig { + return &NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerOauth2TlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_static_configs_inner.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_static_configs_inner.go new file mode 100644 index 000000000..7e9639a40 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_static_configs_inner.go @@ -0,0 +1,195 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{} + +// PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct for PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner +type PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct { + // Labels assigned to all metrics scraped from the targets. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The targets specified by the static config. + Targets []string `json:"targets"` +} + +type _PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + +// NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner instantiates a new PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner(targets []string) *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { + this := PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{} + this.Targets = targets + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerStaticConfigsInnerWithDefaults() *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { + this := PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{} + return &this +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetTargets returns the Targets field value +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetTargets() []string { + if o == nil { + var ret []string + return ret + } + + return o.Targets +} + +// GetTargetsOk returns a tuple with the Targets field value +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) GetTargetsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Targets, true +} + +// SetTargets sets field value +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) SetTargets(v []string) { + o.Targets = v +} + +func (o PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["targets"] = o.Targets + return toSerialize, nil +} + +func (o *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "targets", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner := _PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) + + if err != nil { + return err + } + + *o = PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner(varPartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) + + return err +} + +type NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner struct { + value *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) Get() *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) Set(val *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner(val *PartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner { + return &NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerStaticConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_partial_update_scrape_configs_request_inner_tls_config.go b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_tls_config.go new file mode 100644 index 000000000..b5237df16 --- /dev/null +++ b/services/observability/v1api/model_partial_update_scrape_configs_request_inner_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateScrapeConfigsRequestInnerTlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateScrapeConfigsRequestInnerTlsConfig{} + +// PartialUpdateScrapeConfigsRequestInnerTlsConfig Configures the scrape request's TLS settings. +type PartialUpdateScrapeConfigsRequestInnerTlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewPartialUpdateScrapeConfigsRequestInnerTlsConfig instantiates a new PartialUpdateScrapeConfigsRequestInnerTlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateScrapeConfigsRequestInnerTlsConfig() *PartialUpdateScrapeConfigsRequestInnerTlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewPartialUpdateScrapeConfigsRequestInnerTlsConfigWithDefaults instantiates a new PartialUpdateScrapeConfigsRequestInnerTlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateScrapeConfigsRequestInnerTlsConfigWithDefaults() *PartialUpdateScrapeConfigsRequestInnerTlsConfig { + this := PartialUpdateScrapeConfigsRequestInnerTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *PartialUpdateScrapeConfigsRequestInnerTlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerTlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *PartialUpdateScrapeConfigsRequestInnerTlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *PartialUpdateScrapeConfigsRequestInnerTlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o PartialUpdateScrapeConfigsRequestInnerTlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateScrapeConfigsRequestInnerTlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig struct { + value *PartialUpdateScrapeConfigsRequestInnerTlsConfig + isSet bool +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig) Get() *PartialUpdateScrapeConfigsRequestInnerTlsConfig { + return v.value +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig) Set(val *PartialUpdateScrapeConfigsRequestInnerTlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateScrapeConfigsRequestInnerTlsConfig(val *PartialUpdateScrapeConfigsRequestInnerTlsConfig) *NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig { + return &NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig{value: val, isSet: true} +} + +func (v NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateScrapeConfigsRequestInnerTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_permission_denied.go b/services/observability/v1api/model_permission_denied.go new file mode 100644 index 000000000..3cf021074 --- /dev/null +++ b/services/observability/v1api/model_permission_denied.go @@ -0,0 +1,157 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PermissionDenied type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionDenied{} + +// PermissionDenied struct for PermissionDenied +type PermissionDenied struct { + Detail string `json:"detail"` +} + +type _PermissionDenied PermissionDenied + +// NewPermissionDenied instantiates a new PermissionDenied object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionDenied(detail string) *PermissionDenied { + this := PermissionDenied{} + this.Detail = detail + return &this +} + +// NewPermissionDeniedWithDefaults instantiates a new PermissionDenied object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionDeniedWithDefaults() *PermissionDenied { + this := PermissionDenied{} + return &this +} + +// GetDetail returns the Detail field value +func (o *PermissionDenied) GetDetail() string { + if o == nil { + var ret string + return ret + } + + return o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value +// and a boolean to check if the value has been set. +func (o *PermissionDenied) GetDetailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Detail, true +} + +// SetDetail sets field value +func (o *PermissionDenied) SetDetail(v string) { + o.Detail = v +} + +func (o PermissionDenied) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionDenied) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["detail"] = o.Detail + return toSerialize, nil +} + +func (o *PermissionDenied) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "detail", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPermissionDenied := _PermissionDenied{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPermissionDenied) + + if err != nil { + return err + } + + *o = PermissionDenied(varPermissionDenied) + + return err +} + +type NullablePermissionDenied struct { + value *PermissionDenied + isSet bool +} + +func (v NullablePermissionDenied) Get() *PermissionDenied { + return v.value +} + +func (v *NullablePermissionDenied) Set(val *PermissionDenied) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionDenied) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionDenied) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionDenied(val *PermissionDenied) *NullablePermissionDenied { + return &NullablePermissionDenied{value: val, isSet: true} +} + +func (v NullablePermissionDenied) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionDenied) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_ping_check_child_response.go b/services/observability/v1api/model_ping_check_child_response.go new file mode 100644 index 000000000..c3253a93d --- /dev/null +++ b/services/observability/v1api/model_ping_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PingCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PingCheckChildResponse{} + +// PingCheckChildResponse struct for PingCheckChildResponse +type PingCheckChildResponse struct { + Id string `json:"id"` + Url string `json:"url"` +} + +type _PingCheckChildResponse PingCheckChildResponse + +// NewPingCheckChildResponse instantiates a new PingCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPingCheckChildResponse(id string, url string) *PingCheckChildResponse { + this := PingCheckChildResponse{} + this.Id = id + this.Url = url + return &this +} + +// NewPingCheckChildResponseWithDefaults instantiates a new PingCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPingCheckChildResponseWithDefaults() *PingCheckChildResponse { + this := PingCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *PingCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PingCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PingCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *PingCheckChildResponse) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *PingCheckChildResponse) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *PingCheckChildResponse) SetUrl(v string) { + o.Url = v +} + +func (o PingCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PingCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *PingCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPingCheckChildResponse := _PingCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPingCheckChildResponse) + + if err != nil { + return err + } + + *o = PingCheckChildResponse(varPingCheckChildResponse) + + return err +} + +type NullablePingCheckChildResponse struct { + value *PingCheckChildResponse + isSet bool +} + +func (v NullablePingCheckChildResponse) Get() *PingCheckChildResponse { + return v.value +} + +func (v *NullablePingCheckChildResponse) Set(val *PingCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePingCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePingCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePingCheckChildResponse(val *PingCheckChildResponse) *NullablePingCheckChildResponse { + return &NullablePingCheckChildResponse{value: val, isSet: true} +} + +func (v NullablePingCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePingCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_ping_check_response.go b/services/observability/v1api/model_ping_check_response.go new file mode 100644 index 000000000..0897e42c2 --- /dev/null +++ b/services/observability/v1api/model_ping_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PingCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PingCheckResponse{} + +// PingCheckResponse struct for PingCheckResponse +type PingCheckResponse struct { + Message string `json:"message"` + PingCheck *PingCheckChildResponse `json:"pingCheck,omitempty"` + PingChecks []PingCheckChildResponse `json:"pingChecks"` +} + +type _PingCheckResponse PingCheckResponse + +// NewPingCheckResponse instantiates a new PingCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPingCheckResponse(message string, pingChecks []PingCheckChildResponse) *PingCheckResponse { + this := PingCheckResponse{} + this.Message = message + this.PingChecks = pingChecks + return &this +} + +// NewPingCheckResponseWithDefaults instantiates a new PingCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPingCheckResponseWithDefaults() *PingCheckResponse { + this := PingCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *PingCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *PingCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *PingCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetPingCheck returns the PingCheck field value if set, zero value otherwise. +func (o *PingCheckResponse) GetPingCheck() PingCheckChildResponse { + if o == nil || IsNil(o.PingCheck) { + var ret PingCheckChildResponse + return ret + } + return *o.PingCheck +} + +// GetPingCheckOk returns a tuple with the PingCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PingCheckResponse) GetPingCheckOk() (*PingCheckChildResponse, bool) { + if o == nil || IsNil(o.PingCheck) { + return nil, false + } + return o.PingCheck, true +} + +// HasPingCheck returns a boolean if a field has been set. +func (o *PingCheckResponse) HasPingCheck() bool { + if o != nil && !IsNil(o.PingCheck) { + return true + } + + return false +} + +// SetPingCheck gets a reference to the given PingCheckChildResponse and assigns it to the PingCheck field. +func (o *PingCheckResponse) SetPingCheck(v PingCheckChildResponse) { + o.PingCheck = &v +} + +// GetPingChecks returns the PingChecks field value +func (o *PingCheckResponse) GetPingChecks() []PingCheckChildResponse { + if o == nil { + var ret []PingCheckChildResponse + return ret + } + + return o.PingChecks +} + +// GetPingChecksOk returns a tuple with the PingChecks field value +// and a boolean to check if the value has been set. +func (o *PingCheckResponse) GetPingChecksOk() ([]PingCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.PingChecks, true +} + +// SetPingChecks sets field value +func (o *PingCheckResponse) SetPingChecks(v []PingCheckChildResponse) { + o.PingChecks = v +} + +func (o PingCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PingCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.PingCheck) { + toSerialize["pingCheck"] = o.PingCheck + } + toSerialize["pingChecks"] = o.PingChecks + return toSerialize, nil +} + +func (o *PingCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "pingChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPingCheckResponse := _PingCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPingCheckResponse) + + if err != nil { + return err + } + + *o = PingCheckResponse(varPingCheckResponse) + + return err +} + +type NullablePingCheckResponse struct { + value *PingCheckResponse + isSet bool +} + +func (v NullablePingCheckResponse) Get() *PingCheckResponse { + return v.value +} + +func (v *NullablePingCheckResponse) Set(val *PingCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePingCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePingCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePingCheckResponse(val *PingCheckResponse) *NullablePingCheckResponse { + return &NullablePingCheckResponse{value: val, isSet: true} +} + +func (v NullablePingCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePingCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_plan.go b/services/observability/v1api/model_plan.go new file mode 100644 index 000000000..c507f59be --- /dev/null +++ b/services/observability/v1api/model_plan.go @@ -0,0 +1,805 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Plan type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Plan{} + +// Plan struct for Plan +type Plan struct { + AlertMatchers int32 `json:"alertMatchers"` + AlertReceivers int32 `json:"alertReceivers"` + AlertRules int32 `json:"alertRules"` + Amount *float32 `json:"amount,omitempty"` + BucketSize int32 `json:"bucketSize"` + Description *string `json:"description,omitempty"` + GrafanaGlobalDashboards int32 `json:"grafanaGlobalDashboards"` + GrafanaGlobalOrgs int32 `json:"grafanaGlobalOrgs"` + GrafanaGlobalSessions int32 `json:"grafanaGlobalSessions"` + GrafanaGlobalUsers int32 `json:"grafanaGlobalUsers"` + Id string `json:"id"` + IsFree *bool `json:"isFree,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + LogsAlert int32 `json:"logsAlert"` + LogsStorage int32 `json:"logsStorage"` + Name *string `json:"name,omitempty"` + PlanId string `json:"planId"` + SamplesPerScrape int32 `json:"samplesPerScrape"` + Schema *string `json:"schema,omitempty"` + TargetNumber int32 `json:"targetNumber"` + TotalMetricSamples int32 `json:"totalMetricSamples"` + TracesStorage int32 `json:"tracesStorage"` +} + +type _Plan Plan + +// NewPlan instantiates a new Plan object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlan(alertMatchers int32, alertReceivers int32, alertRules int32, bucketSize int32, grafanaGlobalDashboards int32, grafanaGlobalOrgs int32, grafanaGlobalSessions int32, grafanaGlobalUsers int32, id string, logsAlert int32, logsStorage int32, planId string, samplesPerScrape int32, targetNumber int32, totalMetricSamples int32, tracesStorage int32) *Plan { + this := Plan{} + this.AlertMatchers = alertMatchers + this.AlertReceivers = alertReceivers + this.AlertRules = alertRules + this.BucketSize = bucketSize + this.GrafanaGlobalDashboards = grafanaGlobalDashboards + this.GrafanaGlobalOrgs = grafanaGlobalOrgs + this.GrafanaGlobalSessions = grafanaGlobalSessions + this.GrafanaGlobalUsers = grafanaGlobalUsers + this.Id = id + var isFree bool = false + this.IsFree = &isFree + var isPublic bool = true + this.IsPublic = &isPublic + this.LogsAlert = logsAlert + this.LogsStorage = logsStorage + this.PlanId = planId + this.SamplesPerScrape = samplesPerScrape + var schema string = "" + this.Schema = &schema + this.TargetNumber = targetNumber + this.TotalMetricSamples = totalMetricSamples + this.TracesStorage = tracesStorage + return &this +} + +// NewPlanWithDefaults instantiates a new Plan object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlanWithDefaults() *Plan { + this := Plan{} + var isFree bool = false + this.IsFree = &isFree + var isPublic bool = true + this.IsPublic = &isPublic + var schema string = "" + this.Schema = &schema + return &this +} + +// GetAlertMatchers returns the AlertMatchers field value +func (o *Plan) GetAlertMatchers() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AlertMatchers +} + +// GetAlertMatchersOk returns a tuple with the AlertMatchers field value +// and a boolean to check if the value has been set. +func (o *Plan) GetAlertMatchersOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AlertMatchers, true +} + +// SetAlertMatchers sets field value +func (o *Plan) SetAlertMatchers(v int32) { + o.AlertMatchers = v +} + +// GetAlertReceivers returns the AlertReceivers field value +func (o *Plan) GetAlertReceivers() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AlertReceivers +} + +// GetAlertReceiversOk returns a tuple with the AlertReceivers field value +// and a boolean to check if the value has been set. +func (o *Plan) GetAlertReceiversOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AlertReceivers, true +} + +// SetAlertReceivers sets field value +func (o *Plan) SetAlertReceivers(v int32) { + o.AlertReceivers = v +} + +// GetAlertRules returns the AlertRules field value +func (o *Plan) GetAlertRules() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AlertRules +} + +// GetAlertRulesOk returns a tuple with the AlertRules field value +// and a boolean to check if the value has been set. +func (o *Plan) GetAlertRulesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AlertRules, true +} + +// SetAlertRules sets field value +func (o *Plan) SetAlertRules(v int32) { + o.AlertRules = v +} + +// GetAmount returns the Amount field value if set, zero value otherwise. +func (o *Plan) GetAmount() float32 { + if o == nil || IsNil(o.Amount) { + var ret float32 + return ret + } + return *o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetAmountOk() (*float32, bool) { + if o == nil || IsNil(o.Amount) { + return nil, false + } + return o.Amount, true +} + +// HasAmount returns a boolean if a field has been set. +func (o *Plan) HasAmount() bool { + if o != nil && !IsNil(o.Amount) { + return true + } + + return false +} + +// SetAmount gets a reference to the given float32 and assigns it to the Amount field. +func (o *Plan) SetAmount(v float32) { + o.Amount = &v +} + +// GetBucketSize returns the BucketSize field value +func (o *Plan) GetBucketSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.BucketSize +} + +// GetBucketSizeOk returns a tuple with the BucketSize field value +// and a boolean to check if the value has been set. +func (o *Plan) GetBucketSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.BucketSize, true +} + +// SetBucketSize sets field value +func (o *Plan) SetBucketSize(v int32) { + o.BucketSize = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Plan) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Plan) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Plan) SetDescription(v string) { + o.Description = &v +} + +// GetGrafanaGlobalDashboards returns the GrafanaGlobalDashboards field value +func (o *Plan) GetGrafanaGlobalDashboards() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalDashboards +} + +// GetGrafanaGlobalDashboardsOk returns a tuple with the GrafanaGlobalDashboards field value +// and a boolean to check if the value has been set. +func (o *Plan) GetGrafanaGlobalDashboardsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalDashboards, true +} + +// SetGrafanaGlobalDashboards sets field value +func (o *Plan) SetGrafanaGlobalDashboards(v int32) { + o.GrafanaGlobalDashboards = v +} + +// GetGrafanaGlobalOrgs returns the GrafanaGlobalOrgs field value +func (o *Plan) GetGrafanaGlobalOrgs() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalOrgs +} + +// GetGrafanaGlobalOrgsOk returns a tuple with the GrafanaGlobalOrgs field value +// and a boolean to check if the value has been set. +func (o *Plan) GetGrafanaGlobalOrgsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalOrgs, true +} + +// SetGrafanaGlobalOrgs sets field value +func (o *Plan) SetGrafanaGlobalOrgs(v int32) { + o.GrafanaGlobalOrgs = v +} + +// GetGrafanaGlobalSessions returns the GrafanaGlobalSessions field value +func (o *Plan) GetGrafanaGlobalSessions() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalSessions +} + +// GetGrafanaGlobalSessionsOk returns a tuple with the GrafanaGlobalSessions field value +// and a boolean to check if the value has been set. +func (o *Plan) GetGrafanaGlobalSessionsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalSessions, true +} + +// SetGrafanaGlobalSessions sets field value +func (o *Plan) SetGrafanaGlobalSessions(v int32) { + o.GrafanaGlobalSessions = v +} + +// GetGrafanaGlobalUsers returns the GrafanaGlobalUsers field value +func (o *Plan) GetGrafanaGlobalUsers() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalUsers +} + +// GetGrafanaGlobalUsersOk returns a tuple with the GrafanaGlobalUsers field value +// and a boolean to check if the value has been set. +func (o *Plan) GetGrafanaGlobalUsersOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalUsers, true +} + +// SetGrafanaGlobalUsers sets field value +func (o *Plan) SetGrafanaGlobalUsers(v int32) { + o.GrafanaGlobalUsers = v +} + +// GetId returns the Id field value +func (o *Plan) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Plan) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Plan) SetId(v string) { + o.Id = v +} + +// GetIsFree returns the IsFree field value if set, zero value otherwise. +func (o *Plan) GetIsFree() bool { + if o == nil || IsNil(o.IsFree) { + var ret bool + return ret + } + return *o.IsFree +} + +// GetIsFreeOk returns a tuple with the IsFree field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetIsFreeOk() (*bool, bool) { + if o == nil || IsNil(o.IsFree) { + return nil, false + } + return o.IsFree, true +} + +// HasIsFree returns a boolean if a field has been set. +func (o *Plan) HasIsFree() bool { + if o != nil && !IsNil(o.IsFree) { + return true + } + + return false +} + +// SetIsFree gets a reference to the given bool and assigns it to the IsFree field. +func (o *Plan) SetIsFree(v bool) { + o.IsFree = &v +} + +// GetIsPublic returns the IsPublic field value if set, zero value otherwise. +func (o *Plan) GetIsPublic() bool { + if o == nil || IsNil(o.IsPublic) { + var ret bool + return ret + } + return *o.IsPublic +} + +// GetIsPublicOk returns a tuple with the IsPublic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetIsPublicOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublic) { + return nil, false + } + return o.IsPublic, true +} + +// HasIsPublic returns a boolean if a field has been set. +func (o *Plan) HasIsPublic() bool { + if o != nil && !IsNil(o.IsPublic) { + return true + } + + return false +} + +// SetIsPublic gets a reference to the given bool and assigns it to the IsPublic field. +func (o *Plan) SetIsPublic(v bool) { + o.IsPublic = &v +} + +// GetLogsAlert returns the LogsAlert field value +func (o *Plan) GetLogsAlert() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LogsAlert +} + +// GetLogsAlertOk returns a tuple with the LogsAlert field value +// and a boolean to check if the value has been set. +func (o *Plan) GetLogsAlertOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LogsAlert, true +} + +// SetLogsAlert sets field value +func (o *Plan) SetLogsAlert(v int32) { + o.LogsAlert = v +} + +// GetLogsStorage returns the LogsStorage field value +func (o *Plan) GetLogsStorage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LogsStorage +} + +// GetLogsStorageOk returns a tuple with the LogsStorage field value +// and a boolean to check if the value has been set. +func (o *Plan) GetLogsStorageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LogsStorage, true +} + +// SetLogsStorage sets field value +func (o *Plan) SetLogsStorage(v int32) { + o.LogsStorage = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Plan) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Plan) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Plan) SetName(v string) { + o.Name = &v +} + +// GetPlanId returns the PlanId field value +func (o *Plan) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *Plan) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *Plan) SetPlanId(v string) { + o.PlanId = v +} + +// GetSamplesPerScrape returns the SamplesPerScrape field value +func (o *Plan) GetSamplesPerScrape() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SamplesPerScrape +} + +// GetSamplesPerScrapeOk returns a tuple with the SamplesPerScrape field value +// and a boolean to check if the value has been set. +func (o *Plan) GetSamplesPerScrapeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SamplesPerScrape, true +} + +// SetSamplesPerScrape sets field value +func (o *Plan) SetSamplesPerScrape(v int32) { + o.SamplesPerScrape = v +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *Plan) GetSchema() string { + if o == nil || IsNil(o.Schema) { + var ret string + return ret + } + return *o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetSchemaOk() (*string, bool) { + if o == nil || IsNil(o.Schema) { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *Plan) HasSchema() bool { + if o != nil && !IsNil(o.Schema) { + return true + } + + return false +} + +// SetSchema gets a reference to the given string and assigns it to the Schema field. +func (o *Plan) SetSchema(v string) { + o.Schema = &v +} + +// GetTargetNumber returns the TargetNumber field value +func (o *Plan) GetTargetNumber() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TargetNumber +} + +// GetTargetNumberOk returns a tuple with the TargetNumber field value +// and a boolean to check if the value has been set. +func (o *Plan) GetTargetNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TargetNumber, true +} + +// SetTargetNumber sets field value +func (o *Plan) SetTargetNumber(v int32) { + o.TargetNumber = v +} + +// GetTotalMetricSamples returns the TotalMetricSamples field value +func (o *Plan) GetTotalMetricSamples() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TotalMetricSamples +} + +// GetTotalMetricSamplesOk returns a tuple with the TotalMetricSamples field value +// and a boolean to check if the value has been set. +func (o *Plan) GetTotalMetricSamplesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TotalMetricSamples, true +} + +// SetTotalMetricSamples sets field value +func (o *Plan) SetTotalMetricSamples(v int32) { + o.TotalMetricSamples = v +} + +// GetTracesStorage returns the TracesStorage field value +func (o *Plan) GetTracesStorage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TracesStorage +} + +// GetTracesStorageOk returns a tuple with the TracesStorage field value +// and a boolean to check if the value has been set. +func (o *Plan) GetTracesStorageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TracesStorage, true +} + +// SetTracesStorage sets field value +func (o *Plan) SetTracesStorage(v int32) { + o.TracesStorage = v +} + +func (o Plan) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Plan) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alertMatchers"] = o.AlertMatchers + toSerialize["alertReceivers"] = o.AlertReceivers + toSerialize["alertRules"] = o.AlertRules + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + toSerialize["bucketSize"] = o.BucketSize + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["grafanaGlobalDashboards"] = o.GrafanaGlobalDashboards + toSerialize["grafanaGlobalOrgs"] = o.GrafanaGlobalOrgs + toSerialize["grafanaGlobalSessions"] = o.GrafanaGlobalSessions + toSerialize["grafanaGlobalUsers"] = o.GrafanaGlobalUsers + toSerialize["id"] = o.Id + if !IsNil(o.IsFree) { + toSerialize["isFree"] = o.IsFree + } + if !IsNil(o.IsPublic) { + toSerialize["isPublic"] = o.IsPublic + } + toSerialize["logsAlert"] = o.LogsAlert + toSerialize["logsStorage"] = o.LogsStorage + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["planId"] = o.PlanId + toSerialize["samplesPerScrape"] = o.SamplesPerScrape + if !IsNil(o.Schema) { + toSerialize["schema"] = o.Schema + } + toSerialize["targetNumber"] = o.TargetNumber + toSerialize["totalMetricSamples"] = o.TotalMetricSamples + toSerialize["tracesStorage"] = o.TracesStorage + return toSerialize, nil +} + +func (o *Plan) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alertMatchers", + "alertReceivers", + "alertRules", + "bucketSize", + "grafanaGlobalDashboards", + "grafanaGlobalOrgs", + "grafanaGlobalSessions", + "grafanaGlobalUsers", + "id", + "logsAlert", + "logsStorage", + "planId", + "samplesPerScrape", + "targetNumber", + "totalMetricSamples", + "tracesStorage", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPlan := _Plan{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlan) + + if err != nil { + return err + } + + *o = Plan(varPlan) + + return err +} + +type NullablePlan struct { + value *Plan + isSet bool +} + +func (v NullablePlan) Get() *Plan { + return v.value +} + +func (v *NullablePlan) Set(val *Plan) { + v.value = val + v.isSet = true +} + +func (v NullablePlan) IsSet() bool { + return v.isSet +} + +func (v *NullablePlan) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlan(val *Plan) *NullablePlan { + return &NullablePlan{value: val, isSet: true} +} + +func (v NullablePlan) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlan) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_plan_model.go b/services/observability/v1api/model_plan_model.go new file mode 100644 index 000000000..980eb5e95 --- /dev/null +++ b/services/observability/v1api/model_plan_model.go @@ -0,0 +1,685 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PlanModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlanModel{} + +// PlanModel struct for PlanModel +type PlanModel struct { + AlertMatchers int32 `json:"alertMatchers"` + AlertReceivers int32 `json:"alertReceivers"` + AlertRules int32 `json:"alertRules"` + Amount *float32 `json:"amount,omitempty"` + BucketSize int32 `json:"bucketSize"` + Description *string `json:"description,omitempty"` + GrafanaGlobalDashboards int32 `json:"grafanaGlobalDashboards"` + GrafanaGlobalOrgs int32 `json:"grafanaGlobalOrgs"` + GrafanaGlobalSessions int32 `json:"grafanaGlobalSessions"` + GrafanaGlobalUsers int32 `json:"grafanaGlobalUsers"` + Id string `json:"id"` + LogsAlert int32 `json:"logsAlert"` + LogsStorage int32 `json:"logsStorage"` + Name *string `json:"name,omitempty"` + PlanId string `json:"planId"` + SamplesPerScrape int32 `json:"samplesPerScrape"` + TargetNumber int32 `json:"targetNumber"` + TotalMetricSamples int32 `json:"totalMetricSamples"` + TracesStorage int32 `json:"tracesStorage"` +} + +type _PlanModel PlanModel + +// NewPlanModel instantiates a new PlanModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlanModel(alertMatchers int32, alertReceivers int32, alertRules int32, bucketSize int32, grafanaGlobalDashboards int32, grafanaGlobalOrgs int32, grafanaGlobalSessions int32, grafanaGlobalUsers int32, id string, logsAlert int32, logsStorage int32, planId string, samplesPerScrape int32, targetNumber int32, totalMetricSamples int32, tracesStorage int32) *PlanModel { + this := PlanModel{} + this.AlertMatchers = alertMatchers + this.AlertReceivers = alertReceivers + this.AlertRules = alertRules + this.BucketSize = bucketSize + this.GrafanaGlobalDashboards = grafanaGlobalDashboards + this.GrafanaGlobalOrgs = grafanaGlobalOrgs + this.GrafanaGlobalSessions = grafanaGlobalSessions + this.GrafanaGlobalUsers = grafanaGlobalUsers + this.Id = id + this.LogsAlert = logsAlert + this.LogsStorage = logsStorage + this.PlanId = planId + this.SamplesPerScrape = samplesPerScrape + this.TargetNumber = targetNumber + this.TotalMetricSamples = totalMetricSamples + this.TracesStorage = tracesStorage + return &this +} + +// NewPlanModelWithDefaults instantiates a new PlanModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlanModelWithDefaults() *PlanModel { + this := PlanModel{} + return &this +} + +// GetAlertMatchers returns the AlertMatchers field value +func (o *PlanModel) GetAlertMatchers() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AlertMatchers +} + +// GetAlertMatchersOk returns a tuple with the AlertMatchers field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetAlertMatchersOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AlertMatchers, true +} + +// SetAlertMatchers sets field value +func (o *PlanModel) SetAlertMatchers(v int32) { + o.AlertMatchers = v +} + +// GetAlertReceivers returns the AlertReceivers field value +func (o *PlanModel) GetAlertReceivers() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AlertReceivers +} + +// GetAlertReceiversOk returns a tuple with the AlertReceivers field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetAlertReceiversOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AlertReceivers, true +} + +// SetAlertReceivers sets field value +func (o *PlanModel) SetAlertReceivers(v int32) { + o.AlertReceivers = v +} + +// GetAlertRules returns the AlertRules field value +func (o *PlanModel) GetAlertRules() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AlertRules +} + +// GetAlertRulesOk returns a tuple with the AlertRules field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetAlertRulesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AlertRules, true +} + +// SetAlertRules sets field value +func (o *PlanModel) SetAlertRules(v int32) { + o.AlertRules = v +} + +// GetAmount returns the Amount field value if set, zero value otherwise. +func (o *PlanModel) GetAmount() float32 { + if o == nil || IsNil(o.Amount) { + var ret float32 + return ret + } + return *o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanModel) GetAmountOk() (*float32, bool) { + if o == nil || IsNil(o.Amount) { + return nil, false + } + return o.Amount, true +} + +// HasAmount returns a boolean if a field has been set. +func (o *PlanModel) HasAmount() bool { + if o != nil && !IsNil(o.Amount) { + return true + } + + return false +} + +// SetAmount gets a reference to the given float32 and assigns it to the Amount field. +func (o *PlanModel) SetAmount(v float32) { + o.Amount = &v +} + +// GetBucketSize returns the BucketSize field value +func (o *PlanModel) GetBucketSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.BucketSize +} + +// GetBucketSizeOk returns a tuple with the BucketSize field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetBucketSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.BucketSize, true +} + +// SetBucketSize sets field value +func (o *PlanModel) SetBucketSize(v int32) { + o.BucketSize = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PlanModel) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanModel) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PlanModel) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PlanModel) SetDescription(v string) { + o.Description = &v +} + +// GetGrafanaGlobalDashboards returns the GrafanaGlobalDashboards field value +func (o *PlanModel) GetGrafanaGlobalDashboards() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalDashboards +} + +// GetGrafanaGlobalDashboardsOk returns a tuple with the GrafanaGlobalDashboards field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetGrafanaGlobalDashboardsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalDashboards, true +} + +// SetGrafanaGlobalDashboards sets field value +func (o *PlanModel) SetGrafanaGlobalDashboards(v int32) { + o.GrafanaGlobalDashboards = v +} + +// GetGrafanaGlobalOrgs returns the GrafanaGlobalOrgs field value +func (o *PlanModel) GetGrafanaGlobalOrgs() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalOrgs +} + +// GetGrafanaGlobalOrgsOk returns a tuple with the GrafanaGlobalOrgs field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetGrafanaGlobalOrgsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalOrgs, true +} + +// SetGrafanaGlobalOrgs sets field value +func (o *PlanModel) SetGrafanaGlobalOrgs(v int32) { + o.GrafanaGlobalOrgs = v +} + +// GetGrafanaGlobalSessions returns the GrafanaGlobalSessions field value +func (o *PlanModel) GetGrafanaGlobalSessions() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalSessions +} + +// GetGrafanaGlobalSessionsOk returns a tuple with the GrafanaGlobalSessions field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetGrafanaGlobalSessionsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalSessions, true +} + +// SetGrafanaGlobalSessions sets field value +func (o *PlanModel) SetGrafanaGlobalSessions(v int32) { + o.GrafanaGlobalSessions = v +} + +// GetGrafanaGlobalUsers returns the GrafanaGlobalUsers field value +func (o *PlanModel) GetGrafanaGlobalUsers() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GrafanaGlobalUsers +} + +// GetGrafanaGlobalUsersOk returns a tuple with the GrafanaGlobalUsers field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetGrafanaGlobalUsersOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GrafanaGlobalUsers, true +} + +// SetGrafanaGlobalUsers sets field value +func (o *PlanModel) SetGrafanaGlobalUsers(v int32) { + o.GrafanaGlobalUsers = v +} + +// GetId returns the Id field value +func (o *PlanModel) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PlanModel) SetId(v string) { + o.Id = v +} + +// GetLogsAlert returns the LogsAlert field value +func (o *PlanModel) GetLogsAlert() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LogsAlert +} + +// GetLogsAlertOk returns a tuple with the LogsAlert field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetLogsAlertOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LogsAlert, true +} + +// SetLogsAlert sets field value +func (o *PlanModel) SetLogsAlert(v int32) { + o.LogsAlert = v +} + +// GetLogsStorage returns the LogsStorage field value +func (o *PlanModel) GetLogsStorage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LogsStorage +} + +// GetLogsStorageOk returns a tuple with the LogsStorage field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetLogsStorageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LogsStorage, true +} + +// SetLogsStorage sets field value +func (o *PlanModel) SetLogsStorage(v int32) { + o.LogsStorage = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PlanModel) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanModel) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PlanModel) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PlanModel) SetName(v string) { + o.Name = &v +} + +// GetPlanId returns the PlanId field value +func (o *PlanModel) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *PlanModel) SetPlanId(v string) { + o.PlanId = v +} + +// GetSamplesPerScrape returns the SamplesPerScrape field value +func (o *PlanModel) GetSamplesPerScrape() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SamplesPerScrape +} + +// GetSamplesPerScrapeOk returns a tuple with the SamplesPerScrape field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetSamplesPerScrapeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SamplesPerScrape, true +} + +// SetSamplesPerScrape sets field value +func (o *PlanModel) SetSamplesPerScrape(v int32) { + o.SamplesPerScrape = v +} + +// GetTargetNumber returns the TargetNumber field value +func (o *PlanModel) GetTargetNumber() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TargetNumber +} + +// GetTargetNumberOk returns a tuple with the TargetNumber field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetTargetNumberOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TargetNumber, true +} + +// SetTargetNumber sets field value +func (o *PlanModel) SetTargetNumber(v int32) { + o.TargetNumber = v +} + +// GetTotalMetricSamples returns the TotalMetricSamples field value +func (o *PlanModel) GetTotalMetricSamples() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TotalMetricSamples +} + +// GetTotalMetricSamplesOk returns a tuple with the TotalMetricSamples field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetTotalMetricSamplesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TotalMetricSamples, true +} + +// SetTotalMetricSamples sets field value +func (o *PlanModel) SetTotalMetricSamples(v int32) { + o.TotalMetricSamples = v +} + +// GetTracesStorage returns the TracesStorage field value +func (o *PlanModel) GetTracesStorage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TracesStorage +} + +// GetTracesStorageOk returns a tuple with the TracesStorage field value +// and a boolean to check if the value has been set. +func (o *PlanModel) GetTracesStorageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TracesStorage, true +} + +// SetTracesStorage sets field value +func (o *PlanModel) SetTracesStorage(v int32) { + o.TracesStorage = v +} + +func (o PlanModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlanModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alertMatchers"] = o.AlertMatchers + toSerialize["alertReceivers"] = o.AlertReceivers + toSerialize["alertRules"] = o.AlertRules + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + toSerialize["bucketSize"] = o.BucketSize + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["grafanaGlobalDashboards"] = o.GrafanaGlobalDashboards + toSerialize["grafanaGlobalOrgs"] = o.GrafanaGlobalOrgs + toSerialize["grafanaGlobalSessions"] = o.GrafanaGlobalSessions + toSerialize["grafanaGlobalUsers"] = o.GrafanaGlobalUsers + toSerialize["id"] = o.Id + toSerialize["logsAlert"] = o.LogsAlert + toSerialize["logsStorage"] = o.LogsStorage + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["planId"] = o.PlanId + toSerialize["samplesPerScrape"] = o.SamplesPerScrape + toSerialize["targetNumber"] = o.TargetNumber + toSerialize["totalMetricSamples"] = o.TotalMetricSamples + toSerialize["tracesStorage"] = o.TracesStorage + return toSerialize, nil +} + +func (o *PlanModel) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "alertMatchers", + "alertReceivers", + "alertRules", + "bucketSize", + "grafanaGlobalDashboards", + "grafanaGlobalOrgs", + "grafanaGlobalSessions", + "grafanaGlobalUsers", + "id", + "logsAlert", + "logsStorage", + "planId", + "samplesPerScrape", + "targetNumber", + "totalMetricSamples", + "tracesStorage", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPlanModel := _PlanModel{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlanModel) + + if err != nil { + return err + } + + *o = PlanModel(varPlanModel) + + return err +} + +type NullablePlanModel struct { + value *PlanModel + isSet bool +} + +func (v NullablePlanModel) Get() *PlanModel { + return v.value +} + +func (v *NullablePlanModel) Set(val *PlanModel) { + v.value = val + v.isSet = true +} + +func (v NullablePlanModel) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanModel(val *PlanModel) *NullablePlanModel { + return &NullablePlanModel{value: val, isSet: true} +} + +func (v NullablePlanModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_plans_response.go b/services/observability/v1api/model_plans_response.go new file mode 100644 index 000000000..b08fc0c0b --- /dev/null +++ b/services/observability/v1api/model_plans_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PlansResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlansResponse{} + +// PlansResponse struct for PlansResponse +type PlansResponse struct { + Message string `json:"message"` + Plans []Plan `json:"plans"` +} + +type _PlansResponse PlansResponse + +// NewPlansResponse instantiates a new PlansResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlansResponse(message string, plans []Plan) *PlansResponse { + this := PlansResponse{} + this.Message = message + this.Plans = plans + return &this +} + +// NewPlansResponseWithDefaults instantiates a new PlansResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlansResponseWithDefaults() *PlansResponse { + this := PlansResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *PlansResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *PlansResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *PlansResponse) SetMessage(v string) { + o.Message = v +} + +// GetPlans returns the Plans field value +func (o *PlansResponse) GetPlans() []Plan { + if o == nil { + var ret []Plan + return ret + } + + return o.Plans +} + +// GetPlansOk returns a tuple with the Plans field value +// and a boolean to check if the value has been set. +func (o *PlansResponse) GetPlansOk() ([]Plan, bool) { + if o == nil { + return nil, false + } + return o.Plans, true +} + +// SetPlans sets field value +func (o *PlansResponse) SetPlans(v []Plan) { + o.Plans = v +} + +func (o PlansResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlansResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + toSerialize["plans"] = o.Plans + return toSerialize, nil +} + +func (o *PlansResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "plans", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPlansResponse := _PlansResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlansResponse) + + if err != nil { + return err + } + + *o = PlansResponse(varPlansResponse) + + return err +} + +type NullablePlansResponse struct { + value *PlansResponse + isSet bool +} + +func (v NullablePlansResponse) Get() *PlansResponse { + return v.value +} + +func (v *NullablePlansResponse) Set(val *PlansResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePlansResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePlansResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlansResponse(val *PlansResponse) *NullablePlansResponse { + return &NullablePlansResponse{value: val, isSet: true} +} + +func (v NullablePlansResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlansResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_postgresql_check_child_response.go b/services/observability/v1api/model_postgresql_check_child_response.go new file mode 100644 index 000000000..eb65e34c1 --- /dev/null +++ b/services/observability/v1api/model_postgresql_check_child_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PostgresqlCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PostgresqlCheckChildResponse{} + +// PostgresqlCheckChildResponse struct for PostgresqlCheckChildResponse +type PostgresqlCheckChildResponse struct { + Address string `json:"address"` + Id string `json:"id"` +} + +type _PostgresqlCheckChildResponse PostgresqlCheckChildResponse + +// NewPostgresqlCheckChildResponse instantiates a new PostgresqlCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPostgresqlCheckChildResponse(address string, id string) *PostgresqlCheckChildResponse { + this := PostgresqlCheckChildResponse{} + this.Address = address + this.Id = id + return &this +} + +// NewPostgresqlCheckChildResponseWithDefaults instantiates a new PostgresqlCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPostgresqlCheckChildResponseWithDefaults() *PostgresqlCheckChildResponse { + this := PostgresqlCheckChildResponse{} + return &this +} + +// GetAddress returns the Address field value +func (o *PostgresqlCheckChildResponse) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *PostgresqlCheckChildResponse) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *PostgresqlCheckChildResponse) SetAddress(v string) { + o.Address = v +} + +// GetId returns the Id field value +func (o *PostgresqlCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PostgresqlCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PostgresqlCheckChildResponse) SetId(v string) { + o.Id = v +} + +func (o PostgresqlCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PostgresqlCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + toSerialize["id"] = o.Id + return toSerialize, nil +} + +func (o *PostgresqlCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPostgresqlCheckChildResponse := _PostgresqlCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPostgresqlCheckChildResponse) + + if err != nil { + return err + } + + *o = PostgresqlCheckChildResponse(varPostgresqlCheckChildResponse) + + return err +} + +type NullablePostgresqlCheckChildResponse struct { + value *PostgresqlCheckChildResponse + isSet bool +} + +func (v NullablePostgresqlCheckChildResponse) Get() *PostgresqlCheckChildResponse { + return v.value +} + +func (v *NullablePostgresqlCheckChildResponse) Set(val *PostgresqlCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlCheckChildResponse(val *PostgresqlCheckChildResponse) *NullablePostgresqlCheckChildResponse { + return &NullablePostgresqlCheckChildResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_postgresql_check_response.go b/services/observability/v1api/model_postgresql_check_response.go new file mode 100644 index 000000000..3278af3fb --- /dev/null +++ b/services/observability/v1api/model_postgresql_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the PostgresqlCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PostgresqlCheckResponse{} + +// PostgresqlCheckResponse struct for PostgresqlCheckResponse +type PostgresqlCheckResponse struct { + Message string `json:"message"` + PostgresqlCheck *PostgresqlCheckChildResponse `json:"postgresqlCheck,omitempty"` + PostgresqlChecks []PostgresqlCheckChildResponse `json:"postgresqlChecks"` +} + +type _PostgresqlCheckResponse PostgresqlCheckResponse + +// NewPostgresqlCheckResponse instantiates a new PostgresqlCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPostgresqlCheckResponse(message string, postgresqlChecks []PostgresqlCheckChildResponse) *PostgresqlCheckResponse { + this := PostgresqlCheckResponse{} + this.Message = message + this.PostgresqlChecks = postgresqlChecks + return &this +} + +// NewPostgresqlCheckResponseWithDefaults instantiates a new PostgresqlCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPostgresqlCheckResponseWithDefaults() *PostgresqlCheckResponse { + this := PostgresqlCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *PostgresqlCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *PostgresqlCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *PostgresqlCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetPostgresqlCheck returns the PostgresqlCheck field value if set, zero value otherwise. +func (o *PostgresqlCheckResponse) GetPostgresqlCheck() PostgresqlCheckChildResponse { + if o == nil || IsNil(o.PostgresqlCheck) { + var ret PostgresqlCheckChildResponse + return ret + } + return *o.PostgresqlCheck +} + +// GetPostgresqlCheckOk returns a tuple with the PostgresqlCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlCheckResponse) GetPostgresqlCheckOk() (*PostgresqlCheckChildResponse, bool) { + if o == nil || IsNil(o.PostgresqlCheck) { + return nil, false + } + return o.PostgresqlCheck, true +} + +// HasPostgresqlCheck returns a boolean if a field has been set. +func (o *PostgresqlCheckResponse) HasPostgresqlCheck() bool { + if o != nil && !IsNil(o.PostgresqlCheck) { + return true + } + + return false +} + +// SetPostgresqlCheck gets a reference to the given PostgresqlCheckChildResponse and assigns it to the PostgresqlCheck field. +func (o *PostgresqlCheckResponse) SetPostgresqlCheck(v PostgresqlCheckChildResponse) { + o.PostgresqlCheck = &v +} + +// GetPostgresqlChecks returns the PostgresqlChecks field value +func (o *PostgresqlCheckResponse) GetPostgresqlChecks() []PostgresqlCheckChildResponse { + if o == nil { + var ret []PostgresqlCheckChildResponse + return ret + } + + return o.PostgresqlChecks +} + +// GetPostgresqlChecksOk returns a tuple with the PostgresqlChecks field value +// and a boolean to check if the value has been set. +func (o *PostgresqlCheckResponse) GetPostgresqlChecksOk() ([]PostgresqlCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.PostgresqlChecks, true +} + +// SetPostgresqlChecks sets field value +func (o *PostgresqlCheckResponse) SetPostgresqlChecks(v []PostgresqlCheckChildResponse) { + o.PostgresqlChecks = v +} + +func (o PostgresqlCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PostgresqlCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.PostgresqlCheck) { + toSerialize["postgresqlCheck"] = o.PostgresqlCheck + } + toSerialize["postgresqlChecks"] = o.PostgresqlChecks + return toSerialize, nil +} + +func (o *PostgresqlCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "postgresqlChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPostgresqlCheckResponse := _PostgresqlCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPostgresqlCheckResponse) + + if err != nil { + return err + } + + *o = PostgresqlCheckResponse(varPostgresqlCheckResponse) + + return err +} + +type NullablePostgresqlCheckResponse struct { + value *PostgresqlCheckResponse + isSet bool +} + +func (v NullablePostgresqlCheckResponse) Get() *PostgresqlCheckResponse { + return v.value +} + +func (v *NullablePostgresqlCheckResponse) Set(val *PostgresqlCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlCheckResponse(val *PostgresqlCheckResponse) *NullablePostgresqlCheckResponse { + return &NullablePostgresqlCheckResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_project_instance_full.go b/services/observability/v1api/model_project_instance_full.go new file mode 100644 index 000000000..996a96951 --- /dev/null +++ b/services/observability/v1api/model_project_instance_full.go @@ -0,0 +1,352 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ProjectInstanceFull type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProjectInstanceFull{} + +// ProjectInstanceFull struct for ProjectInstanceFull +type ProjectInstanceFull struct { + Error NullableString `json:"error,omitempty"` + Id string `json:"id"` + Instance string `json:"instance"` + Name *string `json:"name,omitempty"` + PlanName string `json:"planName"` + ServiceName string `json:"serviceName"` + Status string `json:"status"` +} + +type _ProjectInstanceFull ProjectInstanceFull + +// NewProjectInstanceFull instantiates a new ProjectInstanceFull object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProjectInstanceFull(id string, instance string, planName string, serviceName string, status string) *ProjectInstanceFull { + this := ProjectInstanceFull{} + this.Id = id + this.Instance = instance + this.PlanName = planName + this.ServiceName = serviceName + this.Status = status + return &this +} + +// NewProjectInstanceFullWithDefaults instantiates a new ProjectInstanceFull object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProjectInstanceFullWithDefaults() *ProjectInstanceFull { + this := ProjectInstanceFull{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProjectInstanceFull) GetError() string { + if o == nil || IsNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProjectInstanceFull) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *ProjectInstanceFull) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *ProjectInstanceFull) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *ProjectInstanceFull) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *ProjectInstanceFull) UnsetError() { + o.Error.Unset() +} + +// GetId returns the Id field value +func (o *ProjectInstanceFull) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ProjectInstanceFull) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProjectInstanceFull) SetId(v string) { + o.Id = v +} + +// GetInstance returns the Instance field value +func (o *ProjectInstanceFull) GetInstance() string { + if o == nil { + var ret string + return ret + } + + return o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value +// and a boolean to check if the value has been set. +func (o *ProjectInstanceFull) GetInstanceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Instance, true +} + +// SetInstance sets field value +func (o *ProjectInstanceFull) SetInstance(v string) { + o.Instance = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ProjectInstanceFull) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProjectInstanceFull) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ProjectInstanceFull) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ProjectInstanceFull) SetName(v string) { + o.Name = &v +} + +// GetPlanName returns the PlanName field value +func (o *ProjectInstanceFull) GetPlanName() string { + if o == nil { + var ret string + return ret + } + + return o.PlanName +} + +// GetPlanNameOk returns a tuple with the PlanName field value +// and a boolean to check if the value has been set. +func (o *ProjectInstanceFull) GetPlanNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanName, true +} + +// SetPlanName sets field value +func (o *ProjectInstanceFull) SetPlanName(v string) { + o.PlanName = v +} + +// GetServiceName returns the ServiceName field value +func (o *ProjectInstanceFull) GetServiceName() string { + if o == nil { + var ret string + return ret + } + + return o.ServiceName +} + +// GetServiceNameOk returns a tuple with the ServiceName field value +// and a boolean to check if the value has been set. +func (o *ProjectInstanceFull) GetServiceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServiceName, true +} + +// SetServiceName sets field value +func (o *ProjectInstanceFull) SetServiceName(v string) { + o.ServiceName = v +} + +// GetStatus returns the Status field value +func (o *ProjectInstanceFull) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ProjectInstanceFull) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ProjectInstanceFull) SetStatus(v string) { + o.Status = v +} + +func (o ProjectInstanceFull) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProjectInstanceFull) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + toSerialize["id"] = o.Id + toSerialize["instance"] = o.Instance + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["planName"] = o.PlanName + toSerialize["serviceName"] = o.ServiceName + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ProjectInstanceFull) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "instance", + "planName", + "serviceName", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varProjectInstanceFull := _ProjectInstanceFull{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varProjectInstanceFull) + + if err != nil { + return err + } + + *o = ProjectInstanceFull(varProjectInstanceFull) + + return err +} + +type NullableProjectInstanceFull struct { + value *ProjectInstanceFull + isSet bool +} + +func (v NullableProjectInstanceFull) Get() *ProjectInstanceFull { + return v.value +} + +func (v *NullableProjectInstanceFull) Set(val *ProjectInstanceFull) { + v.value = val + v.isSet = true +} + +func (v NullableProjectInstanceFull) IsSet() bool { + return v.isSet +} + +func (v *NullableProjectInstanceFull) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProjectInstanceFull(val *ProjectInstanceFull) *NullableProjectInstanceFull { + return &NullableProjectInstanceFull{value: val, isSet: true} +} + +func (v NullableProjectInstanceFull) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProjectInstanceFull) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_rabbit_mq_check_child_response.go b/services/observability/v1api/model_rabbit_mq_check_child_response.go new file mode 100644 index 000000000..7f974a557 --- /dev/null +++ b/services/observability/v1api/model_rabbit_mq_check_child_response.go @@ -0,0 +1,257 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the RabbitMQCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RabbitMQCheckChildResponse{} + +// RabbitMQCheckChildResponse struct for RabbitMQCheckChildResponse +type RabbitMQCheckChildResponse struct { + Id string `json:"id"` + Password *string `json:"password,omitempty"` + Url string `json:"url"` + Username *string `json:"username,omitempty"` +} + +type _RabbitMQCheckChildResponse RabbitMQCheckChildResponse + +// NewRabbitMQCheckChildResponse instantiates a new RabbitMQCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRabbitMQCheckChildResponse(id string, url string) *RabbitMQCheckChildResponse { + this := RabbitMQCheckChildResponse{} + this.Id = id + this.Url = url + return &this +} + +// NewRabbitMQCheckChildResponseWithDefaults instantiates a new RabbitMQCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRabbitMQCheckChildResponseWithDefaults() *RabbitMQCheckChildResponse { + this := RabbitMQCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *RabbitMQCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RabbitMQCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RabbitMQCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *RabbitMQCheckChildResponse) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitMQCheckChildResponse) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *RabbitMQCheckChildResponse) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *RabbitMQCheckChildResponse) SetPassword(v string) { + o.Password = &v +} + +// GetUrl returns the Url field value +func (o *RabbitMQCheckChildResponse) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *RabbitMQCheckChildResponse) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *RabbitMQCheckChildResponse) SetUrl(v string) { + o.Url = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RabbitMQCheckChildResponse) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitMQCheckChildResponse) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RabbitMQCheckChildResponse) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RabbitMQCheckChildResponse) SetUsername(v string) { + o.Username = &v +} + +func (o RabbitMQCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RabbitMQCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + toSerialize["url"] = o.Url + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +func (o *RabbitMQCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRabbitMQCheckChildResponse := _RabbitMQCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRabbitMQCheckChildResponse) + + if err != nil { + return err + } + + *o = RabbitMQCheckChildResponse(varRabbitMQCheckChildResponse) + + return err +} + +type NullableRabbitMQCheckChildResponse struct { + value *RabbitMQCheckChildResponse + isSet bool +} + +func (v NullableRabbitMQCheckChildResponse) Get() *RabbitMQCheckChildResponse { + return v.value +} + +func (v *NullableRabbitMQCheckChildResponse) Set(val *RabbitMQCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRabbitMQCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRabbitMQCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRabbitMQCheckChildResponse(val *RabbitMQCheckChildResponse) *NullableRabbitMQCheckChildResponse { + return &NullableRabbitMQCheckChildResponse{value: val, isSet: true} +} + +func (v NullableRabbitMQCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRabbitMQCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_rabbitmq_check_response.go b/services/observability/v1api/model_rabbitmq_check_response.go new file mode 100644 index 000000000..6050b077c --- /dev/null +++ b/services/observability/v1api/model_rabbitmq_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the RabbitmqCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RabbitmqCheckResponse{} + +// RabbitmqCheckResponse struct for RabbitmqCheckResponse +type RabbitmqCheckResponse struct { + Message string `json:"message"` + RabbitmqCheck *RabbitMQCheckChildResponse `json:"rabbitmqCheck,omitempty"` + RabbitmqChecks []RabbitMQCheckChildResponse `json:"rabbitmqChecks"` +} + +type _RabbitmqCheckResponse RabbitmqCheckResponse + +// NewRabbitmqCheckResponse instantiates a new RabbitmqCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRabbitmqCheckResponse(message string, rabbitmqChecks []RabbitMQCheckChildResponse) *RabbitmqCheckResponse { + this := RabbitmqCheckResponse{} + this.Message = message + this.RabbitmqChecks = rabbitmqChecks + return &this +} + +// NewRabbitmqCheckResponseWithDefaults instantiates a new RabbitmqCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRabbitmqCheckResponseWithDefaults() *RabbitmqCheckResponse { + this := RabbitmqCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *RabbitmqCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *RabbitmqCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *RabbitmqCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetRabbitmqCheck returns the RabbitmqCheck field value if set, zero value otherwise. +func (o *RabbitmqCheckResponse) GetRabbitmqCheck() RabbitMQCheckChildResponse { + if o == nil || IsNil(o.RabbitmqCheck) { + var ret RabbitMQCheckChildResponse + return ret + } + return *o.RabbitmqCheck +} + +// GetRabbitmqCheckOk returns a tuple with the RabbitmqCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitmqCheckResponse) GetRabbitmqCheckOk() (*RabbitMQCheckChildResponse, bool) { + if o == nil || IsNil(o.RabbitmqCheck) { + return nil, false + } + return o.RabbitmqCheck, true +} + +// HasRabbitmqCheck returns a boolean if a field has been set. +func (o *RabbitmqCheckResponse) HasRabbitmqCheck() bool { + if o != nil && !IsNil(o.RabbitmqCheck) { + return true + } + + return false +} + +// SetRabbitmqCheck gets a reference to the given RabbitMQCheckChildResponse and assigns it to the RabbitmqCheck field. +func (o *RabbitmqCheckResponse) SetRabbitmqCheck(v RabbitMQCheckChildResponse) { + o.RabbitmqCheck = &v +} + +// GetRabbitmqChecks returns the RabbitmqChecks field value +func (o *RabbitmqCheckResponse) GetRabbitmqChecks() []RabbitMQCheckChildResponse { + if o == nil { + var ret []RabbitMQCheckChildResponse + return ret + } + + return o.RabbitmqChecks +} + +// GetRabbitmqChecksOk returns a tuple with the RabbitmqChecks field value +// and a boolean to check if the value has been set. +func (o *RabbitmqCheckResponse) GetRabbitmqChecksOk() ([]RabbitMQCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.RabbitmqChecks, true +} + +// SetRabbitmqChecks sets field value +func (o *RabbitmqCheckResponse) SetRabbitmqChecks(v []RabbitMQCheckChildResponse) { + o.RabbitmqChecks = v +} + +func (o RabbitmqCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RabbitmqCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.RabbitmqCheck) { + toSerialize["rabbitmqCheck"] = o.RabbitmqCheck + } + toSerialize["rabbitmqChecks"] = o.RabbitmqChecks + return toSerialize, nil +} + +func (o *RabbitmqCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "rabbitmqChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRabbitmqCheckResponse := _RabbitmqCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRabbitmqCheckResponse) + + if err != nil { + return err + } + + *o = RabbitmqCheckResponse(varRabbitmqCheckResponse) + + return err +} + +type NullableRabbitmqCheckResponse struct { + value *RabbitmqCheckResponse + isSet bool +} + +func (v NullableRabbitmqCheckResponse) Get() *RabbitmqCheckResponse { + return v.value +} + +func (v *NullableRabbitmqCheckResponse) Set(val *RabbitmqCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRabbitmqCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRabbitmqCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRabbitmqCheckResponse(val *RabbitmqCheckResponse) *NullableRabbitmqCheckResponse { + return &NullableRabbitmqCheckResponse{value: val, isSet: true} +} + +func (v NullableRabbitmqCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRabbitmqCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_receiver.go b/services/observability/v1api/model_receiver.go new file mode 100644 index 000000000..0e3ae2cc7 --- /dev/null +++ b/services/observability/v1api/model_receiver.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Receiver type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Receiver{} + +// Receiver struct for Receiver +type Receiver struct { + Data Receivers `json:"data"` + Message string `json:"message"` +} + +type _Receiver Receiver + +// NewReceiver instantiates a new Receiver object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReceiver(data Receivers, message string) *Receiver { + this := Receiver{} + this.Data = data + this.Message = message + return &this +} + +// NewReceiverWithDefaults instantiates a new Receiver object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReceiverWithDefaults() *Receiver { + this := Receiver{} + return &this +} + +// GetData returns the Data field value +func (o *Receiver) GetData() Receivers { + if o == nil { + var ret Receivers + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *Receiver) GetDataOk() (*Receivers, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *Receiver) SetData(v Receivers) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *Receiver) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *Receiver) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *Receiver) SetMessage(v string) { + o.Message = v +} + +func (o Receiver) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Receiver) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *Receiver) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varReceiver := _Receiver{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varReceiver) + + if err != nil { + return err + } + + *o = Receiver(varReceiver) + + return err +} + +type NullableReceiver struct { + value *Receiver + isSet bool +} + +func (v NullableReceiver) Get() *Receiver { + return v.value +} + +func (v *NullableReceiver) Set(val *Receiver) { + v.value = val + v.isSet = true +} + +func (v NullableReceiver) IsSet() bool { + return v.isSet +} + +func (v *NullableReceiver) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReceiver(val *Receiver) *NullableReceiver { + return &NullableReceiver{value: val, isSet: true} +} + +func (v NullableReceiver) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReceiver) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_receivers.go b/services/observability/v1api/model_receivers.go new file mode 100644 index 000000000..ba5b4ecc4 --- /dev/null +++ b/services/observability/v1api/model_receivers.go @@ -0,0 +1,265 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Receivers type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Receivers{} + +// Receivers struct for Receivers +type Receivers struct { + EmailConfigs []EmailConfig `json:"emailConfigs,omitempty"` + Name string `json:"name"` + OpsgenieConfigs []OpsgenieConfig `json:"opsgenieConfigs,omitempty"` + WebHookConfigs []WebHook `json:"webHookConfigs,omitempty"` +} + +type _Receivers Receivers + +// NewReceivers instantiates a new Receivers object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReceivers(name string) *Receivers { + this := Receivers{} + this.Name = name + return &this +} + +// NewReceiversWithDefaults instantiates a new Receivers object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReceiversWithDefaults() *Receivers { + this := Receivers{} + return &this +} + +// GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +func (o *Receivers) GetEmailConfigs() []EmailConfig { + if o == nil || IsNil(o.EmailConfigs) { + var ret []EmailConfig + return ret + } + return o.EmailConfigs +} + +// GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Receivers) GetEmailConfigsOk() ([]EmailConfig, bool) { + if o == nil || IsNil(o.EmailConfigs) { + return nil, false + } + return o.EmailConfigs, true +} + +// HasEmailConfigs returns a boolean if a field has been set. +func (o *Receivers) HasEmailConfigs() bool { + if o != nil && !IsNil(o.EmailConfigs) { + return true + } + + return false +} + +// SetEmailConfigs gets a reference to the given []EmailConfig and assigns it to the EmailConfigs field. +func (o *Receivers) SetEmailConfigs(v []EmailConfig) { + o.EmailConfigs = v +} + +// GetName returns the Name field value +func (o *Receivers) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Receivers) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Receivers) SetName(v string) { + o.Name = v +} + +// GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +func (o *Receivers) GetOpsgenieConfigs() []OpsgenieConfig { + if o == nil || IsNil(o.OpsgenieConfigs) { + var ret []OpsgenieConfig + return ret + } + return o.OpsgenieConfigs +} + +// GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Receivers) GetOpsgenieConfigsOk() ([]OpsgenieConfig, bool) { + if o == nil || IsNil(o.OpsgenieConfigs) { + return nil, false + } + return o.OpsgenieConfigs, true +} + +// HasOpsgenieConfigs returns a boolean if a field has been set. +func (o *Receivers) HasOpsgenieConfigs() bool { + if o != nil && !IsNil(o.OpsgenieConfigs) { + return true + } + + return false +} + +// SetOpsgenieConfigs gets a reference to the given []OpsgenieConfig and assigns it to the OpsgenieConfigs field. +func (o *Receivers) SetOpsgenieConfigs(v []OpsgenieConfig) { + o.OpsgenieConfigs = v +} + +// GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +func (o *Receivers) GetWebHookConfigs() []WebHook { + if o == nil || IsNil(o.WebHookConfigs) { + var ret []WebHook + return ret + } + return o.WebHookConfigs +} + +// GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Receivers) GetWebHookConfigsOk() ([]WebHook, bool) { + if o == nil || IsNil(o.WebHookConfigs) { + return nil, false + } + return o.WebHookConfigs, true +} + +// HasWebHookConfigs returns a boolean if a field has been set. +func (o *Receivers) HasWebHookConfigs() bool { + if o != nil && !IsNil(o.WebHookConfigs) { + return true + } + + return false +} + +// SetWebHookConfigs gets a reference to the given []WebHook and assigns it to the WebHookConfigs field. +func (o *Receivers) SetWebHookConfigs(v []WebHook) { + o.WebHookConfigs = v +} + +func (o Receivers) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Receivers) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EmailConfigs) { + toSerialize["emailConfigs"] = o.EmailConfigs + } + toSerialize["name"] = o.Name + if !IsNil(o.OpsgenieConfigs) { + toSerialize["opsgenieConfigs"] = o.OpsgenieConfigs + } + if !IsNil(o.WebHookConfigs) { + toSerialize["webHookConfigs"] = o.WebHookConfigs + } + return toSerialize, nil +} + +func (o *Receivers) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varReceivers := _Receivers{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varReceivers) + + if err != nil { + return err + } + + *o = Receivers(varReceivers) + + return err +} + +type NullableReceivers struct { + value *Receivers + isSet bool +} + +func (v NullableReceivers) Get() *Receivers { + return v.value +} + +func (v *NullableReceivers) Set(val *Receivers) { + v.value = val + v.isSet = true +} + +func (v NullableReceivers) IsSet() bool { + return v.isSet +} + +func (v *NullableReceivers) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReceivers(val *Receivers) *NullableReceivers { + return &NullableReceivers{value: val, isSet: true} +} + +func (v NullableReceivers) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReceivers) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_redis_check_child_response.go b/services/observability/v1api/model_redis_check_child_response.go new file mode 100644 index 000000000..80a84bec9 --- /dev/null +++ b/services/observability/v1api/model_redis_check_child_response.go @@ -0,0 +1,257 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the RedisCheckChildResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RedisCheckChildResponse{} + +// RedisCheckChildResponse struct for RedisCheckChildResponse +type RedisCheckChildResponse struct { + Id string `json:"id"` + Password *string `json:"password,omitempty"` + Server string `json:"server"` + Username *string `json:"username,omitempty"` +} + +type _RedisCheckChildResponse RedisCheckChildResponse + +// NewRedisCheckChildResponse instantiates a new RedisCheckChildResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRedisCheckChildResponse(id string, server string) *RedisCheckChildResponse { + this := RedisCheckChildResponse{} + this.Id = id + this.Server = server + return &this +} + +// NewRedisCheckChildResponseWithDefaults instantiates a new RedisCheckChildResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRedisCheckChildResponseWithDefaults() *RedisCheckChildResponse { + this := RedisCheckChildResponse{} + return &this +} + +// GetId returns the Id field value +func (o *RedisCheckChildResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RedisCheckChildResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RedisCheckChildResponse) SetId(v string) { + o.Id = v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *RedisCheckChildResponse) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RedisCheckChildResponse) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *RedisCheckChildResponse) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *RedisCheckChildResponse) SetPassword(v string) { + o.Password = &v +} + +// GetServer returns the Server field value +func (o *RedisCheckChildResponse) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *RedisCheckChildResponse) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *RedisCheckChildResponse) SetServer(v string) { + o.Server = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RedisCheckChildResponse) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RedisCheckChildResponse) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RedisCheckChildResponse) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RedisCheckChildResponse) SetUsername(v string) { + o.Username = &v +} + +func (o RedisCheckChildResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RedisCheckChildResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + toSerialize["server"] = o.Server + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +func (o *RedisCheckChildResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "server", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRedisCheckChildResponse := _RedisCheckChildResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRedisCheckChildResponse) + + if err != nil { + return err + } + + *o = RedisCheckChildResponse(varRedisCheckChildResponse) + + return err +} + +type NullableRedisCheckChildResponse struct { + value *RedisCheckChildResponse + isSet bool +} + +func (v NullableRedisCheckChildResponse) Get() *RedisCheckChildResponse { + return v.value +} + +func (v *NullableRedisCheckChildResponse) Set(val *RedisCheckChildResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRedisCheckChildResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRedisCheckChildResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRedisCheckChildResponse(val *RedisCheckChildResponse) *NullableRedisCheckChildResponse { + return &NullableRedisCheckChildResponse{value: val, isSet: true} +} + +func (v NullableRedisCheckChildResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRedisCheckChildResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_redis_check_response.go b/services/observability/v1api/model_redis_check_response.go new file mode 100644 index 000000000..f9be7a55f --- /dev/null +++ b/services/observability/v1api/model_redis_check_response.go @@ -0,0 +1,221 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the RedisCheckResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RedisCheckResponse{} + +// RedisCheckResponse struct for RedisCheckResponse +type RedisCheckResponse struct { + Message string `json:"message"` + RedisCheck *RedisCheckChildResponse `json:"redisCheck,omitempty"` + RedisChecks []RedisCheckChildResponse `json:"redisChecks"` +} + +type _RedisCheckResponse RedisCheckResponse + +// NewRedisCheckResponse instantiates a new RedisCheckResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRedisCheckResponse(message string, redisChecks []RedisCheckChildResponse) *RedisCheckResponse { + this := RedisCheckResponse{} + this.Message = message + this.RedisChecks = redisChecks + return &this +} + +// NewRedisCheckResponseWithDefaults instantiates a new RedisCheckResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRedisCheckResponseWithDefaults() *RedisCheckResponse { + this := RedisCheckResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *RedisCheckResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *RedisCheckResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *RedisCheckResponse) SetMessage(v string) { + o.Message = v +} + +// GetRedisCheck returns the RedisCheck field value if set, zero value otherwise. +func (o *RedisCheckResponse) GetRedisCheck() RedisCheckChildResponse { + if o == nil || IsNil(o.RedisCheck) { + var ret RedisCheckChildResponse + return ret + } + return *o.RedisCheck +} + +// GetRedisCheckOk returns a tuple with the RedisCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RedisCheckResponse) GetRedisCheckOk() (*RedisCheckChildResponse, bool) { + if o == nil || IsNil(o.RedisCheck) { + return nil, false + } + return o.RedisCheck, true +} + +// HasRedisCheck returns a boolean if a field has been set. +func (o *RedisCheckResponse) HasRedisCheck() bool { + if o != nil && !IsNil(o.RedisCheck) { + return true + } + + return false +} + +// SetRedisCheck gets a reference to the given RedisCheckChildResponse and assigns it to the RedisCheck field. +func (o *RedisCheckResponse) SetRedisCheck(v RedisCheckChildResponse) { + o.RedisCheck = &v +} + +// GetRedisChecks returns the RedisChecks field value +func (o *RedisCheckResponse) GetRedisChecks() []RedisCheckChildResponse { + if o == nil { + var ret []RedisCheckChildResponse + return ret + } + + return o.RedisChecks +} + +// GetRedisChecksOk returns a tuple with the RedisChecks field value +// and a boolean to check if the value has been set. +func (o *RedisCheckResponse) GetRedisChecksOk() ([]RedisCheckChildResponse, bool) { + if o == nil { + return nil, false + } + return o.RedisChecks, true +} + +// SetRedisChecks sets field value +func (o *RedisCheckResponse) SetRedisChecks(v []RedisCheckChildResponse) { + o.RedisChecks = v +} + +func (o RedisCheckResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RedisCheckResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.RedisCheck) { + toSerialize["redisCheck"] = o.RedisCheck + } + toSerialize["redisChecks"] = o.RedisChecks + return toSerialize, nil +} + +func (o *RedisCheckResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + "redisChecks", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRedisCheckResponse := _RedisCheckResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRedisCheckResponse) + + if err != nil { + return err + } + + *o = RedisCheckResponse(varRedisCheckResponse) + + return err +} + +type NullableRedisCheckResponse struct { + value *RedisCheckResponse + isSet bool +} + +func (v NullableRedisCheckResponse) Get() *RedisCheckResponse { + return v.value +} + +func (v *NullableRedisCheckResponse) Set(val *RedisCheckResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRedisCheckResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRedisCheckResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRedisCheckResponse(val *RedisCheckResponse) *NullableRedisCheckResponse { + return &NullableRedisCheckResponse{value: val, isSet: true} +} + +func (v NullableRedisCheckResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRedisCheckResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_route.go b/services/observability/v1api/model_route.go new file mode 100644 index 000000000..4ecfd1391 --- /dev/null +++ b/services/observability/v1api/model_route.go @@ -0,0 +1,497 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Route type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Route{} + +// Route struct for Route +type Route struct { + Continue *bool `json:"continue,omitempty"` + GroupBy []string `json:"groupBy,omitempty"` + GroupInterval *string `json:"groupInterval,omitempty"` + GroupWait *string `json:"groupWait,omitempty"` + Match *map[string]string `json:"match,omitempty"` + MatchRe *map[string]string `json:"matchRe,omitempty"` + Matchers []string `json:"matchers,omitempty"` + Receiver string `json:"receiver"` + RepeatInterval *string `json:"repeatInterval,omitempty"` + Routes []RouteSerializer `json:"routes,omitempty"` +} + +type _Route Route + +// NewRoute instantiates a new Route object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoute(receiver string) *Route { + this := Route{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + this.Receiver = receiver + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// NewRouteWithDefaults instantiates a new Route object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRouteWithDefaults() *Route { + this := Route{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *Route) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *Route) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *Route) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *Route) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *Route) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *Route) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *Route) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *Route) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *Route) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *Route) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *Route) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *Route) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +func (o *Route) GetMatch() map[string]string { + if o == nil || IsNil(o.Match) { + var ret map[string]string + return ret + } + return *o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetMatchOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Match) { + return nil, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *Route) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]string and assigns it to the Match field. +func (o *Route) SetMatch(v map[string]string) { + o.Match = &v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +func (o *Route) GetMatchRe() map[string]string { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]string + return ret + } + return *o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetMatchReOk() (*map[string]string, bool) { + if o == nil || IsNil(o.MatchRe) { + return nil, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *Route) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]string and assigns it to the MatchRe field. +func (o *Route) SetMatchRe(v map[string]string) { + o.MatchRe = &v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *Route) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *Route) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *Route) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value +func (o *Route) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *Route) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *Route) SetReceiver(v string) { + o.Receiver = v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *Route) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *Route) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *Route) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *Route) GetRoutes() []RouteSerializer { + if o == nil || IsNil(o.Routes) { + var ret []RouteSerializer + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetRoutesOk() ([]RouteSerializer, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *Route) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []RouteSerializer and assigns it to the Routes field. +func (o *Route) SetRoutes(v []RouteSerializer) { + o.Routes = v +} + +func (o Route) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Route) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + toSerialize["receiver"] = o.Receiver + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +func (o *Route) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receiver", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRoute := _Route{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRoute) + + if err != nil { + return err + } + + *o = Route(varRoute) + + return err +} + +type NullableRoute struct { + value *Route + isSet bool +} + +func (v NullableRoute) Get() *Route { + return v.value +} + +func (v *NullableRoute) Set(val *Route) { + v.value = val + v.isSet = true +} + +func (v NullableRoute) IsSet() bool { + return v.isSet +} + +func (v *NullableRoute) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoute(val *Route) *NullableRoute { + return &NullableRoute{value: val, isSet: true} +} + +func (v NullableRoute) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoute) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_route_serializer.go b/services/observability/v1api/model_route_serializer.go new file mode 100644 index 000000000..54e195f2d --- /dev/null +++ b/services/observability/v1api/model_route_serializer.go @@ -0,0 +1,497 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the RouteSerializer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RouteSerializer{} + +// RouteSerializer struct for RouteSerializer +type RouteSerializer struct { + Continue *bool `json:"continue,omitempty"` + GroupBy []string `json:"groupBy,omitempty"` + GroupInterval *string `json:"groupInterval,omitempty"` + GroupWait *string `json:"groupWait,omitempty"` + Match *map[string]string `json:"match,omitempty"` + MatchRe *map[string]string `json:"matchRe,omitempty"` + Matchers []string `json:"matchers,omitempty"` + Receiver string `json:"receiver"` + RepeatInterval *string `json:"repeatInterval,omitempty"` + Routes []map[string]string `json:"routes,omitempty"` +} + +type _RouteSerializer RouteSerializer + +// NewRouteSerializer instantiates a new RouteSerializer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRouteSerializer(receiver string) *RouteSerializer { + this := RouteSerializer{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + this.Receiver = receiver + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// NewRouteSerializerWithDefaults instantiates a new RouteSerializer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRouteSerializerWithDefaults() *RouteSerializer { + this := RouteSerializer{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *RouteSerializer) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *RouteSerializer) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *RouteSerializer) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *RouteSerializer) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *RouteSerializer) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *RouteSerializer) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *RouteSerializer) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *RouteSerializer) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *RouteSerializer) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *RouteSerializer) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *RouteSerializer) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *RouteSerializer) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +func (o *RouteSerializer) GetMatch() map[string]string { + if o == nil || IsNil(o.Match) { + var ret map[string]string + return ret + } + return *o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetMatchOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Match) { + return nil, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *RouteSerializer) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]string and assigns it to the Match field. +func (o *RouteSerializer) SetMatch(v map[string]string) { + o.Match = &v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +func (o *RouteSerializer) GetMatchRe() map[string]string { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]string + return ret + } + return *o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetMatchReOk() (*map[string]string, bool) { + if o == nil || IsNil(o.MatchRe) { + return nil, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *RouteSerializer) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]string and assigns it to the MatchRe field. +func (o *RouteSerializer) SetMatchRe(v map[string]string) { + o.MatchRe = &v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *RouteSerializer) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *RouteSerializer) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *RouteSerializer) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value +func (o *RouteSerializer) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *RouteSerializer) SetReceiver(v string) { + o.Receiver = v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *RouteSerializer) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *RouteSerializer) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *RouteSerializer) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *RouteSerializer) GetRoutes() []map[string]string { + if o == nil || IsNil(o.Routes) { + var ret []map[string]string + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteSerializer) GetRoutesOk() ([]map[string]string, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *RouteSerializer) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []map[string]string and assigns it to the Routes field. +func (o *RouteSerializer) SetRoutes(v []map[string]string) { + o.Routes = v +} + +func (o RouteSerializer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RouteSerializer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + toSerialize["receiver"] = o.Receiver + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +func (o *RouteSerializer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receiver", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRouteSerializer := _RouteSerializer{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRouteSerializer) + + if err != nil { + return err + } + + *o = RouteSerializer(varRouteSerializer) + + return err +} + +type NullableRouteSerializer struct { + value *RouteSerializer + isSet bool +} + +func (v NullableRouteSerializer) Get() *RouteSerializer { + return v.value +} + +func (v *NullableRouteSerializer) Set(val *RouteSerializer) { + v.value = val + v.isSet = true +} + +func (v NullableRouteSerializer) IsSet() bool { + return v.isSet +} + +func (v *NullableRouteSerializer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRouteSerializer(val *RouteSerializer) *NullableRouteSerializer { + return &NullableRouteSerializer{value: val, isSet: true} +} + +func (v NullableRouteSerializer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRouteSerializer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_scrape_configs_response.go b/services/observability/v1api/model_scrape_configs_response.go new file mode 100644 index 000000000..d10be8fa1 --- /dev/null +++ b/services/observability/v1api/model_scrape_configs_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ScrapeConfigsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScrapeConfigsResponse{} + +// ScrapeConfigsResponse struct for ScrapeConfigsResponse +type ScrapeConfigsResponse struct { + Data []Job `json:"data"` + Message string `json:"message"` +} + +type _ScrapeConfigsResponse ScrapeConfigsResponse + +// NewScrapeConfigsResponse instantiates a new ScrapeConfigsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScrapeConfigsResponse(data []Job, message string) *ScrapeConfigsResponse { + this := ScrapeConfigsResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewScrapeConfigsResponseWithDefaults instantiates a new ScrapeConfigsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScrapeConfigsResponseWithDefaults() *ScrapeConfigsResponse { + this := ScrapeConfigsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *ScrapeConfigsResponse) GetData() []Job { + if o == nil { + var ret []Job + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ScrapeConfigsResponse) GetDataOk() ([]Job, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *ScrapeConfigsResponse) SetData(v []Job) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *ScrapeConfigsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ScrapeConfigsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ScrapeConfigsResponse) SetMessage(v string) { + o.Message = v +} + +func (o ScrapeConfigsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScrapeConfigsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *ScrapeConfigsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varScrapeConfigsResponse := _ScrapeConfigsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varScrapeConfigsResponse) + + if err != nil { + return err + } + + *o = ScrapeConfigsResponse(varScrapeConfigsResponse) + + return err +} + +type NullableScrapeConfigsResponse struct { + value *ScrapeConfigsResponse + isSet bool +} + +func (v NullableScrapeConfigsResponse) Get() *ScrapeConfigsResponse { + return v.value +} + +func (v *NullableScrapeConfigsResponse) Set(val *ScrapeConfigsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableScrapeConfigsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableScrapeConfigsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScrapeConfigsResponse(val *ScrapeConfigsResponse) *NullableScrapeConfigsResponse { + return &NullableScrapeConfigsResponse{value: val, isSet: true} +} + +func (v NullableScrapeConfigsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScrapeConfigsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_service_keys_list.go b/services/observability/v1api/model_service_keys_list.go new file mode 100644 index 000000000..db65c6aee --- /dev/null +++ b/services/observability/v1api/model_service_keys_list.go @@ -0,0 +1,257 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ServiceKeysList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceKeysList{} + +// ServiceKeysList struct for ServiceKeysList +type ServiceKeysList struct { + CredentialsInfo *map[string]string `json:"credentialsInfo,omitempty"` + Description *string `json:"description,omitempty"` + Id string `json:"id"` + Name string `json:"name"` +} + +type _ServiceKeysList ServiceKeysList + +// NewServiceKeysList instantiates a new ServiceKeysList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceKeysList(id string, name string) *ServiceKeysList { + this := ServiceKeysList{} + this.Id = id + this.Name = name + return &this +} + +// NewServiceKeysListWithDefaults instantiates a new ServiceKeysList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceKeysListWithDefaults() *ServiceKeysList { + this := ServiceKeysList{} + return &this +} + +// GetCredentialsInfo returns the CredentialsInfo field value if set, zero value otherwise. +func (o *ServiceKeysList) GetCredentialsInfo() map[string]string { + if o == nil || IsNil(o.CredentialsInfo) { + var ret map[string]string + return ret + } + return *o.CredentialsInfo +} + +// GetCredentialsInfoOk returns a tuple with the CredentialsInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceKeysList) GetCredentialsInfoOk() (*map[string]string, bool) { + if o == nil || IsNil(o.CredentialsInfo) { + return nil, false + } + return o.CredentialsInfo, true +} + +// HasCredentialsInfo returns a boolean if a field has been set. +func (o *ServiceKeysList) HasCredentialsInfo() bool { + if o != nil && !IsNil(o.CredentialsInfo) { + return true + } + + return false +} + +// SetCredentialsInfo gets a reference to the given map[string]string and assigns it to the CredentialsInfo field. +func (o *ServiceKeysList) SetCredentialsInfo(v map[string]string) { + o.CredentialsInfo = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceKeysList) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceKeysList) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceKeysList) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceKeysList) SetDescription(v string) { + o.Description = &v +} + +// GetId returns the Id field value +func (o *ServiceKeysList) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ServiceKeysList) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ServiceKeysList) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *ServiceKeysList) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ServiceKeysList) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ServiceKeysList) SetName(v string) { + o.Name = v +} + +func (o ServiceKeysList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceKeysList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CredentialsInfo) { + toSerialize["credentialsInfo"] = o.CredentialsInfo + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + return toSerialize, nil +} + +func (o *ServiceKeysList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varServiceKeysList := _ServiceKeysList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceKeysList) + + if err != nil { + return err + } + + *o = ServiceKeysList(varServiceKeysList) + + return err +} + +type NullableServiceKeysList struct { + value *ServiceKeysList + isSet bool +} + +func (v NullableServiceKeysList) Get() *ServiceKeysList { + return v.value +} + +func (v *NullableServiceKeysList) Set(val *ServiceKeysList) { + v.value = val + v.isSet = true +} + +func (v NullableServiceKeysList) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceKeysList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceKeysList(val *ServiceKeysList) *NullableServiceKeysList { + return &NullableServiceKeysList{value: val, isSet: true} +} + +func (v NullableServiceKeysList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceKeysList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_static_configs.go b/services/observability/v1api/model_static_configs.go new file mode 100644 index 000000000..a397860ee --- /dev/null +++ b/services/observability/v1api/model_static_configs.go @@ -0,0 +1,193 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the StaticConfigs type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StaticConfigs{} + +// StaticConfigs struct for StaticConfigs +type StaticConfigs struct { + Labels *map[string]string `json:"labels,omitempty"` + Targets []string `json:"targets"` +} + +type _StaticConfigs StaticConfigs + +// NewStaticConfigs instantiates a new StaticConfigs object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStaticConfigs(targets []string) *StaticConfigs { + this := StaticConfigs{} + this.Targets = targets + return &this +} + +// NewStaticConfigsWithDefaults instantiates a new StaticConfigs object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStaticConfigsWithDefaults() *StaticConfigs { + this := StaticConfigs{} + return &this +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *StaticConfigs) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StaticConfigs) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *StaticConfigs) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *StaticConfigs) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetTargets returns the Targets field value +func (o *StaticConfigs) GetTargets() []string { + if o == nil { + var ret []string + return ret + } + + return o.Targets +} + +// GetTargetsOk returns a tuple with the Targets field value +// and a boolean to check if the value has been set. +func (o *StaticConfigs) GetTargetsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Targets, true +} + +// SetTargets sets field value +func (o *StaticConfigs) SetTargets(v []string) { + o.Targets = v +} + +func (o StaticConfigs) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StaticConfigs) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["targets"] = o.Targets + return toSerialize, nil +} + +func (o *StaticConfigs) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "targets", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varStaticConfigs := _StaticConfigs{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varStaticConfigs) + + if err != nil { + return err + } + + *o = StaticConfigs(varStaticConfigs) + + return err +} + +type NullableStaticConfigs struct { + value *StaticConfigs + isSet bool +} + +func (v NullableStaticConfigs) Get() *StaticConfigs { + return v.value +} + +func (v *NullableStaticConfigs) Set(val *StaticConfigs) { + v.value = val + v.isSet = true +} + +func (v NullableStaticConfigs) IsSet() bool { + return v.isSet +} + +func (v *NullableStaticConfigs) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStaticConfigs(val *StaticConfigs) *NullableStaticConfigs { + return &NullableStaticConfigs{value: val, isSet: true} +} + +func (v NullableStaticConfigs) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStaticConfigs) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_tls_config.go b/services/observability/v1api/model_tls_config.go new file mode 100644 index 000000000..99dfa7677 --- /dev/null +++ b/services/observability/v1api/model_tls_config.go @@ -0,0 +1,129 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the TLSConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TLSConfig{} + +// TLSConfig struct for TLSConfig +type TLSConfig struct { + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewTLSConfig instantiates a new TLSConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTLSConfig() *TLSConfig { + this := TLSConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewTLSConfigWithDefaults instantiates a new TLSConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTLSConfigWithDefaults() *TLSConfig { + this := TLSConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *TLSConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TLSConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *TLSConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *TLSConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o TLSConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TLSConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullableTLSConfig struct { + value *TLSConfig + isSet bool +} + +func (v NullableTLSConfig) Get() *TLSConfig { + return v.value +} + +func (v *NullableTLSConfig) Set(val *TLSConfig) { + v.value = val + v.isSet = true +} + +func (v NullableTLSConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableTLSConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTLSConfig(val *TLSConfig) *NullableTLSConfig { + return &NullableTLSConfig{value: val, isSet: true} +} + +func (v NullableTLSConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTLSConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_trace_config.go b/services/observability/v1api/model_trace_config.go new file mode 100644 index 000000000..16c7c575f --- /dev/null +++ b/services/observability/v1api/model_trace_config.go @@ -0,0 +1,157 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the TraceConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TraceConfig{} + +// TraceConfig struct for TraceConfig +type TraceConfig struct { + Retention string `json:"retention"` +} + +type _TraceConfig TraceConfig + +// NewTraceConfig instantiates a new TraceConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTraceConfig(retention string) *TraceConfig { + this := TraceConfig{} + this.Retention = retention + return &this +} + +// NewTraceConfigWithDefaults instantiates a new TraceConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTraceConfigWithDefaults() *TraceConfig { + this := TraceConfig{} + return &this +} + +// GetRetention returns the Retention field value +func (o *TraceConfig) GetRetention() string { + if o == nil { + var ret string + return ret + } + + return o.Retention +} + +// GetRetentionOk returns a tuple with the Retention field value +// and a boolean to check if the value has been set. +func (o *TraceConfig) GetRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Retention, true +} + +// SetRetention sets field value +func (o *TraceConfig) SetRetention(v string) { + o.Retention = v +} + +func (o TraceConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TraceConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["retention"] = o.Retention + return toSerialize, nil +} + +func (o *TraceConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "retention", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTraceConfig := _TraceConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTraceConfig) + + if err != nil { + return err + } + + *o = TraceConfig(varTraceConfig) + + return err +} + +type NullableTraceConfig struct { + value *TraceConfig + isSet bool +} + +func (v NullableTraceConfig) Get() *TraceConfig { + return v.value +} + +func (v *NullableTraceConfig) Set(val *TraceConfig) { + v.value = val + v.isSet = true +} + +func (v NullableTraceConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableTraceConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTraceConfig(val *TraceConfig) *NullableTraceConfig { + return &NullableTraceConfig{value: val, isSet: true} +} + +func (v NullableTraceConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTraceConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_traces_config_response.go b/services/observability/v1api/model_traces_config_response.go new file mode 100644 index 000000000..1faa72140 --- /dev/null +++ b/services/observability/v1api/model_traces_config_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the TracesConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TracesConfigResponse{} + +// TracesConfigResponse struct for TracesConfigResponse +type TracesConfigResponse struct { + Config TraceConfig `json:"config"` + Message string `json:"message"` +} + +type _TracesConfigResponse TracesConfigResponse + +// NewTracesConfigResponse instantiates a new TracesConfigResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTracesConfigResponse(config TraceConfig, message string) *TracesConfigResponse { + this := TracesConfigResponse{} + this.Config = config + this.Message = message + return &this +} + +// NewTracesConfigResponseWithDefaults instantiates a new TracesConfigResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTracesConfigResponseWithDefaults() *TracesConfigResponse { + this := TracesConfigResponse{} + return &this +} + +// GetConfig returns the Config field value +func (o *TracesConfigResponse) GetConfig() TraceConfig { + if o == nil { + var ret TraceConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *TracesConfigResponse) GetConfigOk() (*TraceConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *TracesConfigResponse) SetConfig(v TraceConfig) { + o.Config = v +} + +// GetMessage returns the Message field value +func (o *TracesConfigResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *TracesConfigResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *TracesConfigResponse) SetMessage(v string) { + o.Message = v +} + +func (o TracesConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TracesConfigResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *TracesConfigResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "config", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTracesConfigResponse := _TracesConfigResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTracesConfigResponse) + + if err != nil { + return err + } + + *o = TracesConfigResponse(varTracesConfigResponse) + + return err +} + +type NullableTracesConfigResponse struct { + value *TracesConfigResponse + isSet bool +} + +func (v NullableTracesConfigResponse) Get() *TracesConfigResponse { + return v.value +} + +func (v *NullableTracesConfigResponse) Set(val *TracesConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTracesConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTracesConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTracesConfigResponse(val *TracesConfigResponse) *NullableTracesConfigResponse { + return &NullableTracesConfigResponse{value: val, isSet: true} +} + +func (v NullableTracesConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTracesConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_acl_payload.go b/services/observability/v1api/model_update_acl_payload.go new file mode 100644 index 000000000..adbc80046 --- /dev/null +++ b/services/observability/v1api/model_update_acl_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateACLPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateACLPayload{} + +// UpdateACLPayload List of cidr. Send empty string to remove acl. +type UpdateACLPayload struct { + // list of cidr + Acl []string `json:"acl"` +} + +type _UpdateACLPayload UpdateACLPayload + +// NewUpdateACLPayload instantiates a new UpdateACLPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateACLPayload(acl []string) *UpdateACLPayload { + this := UpdateACLPayload{} + this.Acl = acl + return &this +} + +// NewUpdateACLPayloadWithDefaults instantiates a new UpdateACLPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateACLPayloadWithDefaults() *UpdateACLPayload { + this := UpdateACLPayload{} + return &this +} + +// GetAcl returns the Acl field value +func (o *UpdateACLPayload) GetAcl() []string { + if o == nil { + var ret []string + return ret + } + + return o.Acl +} + +// GetAclOk returns a tuple with the Acl field value +// and a boolean to check if the value has been set. +func (o *UpdateACLPayload) GetAclOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Acl, true +} + +// SetAcl sets field value +func (o *UpdateACLPayload) SetAcl(v []string) { + o.Acl = v +} + +func (o UpdateACLPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateACLPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["acl"] = o.Acl + return toSerialize, nil +} + +func (o *UpdateACLPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "acl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateACLPayload := _UpdateACLPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateACLPayload) + + if err != nil { + return err + } + + *o = UpdateACLPayload(varUpdateACLPayload) + + return err +} + +type NullableUpdateACLPayload struct { + value *UpdateACLPayload + isSet bool +} + +func (v NullableUpdateACLPayload) Get() *UpdateACLPayload { + return v.value +} + +func (v *NullableUpdateACLPayload) Set(val *UpdateACLPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateACLPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateACLPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateACLPayload(val *UpdateACLPayload) *NullableUpdateACLPayload { + return &NullableUpdateACLPayload{value: val, isSet: true} +} + +func (v NullableUpdateACLPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateACLPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_config_receiver_payload.go b/services/observability/v1api/model_update_alert_config_receiver_payload.go new file mode 100644 index 000000000..13e1b17ed --- /dev/null +++ b/services/observability/v1api/model_update_alert_config_receiver_payload.go @@ -0,0 +1,268 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertConfigReceiverPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigReceiverPayload{} + +// UpdateAlertConfigReceiverPayload Receivers +type UpdateAlertConfigReceiverPayload struct { + // Email configurations + EmailConfigs []UpdateAlertConfigReceiverPayloadEmailConfigsInner `json:"emailConfigs,omitempty"` + // `Additional Validators:` * must be unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // Configuration for ops genie. + OpsgenieConfigs []UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner `json:"opsgenieConfigs,omitempty"` + WebHookConfigs []UpdateAlertConfigReceiverPayloadWebHookConfigsInner `json:"webHookConfigs,omitempty"` +} + +type _UpdateAlertConfigReceiverPayload UpdateAlertConfigReceiverPayload + +// NewUpdateAlertConfigReceiverPayload instantiates a new UpdateAlertConfigReceiverPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigReceiverPayload(name string) *UpdateAlertConfigReceiverPayload { + this := UpdateAlertConfigReceiverPayload{} + this.Name = name + return &this +} + +// NewUpdateAlertConfigReceiverPayloadWithDefaults instantiates a new UpdateAlertConfigReceiverPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigReceiverPayloadWithDefaults() *UpdateAlertConfigReceiverPayload { + this := UpdateAlertConfigReceiverPayload{} + return &this +} + +// GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayload) GetEmailConfigs() []UpdateAlertConfigReceiverPayloadEmailConfigsInner { + if o == nil || IsNil(o.EmailConfigs) { + var ret []UpdateAlertConfigReceiverPayloadEmailConfigsInner + return ret + } + return o.EmailConfigs +} + +// GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayload) GetEmailConfigsOk() ([]UpdateAlertConfigReceiverPayloadEmailConfigsInner, bool) { + if o == nil || IsNil(o.EmailConfigs) { + return nil, false + } + return o.EmailConfigs, true +} + +// HasEmailConfigs returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayload) HasEmailConfigs() bool { + if o != nil && !IsNil(o.EmailConfigs) { + return true + } + + return false +} + +// SetEmailConfigs gets a reference to the given []UpdateAlertConfigReceiverPayloadEmailConfigsInner and assigns it to the EmailConfigs field. +func (o *UpdateAlertConfigReceiverPayload) SetEmailConfigs(v []UpdateAlertConfigReceiverPayloadEmailConfigsInner) { + o.EmailConfigs = v +} + +// GetName returns the Name field value +func (o *UpdateAlertConfigReceiverPayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateAlertConfigReceiverPayload) SetName(v string) { + o.Name = v +} + +// GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayload) GetOpsgenieConfigs() []UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner { + if o == nil || IsNil(o.OpsgenieConfigs) { + var ret []UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner + return ret + } + return o.OpsgenieConfigs +} + +// GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayload) GetOpsgenieConfigsOk() ([]UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner, bool) { + if o == nil || IsNil(o.OpsgenieConfigs) { + return nil, false + } + return o.OpsgenieConfigs, true +} + +// HasOpsgenieConfigs returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayload) HasOpsgenieConfigs() bool { + if o != nil && !IsNil(o.OpsgenieConfigs) { + return true + } + + return false +} + +// SetOpsgenieConfigs gets a reference to the given []UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner and assigns it to the OpsgenieConfigs field. +func (o *UpdateAlertConfigReceiverPayload) SetOpsgenieConfigs(v []UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) { + o.OpsgenieConfigs = v +} + +// GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayload) GetWebHookConfigs() []UpdateAlertConfigReceiverPayloadWebHookConfigsInner { + if o == nil || IsNil(o.WebHookConfigs) { + var ret []UpdateAlertConfigReceiverPayloadWebHookConfigsInner + return ret + } + return o.WebHookConfigs +} + +// GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayload) GetWebHookConfigsOk() ([]UpdateAlertConfigReceiverPayloadWebHookConfigsInner, bool) { + if o == nil || IsNil(o.WebHookConfigs) { + return nil, false + } + return o.WebHookConfigs, true +} + +// HasWebHookConfigs returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayload) HasWebHookConfigs() bool { + if o != nil && !IsNil(o.WebHookConfigs) { + return true + } + + return false +} + +// SetWebHookConfigs gets a reference to the given []UpdateAlertConfigReceiverPayloadWebHookConfigsInner and assigns it to the WebHookConfigs field. +func (o *UpdateAlertConfigReceiverPayload) SetWebHookConfigs(v []UpdateAlertConfigReceiverPayloadWebHookConfigsInner) { + o.WebHookConfigs = v +} + +func (o UpdateAlertConfigReceiverPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigReceiverPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EmailConfigs) { + toSerialize["emailConfigs"] = o.EmailConfigs + } + toSerialize["name"] = o.Name + if !IsNil(o.OpsgenieConfigs) { + toSerialize["opsgenieConfigs"] = o.OpsgenieConfigs + } + if !IsNil(o.WebHookConfigs) { + toSerialize["webHookConfigs"] = o.WebHookConfigs + } + return toSerialize, nil +} + +func (o *UpdateAlertConfigReceiverPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertConfigReceiverPayload := _UpdateAlertConfigReceiverPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertConfigReceiverPayload) + + if err != nil { + return err + } + + *o = UpdateAlertConfigReceiverPayload(varUpdateAlertConfigReceiverPayload) + + return err +} + +type NullableUpdateAlertConfigReceiverPayload struct { + value *UpdateAlertConfigReceiverPayload + isSet bool +} + +func (v NullableUpdateAlertConfigReceiverPayload) Get() *UpdateAlertConfigReceiverPayload { + return v.value +} + +func (v *NullableUpdateAlertConfigReceiverPayload) Set(val *UpdateAlertConfigReceiverPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigReceiverPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigReceiverPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigReceiverPayload(val *UpdateAlertConfigReceiverPayload) *NullableUpdateAlertConfigReceiverPayload { + return &NullableUpdateAlertConfigReceiverPayload{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigReceiverPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigReceiverPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_config_receiver_payload_email_configs_inner.go b/services/observability/v1api/model_update_alert_config_receiver_payload_email_configs_inner.go new file mode 100644 index 000000000..d31afb173 --- /dev/null +++ b/services/observability/v1api/model_update_alert_config_receiver_payload_email_configs_inner.go @@ -0,0 +1,352 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigReceiverPayloadEmailConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigReceiverPayloadEmailConfigsInner{} + +// UpdateAlertConfigReceiverPayloadEmailConfigsInner struct for UpdateAlertConfigReceiverPayloadEmailConfigsInner +type UpdateAlertConfigReceiverPayloadEmailConfigsInner struct { + // SMTP authentication information. `Additional Validators:` * must be a syntactically valid email address + AuthIdentity *string `json:"authIdentity,omitempty"` + // SMTP authentication information. + AuthPassword *string `json:"authPassword,omitempty"` + // SMTP authentication information. + AuthUsername *string `json:"authUsername,omitempty"` + // The sender address. `Additional Validators:` * must be a syntactically valid email address + From *string `json:"from,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // The SMTP host through which emails are sent. `Additional Validators:` * should only include the characters: a-zA-Z0-9_./@&?:- + Smarthost *string `json:"smarthost,omitempty"` + // The email address to send notifications to. `Additional Validators:` * must be a syntactically valid email address + To *string `json:"to,omitempty"` +} + +// NewUpdateAlertConfigReceiverPayloadEmailConfigsInner instantiates a new UpdateAlertConfigReceiverPayloadEmailConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigReceiverPayloadEmailConfigsInner() *UpdateAlertConfigReceiverPayloadEmailConfigsInner { + this := UpdateAlertConfigReceiverPayloadEmailConfigsInner{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// NewUpdateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults instantiates a new UpdateAlertConfigReceiverPayloadEmailConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigReceiverPayloadEmailConfigsInnerWithDefaults() *UpdateAlertConfigReceiverPayloadEmailConfigsInner { + this := UpdateAlertConfigReceiverPayloadEmailConfigsInner{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// GetAuthIdentity returns the AuthIdentity field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentity() string { + if o == nil || IsNil(o.AuthIdentity) { + var ret string + return ret + } + return *o.AuthIdentity +} + +// GetAuthIdentityOk returns a tuple with the AuthIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentityOk() (*string, bool) { + if o == nil || IsNil(o.AuthIdentity) { + return nil, false + } + return o.AuthIdentity, true +} + +// HasAuthIdentity returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthIdentity() bool { + if o != nil && !IsNil(o.AuthIdentity) { + return true + } + + return false +} + +// SetAuthIdentity gets a reference to the given string and assigns it to the AuthIdentity field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthIdentity(v string) { + o.AuthIdentity = &v +} + +// GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPassword() string { + if o == nil || IsNil(o.AuthPassword) { + var ret string + return ret + } + return *o.AuthPassword +} + +// GetAuthPasswordOk returns a tuple with the AuthPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AuthPassword) { + return nil, false + } + return o.AuthPassword, true +} + +// HasAuthPassword returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthPassword() bool { + if o != nil && !IsNil(o.AuthPassword) { + return true + } + + return false +} + +// SetAuthPassword gets a reference to the given string and assigns it to the AuthPassword field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthPassword(v string) { + o.AuthPassword = &v +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername) { + var ret string + return ret + } + return *o.AuthUsername +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsernameOk() (*string, bool) { + if o == nil || IsNil(o.AuthUsername) { + return nil, false + } + return o.AuthUsername, true +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthUsername() bool { + if o != nil && !IsNil(o.AuthUsername) { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given string and assigns it to the AuthUsername field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetAuthUsername(v string) { + o.AuthUsername = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetFrom() string { + if o == nil || IsNil(o.From) { + var ret string + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetFromOk() (*string, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given string and assigns it to the From field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetFrom(v string) { + o.From = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetSmarthost returns the Smarthost field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthost() string { + if o == nil || IsNil(o.Smarthost) { + var ret string + return ret + } + return *o.Smarthost +} + +// GetSmarthostOk returns a tuple with the Smarthost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthostOk() (*string, bool) { + if o == nil || IsNil(o.Smarthost) { + return nil, false + } + return o.Smarthost, true +} + +// HasSmarthost returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasSmarthost() bool { + if o != nil && !IsNil(o.Smarthost) { + return true + } + + return false +} + +// SetSmarthost gets a reference to the given string and assigns it to the Smarthost field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetSmarthost(v string) { + o.Smarthost = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetTo() string { + if o == nil || IsNil(o.To) { + var ret string + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) GetToOk() (*string, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) HasTo() bool { + if o != nil && !IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given string and assigns it to the To field. +func (o *UpdateAlertConfigReceiverPayloadEmailConfigsInner) SetTo(v string) { + o.To = &v +} + +func (o UpdateAlertConfigReceiverPayloadEmailConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigReceiverPayloadEmailConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthIdentity) { + toSerialize["authIdentity"] = o.AuthIdentity + } + if !IsNil(o.AuthPassword) { + toSerialize["authPassword"] = o.AuthPassword + } + if !IsNil(o.AuthUsername) { + toSerialize["authUsername"] = o.AuthUsername + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Smarthost) { + toSerialize["smarthost"] = o.Smarthost + } + if !IsNil(o.To) { + toSerialize["to"] = o.To + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner struct { + value *UpdateAlertConfigReceiverPayloadEmailConfigsInner + isSet bool +} + +func (v NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner) Get() *UpdateAlertConfigReceiverPayloadEmailConfigsInner { + return v.value +} + +func (v *NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner) Set(val *UpdateAlertConfigReceiverPayloadEmailConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigReceiverPayloadEmailConfigsInner(val *UpdateAlertConfigReceiverPayloadEmailConfigsInner) *NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner { + return &NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigReceiverPayloadEmailConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_config_receiver_payload_opsgenie_configs_inner.go b/services/observability/v1api/model_update_alert_config_receiver_payload_opsgenie_configs_inner.go new file mode 100644 index 000000000..72ba35124 --- /dev/null +++ b/services/observability/v1api/model_update_alert_config_receiver_payload_opsgenie_configs_inner.go @@ -0,0 +1,278 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner{} + +// UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner struct for UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner +type UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { + // The API key to use when talking to the OpsGenie API. `Additional Validators:` * should only include the characters: a-zA-Z0-9- + ApiKey *string `json:"apiKey,omitempty"` + // The host to send OpsGenie API requests to. `Additional Validators:` * must be a syntactically valid url address + ApiUrl *string `json:"apiUrl,omitempty"` + // Priority level of alert. Possible values are P1, P2, P3, P4, and P5. + Priority *string `json:"priority,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // Comma separated list of tags attached to the notifications. + Tags *string `json:"tags,omitempty"` +} + +// NewUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner instantiates a new UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner() *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner { + this := UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewUpdateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults instantiates a new UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigReceiverPayloadOpsgenieConfigsInnerWithDefaults() *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner { + this := UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetApiKey returns the ApiKey field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKey() string { + if o == nil || IsNil(o.ApiKey) { + var ret string + return ret + } + return *o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.ApiKey) { + return nil, false + } + return o.ApiKey, true +} + +// HasApiKey returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiKey() bool { + if o != nil && !IsNil(o.ApiKey) { + return true + } + + return false +} + +// SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetApiKey(v string) { + o.ApiKey = &v +} + +// GetApiUrl returns the ApiUrl field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrl() string { + if o == nil || IsNil(o.ApiUrl) { + var ret string + return ret + } + return *o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.ApiUrl) { + return nil, false + } + return o.ApiUrl, true +} + +// HasApiUrl returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiUrl() bool { + if o != nil && !IsNil(o.ApiUrl) { + return true + } + + return false +} + +// SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetApiUrl(v string) { + o.ApiUrl = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetPriorityOk() (*string, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetPriority(v string) { + o.Priority = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTags() string { + if o == nil || IsNil(o.Tags) { + var ret string + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTagsOk() (*string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given string and assigns it to the Tags field. +func (o *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) SetTags(v string) { + o.Tags = &v +} + +func (o UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiKey) { + toSerialize["apiKey"] = o.ApiKey + } + if !IsNil(o.ApiUrl) { + toSerialize["apiUrl"] = o.ApiUrl + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner struct { + value *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner + isSet bool +} + +func (v NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) Get() *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner { + return v.value +} + +func (v *NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) Set(val *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner(val *UpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) *NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner { + return &NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigReceiverPayloadOpsgenieConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_config_receiver_payload_web_hook_configs_inner.go b/services/observability/v1api/model_update_alert_config_receiver_payload_web_hook_configs_inner.go new file mode 100644 index 000000000..59bb67263 --- /dev/null +++ b/services/observability/v1api/model_update_alert_config_receiver_payload_web_hook_configs_inner.go @@ -0,0 +1,249 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigReceiverPayloadWebHookConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigReceiverPayloadWebHookConfigsInner{} + +// UpdateAlertConfigReceiverPayloadWebHookConfigsInner struct for UpdateAlertConfigReceiverPayloadWebHookConfigsInner +type UpdateAlertConfigReceiverPayloadWebHookConfigsInner struct { + // Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false. + GoogleChat *bool `json:"googleChat,omitempty"` + // Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, googleChat must be false. + MsTeams *bool `json:"msTeams,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // The endpoint to send HTTP POST requests to. `Additional Validators:` * must be a syntactically valid url address + Url *string `json:"url,omitempty"` +} + +// NewUpdateAlertConfigReceiverPayloadWebHookConfigsInner instantiates a new UpdateAlertConfigReceiverPayloadWebHookConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigReceiverPayloadWebHookConfigsInner() *UpdateAlertConfigReceiverPayloadWebHookConfigsInner { + this := UpdateAlertConfigReceiverPayloadWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewUpdateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults instantiates a new UpdateAlertConfigReceiverPayloadWebHookConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults() *UpdateAlertConfigReceiverPayloadWebHookConfigsInner { + this := UpdateAlertConfigReceiverPayloadWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChat() bool { + if o == nil || IsNil(o.GoogleChat) { + var ret bool + return ret + } + return *o.GoogleChat +} + +// GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChatOk() (*bool, bool) { + if o == nil || IsNil(o.GoogleChat) { + return nil, false + } + return o.GoogleChat, true +} + +// HasGoogleChat returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) HasGoogleChat() bool { + if o != nil && !IsNil(o.GoogleChat) { + return true + } + + return false +} + +// SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) SetGoogleChat(v bool) { + o.GoogleChat = &v +} + +// GetMsTeams returns the MsTeams field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeams() bool { + if o == nil || IsNil(o.MsTeams) { + var ret bool + return ret + } + return *o.MsTeams +} + +// GetMsTeamsOk returns a tuple with the MsTeams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeamsOk() (*bool, bool) { + if o == nil || IsNil(o.MsTeams) { + return nil, false + } + return o.MsTeams, true +} + +// HasMsTeams returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) HasMsTeams() bool { + if o != nil && !IsNil(o.MsTeams) { + return true + } + + return false +} + +// SetMsTeams gets a reference to the given bool and assigns it to the MsTeams field. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) SetMsTeams(v bool) { + o.MsTeams = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) SetUrl(v string) { + o.Url = &v +} + +func (o UpdateAlertConfigReceiverPayloadWebHookConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigReceiverPayloadWebHookConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GoogleChat) { + toSerialize["googleChat"] = o.GoogleChat + } + if !IsNil(o.MsTeams) { + toSerialize["msTeams"] = o.MsTeams + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner struct { + value *UpdateAlertConfigReceiverPayloadWebHookConfigsInner + isSet bool +} + +func (v NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner) Get() *UpdateAlertConfigReceiverPayloadWebHookConfigsInner { + return v.value +} + +func (v *NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner) Set(val *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner(val *UpdateAlertConfigReceiverPayloadWebHookConfigsInner) *NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner { + return &NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigReceiverPayloadWebHookConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_config_route_payload.go b/services/observability/v1api/model_update_alert_config_route_payload.go new file mode 100644 index 000000000..5a181415b --- /dev/null +++ b/services/observability/v1api/model_update_alert_config_route_payload.go @@ -0,0 +1,515 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertConfigRoutePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigRoutePayload{} + +// UpdateAlertConfigRoutePayload The root node of the routing tree. +type UpdateAlertConfigRoutePayload struct { + // The continue parameter cannot be set to true on the root route because there are no subsequent sibling nodes to match. It must always be false. + Continue *bool `json:"continue,omitempty"` + // The labels by which incoming alerts are grouped together. For example, multiple alerts coming in for cluster=A and alertname=LatencyHigh would be batched into a single group. To aggregate by all possible labels use the special value '...' as the sole label name, for example: group_by: ['...']. This effectively disables aggregation entirely, passing through all alerts as-is. This is unlikely to be what you want, unless you have a very low alert volume or your upstream notification system performs its own grouping. + GroupBy []string `json:"groupBy,omitempty"` + // How long to wait before sending a notification about new alerts that are added to a group of alerts for which an initial notification has already been sent. (Usually ~5m or more.) `Additional Validators:` * must be a valid time format + GroupInterval *string `json:"groupInterval,omitempty"` + // How long to initially wait to send a notification for a group of alerts. Allows to wait for an inhibiting alert to arrive or collect more initial alerts for the same group. (Usually ~0s to few minutes.) `Additional Validators:` * must be a valid time format + GroupWait *string `json:"groupWait,omitempty"` + // map of key:value. A set of equality matchers an alert has to fulfill to match the node. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * key and values should only include the characters: a-zA-Z0-9_./@&?:- + // Deprecated + Match map[string]interface{} `json:"match,omitempty"` + // map of key:value. A set of regex-matchers an alert has to fulfill to match the node. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + // Deprecated + MatchRe map[string]interface{} `json:"matchRe,omitempty"` + // A list of matchers that an alert has to fulfill to match the node. A matcher is a string with a syntax inspired by PromQL and OpenMetrics. The syntax of a matcher consists of three tokens: * A valid Prometheus label name. * One of =, !=, =~, or !~. = means equals, != means that the strings are not equal, =~ is used for equality of regex expressions and !~ is used for un-equality of regex expressions. They have the same meaning as known from PromQL selectors. * A UTF-8 string, which may be enclosed in double quotes. Before or after each token, there may be any amount of whitespace. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Matchers []string `json:"matchers,omitempty"` + // Receiver that should be one item of receivers `Additional Validators:` * must be a in name of receivers + Receiver string `json:"receiver"` + // How long to wait before sending a notification again if it has already been sent successfully for an alert. (Usually ~3h or more). `Additional Validators:` * must be a valid time format + RepeatInterval *string `json:"repeatInterval,omitempty"` + // Zero or more child routes. + Routes []UpdateAlertConfigRoutePayloadRoutesInner `json:"routes,omitempty"` +} + +type _UpdateAlertConfigRoutePayload UpdateAlertConfigRoutePayload + +// NewUpdateAlertConfigRoutePayload instantiates a new UpdateAlertConfigRoutePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigRoutePayload(receiver string) *UpdateAlertConfigRoutePayload { + this := UpdateAlertConfigRoutePayload{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + this.Receiver = receiver + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// NewUpdateAlertConfigRoutePayloadWithDefaults instantiates a new UpdateAlertConfigRoutePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigRoutePayloadWithDefaults() *UpdateAlertConfigRoutePayload { + this := UpdateAlertConfigRoutePayload{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *UpdateAlertConfigRoutePayload) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *UpdateAlertConfigRoutePayload) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *UpdateAlertConfigRoutePayload) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *UpdateAlertConfigRoutePayload) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigRoutePayload) GetMatch() map[string]interface{} { + if o == nil || IsNil(o.Match) { + var ret map[string]interface{} + return ret + } + return o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigRoutePayload) GetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Match) { + return map[string]interface{}{}, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. +// Deprecated +func (o *UpdateAlertConfigRoutePayload) SetMatch(v map[string]interface{}) { + o.Match = v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigRoutePayload) GetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]interface{} + return ret + } + return o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigRoutePayload) GetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.MatchRe) { + return map[string]interface{}{}, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. +// Deprecated +func (o *UpdateAlertConfigRoutePayload) SetMatchRe(v map[string]interface{}) { + o.MatchRe = v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *UpdateAlertConfigRoutePayload) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value +func (o *UpdateAlertConfigRoutePayload) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *UpdateAlertConfigRoutePayload) SetReceiver(v string) { + o.Receiver = v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *UpdateAlertConfigRoutePayload) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayload) GetRoutes() []UpdateAlertConfigRoutePayloadRoutesInner { + if o == nil || IsNil(o.Routes) { + var ret []UpdateAlertConfigRoutePayloadRoutesInner + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayload) GetRoutesOk() ([]UpdateAlertConfigRoutePayloadRoutesInner, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayload) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []UpdateAlertConfigRoutePayloadRoutesInner and assigns it to the Routes field. +func (o *UpdateAlertConfigRoutePayload) SetRoutes(v []UpdateAlertConfigRoutePayloadRoutesInner) { + o.Routes = v +} + +func (o UpdateAlertConfigRoutePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigRoutePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + toSerialize["receiver"] = o.Receiver + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +func (o *UpdateAlertConfigRoutePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receiver", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertConfigRoutePayload := _UpdateAlertConfigRoutePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertConfigRoutePayload) + + if err != nil { + return err + } + + *o = UpdateAlertConfigRoutePayload(varUpdateAlertConfigRoutePayload) + + return err +} + +type NullableUpdateAlertConfigRoutePayload struct { + value *UpdateAlertConfigRoutePayload + isSet bool +} + +func (v NullableUpdateAlertConfigRoutePayload) Get() *UpdateAlertConfigRoutePayload { + return v.value +} + +func (v *NullableUpdateAlertConfigRoutePayload) Set(val *UpdateAlertConfigRoutePayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigRoutePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigRoutePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigRoutePayload(val *UpdateAlertConfigRoutePayload) *NullableUpdateAlertConfigRoutePayload { + return &NullableUpdateAlertConfigRoutePayload{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigRoutePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigRoutePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_config_route_payload_routes_inner.go b/services/observability/v1api/model_update_alert_config_route_payload_routes_inner.go new file mode 100644 index 000000000..83056ccf4 --- /dev/null +++ b/services/observability/v1api/model_update_alert_config_route_payload_routes_inner.go @@ -0,0 +1,470 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigRoutePayloadRoutesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigRoutePayloadRoutesInner{} + +// UpdateAlertConfigRoutePayloadRoutesInner As in one level above +type UpdateAlertConfigRoutePayloadRoutesInner struct { + // Whether an alert should continue matching subsequent sibling nodes. + Continue *bool `json:"continue,omitempty"` + GroupBy []string `json:"groupBy,omitempty"` + // As in one level above + GroupInterval *string `json:"groupInterval,omitempty"` + // As in one level above + GroupWait *string `json:"groupWait,omitempty"` + // As in one level above + // Deprecated + Match map[string]interface{} `json:"match,omitempty"` + // As in one level above + // Deprecated + MatchRe map[string]interface{} `json:"matchRe,omitempty"` + // As in one level above + Matchers []string `json:"matchers,omitempty"` + // As in one level above + Receiver *string `json:"receiver,omitempty"` + // As in one level above + RepeatInterval *string `json:"repeatInterval,omitempty"` + // Another child routes + Routes []map[string]interface{} `json:"routes,omitempty"` +} + +// NewUpdateAlertConfigRoutePayloadRoutesInner instantiates a new UpdateAlertConfigRoutePayloadRoutesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigRoutePayloadRoutesInner() *UpdateAlertConfigRoutePayloadRoutesInner { + this := UpdateAlertConfigRoutePayloadRoutesInner{} + var continue_ bool = false + this.Continue = &continue_ + return &this +} + +// NewUpdateAlertConfigRoutePayloadRoutesInnerWithDefaults instantiates a new UpdateAlertConfigRoutePayloadRoutesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigRoutePayloadRoutesInnerWithDefaults() *UpdateAlertConfigRoutePayloadRoutesInner { + this := UpdateAlertConfigRoutePayloadRoutesInner{} + var continue_ bool = false + this.Continue = &continue_ + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetMatch() map[string]interface{} { + if o == nil || IsNil(o.Match) { + var ret map[string]interface{} + return ret + } + return o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Match) { + return map[string]interface{}{}, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. +// Deprecated +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetMatch(v map[string]interface{}) { + o.Match = v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]interface{} + return ret + } + return o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.MatchRe) { + return map[string]interface{}{}, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. +// Deprecated +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetMatchRe(v map[string]interface{}) { + o.MatchRe = v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetReceiver() string { + if o == nil || IsNil(o.Receiver) { + var ret string + return ret + } + return *o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetReceiverOk() (*string, bool) { + if o == nil || IsNil(o.Receiver) { + return nil, false + } + return o.Receiver, true +} + +// HasReceiver returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasReceiver() bool { + if o != nil && !IsNil(o.Receiver) { + return true + } + + return false +} + +// SetReceiver gets a reference to the given string and assigns it to the Receiver field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetReceiver(v string) { + o.Receiver = &v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetRoutes() []map[string]interface{} { + if o == nil || IsNil(o.Routes) { + var ret []map[string]interface{} + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) GetRoutesOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []map[string]interface{} and assigns it to the Routes field. +func (o *UpdateAlertConfigRoutePayloadRoutesInner) SetRoutes(v []map[string]interface{}) { + o.Routes = v +} + +func (o UpdateAlertConfigRoutePayloadRoutesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigRoutePayloadRoutesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + if !IsNil(o.Receiver) { + toSerialize["receiver"] = o.Receiver + } + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigRoutePayloadRoutesInner struct { + value *UpdateAlertConfigRoutePayloadRoutesInner + isSet bool +} + +func (v NullableUpdateAlertConfigRoutePayloadRoutesInner) Get() *UpdateAlertConfigRoutePayloadRoutesInner { + return v.value +} + +func (v *NullableUpdateAlertConfigRoutePayloadRoutesInner) Set(val *UpdateAlertConfigRoutePayloadRoutesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigRoutePayloadRoutesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigRoutePayloadRoutesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigRoutePayloadRoutesInner(val *UpdateAlertConfigRoutePayloadRoutesInner) *NullableUpdateAlertConfigRoutePayloadRoutesInner { + return &NullableUpdateAlertConfigRoutePayloadRoutesInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigRoutePayloadRoutesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigRoutePayloadRoutesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload.go b/services/observability/v1api/model_update_alert_configs_payload.go new file mode 100644 index 000000000..2e3c1e55d --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload.go @@ -0,0 +1,258 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertConfigsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayload{} + +// UpdateAlertConfigsPayload Alert config +type UpdateAlertConfigsPayload struct { + Global *UpdateAlertConfigsPayloadGlobal `json:"global,omitempty"` + InhibitRules *UpdateAlertConfigsPayloadInhibitRules `json:"inhibitRules,omitempty"` + // A list of notification receivers. + Receivers []UpdateAlertConfigsPayloadReceiversInner `json:"receivers"` + Route UpdateAlertConfigsPayloadRoute `json:"route"` +} + +type _UpdateAlertConfigsPayload UpdateAlertConfigsPayload + +// NewUpdateAlertConfigsPayload instantiates a new UpdateAlertConfigsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayload(receivers []UpdateAlertConfigsPayloadReceiversInner, route UpdateAlertConfigsPayloadRoute) *UpdateAlertConfigsPayload { + this := UpdateAlertConfigsPayload{} + this.Receivers = receivers + this.Route = route + return &this +} + +// NewUpdateAlertConfigsPayloadWithDefaults instantiates a new UpdateAlertConfigsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadWithDefaults() *UpdateAlertConfigsPayload { + this := UpdateAlertConfigsPayload{} + return &this +} + +// GetGlobal returns the Global field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayload) GetGlobal() UpdateAlertConfigsPayloadGlobal { + if o == nil || IsNil(o.Global) { + var ret UpdateAlertConfigsPayloadGlobal + return ret + } + return *o.Global +} + +// GetGlobalOk returns a tuple with the Global field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayload) GetGlobalOk() (*UpdateAlertConfigsPayloadGlobal, bool) { + if o == nil || IsNil(o.Global) { + return nil, false + } + return o.Global, true +} + +// HasGlobal returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayload) HasGlobal() bool { + if o != nil && !IsNil(o.Global) { + return true + } + + return false +} + +// SetGlobal gets a reference to the given UpdateAlertConfigsPayloadGlobal and assigns it to the Global field. +func (o *UpdateAlertConfigsPayload) SetGlobal(v UpdateAlertConfigsPayloadGlobal) { + o.Global = &v +} + +// GetInhibitRules returns the InhibitRules field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayload) GetInhibitRules() UpdateAlertConfigsPayloadInhibitRules { + if o == nil || IsNil(o.InhibitRules) { + var ret UpdateAlertConfigsPayloadInhibitRules + return ret + } + return *o.InhibitRules +} + +// GetInhibitRulesOk returns a tuple with the InhibitRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayload) GetInhibitRulesOk() (*UpdateAlertConfigsPayloadInhibitRules, bool) { + if o == nil || IsNil(o.InhibitRules) { + return nil, false + } + return o.InhibitRules, true +} + +// HasInhibitRules returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayload) HasInhibitRules() bool { + if o != nil && !IsNil(o.InhibitRules) { + return true + } + + return false +} + +// SetInhibitRules gets a reference to the given UpdateAlertConfigsPayloadInhibitRules and assigns it to the InhibitRules field. +func (o *UpdateAlertConfigsPayload) SetInhibitRules(v UpdateAlertConfigsPayloadInhibitRules) { + o.InhibitRules = &v +} + +// GetReceivers returns the Receivers field value +func (o *UpdateAlertConfigsPayload) GetReceivers() []UpdateAlertConfigsPayloadReceiversInner { + if o == nil { + var ret []UpdateAlertConfigsPayloadReceiversInner + return ret + } + + return o.Receivers +} + +// GetReceiversOk returns a tuple with the Receivers field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayload) GetReceiversOk() ([]UpdateAlertConfigsPayloadReceiversInner, bool) { + if o == nil { + return nil, false + } + return o.Receivers, true +} + +// SetReceivers sets field value +func (o *UpdateAlertConfigsPayload) SetReceivers(v []UpdateAlertConfigsPayloadReceiversInner) { + o.Receivers = v +} + +// GetRoute returns the Route field value +func (o *UpdateAlertConfigsPayload) GetRoute() UpdateAlertConfigsPayloadRoute { + if o == nil { + var ret UpdateAlertConfigsPayloadRoute + return ret + } + + return o.Route +} + +// GetRouteOk returns a tuple with the Route field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayload) GetRouteOk() (*UpdateAlertConfigsPayloadRoute, bool) { + if o == nil { + return nil, false + } + return &o.Route, true +} + +// SetRoute sets field value +func (o *UpdateAlertConfigsPayload) SetRoute(v UpdateAlertConfigsPayloadRoute) { + o.Route = v +} + +func (o UpdateAlertConfigsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Global) { + toSerialize["global"] = o.Global + } + if !IsNil(o.InhibitRules) { + toSerialize["inhibitRules"] = o.InhibitRules + } + toSerialize["receivers"] = o.Receivers + toSerialize["route"] = o.Route + return toSerialize, nil +} + +func (o *UpdateAlertConfigsPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receivers", + "route", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertConfigsPayload := _UpdateAlertConfigsPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertConfigsPayload) + + if err != nil { + return err + } + + *o = UpdateAlertConfigsPayload(varUpdateAlertConfigsPayload) + + return err +} + +type NullableUpdateAlertConfigsPayload struct { + value *UpdateAlertConfigsPayload + isSet bool +} + +func (v NullableUpdateAlertConfigsPayload) Get() *UpdateAlertConfigsPayload { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayload) Set(val *UpdateAlertConfigsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayload(val *UpdateAlertConfigsPayload) *NullableUpdateAlertConfigsPayload { + return &NullableUpdateAlertConfigsPayload{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_global.go b/services/observability/v1api/model_update_alert_configs_payload_global.go new file mode 100644 index 000000000..c9905c776 --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_global.go @@ -0,0 +1,389 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigsPayloadGlobal type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadGlobal{} + +// UpdateAlertConfigsPayloadGlobal Global config. If nothing passed the default argus config will be used. It is only possible to update the entire global part, not individual attributes. +type UpdateAlertConfigsPayloadGlobal struct { + // Opsgenie api key `Additional Validators:` * should only include the characters: a-zA-Z0-9- + OpsgenieApiKey *string `json:"opsgenieApiKey,omitempty"` + // Opsgenie api url `Additional Validators:` * must be a syntactically valid url address + OpsgenieApiUrl *string `json:"opsgenieApiUrl,omitempty"` + // ResolveTimeout is the default value used by alertmanager if the alert does not include EndsAt, after this time passes it can declare the alert as resolved if it has not been updated. This has no impact on alerts from Prometheus, as they always include EndsAt. `Additional Validators:` * must be a valid time format + ResolveTimeout *string `json:"resolveTimeout,omitempty"` + // Auth identity. `Additional Validators:` * must be a syntactically valid email address + SmtpAuthIdentity *string `json:"smtpAuthIdentity,omitempty"` + // SMTP Auth using LOGIN and PLAIN. + SmtpAuthPassword *string `json:"smtpAuthPassword,omitempty"` + // SMTP Auth using CRAM-MD5, LOGIN and PLAIN. If empty, Alertmanager doesn't authenticate to the SMTP server. + SmtpAuthUsername *string `json:"smtpAuthUsername,omitempty"` + // The default SMTP From header field. `Additional Validators:` * must be a syntactically valid email address + SmtpFrom *string `json:"smtpFrom,omitempty"` + // The default SMTP smarthost used for sending emails, including port number. Port number usually is 25, or 587 for SMTP over TLS (sometimes referred to as STARTTLS). Example: smtp.example.org:587 `Additional Validators:` * should only include the characters: a-zA-Z0-9_./@&?:- + SmtpSmarthost *string `json:"smtpSmarthost,omitempty"` +} + +// NewUpdateAlertConfigsPayloadGlobal instantiates a new UpdateAlertConfigsPayloadGlobal object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadGlobal() *UpdateAlertConfigsPayloadGlobal { + this := UpdateAlertConfigsPayloadGlobal{} + var resolveTimeout string = "5m" + this.ResolveTimeout = &resolveTimeout + return &this +} + +// NewUpdateAlertConfigsPayloadGlobalWithDefaults instantiates a new UpdateAlertConfigsPayloadGlobal object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadGlobalWithDefaults() *UpdateAlertConfigsPayloadGlobal { + this := UpdateAlertConfigsPayloadGlobal{} + var resolveTimeout string = "5m" + this.ResolveTimeout = &resolveTimeout + return &this +} + +// GetOpsgenieApiKey returns the OpsgenieApiKey field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiKey() string { + if o == nil || IsNil(o.OpsgenieApiKey) { + var ret string + return ret + } + return *o.OpsgenieApiKey +} + +// GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.OpsgenieApiKey) { + return nil, false + } + return o.OpsgenieApiKey, true +} + +// HasOpsgenieApiKey returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasOpsgenieApiKey() bool { + if o != nil && !IsNil(o.OpsgenieApiKey) { + return true + } + + return false +} + +// SetOpsgenieApiKey gets a reference to the given string and assigns it to the OpsgenieApiKey field. +func (o *UpdateAlertConfigsPayloadGlobal) SetOpsgenieApiKey(v string) { + o.OpsgenieApiKey = &v +} + +// GetOpsgenieApiUrl returns the OpsgenieApiUrl field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiUrl() string { + if o == nil || IsNil(o.OpsgenieApiUrl) { + var ret string + return ret + } + return *o.OpsgenieApiUrl +} + +// GetOpsgenieApiUrlOk returns a tuple with the OpsgenieApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.OpsgenieApiUrl) { + return nil, false + } + return o.OpsgenieApiUrl, true +} + +// HasOpsgenieApiUrl returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasOpsgenieApiUrl() bool { + if o != nil && !IsNil(o.OpsgenieApiUrl) { + return true + } + + return false +} + +// SetOpsgenieApiUrl gets a reference to the given string and assigns it to the OpsgenieApiUrl field. +func (o *UpdateAlertConfigsPayloadGlobal) SetOpsgenieApiUrl(v string) { + o.OpsgenieApiUrl = &v +} + +// GetResolveTimeout returns the ResolveTimeout field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetResolveTimeout() string { + if o == nil || IsNil(o.ResolveTimeout) { + var ret string + return ret + } + return *o.ResolveTimeout +} + +// GetResolveTimeoutOk returns a tuple with the ResolveTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetResolveTimeoutOk() (*string, bool) { + if o == nil || IsNil(o.ResolveTimeout) { + return nil, false + } + return o.ResolveTimeout, true +} + +// HasResolveTimeout returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasResolveTimeout() bool { + if o != nil && !IsNil(o.ResolveTimeout) { + return true + } + + return false +} + +// SetResolveTimeout gets a reference to the given string and assigns it to the ResolveTimeout field. +func (o *UpdateAlertConfigsPayloadGlobal) SetResolveTimeout(v string) { + o.ResolveTimeout = &v +} + +// GetSmtpAuthIdentity returns the SmtpAuthIdentity field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthIdentity() string { + if o == nil || IsNil(o.SmtpAuthIdentity) { + var ret string + return ret + } + return *o.SmtpAuthIdentity +} + +// GetSmtpAuthIdentityOk returns a tuple with the SmtpAuthIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthIdentityOk() (*string, bool) { + if o == nil || IsNil(o.SmtpAuthIdentity) { + return nil, false + } + return o.SmtpAuthIdentity, true +} + +// HasSmtpAuthIdentity returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthIdentity() bool { + if o != nil && !IsNil(o.SmtpAuthIdentity) { + return true + } + + return false +} + +// SetSmtpAuthIdentity gets a reference to the given string and assigns it to the SmtpAuthIdentity field. +func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpAuthIdentity(v string) { + o.SmtpAuthIdentity = &v +} + +// GetSmtpAuthPassword returns the SmtpAuthPassword field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthPassword() string { + if o == nil || IsNil(o.SmtpAuthPassword) { + var ret string + return ret + } + return *o.SmtpAuthPassword +} + +// GetSmtpAuthPasswordOk returns a tuple with the SmtpAuthPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthPasswordOk() (*string, bool) { + if o == nil || IsNil(o.SmtpAuthPassword) { + return nil, false + } + return o.SmtpAuthPassword, true +} + +// HasSmtpAuthPassword returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthPassword() bool { + if o != nil && !IsNil(o.SmtpAuthPassword) { + return true + } + + return false +} + +// SetSmtpAuthPassword gets a reference to the given string and assigns it to the SmtpAuthPassword field. +func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpAuthPassword(v string) { + o.SmtpAuthPassword = &v +} + +// GetSmtpAuthUsername returns the SmtpAuthUsername field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthUsername() string { + if o == nil || IsNil(o.SmtpAuthUsername) { + var ret string + return ret + } + return *o.SmtpAuthUsername +} + +// GetSmtpAuthUsernameOk returns a tuple with the SmtpAuthUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SmtpAuthUsername) { + return nil, false + } + return o.SmtpAuthUsername, true +} + +// HasSmtpAuthUsername returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthUsername() bool { + if o != nil && !IsNil(o.SmtpAuthUsername) { + return true + } + + return false +} + +// SetSmtpAuthUsername gets a reference to the given string and assigns it to the SmtpAuthUsername field. +func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpAuthUsername(v string) { + o.SmtpAuthUsername = &v +} + +// GetSmtpFrom returns the SmtpFrom field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpFrom() string { + if o == nil || IsNil(o.SmtpFrom) { + var ret string + return ret + } + return *o.SmtpFrom +} + +// GetSmtpFromOk returns a tuple with the SmtpFrom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpFromOk() (*string, bool) { + if o == nil || IsNil(o.SmtpFrom) { + return nil, false + } + return o.SmtpFrom, true +} + +// HasSmtpFrom returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpFrom() bool { + if o != nil && !IsNil(o.SmtpFrom) { + return true + } + + return false +} + +// SetSmtpFrom gets a reference to the given string and assigns it to the SmtpFrom field. +func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpFrom(v string) { + o.SmtpFrom = &v +} + +// GetSmtpSmarthost returns the SmtpSmarthost field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpSmarthost() string { + if o == nil || IsNil(o.SmtpSmarthost) { + var ret string + return ret + } + return *o.SmtpSmarthost +} + +// GetSmtpSmarthostOk returns a tuple with the SmtpSmarthost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpSmarthostOk() (*string, bool) { + if o == nil || IsNil(o.SmtpSmarthost) { + return nil, false + } + return o.SmtpSmarthost, true +} + +// HasSmtpSmarthost returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpSmarthost() bool { + if o != nil && !IsNil(o.SmtpSmarthost) { + return true + } + + return false +} + +// SetSmtpSmarthost gets a reference to the given string and assigns it to the SmtpSmarthost field. +func (o *UpdateAlertConfigsPayloadGlobal) SetSmtpSmarthost(v string) { + o.SmtpSmarthost = &v +} + +func (o UpdateAlertConfigsPayloadGlobal) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadGlobal) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OpsgenieApiKey) { + toSerialize["opsgenieApiKey"] = o.OpsgenieApiKey + } + if !IsNil(o.OpsgenieApiUrl) { + toSerialize["opsgenieApiUrl"] = o.OpsgenieApiUrl + } + if !IsNil(o.ResolveTimeout) { + toSerialize["resolveTimeout"] = o.ResolveTimeout + } + if !IsNil(o.SmtpAuthIdentity) { + toSerialize["smtpAuthIdentity"] = o.SmtpAuthIdentity + } + if !IsNil(o.SmtpAuthPassword) { + toSerialize["smtpAuthPassword"] = o.SmtpAuthPassword + } + if !IsNil(o.SmtpAuthUsername) { + toSerialize["smtpAuthUsername"] = o.SmtpAuthUsername + } + if !IsNil(o.SmtpFrom) { + toSerialize["smtpFrom"] = o.SmtpFrom + } + if !IsNil(o.SmtpSmarthost) { + toSerialize["smtpSmarthost"] = o.SmtpSmarthost + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigsPayloadGlobal struct { + value *UpdateAlertConfigsPayloadGlobal + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadGlobal) Get() *UpdateAlertConfigsPayloadGlobal { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadGlobal) Set(val *UpdateAlertConfigsPayloadGlobal) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadGlobal) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadGlobal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadGlobal(val *UpdateAlertConfigsPayloadGlobal) *NullableUpdateAlertConfigsPayloadGlobal { + return &NullableUpdateAlertConfigsPayloadGlobal{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadGlobal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadGlobal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_inhibit_rules.go b/services/observability/v1api/model_update_alert_configs_payload_inhibit_rules.go new file mode 100644 index 000000000..72c01c26d --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_inhibit_rules.go @@ -0,0 +1,274 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigsPayloadInhibitRules type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadInhibitRules{} + +// UpdateAlertConfigsPayloadInhibitRules A list of inhibition rules. +type UpdateAlertConfigsPayloadInhibitRules struct { + // Labels that must have an equal value in the source and target alert for the inhibition to take effect. `Additional Validators:` * should only include the characters: a-zA-Z0-9_./@&?:- + Equal []string `json:"equal,omitempty"` + // map of key:value. Matchers for which one or more alerts have to exist for the inhibition to take effect. `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters * each key and value should only include the characters: a-zA-Z0-9_./@&?:- + SourceMatch map[string]interface{} `json:"sourceMatch,omitempty"` + // map of key:value. Regex match `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters + SourceMatchRe map[string]interface{} `json:"sourceMatchRe,omitempty"` + // map of key:value. Matchers that have to be fulfilled in the alerts to be muted. `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters * each key and value should only include the characters: a-zA-Z0-9_./@&?:- + TargetMatch map[string]interface{} `json:"targetMatch,omitempty"` + // map of key:value. Matchers that have to be fulfilled in the alerts to be muted. Regex. `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters + TargetMatchRe map[string]interface{} `json:"targetMatchRe,omitempty"` +} + +// NewUpdateAlertConfigsPayloadInhibitRules instantiates a new UpdateAlertConfigsPayloadInhibitRules object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadInhibitRules() *UpdateAlertConfigsPayloadInhibitRules { + this := UpdateAlertConfigsPayloadInhibitRules{} + return &this +} + +// NewUpdateAlertConfigsPayloadInhibitRulesWithDefaults instantiates a new UpdateAlertConfigsPayloadInhibitRules object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadInhibitRulesWithDefaults() *UpdateAlertConfigsPayloadInhibitRules { + this := UpdateAlertConfigsPayloadInhibitRules{} + return &this +} + +// GetEqual returns the Equal field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetEqual() []string { + if o == nil || IsNil(o.Equal) { + var ret []string + return ret + } + return o.Equal +} + +// GetEqualOk returns a tuple with the Equal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetEqualOk() ([]string, bool) { + if o == nil || IsNil(o.Equal) { + return nil, false + } + return o.Equal, true +} + +// HasEqual returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) HasEqual() bool { + if o != nil && !IsNil(o.Equal) { + return true + } + + return false +} + +// SetEqual gets a reference to the given []string and assigns it to the Equal field. +func (o *UpdateAlertConfigsPayloadInhibitRules) SetEqual(v []string) { + o.Equal = v +} + +// GetSourceMatch returns the SourceMatch field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatch() map[string]interface{} { + if o == nil || IsNil(o.SourceMatch) { + var ret map[string]interface{} + return ret + } + return o.SourceMatch +} + +// GetSourceMatchOk returns a tuple with the SourceMatch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.SourceMatch) { + return map[string]interface{}{}, false + } + return o.SourceMatch, true +} + +// HasSourceMatch returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) HasSourceMatch() bool { + if o != nil && !IsNil(o.SourceMatch) { + return true + } + + return false +} + +// SetSourceMatch gets a reference to the given map[string]interface{} and assigns it to the SourceMatch field. +func (o *UpdateAlertConfigsPayloadInhibitRules) SetSourceMatch(v map[string]interface{}) { + o.SourceMatch = v +} + +// GetSourceMatchRe returns the SourceMatchRe field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchRe() map[string]interface{} { + if o == nil || IsNil(o.SourceMatchRe) { + var ret map[string]interface{} + return ret + } + return o.SourceMatchRe +} + +// GetSourceMatchReOk returns a tuple with the SourceMatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.SourceMatchRe) { + return map[string]interface{}{}, false + } + return o.SourceMatchRe, true +} + +// HasSourceMatchRe returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) HasSourceMatchRe() bool { + if o != nil && !IsNil(o.SourceMatchRe) { + return true + } + + return false +} + +// SetSourceMatchRe gets a reference to the given map[string]interface{} and assigns it to the SourceMatchRe field. +func (o *UpdateAlertConfigsPayloadInhibitRules) SetSourceMatchRe(v map[string]interface{}) { + o.SourceMatchRe = v +} + +// GetTargetMatch returns the TargetMatch field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatch() map[string]interface{} { + if o == nil || IsNil(o.TargetMatch) { + var ret map[string]interface{} + return ret + } + return o.TargetMatch +} + +// GetTargetMatchOk returns a tuple with the TargetMatch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TargetMatch) { + return map[string]interface{}{}, false + } + return o.TargetMatch, true +} + +// HasTargetMatch returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) HasTargetMatch() bool { + if o != nil && !IsNil(o.TargetMatch) { + return true + } + + return false +} + +// SetTargetMatch gets a reference to the given map[string]interface{} and assigns it to the TargetMatch field. +func (o *UpdateAlertConfigsPayloadInhibitRules) SetTargetMatch(v map[string]interface{}) { + o.TargetMatch = v +} + +// GetTargetMatchRe returns the TargetMatchRe field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.TargetMatchRe) { + var ret map[string]interface{} + return ret + } + return o.TargetMatchRe +} + +// GetTargetMatchReOk returns a tuple with the TargetMatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TargetMatchRe) { + return map[string]interface{}{}, false + } + return o.TargetMatchRe, true +} + +// HasTargetMatchRe returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadInhibitRules) HasTargetMatchRe() bool { + if o != nil && !IsNil(o.TargetMatchRe) { + return true + } + + return false +} + +// SetTargetMatchRe gets a reference to the given map[string]interface{} and assigns it to the TargetMatchRe field. +func (o *UpdateAlertConfigsPayloadInhibitRules) SetTargetMatchRe(v map[string]interface{}) { + o.TargetMatchRe = v +} + +func (o UpdateAlertConfigsPayloadInhibitRules) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadInhibitRules) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Equal) { + toSerialize["equal"] = o.Equal + } + if !IsNil(o.SourceMatch) { + toSerialize["sourceMatch"] = o.SourceMatch + } + if !IsNil(o.SourceMatchRe) { + toSerialize["sourceMatchRe"] = o.SourceMatchRe + } + if !IsNil(o.TargetMatch) { + toSerialize["targetMatch"] = o.TargetMatch + } + if !IsNil(o.TargetMatchRe) { + toSerialize["targetMatchRe"] = o.TargetMatchRe + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigsPayloadInhibitRules struct { + value *UpdateAlertConfigsPayloadInhibitRules + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadInhibitRules) Get() *UpdateAlertConfigsPayloadInhibitRules { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadInhibitRules) Set(val *UpdateAlertConfigsPayloadInhibitRules) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadInhibitRules) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadInhibitRules) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadInhibitRules(val *UpdateAlertConfigsPayloadInhibitRules) *NullableUpdateAlertConfigsPayloadInhibitRules { + return &NullableUpdateAlertConfigsPayloadInhibitRules{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadInhibitRules) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadInhibitRules) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_receivers_inner.go b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner.go new file mode 100644 index 000000000..5840b5951 --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner.go @@ -0,0 +1,268 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertConfigsPayloadReceiversInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadReceiversInner{} + +// UpdateAlertConfigsPayloadReceiversInner Receivers +type UpdateAlertConfigsPayloadReceiversInner struct { + // Email configurations + EmailConfigs []UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner `json:"emailConfigs,omitempty"` + // `Additional Validators:` * must be unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // Configuration for ops genie. + OpsgenieConfigs []UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner `json:"opsgenieConfigs,omitempty"` + WebHookConfigs []UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner `json:"webHookConfigs,omitempty"` +} + +type _UpdateAlertConfigsPayloadReceiversInner UpdateAlertConfigsPayloadReceiversInner + +// NewUpdateAlertConfigsPayloadReceiversInner instantiates a new UpdateAlertConfigsPayloadReceiversInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadReceiversInner(name string) *UpdateAlertConfigsPayloadReceiversInner { + this := UpdateAlertConfigsPayloadReceiversInner{} + this.Name = name + return &this +} + +// NewUpdateAlertConfigsPayloadReceiversInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadReceiversInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadReceiversInnerWithDefaults() *UpdateAlertConfigsPayloadReceiversInner { + this := UpdateAlertConfigsPayloadReceiversInner{} + return &this +} + +// GetEmailConfigs returns the EmailConfigs field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetEmailConfigs() []UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner { + if o == nil || IsNil(o.EmailConfigs) { + var ret []UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner + return ret + } + return o.EmailConfigs +} + +// GetEmailConfigsOk returns a tuple with the EmailConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetEmailConfigsOk() ([]UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner, bool) { + if o == nil || IsNil(o.EmailConfigs) { + return nil, false + } + return o.EmailConfigs, true +} + +// HasEmailConfigs returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) HasEmailConfigs() bool { + if o != nil && !IsNil(o.EmailConfigs) { + return true + } + + return false +} + +// SetEmailConfigs gets a reference to the given []UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner and assigns it to the EmailConfigs field. +func (o *UpdateAlertConfigsPayloadReceiversInner) SetEmailConfigs(v []UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) { + o.EmailConfigs = v +} + +// GetName returns the Name field value +func (o *UpdateAlertConfigsPayloadReceiversInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateAlertConfigsPayloadReceiversInner) SetName(v string) { + o.Name = v +} + +// GetOpsgenieConfigs returns the OpsgenieConfigs field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetOpsgenieConfigs() []UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner { + if o == nil || IsNil(o.OpsgenieConfigs) { + var ret []UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner + return ret + } + return o.OpsgenieConfigs +} + +// GetOpsgenieConfigsOk returns a tuple with the OpsgenieConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetOpsgenieConfigsOk() ([]UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner, bool) { + if o == nil || IsNil(o.OpsgenieConfigs) { + return nil, false + } + return o.OpsgenieConfigs, true +} + +// HasOpsgenieConfigs returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) HasOpsgenieConfigs() bool { + if o != nil && !IsNil(o.OpsgenieConfigs) { + return true + } + + return false +} + +// SetOpsgenieConfigs gets a reference to the given []UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner and assigns it to the OpsgenieConfigs field. +func (o *UpdateAlertConfigsPayloadReceiversInner) SetOpsgenieConfigs(v []UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) { + o.OpsgenieConfigs = v +} + +// GetWebHookConfigs returns the WebHookConfigs field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetWebHookConfigs() []UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner { + if o == nil || IsNil(o.WebHookConfigs) { + var ret []UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner + return ret + } + return o.WebHookConfigs +} + +// GetWebHookConfigsOk returns a tuple with the WebHookConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) GetWebHookConfigsOk() ([]UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner, bool) { + if o == nil || IsNil(o.WebHookConfigs) { + return nil, false + } + return o.WebHookConfigs, true +} + +// HasWebHookConfigs returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInner) HasWebHookConfigs() bool { + if o != nil && !IsNil(o.WebHookConfigs) { + return true + } + + return false +} + +// SetWebHookConfigs gets a reference to the given []UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner and assigns it to the WebHookConfigs field. +func (o *UpdateAlertConfigsPayloadReceiversInner) SetWebHookConfigs(v []UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) { + o.WebHookConfigs = v +} + +func (o UpdateAlertConfigsPayloadReceiversInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadReceiversInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EmailConfigs) { + toSerialize["emailConfigs"] = o.EmailConfigs + } + toSerialize["name"] = o.Name + if !IsNil(o.OpsgenieConfigs) { + toSerialize["opsgenieConfigs"] = o.OpsgenieConfigs + } + if !IsNil(o.WebHookConfigs) { + toSerialize["webHookConfigs"] = o.WebHookConfigs + } + return toSerialize, nil +} + +func (o *UpdateAlertConfigsPayloadReceiversInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertConfigsPayloadReceiversInner := _UpdateAlertConfigsPayloadReceiversInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertConfigsPayloadReceiversInner) + + if err != nil { + return err + } + + *o = UpdateAlertConfigsPayloadReceiversInner(varUpdateAlertConfigsPayloadReceiversInner) + + return err +} + +type NullableUpdateAlertConfigsPayloadReceiversInner struct { + value *UpdateAlertConfigsPayloadReceiversInner + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInner) Get() *UpdateAlertConfigsPayloadReceiversInner { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInner) Set(val *UpdateAlertConfigsPayloadReceiversInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadReceiversInner(val *UpdateAlertConfigsPayloadReceiversInner) *NullableUpdateAlertConfigsPayloadReceiversInner { + return &NullableUpdateAlertConfigsPayloadReceiversInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_email_configs_inner.go b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_email_configs_inner.go new file mode 100644 index 000000000..aa4308d75 --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_email_configs_inner.go @@ -0,0 +1,352 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner{} + +// UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner struct for UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner +type UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner struct { + // SMTP authentication information. `Additional Validators:` * must be a syntactically valid email address + AuthIdentity *string `json:"authIdentity,omitempty"` + // SMTP authentication information. + AuthPassword *string `json:"authPassword,omitempty"` + // SMTP authentication information. + AuthUsername *string `json:"authUsername,omitempty"` + // The sender address. `Additional Validators:` * must be a syntactically valid email address + From *string `json:"from,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // The SMTP host through which emails are sent. `Additional Validators:` * should only include the characters: a-zA-Z0-9_./@&?:- + Smarthost *string `json:"smarthost,omitempty"` + // The email address to send notifications to. `Additional Validators:` * must be a syntactically valid email address + To *string `json:"to,omitempty"` +} + +// NewUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner instantiates a new UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner() *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner { + this := UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// NewUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInnerWithDefaults() *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner { + this := UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner{} + var sendResolved bool = false + this.SendResolved = &sendResolved + return &this +} + +// GetAuthIdentity returns the AuthIdentity field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetAuthIdentity() string { + if o == nil || IsNil(o.AuthIdentity) { + var ret string + return ret + } + return *o.AuthIdentity +} + +// GetAuthIdentityOk returns a tuple with the AuthIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetAuthIdentityOk() (*string, bool) { + if o == nil || IsNil(o.AuthIdentity) { + return nil, false + } + return o.AuthIdentity, true +} + +// HasAuthIdentity returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasAuthIdentity() bool { + if o != nil && !IsNil(o.AuthIdentity) { + return true + } + + return false +} + +// SetAuthIdentity gets a reference to the given string and assigns it to the AuthIdentity field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetAuthIdentity(v string) { + o.AuthIdentity = &v +} + +// GetAuthPassword returns the AuthPassword field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetAuthPassword() string { + if o == nil || IsNil(o.AuthPassword) { + var ret string + return ret + } + return *o.AuthPassword +} + +// GetAuthPasswordOk returns a tuple with the AuthPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetAuthPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AuthPassword) { + return nil, false + } + return o.AuthPassword, true +} + +// HasAuthPassword returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasAuthPassword() bool { + if o != nil && !IsNil(o.AuthPassword) { + return true + } + + return false +} + +// SetAuthPassword gets a reference to the given string and assigns it to the AuthPassword field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetAuthPassword(v string) { + o.AuthPassword = &v +} + +// GetAuthUsername returns the AuthUsername field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetAuthUsername() string { + if o == nil || IsNil(o.AuthUsername) { + var ret string + return ret + } + return *o.AuthUsername +} + +// GetAuthUsernameOk returns a tuple with the AuthUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetAuthUsernameOk() (*string, bool) { + if o == nil || IsNil(o.AuthUsername) { + return nil, false + } + return o.AuthUsername, true +} + +// HasAuthUsername returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasAuthUsername() bool { + if o != nil && !IsNil(o.AuthUsername) { + return true + } + + return false +} + +// SetAuthUsername gets a reference to the given string and assigns it to the AuthUsername field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetAuthUsername(v string) { + o.AuthUsername = &v +} + +// GetFrom returns the From field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetFrom() string { + if o == nil || IsNil(o.From) { + var ret string + return ret + } + return *o.From +} + +// GetFromOk returns a tuple with the From field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetFromOk() (*string, bool) { + if o == nil || IsNil(o.From) { + return nil, false + } + return o.From, true +} + +// HasFrom returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasFrom() bool { + if o != nil && !IsNil(o.From) { + return true + } + + return false +} + +// SetFrom gets a reference to the given string and assigns it to the From field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetFrom(v string) { + o.From = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetSmarthost returns the Smarthost field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetSmarthost() string { + if o == nil || IsNil(o.Smarthost) { + var ret string + return ret + } + return *o.Smarthost +} + +// GetSmarthostOk returns a tuple with the Smarthost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetSmarthostOk() (*string, bool) { + if o == nil || IsNil(o.Smarthost) { + return nil, false + } + return o.Smarthost, true +} + +// HasSmarthost returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasSmarthost() bool { + if o != nil && !IsNil(o.Smarthost) { + return true + } + + return false +} + +// SetSmarthost gets a reference to the given string and assigns it to the Smarthost field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetSmarthost(v string) { + o.Smarthost = &v +} + +// GetTo returns the To field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetTo() string { + if o == nil || IsNil(o.To) { + var ret string + return ret + } + return *o.To +} + +// GetToOk returns a tuple with the To field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) GetToOk() (*string, bool) { + if o == nil || IsNil(o.To) { + return nil, false + } + return o.To, true +} + +// HasTo returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) HasTo() bool { + if o != nil && !IsNil(o.To) { + return true + } + + return false +} + +// SetTo gets a reference to the given string and assigns it to the To field. +func (o *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) SetTo(v string) { + o.To = &v +} + +func (o UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthIdentity) { + toSerialize["authIdentity"] = o.AuthIdentity + } + if !IsNil(o.AuthPassword) { + toSerialize["authPassword"] = o.AuthPassword + } + if !IsNil(o.AuthUsername) { + toSerialize["authUsername"] = o.AuthUsername + } + if !IsNil(o.From) { + toSerialize["from"] = o.From + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Smarthost) { + toSerialize["smarthost"] = o.Smarthost + } + if !IsNil(o.To) { + toSerialize["to"] = o.To + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner struct { + value *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) Get() *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) Set(val *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner(val *UpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) *NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner { + return &NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerEmailConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_opsgenie_configs_inner.go b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_opsgenie_configs_inner.go new file mode 100644 index 000000000..ea815850e --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_opsgenie_configs_inner.go @@ -0,0 +1,278 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner{} + +// UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner struct for UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner +type UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner struct { + // The API key to use when talking to the OpsGenie API. `Additional Validators:` * should only include the characters: a-zA-Z0-9- + ApiKey *string `json:"apiKey,omitempty"` + // The host to send OpsGenie API requests to. `Additional Validators:` * must be a syntactically valid url address + ApiUrl *string `json:"apiUrl,omitempty"` + // Priority level of alert. Possible values are P1, P2, P3, P4, and P5. + Priority *string `json:"priority,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // Comma separated list of tags attached to the notifications. + Tags *string `json:"tags,omitempty"` +} + +// NewUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner instantiates a new UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner() *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner { + this := UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInnerWithDefaults() *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner { + this := UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner{} + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetApiKey returns the ApiKey field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetApiKey() string { + if o == nil || IsNil(o.ApiKey) { + var ret string + return ret + } + return *o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.ApiKey) { + return nil, false + } + return o.ApiKey, true +} + +// HasApiKey returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) HasApiKey() bool { + if o != nil && !IsNil(o.ApiKey) { + return true + } + + return false +} + +// SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) SetApiKey(v string) { + o.ApiKey = &v +} + +// GetApiUrl returns the ApiUrl field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetApiUrl() string { + if o == nil || IsNil(o.ApiUrl) { + var ret string + return ret + } + return *o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.ApiUrl) { + return nil, false + } + return o.ApiUrl, true +} + +// HasApiUrl returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) HasApiUrl() bool { + if o != nil && !IsNil(o.ApiUrl) { + return true + } + + return false +} + +// SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) SetApiUrl(v string) { + o.ApiUrl = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetPriorityOk() (*string, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) SetPriority(v string) { + o.Priority = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetTags() string { + if o == nil || IsNil(o.Tags) { + var ret string + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) GetTagsOk() (*string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given string and assigns it to the Tags field. +func (o *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) SetTags(v string) { + o.Tags = &v +} + +func (o UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiKey) { + toSerialize["apiKey"] = o.ApiKey + } + if !IsNil(o.ApiUrl) { + toSerialize["apiUrl"] = o.ApiUrl + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner struct { + value *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) Get() *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) Set(val *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner(val *UpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) *NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner { + return &NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerOpsgenieConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_web_hook_configs_inner.go b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_web_hook_configs_inner.go new file mode 100644 index 000000000..7e0d46383 --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_receivers_inner_web_hook_configs_inner.go @@ -0,0 +1,249 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner{} + +// UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner struct for UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner +type UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner struct { + // Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false. + GoogleChat *bool `json:"googleChat,omitempty"` + // Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, googleChat must be false. + MsTeams *bool `json:"msTeams,omitempty"` + // Whether to notify about resolved alerts. + SendResolved *bool `json:"sendResolved,omitempty"` + // The endpoint to send HTTP POST requests to. `Additional Validators:` * must be a syntactically valid url address + Url *string `json:"url,omitempty"` +} + +// NewUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner instantiates a new UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner() *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner { + this := UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// NewUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInnerWithDefaults() *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner { + this := UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetGoogleChat() bool { + if o == nil || IsNil(o.GoogleChat) { + var ret bool + return ret + } + return *o.GoogleChat +} + +// GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetGoogleChatOk() (*bool, bool) { + if o == nil || IsNil(o.GoogleChat) { + return nil, false + } + return o.GoogleChat, true +} + +// HasGoogleChat returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) HasGoogleChat() bool { + if o != nil && !IsNil(o.GoogleChat) { + return true + } + + return false +} + +// SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) SetGoogleChat(v bool) { + o.GoogleChat = &v +} + +// GetMsTeams returns the MsTeams field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetMsTeams() bool { + if o == nil || IsNil(o.MsTeams) { + var ret bool + return ret + } + return *o.MsTeams +} + +// GetMsTeamsOk returns a tuple with the MsTeams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetMsTeamsOk() (*bool, bool) { + if o == nil || IsNil(o.MsTeams) { + return nil, false + } + return o.MsTeams, true +} + +// HasMsTeams returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) HasMsTeams() bool { + if o != nil && !IsNil(o.MsTeams) { + return true + } + + return false +} + +// SetMsTeams gets a reference to the given bool and assigns it to the MsTeams field. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) SetMsTeams(v bool) { + o.MsTeams = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) SetUrl(v string) { + o.Url = &v +} + +func (o UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GoogleChat) { + toSerialize["googleChat"] = o.GoogleChat + } + if !IsNil(o.MsTeams) { + toSerialize["msTeams"] = o.MsTeams + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner struct { + value *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) Get() *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) Set(val *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner(val *UpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) *NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner { + return &NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadReceiversInnerWebHookConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_route.go b/services/observability/v1api/model_update_alert_configs_payload_route.go new file mode 100644 index 000000000..921b76a9b --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_route.go @@ -0,0 +1,478 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertConfigsPayloadRoute type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadRoute{} + +// UpdateAlertConfigsPayloadRoute The root node of the routing tree. +type UpdateAlertConfigsPayloadRoute struct { + // The continue parameter cannot be set to true on the root route because there are no subsequent sibling nodes to match. It must always be false. + Continue *bool `json:"continue,omitempty"` + // The labels by which incoming alerts are grouped together. For example, multiple alerts coming in for cluster=A and alertname=LatencyHigh would be batched into a single group. To aggregate by all possible labels use the special value '...' as the sole label name, for example: group_by: ['...']. This effectively disables aggregation entirely, passing through all alerts as-is. This is unlikely to be what you want, unless you have a very low alert volume or your upstream notification system performs its own grouping. + GroupBy []string `json:"groupBy,omitempty"` + // How long to wait before sending a notification about new alerts that are added to a group of alerts for which an initial notification has already been sent. (Usually ~5m or more.) `Additional Validators:` * must be a valid time format + GroupInterval *string `json:"groupInterval,omitempty"` + // How long to initially wait to send a notification for a group of alerts. Allows to wait for an inhibiting alert to arrive or collect more initial alerts for the same group. (Usually ~0s to few minutes.) `Additional Validators:` * must be a valid time format + GroupWait *string `json:"groupWait,omitempty"` + // map of key:value. A set of equality matchers an alert has to fulfill to match the node. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * key and values should only include the characters: a-zA-Z0-9_./@&?:- + // Deprecated + Match map[string]interface{} `json:"match,omitempty"` + // map of key:value. A set of regex-matchers an alert has to fulfill to match the node. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + // Deprecated + MatchRe map[string]interface{} `json:"matchRe,omitempty"` + // Receiver that should be one item of receivers `Additional Validators:` * must be a in name of receivers + Receiver string `json:"receiver"` + // How long to wait before sending a notification again if it has already been sent successfully for an alert. (Usually ~3h or more). `Additional Validators:` * must be a valid time format + RepeatInterval *string `json:"repeatInterval,omitempty"` + // Zero or more child routes. + Routes []UpdateAlertConfigsPayloadRouteRoutesInner `json:"routes,omitempty"` +} + +type _UpdateAlertConfigsPayloadRoute UpdateAlertConfigsPayloadRoute + +// NewUpdateAlertConfigsPayloadRoute instantiates a new UpdateAlertConfigsPayloadRoute object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadRoute(receiver string) *UpdateAlertConfigsPayloadRoute { + this := UpdateAlertConfigsPayloadRoute{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + this.Receiver = receiver + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// NewUpdateAlertConfigsPayloadRouteWithDefaults instantiates a new UpdateAlertConfigsPayloadRoute object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadRouteWithDefaults() *UpdateAlertConfigsPayloadRoute { + this := UpdateAlertConfigsPayloadRoute{} + var continue_ bool = false + this.Continue = &continue_ + var groupInterval string = "5m" + this.GroupInterval = &groupInterval + var groupWait string = "30s" + this.GroupWait = &groupWait + var repeatInterval string = "4h" + this.RepeatInterval = &repeatInterval + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRoute) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *UpdateAlertConfigsPayloadRoute) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRoute) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *UpdateAlertConfigsPayloadRoute) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRoute) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *UpdateAlertConfigsPayloadRoute) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRoute) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *UpdateAlertConfigsPayloadRoute) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigsPayloadRoute) GetMatch() map[string]interface{} { + if o == nil || IsNil(o.Match) { + var ret map[string]interface{} + return ret + } + return o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigsPayloadRoute) GetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Match) { + return map[string]interface{}{}, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. +// Deprecated +func (o *UpdateAlertConfigsPayloadRoute) SetMatch(v map[string]interface{}) { + o.Match = v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigsPayloadRoute) GetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]interface{} + return ret + } + return o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigsPayloadRoute) GetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.MatchRe) { + return map[string]interface{}{}, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. +// Deprecated +func (o *UpdateAlertConfigsPayloadRoute) SetMatchRe(v map[string]interface{}) { + o.MatchRe = v +} + +// GetReceiver returns the Receiver field value +func (o *UpdateAlertConfigsPayloadRoute) GetReceiver() string { + if o == nil { + var ret string + return ret + } + + return o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetReceiverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Receiver, true +} + +// SetReceiver sets field value +func (o *UpdateAlertConfigsPayloadRoute) SetReceiver(v string) { + o.Receiver = v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRoute) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *UpdateAlertConfigsPayloadRoute) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRoute) GetRoutes() []UpdateAlertConfigsPayloadRouteRoutesInner { + if o == nil || IsNil(o.Routes) { + var ret []UpdateAlertConfigsPayloadRouteRoutesInner + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRoute) GetRoutesOk() ([]UpdateAlertConfigsPayloadRouteRoutesInner, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRoute) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []UpdateAlertConfigsPayloadRouteRoutesInner and assigns it to the Routes field. +func (o *UpdateAlertConfigsPayloadRoute) SetRoutes(v []UpdateAlertConfigsPayloadRouteRoutesInner) { + o.Routes = v +} + +func (o UpdateAlertConfigsPayloadRoute) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadRoute) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + toSerialize["receiver"] = o.Receiver + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +func (o *UpdateAlertConfigsPayloadRoute) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "receiver", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertConfigsPayloadRoute := _UpdateAlertConfigsPayloadRoute{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertConfigsPayloadRoute) + + if err != nil { + return err + } + + *o = UpdateAlertConfigsPayloadRoute(varUpdateAlertConfigsPayloadRoute) + + return err +} + +type NullableUpdateAlertConfigsPayloadRoute struct { + value *UpdateAlertConfigsPayloadRoute + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadRoute) Get() *UpdateAlertConfigsPayloadRoute { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadRoute) Set(val *UpdateAlertConfigsPayloadRoute) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadRoute) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadRoute) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadRoute(val *UpdateAlertConfigsPayloadRoute) *NullableUpdateAlertConfigsPayloadRoute { + return &NullableUpdateAlertConfigsPayloadRoute{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadRoute) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadRoute) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_payload_route_routes_inner.go b/services/observability/v1api/model_update_alert_configs_payload_route_routes_inner.go new file mode 100644 index 000000000..97d22695a --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_payload_route_routes_inner.go @@ -0,0 +1,470 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateAlertConfigsPayloadRouteRoutesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsPayloadRouteRoutesInner{} + +// UpdateAlertConfigsPayloadRouteRoutesInner As in one level above +type UpdateAlertConfigsPayloadRouteRoutesInner struct { + // Whether an alert should continue matching subsequent sibling nodes. + Continue *bool `json:"continue,omitempty"` + GroupBy []string `json:"groupBy,omitempty"` + // As in one level above + GroupInterval *string `json:"groupInterval,omitempty"` + // As in one level above + GroupWait *string `json:"groupWait,omitempty"` + // As in one level above + // Deprecated + Match map[string]interface{} `json:"match,omitempty"` + // As in one level above + // Deprecated + MatchRe map[string]interface{} `json:"matchRe,omitempty"` + // A list of matchers that an alert has to fulfill to match the node. A matcher is a string with a syntax inspired by PromQL and OpenMetrics. The syntax of a matcher consists of three tokens: * A valid Prometheus label name. * One of =, !=, =~, or !~. = means equals, != means that the strings are not equal, =~ is used for equality of regex expressions and !~ is used for un-equality of regex expressions. They have the same meaning as known from PromQL selectors. * A UTF-8 string, which may be enclosed in double quotes. Before or after each token, there may be any amount of whitespace. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Matchers []string `json:"matchers,omitempty"` + // As in one level above + Receiver *string `json:"receiver,omitempty"` + // As in one level above + RepeatInterval *string `json:"repeatInterval,omitempty"` + // Another child routes + Routes []map[string]interface{} `json:"routes,omitempty"` +} + +// NewUpdateAlertConfigsPayloadRouteRoutesInner instantiates a new UpdateAlertConfigsPayloadRouteRoutesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsPayloadRouteRoutesInner() *UpdateAlertConfigsPayloadRouteRoutesInner { + this := UpdateAlertConfigsPayloadRouteRoutesInner{} + var continue_ bool = false + this.Continue = &continue_ + return &this +} + +// NewUpdateAlertConfigsPayloadRouteRoutesInnerWithDefaults instantiates a new UpdateAlertConfigsPayloadRouteRoutesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsPayloadRouteRoutesInnerWithDefaults() *UpdateAlertConfigsPayloadRouteRoutesInner { + this := UpdateAlertConfigsPayloadRouteRoutesInner{} + var continue_ bool = false + this.Continue = &continue_ + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetContinue() bool { + if o == nil || IsNil(o.Continue) { + var ret bool + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetContinueOk() (*bool, bool) { + if o == nil || IsNil(o.Continue) { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasContinue() bool { + if o != nil && !IsNil(o.Continue) { + return true + } + + return false +} + +// SetContinue gets a reference to the given bool and assigns it to the Continue field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetContinue(v bool) { + o.Continue = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupBy() []string { + if o == nil || IsNil(o.GroupBy) { + var ret []string + return ret + } + return o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupByOk() ([]string, bool) { + if o == nil || IsNil(o.GroupBy) { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasGroupBy() bool { + if o != nil && !IsNil(o.GroupBy) { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given []string and assigns it to the GroupBy field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetGroupBy(v []string) { + o.GroupBy = v +} + +// GetGroupInterval returns the GroupInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupInterval() string { + if o == nil || IsNil(o.GroupInterval) { + var ret string + return ret + } + return *o.GroupInterval +} + +// GetGroupIntervalOk returns a tuple with the GroupInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupIntervalOk() (*string, bool) { + if o == nil || IsNil(o.GroupInterval) { + return nil, false + } + return o.GroupInterval, true +} + +// HasGroupInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasGroupInterval() bool { + if o != nil && !IsNil(o.GroupInterval) { + return true + } + + return false +} + +// SetGroupInterval gets a reference to the given string and assigns it to the GroupInterval field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetGroupInterval(v string) { + o.GroupInterval = &v +} + +// GetGroupWait returns the GroupWait field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupWait() string { + if o == nil || IsNil(o.GroupWait) { + var ret string + return ret + } + return *o.GroupWait +} + +// GetGroupWaitOk returns a tuple with the GroupWait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetGroupWaitOk() (*string, bool) { + if o == nil || IsNil(o.GroupWait) { + return nil, false + } + return o.GroupWait, true +} + +// HasGroupWait returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasGroupWait() bool { + if o != nil && !IsNil(o.GroupWait) { + return true + } + + return false +} + +// SetGroupWait gets a reference to the given string and assigns it to the GroupWait field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetGroupWait(v string) { + o.GroupWait = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatch() map[string]interface{} { + if o == nil || IsNil(o.Match) { + var ret map[string]interface{} + return ret + } + return o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Match) { + return map[string]interface{}{}, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given map[string]interface{} and assigns it to the Match field. +// Deprecated +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetMatch(v map[string]interface{}) { + o.Match = v +} + +// GetMatchRe returns the MatchRe field value if set, zero value otherwise. +// Deprecated +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchRe() map[string]interface{} { + if o == nil || IsNil(o.MatchRe) { + var ret map[string]interface{} + return ret + } + return o.MatchRe +} + +// GetMatchReOk returns a tuple with the MatchRe field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchReOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.MatchRe) { + return map[string]interface{}{}, false + } + return o.MatchRe, true +} + +// HasMatchRe returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasMatchRe() bool { + if o != nil && !IsNil(o.MatchRe) { + return true + } + + return false +} + +// SetMatchRe gets a reference to the given map[string]interface{} and assigns it to the MatchRe field. +// Deprecated +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetMatchRe(v map[string]interface{}) { + o.MatchRe = v +} + +// GetMatchers returns the Matchers field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchers() []string { + if o == nil || IsNil(o.Matchers) { + var ret []string + return ret + } + return o.Matchers +} + +// GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetMatchersOk() ([]string, bool) { + if o == nil || IsNil(o.Matchers) { + return nil, false + } + return o.Matchers, true +} + +// HasMatchers returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasMatchers() bool { + if o != nil && !IsNil(o.Matchers) { + return true + } + + return false +} + +// SetMatchers gets a reference to the given []string and assigns it to the Matchers field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetMatchers(v []string) { + o.Matchers = v +} + +// GetReceiver returns the Receiver field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetReceiver() string { + if o == nil || IsNil(o.Receiver) { + var ret string + return ret + } + return *o.Receiver +} + +// GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetReceiverOk() (*string, bool) { + if o == nil || IsNil(o.Receiver) { + return nil, false + } + return o.Receiver, true +} + +// HasReceiver returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasReceiver() bool { + if o != nil && !IsNil(o.Receiver) { + return true + } + + return false +} + +// SetReceiver gets a reference to the given string and assigns it to the Receiver field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetReceiver(v string) { + o.Receiver = &v +} + +// GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRepeatInterval() string { + if o == nil || IsNil(o.RepeatInterval) { + var ret string + return ret + } + return *o.RepeatInterval +} + +// GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRepeatIntervalOk() (*string, bool) { + if o == nil || IsNil(o.RepeatInterval) { + return nil, false + } + return o.RepeatInterval, true +} + +// HasRepeatInterval returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasRepeatInterval() bool { + if o != nil && !IsNil(o.RepeatInterval) { + return true + } + + return false +} + +// SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetRepeatInterval(v string) { + o.RepeatInterval = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRoutes() []map[string]interface{} { + if o == nil || IsNil(o.Routes) { + var ret []map[string]interface{} + return ret + } + return o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) GetRoutesOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given []map[string]interface{} and assigns it to the Routes field. +func (o *UpdateAlertConfigsPayloadRouteRoutesInner) SetRoutes(v []map[string]interface{}) { + o.Routes = v +} + +func (o UpdateAlertConfigsPayloadRouteRoutesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsPayloadRouteRoutesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Continue) { + toSerialize["continue"] = o.Continue + } + if !IsNil(o.GroupBy) { + toSerialize["groupBy"] = o.GroupBy + } + if !IsNil(o.GroupInterval) { + toSerialize["groupInterval"] = o.GroupInterval + } + if !IsNil(o.GroupWait) { + toSerialize["groupWait"] = o.GroupWait + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.MatchRe) { + toSerialize["matchRe"] = o.MatchRe + } + if !IsNil(o.Matchers) { + toSerialize["matchers"] = o.Matchers + } + if !IsNil(o.Receiver) { + toSerialize["receiver"] = o.Receiver + } + if !IsNil(o.RepeatInterval) { + toSerialize["repeatInterval"] = o.RepeatInterval + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + return toSerialize, nil +} + +type NullableUpdateAlertConfigsPayloadRouteRoutesInner struct { + value *UpdateAlertConfigsPayloadRouteRoutesInner + isSet bool +} + +func (v NullableUpdateAlertConfigsPayloadRouteRoutesInner) Get() *UpdateAlertConfigsPayloadRouteRoutesInner { + return v.value +} + +func (v *NullableUpdateAlertConfigsPayloadRouteRoutesInner) Set(val *UpdateAlertConfigsPayloadRouteRoutesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsPayloadRouteRoutesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsPayloadRouteRoutesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsPayloadRouteRoutesInner(val *UpdateAlertConfigsPayloadRouteRoutesInner) *NullableUpdateAlertConfigsPayloadRouteRoutesInner { + return &NullableUpdateAlertConfigsPayloadRouteRoutesInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsPayloadRouteRoutesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsPayloadRouteRoutesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_configs_response.go b/services/observability/v1api/model_update_alert_configs_response.go new file mode 100644 index 000000000..48909eb03 --- /dev/null +++ b/services/observability/v1api/model_update_alert_configs_response.go @@ -0,0 +1,185 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertConfigsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertConfigsResponse{} + +// UpdateAlertConfigsResponse struct for UpdateAlertConfigsResponse +type UpdateAlertConfigsResponse struct { + Data Alert `json:"data"` + Message string `json:"message"` +} + +type _UpdateAlertConfigsResponse UpdateAlertConfigsResponse + +// NewUpdateAlertConfigsResponse instantiates a new UpdateAlertConfigsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertConfigsResponse(data Alert, message string) *UpdateAlertConfigsResponse { + this := UpdateAlertConfigsResponse{} + this.Data = data + this.Message = message + return &this +} + +// NewUpdateAlertConfigsResponseWithDefaults instantiates a new UpdateAlertConfigsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertConfigsResponseWithDefaults() *UpdateAlertConfigsResponse { + this := UpdateAlertConfigsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *UpdateAlertConfigsResponse) GetData() Alert { + if o == nil { + var ret Alert + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsResponse) GetDataOk() (*Alert, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *UpdateAlertConfigsResponse) SetData(v Alert) { + o.Data = v +} + +// GetMessage returns the Message field value +func (o *UpdateAlertConfigsResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertConfigsResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *UpdateAlertConfigsResponse) SetMessage(v string) { + o.Message = v +} + +func (o UpdateAlertConfigsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertConfigsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *UpdateAlertConfigsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertConfigsResponse := _UpdateAlertConfigsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertConfigsResponse) + + if err != nil { + return err + } + + *o = UpdateAlertConfigsResponse(varUpdateAlertConfigsResponse) + + return err +} + +type NullableUpdateAlertConfigsResponse struct { + value *UpdateAlertConfigsResponse + isSet bool +} + +func (v NullableUpdateAlertConfigsResponse) Get() *UpdateAlertConfigsResponse { + return v.value +} + +func (v *NullableUpdateAlertConfigsResponse) Set(val *UpdateAlertConfigsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertConfigsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertConfigsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertConfigsResponse(val *UpdateAlertConfigsResponse) *NullableUpdateAlertConfigsResponse { + return &NullableUpdateAlertConfigsResponse{value: val, isSet: true} +} + +func (v NullableUpdateAlertConfigsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertConfigsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alert_record_payload.go b/services/observability/v1api/model_update_alert_record_payload.go new file mode 100644 index 000000000..486ffb9a7 --- /dev/null +++ b/services/observability/v1api/model_update_alert_record_payload.go @@ -0,0 +1,195 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertRecordPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertRecordPayload{} + +// UpdateAlertRecordPayload Record. `Additional Validators:` * total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type UpdateAlertRecordPayload struct { + // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. + Expr string `json:"expr"` + // map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` +} + +type _UpdateAlertRecordPayload UpdateAlertRecordPayload + +// NewUpdateAlertRecordPayload instantiates a new UpdateAlertRecordPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertRecordPayload(expr string) *UpdateAlertRecordPayload { + this := UpdateAlertRecordPayload{} + this.Expr = expr + return &this +} + +// NewUpdateAlertRecordPayloadWithDefaults instantiates a new UpdateAlertRecordPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertRecordPayloadWithDefaults() *UpdateAlertRecordPayload { + this := UpdateAlertRecordPayload{} + return &this +} + +// GetExpr returns the Expr field value +func (o *UpdateAlertRecordPayload) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertRecordPayload) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *UpdateAlertRecordPayload) SetExpr(v string) { + o.Expr = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateAlertRecordPayload) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertRecordPayload) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateAlertRecordPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *UpdateAlertRecordPayload) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o UpdateAlertRecordPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertRecordPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["expr"] = o.Expr + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *UpdateAlertRecordPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertRecordPayload := _UpdateAlertRecordPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertRecordPayload) + + if err != nil { + return err + } + + *o = UpdateAlertRecordPayload(varUpdateAlertRecordPayload) + + return err +} + +type NullableUpdateAlertRecordPayload struct { + value *UpdateAlertRecordPayload + isSet bool +} + +func (v NullableUpdateAlertRecordPayload) Get() *UpdateAlertRecordPayload { + return v.value +} + +func (v *NullableUpdateAlertRecordPayload) Set(val *UpdateAlertRecordPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertRecordPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertRecordPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertRecordPayload(val *UpdateAlertRecordPayload) *NullableUpdateAlertRecordPayload { + return &NullableUpdateAlertRecordPayload{value: val, isSet: true} +} + +func (v NullableUpdateAlertRecordPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertRecordPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alertgroup_payload.go b/services/observability/v1api/model_update_alertgroup_payload.go new file mode 100644 index 000000000..e504f6d3e --- /dev/null +++ b/services/observability/v1api/model_update_alertgroup_payload.go @@ -0,0 +1,199 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertgroupPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertgroupPayload{} + +// UpdateAlertgroupPayload 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. +type UpdateAlertgroupPayload struct { + // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s + Interval *string `json:"interval,omitempty"` + // rules for the alert group + Rules []UpdateAlertgroupPayloadRulesInner `json:"rules"` +} + +type _UpdateAlertgroupPayload UpdateAlertgroupPayload + +// NewUpdateAlertgroupPayload instantiates a new UpdateAlertgroupPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertgroupPayload(rules []UpdateAlertgroupPayloadRulesInner) *UpdateAlertgroupPayload { + this := UpdateAlertgroupPayload{} + var interval string = "60s" + this.Interval = &interval + this.Rules = rules + return &this +} + +// NewUpdateAlertgroupPayloadWithDefaults instantiates a new UpdateAlertgroupPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertgroupPayloadWithDefaults() *UpdateAlertgroupPayload { + this := UpdateAlertgroupPayload{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *UpdateAlertgroupPayload) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayload) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *UpdateAlertgroupPayload) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *UpdateAlertgroupPayload) SetInterval(v string) { + o.Interval = &v +} + +// GetRules returns the Rules field value +func (o *UpdateAlertgroupPayload) GetRules() []UpdateAlertgroupPayloadRulesInner { + if o == nil { + var ret []UpdateAlertgroupPayloadRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayload) GetRulesOk() ([]UpdateAlertgroupPayloadRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *UpdateAlertgroupPayload) SetRules(v []UpdateAlertgroupPayloadRulesInner) { + o.Rules = v +} + +func (o UpdateAlertgroupPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertgroupPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *UpdateAlertgroupPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertgroupPayload := _UpdateAlertgroupPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertgroupPayload) + + if err != nil { + return err + } + + *o = UpdateAlertgroupPayload(varUpdateAlertgroupPayload) + + return err +} + +type NullableUpdateAlertgroupPayload struct { + value *UpdateAlertgroupPayload + isSet bool +} + +func (v NullableUpdateAlertgroupPayload) Get() *UpdateAlertgroupPayload { + return v.value +} + +func (v *NullableUpdateAlertgroupPayload) Set(val *UpdateAlertgroupPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertgroupPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertgroupPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertgroupPayload(val *UpdateAlertgroupPayload) *NullableUpdateAlertgroupPayload { + return &NullableUpdateAlertgroupPayload{value: val, isSet: true} +} + +func (v NullableUpdateAlertgroupPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertgroupPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alertgroup_payload_rules_inner.go b/services/observability/v1api/model_update_alertgroup_payload_rules_inner.go new file mode 100644 index 000000000..336692139 --- /dev/null +++ b/services/observability/v1api/model_update_alertgroup_payload_rules_inner.go @@ -0,0 +1,347 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertgroupPayloadRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertgroupPayloadRulesInner{} + +// UpdateAlertgroupPayloadRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type UpdateAlertgroupPayloadRulesInner struct { + // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed + Alert *string `json:"alert,omitempty"` + // Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule + For *string `json:"for,omitempty"` + // Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed + Record *string `json:"record,omitempty"` +} + +type _UpdateAlertgroupPayloadRulesInner UpdateAlertgroupPayloadRulesInner + +// NewUpdateAlertgroupPayloadRulesInner instantiates a new UpdateAlertgroupPayloadRulesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertgroupPayloadRulesInner(expr string) *UpdateAlertgroupPayloadRulesInner { + this := UpdateAlertgroupPayloadRulesInner{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewUpdateAlertgroupPayloadRulesInnerWithDefaults instantiates a new UpdateAlertgroupPayloadRulesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertgroupPayloadRulesInnerWithDefaults() *UpdateAlertgroupPayloadRulesInner { + this := UpdateAlertgroupPayloadRulesInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *UpdateAlertgroupPayloadRulesInner) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayloadRulesInner) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *UpdateAlertgroupPayloadRulesInner) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *UpdateAlertgroupPayloadRulesInner) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UpdateAlertgroupPayloadRulesInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayloadRulesInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UpdateAlertgroupPayloadRulesInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UpdateAlertgroupPayloadRulesInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *UpdateAlertgroupPayloadRulesInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayloadRulesInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *UpdateAlertgroupPayloadRulesInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *UpdateAlertgroupPayloadRulesInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayloadRulesInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *UpdateAlertgroupPayloadRulesInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *UpdateAlertgroupPayloadRulesInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateAlertgroupPayloadRulesInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayloadRulesInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateAlertgroupPayloadRulesInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *UpdateAlertgroupPayloadRulesInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *UpdateAlertgroupPayloadRulesInner) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupPayloadRulesInner) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *UpdateAlertgroupPayloadRulesInner) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *UpdateAlertgroupPayloadRulesInner) SetRecord(v string) { + o.Record = &v +} + +func (o UpdateAlertgroupPayloadRulesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertgroupPayloadRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *UpdateAlertgroupPayloadRulesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertgroupPayloadRulesInner := _UpdateAlertgroupPayloadRulesInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertgroupPayloadRulesInner) + + if err != nil { + return err + } + + *o = UpdateAlertgroupPayloadRulesInner(varUpdateAlertgroupPayloadRulesInner) + + return err +} + +type NullableUpdateAlertgroupPayloadRulesInner struct { + value *UpdateAlertgroupPayloadRulesInner + isSet bool +} + +func (v NullableUpdateAlertgroupPayloadRulesInner) Get() *UpdateAlertgroupPayloadRulesInner { + return v.value +} + +func (v *NullableUpdateAlertgroupPayloadRulesInner) Set(val *UpdateAlertgroupPayloadRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertgroupPayloadRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertgroupPayloadRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertgroupPayloadRulesInner(val *UpdateAlertgroupPayloadRulesInner) *NullableUpdateAlertgroupPayloadRulesInner { + return &NullableUpdateAlertgroupPayloadRulesInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertgroupPayloadRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertgroupPayloadRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alertgroups_request_inner.go b/services/observability/v1api/model_update_alertgroups_request_inner.go new file mode 100644 index 000000000..270c3b8d1 --- /dev/null +++ b/services/observability/v1api/model_update_alertgroups_request_inner.go @@ -0,0 +1,228 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertgroupsRequestInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertgroupsRequestInner{} + +// UpdateAlertgroupsRequestInner 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. +type UpdateAlertgroupsRequestInner struct { + // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s + Interval *string `json:"interval,omitempty"` + // The name of the group. Must be unique. `Additional Validators:` * is the identifier and so unique * should only include the characters: a-zA-Z0-9- + Name string `json:"name"` + // rules for the alert group + Rules []UpdateAlertgroupsRequestInnerRulesInner `json:"rules"` +} + +type _UpdateAlertgroupsRequestInner UpdateAlertgroupsRequestInner + +// NewUpdateAlertgroupsRequestInner instantiates a new UpdateAlertgroupsRequestInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertgroupsRequestInner(name string, rules []UpdateAlertgroupsRequestInnerRulesInner) *UpdateAlertgroupsRequestInner { + this := UpdateAlertgroupsRequestInner{} + var interval string = "60s" + this.Interval = &interval + this.Name = name + this.Rules = rules + return &this +} + +// NewUpdateAlertgroupsRequestInnerWithDefaults instantiates a new UpdateAlertgroupsRequestInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertgroupsRequestInnerWithDefaults() *UpdateAlertgroupsRequestInner { + this := UpdateAlertgroupsRequestInner{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *UpdateAlertgroupsRequestInner) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInner) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *UpdateAlertgroupsRequestInner) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *UpdateAlertgroupsRequestInner) SetInterval(v string) { + o.Interval = &v +} + +// GetName returns the Name field value +func (o *UpdateAlertgroupsRequestInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateAlertgroupsRequestInner) SetName(v string) { + o.Name = v +} + +// GetRules returns the Rules field value +func (o *UpdateAlertgroupsRequestInner) GetRules() []UpdateAlertgroupsRequestInnerRulesInner { + if o == nil { + var ret []UpdateAlertgroupsRequestInnerRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInner) GetRulesOk() ([]UpdateAlertgroupsRequestInnerRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *UpdateAlertgroupsRequestInner) SetRules(v []UpdateAlertgroupsRequestInnerRulesInner) { + o.Rules = v +} + +func (o UpdateAlertgroupsRequestInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertgroupsRequestInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["name"] = o.Name + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *UpdateAlertgroupsRequestInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertgroupsRequestInner := _UpdateAlertgroupsRequestInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertgroupsRequestInner) + + if err != nil { + return err + } + + *o = UpdateAlertgroupsRequestInner(varUpdateAlertgroupsRequestInner) + + return err +} + +type NullableUpdateAlertgroupsRequestInner struct { + value *UpdateAlertgroupsRequestInner + isSet bool +} + +func (v NullableUpdateAlertgroupsRequestInner) Get() *UpdateAlertgroupsRequestInner { + return v.value +} + +func (v *NullableUpdateAlertgroupsRequestInner) Set(val *UpdateAlertgroupsRequestInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertgroupsRequestInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertgroupsRequestInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertgroupsRequestInner(val *UpdateAlertgroupsRequestInner) *NullableUpdateAlertgroupsRequestInner { + return &NullableUpdateAlertgroupsRequestInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertgroupsRequestInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertgroupsRequestInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alertgroups_request_inner_rules_inner.go b/services/observability/v1api/model_update_alertgroups_request_inner_rules_inner.go new file mode 100644 index 000000000..bfec1d94a --- /dev/null +++ b/services/observability/v1api/model_update_alertgroups_request_inner_rules_inner.go @@ -0,0 +1,347 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertgroupsRequestInnerRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertgroupsRequestInnerRulesInner{} + +// UpdateAlertgroupsRequestInnerRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type UpdateAlertgroupsRequestInnerRulesInner struct { + // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed + Alert *string `json:"alert,omitempty"` + // Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule + For *string `json:"for,omitempty"` + // Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed + Record *string `json:"record,omitempty"` +} + +type _UpdateAlertgroupsRequestInnerRulesInner UpdateAlertgroupsRequestInnerRulesInner + +// NewUpdateAlertgroupsRequestInnerRulesInner instantiates a new UpdateAlertgroupsRequestInnerRulesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertgroupsRequestInnerRulesInner(expr string) *UpdateAlertgroupsRequestInnerRulesInner { + this := UpdateAlertgroupsRequestInnerRulesInner{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewUpdateAlertgroupsRequestInnerRulesInnerWithDefaults instantiates a new UpdateAlertgroupsRequestInnerRulesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertgroupsRequestInnerRulesInnerWithDefaults() *UpdateAlertgroupsRequestInnerRulesInner { + this := UpdateAlertgroupsRequestInnerRulesInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *UpdateAlertgroupsRequestInnerRulesInner) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UpdateAlertgroupsRequestInnerRulesInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *UpdateAlertgroupsRequestInnerRulesInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *UpdateAlertgroupsRequestInnerRulesInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *UpdateAlertgroupsRequestInnerRulesInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *UpdateAlertgroupsRequestInnerRulesInner) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *UpdateAlertgroupsRequestInnerRulesInner) SetRecord(v string) { + o.Record = &v +} + +func (o UpdateAlertgroupsRequestInnerRulesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertgroupsRequestInnerRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *UpdateAlertgroupsRequestInnerRulesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertgroupsRequestInnerRulesInner := _UpdateAlertgroupsRequestInnerRulesInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertgroupsRequestInnerRulesInner) + + if err != nil { + return err + } + + *o = UpdateAlertgroupsRequestInnerRulesInner(varUpdateAlertgroupsRequestInnerRulesInner) + + return err +} + +type NullableUpdateAlertgroupsRequestInnerRulesInner struct { + value *UpdateAlertgroupsRequestInnerRulesInner + isSet bool +} + +func (v NullableUpdateAlertgroupsRequestInnerRulesInner) Get() *UpdateAlertgroupsRequestInnerRulesInner { + return v.value +} + +func (v *NullableUpdateAlertgroupsRequestInnerRulesInner) Set(val *UpdateAlertgroupsRequestInnerRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertgroupsRequestInnerRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertgroupsRequestInnerRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertgroupsRequestInnerRulesInner(val *UpdateAlertgroupsRequestInnerRulesInner) *NullableUpdateAlertgroupsRequestInnerRulesInner { + return &NullableUpdateAlertgroupsRequestInnerRulesInner{value: val, isSet: true} +} + +func (v NullableUpdateAlertgroupsRequestInnerRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertgroupsRequestInnerRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_alertrule_payload.go b/services/observability/v1api/model_update_alertrule_payload.go new file mode 100644 index 000000000..d788aeb40 --- /dev/null +++ b/services/observability/v1api/model_update_alertrule_payload.go @@ -0,0 +1,273 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateAlertrulePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAlertrulePayload{} + +// UpdateAlertrulePayload 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. +type UpdateAlertrulePayload struct { + // map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string + For *string `json:"for,omitempty"` + // map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` +} + +type _UpdateAlertrulePayload UpdateAlertrulePayload + +// NewUpdateAlertrulePayload instantiates a new UpdateAlertrulePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAlertrulePayload(expr string) *UpdateAlertrulePayload { + this := UpdateAlertrulePayload{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewUpdateAlertrulePayloadWithDefaults instantiates a new UpdateAlertrulePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAlertrulePayloadWithDefaults() *UpdateAlertrulePayload { + this := UpdateAlertrulePayload{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UpdateAlertrulePayload) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertrulePayload) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UpdateAlertrulePayload) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UpdateAlertrulePayload) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *UpdateAlertrulePayload) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *UpdateAlertrulePayload) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *UpdateAlertrulePayload) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *UpdateAlertrulePayload) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertrulePayload) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *UpdateAlertrulePayload) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *UpdateAlertrulePayload) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateAlertrulePayload) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAlertrulePayload) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateAlertrulePayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *UpdateAlertrulePayload) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o UpdateAlertrulePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAlertrulePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *UpdateAlertrulePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAlertrulePayload := _UpdateAlertrulePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAlertrulePayload) + + if err != nil { + return err + } + + *o = UpdateAlertrulePayload(varUpdateAlertrulePayload) + + return err +} + +type NullableUpdateAlertrulePayload struct { + value *UpdateAlertrulePayload + isSet bool +} + +func (v NullableUpdateAlertrulePayload) Get() *UpdateAlertrulePayload { + return v.value +} + +func (v *NullableUpdateAlertrulePayload) Set(val *UpdateAlertrulePayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAlertrulePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAlertrulePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAlertrulePayload(val *UpdateAlertrulePayload) *NullableUpdateAlertrulePayload { + return &NullableUpdateAlertrulePayload{value: val, isSet: true} +} + +func (v NullableUpdateAlertrulePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAlertrulePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_credentials_remote_write_config_payload.go b/services/observability/v1api/model_update_credentials_remote_write_config_payload.go new file mode 100644 index 000000000..b40a51c4f --- /dev/null +++ b/services/observability/v1api/model_update_credentials_remote_write_config_payload.go @@ -0,0 +1,126 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateCredentialsRemoteWriteConfigPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateCredentialsRemoteWriteConfigPayload{} + +// UpdateCredentialsRemoteWriteConfigPayload Remote write limit config. +type UpdateCredentialsRemoteWriteConfigPayload struct { + // Remote write metric sample limit for credential to push in a single minute. + MaxLimit *float32 `json:"maxLimit,omitempty"` +} + +// NewUpdateCredentialsRemoteWriteConfigPayload instantiates a new UpdateCredentialsRemoteWriteConfigPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateCredentialsRemoteWriteConfigPayload() *UpdateCredentialsRemoteWriteConfigPayload { + this := UpdateCredentialsRemoteWriteConfigPayload{} + return &this +} + +// NewUpdateCredentialsRemoteWriteConfigPayloadWithDefaults instantiates a new UpdateCredentialsRemoteWriteConfigPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateCredentialsRemoteWriteConfigPayloadWithDefaults() *UpdateCredentialsRemoteWriteConfigPayload { + this := UpdateCredentialsRemoteWriteConfigPayload{} + return &this +} + +// GetMaxLimit returns the MaxLimit field value if set, zero value otherwise. +func (o *UpdateCredentialsRemoteWriteConfigPayload) GetMaxLimit() float32 { + if o == nil || IsNil(o.MaxLimit) { + var ret float32 + return ret + } + return *o.MaxLimit +} + +// GetMaxLimitOk returns a tuple with the MaxLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateCredentialsRemoteWriteConfigPayload) GetMaxLimitOk() (*float32, bool) { + if o == nil || IsNil(o.MaxLimit) { + return nil, false + } + return o.MaxLimit, true +} + +// HasMaxLimit returns a boolean if a field has been set. +func (o *UpdateCredentialsRemoteWriteConfigPayload) HasMaxLimit() bool { + if o != nil && !IsNil(o.MaxLimit) { + return true + } + + return false +} + +// SetMaxLimit gets a reference to the given float32 and assigns it to the MaxLimit field. +func (o *UpdateCredentialsRemoteWriteConfigPayload) SetMaxLimit(v float32) { + o.MaxLimit = &v +} + +func (o UpdateCredentialsRemoteWriteConfigPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateCredentialsRemoteWriteConfigPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MaxLimit) { + toSerialize["maxLimit"] = o.MaxLimit + } + return toSerialize, nil +} + +type NullableUpdateCredentialsRemoteWriteConfigPayload struct { + value *UpdateCredentialsRemoteWriteConfigPayload + isSet bool +} + +func (v NullableUpdateCredentialsRemoteWriteConfigPayload) Get() *UpdateCredentialsRemoteWriteConfigPayload { + return v.value +} + +func (v *NullableUpdateCredentialsRemoteWriteConfigPayload) Set(val *UpdateCredentialsRemoteWriteConfigPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateCredentialsRemoteWriteConfigPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateCredentialsRemoteWriteConfigPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateCredentialsRemoteWriteConfigPayload(val *UpdateCredentialsRemoteWriteConfigPayload) *NullableUpdateCredentialsRemoteWriteConfigPayload { + return &NullableUpdateCredentialsRemoteWriteConfigPayload{value: val, isSet: true} +} + +func (v NullableUpdateCredentialsRemoteWriteConfigPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateCredentialsRemoteWriteConfigPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_grafana_configs_payload.go b/services/observability/v1api/model_update_grafana_configs_payload.go new file mode 100644 index 000000000..b0be6d6ee --- /dev/null +++ b/services/observability/v1api/model_update_grafana_configs_payload.go @@ -0,0 +1,199 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateGrafanaConfigsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateGrafanaConfigsPayload{} + +// UpdateGrafanaConfigsPayload Sending any of the attributes results in a set of the attribute and overwrites any previous configuration. +type UpdateGrafanaConfigsPayload struct { + GenericOauth *UpdateGrafanaConfigsPayloadGenericOauth `json:"genericOauth,omitempty"` + // If it's true, anyone can access the Grafana dashboards without logging in. If it is wrong, a login is required. + PublicReadAccess *bool `json:"publicReadAccess,omitempty"` + // If it's true, it overwrites the current genericOauth config and configures STACKIT SSO for this instance. + UseStackitSso *bool `json:"useStackitSso,omitempty"` +} + +// NewUpdateGrafanaConfigsPayload instantiates a new UpdateGrafanaConfigsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateGrafanaConfigsPayload() *UpdateGrafanaConfigsPayload { + this := UpdateGrafanaConfigsPayload{} + return &this +} + +// NewUpdateGrafanaConfigsPayloadWithDefaults instantiates a new UpdateGrafanaConfigsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateGrafanaConfigsPayloadWithDefaults() *UpdateGrafanaConfigsPayload { + this := UpdateGrafanaConfigsPayload{} + return &this +} + +// GetGenericOauth returns the GenericOauth field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayload) GetGenericOauth() UpdateGrafanaConfigsPayloadGenericOauth { + if o == nil || IsNil(o.GenericOauth) { + var ret UpdateGrafanaConfigsPayloadGenericOauth + return ret + } + return *o.GenericOauth +} + +// GetGenericOauthOk returns a tuple with the GenericOauth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayload) GetGenericOauthOk() (*UpdateGrafanaConfigsPayloadGenericOauth, bool) { + if o == nil || IsNil(o.GenericOauth) { + return nil, false + } + return o.GenericOauth, true +} + +// HasGenericOauth returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayload) HasGenericOauth() bool { + if o != nil && !IsNil(o.GenericOauth) { + return true + } + + return false +} + +// SetGenericOauth gets a reference to the given UpdateGrafanaConfigsPayloadGenericOauth and assigns it to the GenericOauth field. +func (o *UpdateGrafanaConfigsPayload) SetGenericOauth(v UpdateGrafanaConfigsPayloadGenericOauth) { + o.GenericOauth = &v +} + +// GetPublicReadAccess returns the PublicReadAccess field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayload) GetPublicReadAccess() bool { + if o == nil || IsNil(o.PublicReadAccess) { + var ret bool + return ret + } + return *o.PublicReadAccess +} + +// GetPublicReadAccessOk returns a tuple with the PublicReadAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayload) GetPublicReadAccessOk() (*bool, bool) { + if o == nil || IsNil(o.PublicReadAccess) { + return nil, false + } + return o.PublicReadAccess, true +} + +// HasPublicReadAccess returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayload) HasPublicReadAccess() bool { + if o != nil && !IsNil(o.PublicReadAccess) { + return true + } + + return false +} + +// SetPublicReadAccess gets a reference to the given bool and assigns it to the PublicReadAccess field. +func (o *UpdateGrafanaConfigsPayload) SetPublicReadAccess(v bool) { + o.PublicReadAccess = &v +} + +// GetUseStackitSso returns the UseStackitSso field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayload) GetUseStackitSso() bool { + if o == nil || IsNil(o.UseStackitSso) { + var ret bool + return ret + } + return *o.UseStackitSso +} + +// GetUseStackitSsoOk returns a tuple with the UseStackitSso field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayload) GetUseStackitSsoOk() (*bool, bool) { + if o == nil || IsNil(o.UseStackitSso) { + return nil, false + } + return o.UseStackitSso, true +} + +// HasUseStackitSso returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayload) HasUseStackitSso() bool { + if o != nil && !IsNil(o.UseStackitSso) { + return true + } + + return false +} + +// SetUseStackitSso gets a reference to the given bool and assigns it to the UseStackitSso field. +func (o *UpdateGrafanaConfigsPayload) SetUseStackitSso(v bool) { + o.UseStackitSso = &v +} + +func (o UpdateGrafanaConfigsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateGrafanaConfigsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GenericOauth) { + toSerialize["genericOauth"] = o.GenericOauth + } + if !IsNil(o.PublicReadAccess) { + toSerialize["publicReadAccess"] = o.PublicReadAccess + } + if !IsNil(o.UseStackitSso) { + toSerialize["useStackitSso"] = o.UseStackitSso + } + return toSerialize, nil +} + +type NullableUpdateGrafanaConfigsPayload struct { + value *UpdateGrafanaConfigsPayload + isSet bool +} + +func (v NullableUpdateGrafanaConfigsPayload) Get() *UpdateGrafanaConfigsPayload { + return v.value +} + +func (v *NullableUpdateGrafanaConfigsPayload) Set(val *UpdateGrafanaConfigsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateGrafanaConfigsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateGrafanaConfigsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateGrafanaConfigsPayload(val *UpdateGrafanaConfigsPayload) *NullableUpdateGrafanaConfigsPayload { + return &NullableUpdateGrafanaConfigsPayload{value: val, isSet: true} +} + +func (v NullableUpdateGrafanaConfigsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateGrafanaConfigsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_grafana_configs_payload_generic_oauth.go b/services/observability/v1api/model_update_grafana_configs_payload_generic_oauth.go new file mode 100644 index 000000000..cbcd89325 --- /dev/null +++ b/services/observability/v1api/model_update_grafana_configs_payload_generic_oauth.go @@ -0,0 +1,529 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateGrafanaConfigsPayloadGenericOauth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateGrafanaConfigsPayloadGenericOauth{} + +// UpdateGrafanaConfigsPayloadGenericOauth struct for UpdateGrafanaConfigsPayloadGenericOauth +type UpdateGrafanaConfigsPayloadGenericOauth struct { + // Set to true to enable automatic sync of the Grafana server administrator role. If this option is set to true and the result of evaluating role_attribute_path for a user is GrafanaAdmin, Grafana grants the user the server administrator privileges and organization administrator role. If this option is set to false and the result of evaluating role_attribute_path for a user is GrafanaAdmin, Grafana grants the user only organization administrator role. + AllowAssignGrafanaAdmin *bool `json:"allowAssignGrafanaAdmin,omitempty"` + // Set api_url to the resource that returns OpenID UserInfo compatible information. + ApiUrl string `json:"apiUrl"` + // Authentication endpoint of idp. + AuthUrl string `json:"authUrl"` + // Enable or disable generic oauth login + Enabled bool `json:"enabled"` + // Display name for the oAuth provider + Name *string `json:"name,omitempty"` + // Oauth client id for auth endpoint. + OauthClientId string `json:"oauthClientId"` + // Oauth client secret for auth endpoint. + OauthClientSecret string `json:"oauthClientSecret"` + // Grafana checks for the presence of a role using the JMESPath specified via the role_attribute_path configuration option. The JMESPath is applied to the id_token first. If there is no match, then the UserInfo endpoint specified via the api_url configuration option is tried next. The result after evaluation of the role_attribute_path JMESPath expression should be a valid Grafana role, for example, Viewer, Editor or Admin For example: contains(roles[\\*], 'grafana-admin') && 'Admin' || contains(roles[\\*], 'grafana-editor') && 'Editor' || contains(roles[\\*], 'grafana-viewer') && 'Viewer' + RoleAttributePath string `json:"roleAttributePath"` + // If the role_attribute_path property does not return a role, then the user is assigned the Viewer role by default. You can disable the role assignment by setting role_attribute_strict = true. It denies user access if no role or an invalid role is returned. + RoleAttributeStrict *bool `json:"roleAttributeStrict,omitempty"` + // Space seperated list of scopes of the token + Scopes *string `json:"scopes,omitempty"` + // Token endpoint of the idp. + TokenUrl string `json:"tokenUrl"` + // Enable or disable Proof Key for Code Exchange + UsePkce *bool `json:"usePkce,omitempty"` +} + +type _UpdateGrafanaConfigsPayloadGenericOauth UpdateGrafanaConfigsPayloadGenericOauth + +// NewUpdateGrafanaConfigsPayloadGenericOauth instantiates a new UpdateGrafanaConfigsPayloadGenericOauth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateGrafanaConfigsPayloadGenericOauth(apiUrl string, authUrl string, enabled bool, oauthClientId string, oauthClientSecret string, roleAttributePath string, tokenUrl string) *UpdateGrafanaConfigsPayloadGenericOauth { + this := UpdateGrafanaConfigsPayloadGenericOauth{} + var allowAssignGrafanaAdmin bool = false + this.AllowAssignGrafanaAdmin = &allowAssignGrafanaAdmin + this.ApiUrl = apiUrl + this.AuthUrl = authUrl + this.Enabled = enabled + this.OauthClientId = oauthClientId + this.OauthClientSecret = oauthClientSecret + this.RoleAttributePath = roleAttributePath + var roleAttributeStrict bool = true + this.RoleAttributeStrict = &roleAttributeStrict + var scopes string = "openid profile email" + this.Scopes = &scopes + this.TokenUrl = tokenUrl + return &this +} + +// NewUpdateGrafanaConfigsPayloadGenericOauthWithDefaults instantiates a new UpdateGrafanaConfigsPayloadGenericOauth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateGrafanaConfigsPayloadGenericOauthWithDefaults() *UpdateGrafanaConfigsPayloadGenericOauth { + this := UpdateGrafanaConfigsPayloadGenericOauth{} + var allowAssignGrafanaAdmin bool = false + this.AllowAssignGrafanaAdmin = &allowAssignGrafanaAdmin + var roleAttributeStrict bool = true + this.RoleAttributeStrict = &roleAttributeStrict + var scopes string = "openid profile email" + this.Scopes = &scopes + return &this +} + +// GetAllowAssignGrafanaAdmin returns the AllowAssignGrafanaAdmin field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAllowAssignGrafanaAdmin() bool { + if o == nil || IsNil(o.AllowAssignGrafanaAdmin) { + var ret bool + return ret + } + return *o.AllowAssignGrafanaAdmin +} + +// GetAllowAssignGrafanaAdminOk returns a tuple with the AllowAssignGrafanaAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAllowAssignGrafanaAdminOk() (*bool, bool) { + if o == nil || IsNil(o.AllowAssignGrafanaAdmin) { + return nil, false + } + return o.AllowAssignGrafanaAdmin, true +} + +// HasAllowAssignGrafanaAdmin returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasAllowAssignGrafanaAdmin() bool { + if o != nil && !IsNil(o.AllowAssignGrafanaAdmin) { + return true + } + + return false +} + +// SetAllowAssignGrafanaAdmin gets a reference to the given bool and assigns it to the AllowAssignGrafanaAdmin field. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetAllowAssignGrafanaAdmin(v bool) { + o.AllowAssignGrafanaAdmin = &v +} + +// GetApiUrl returns the ApiUrl field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetAuthUrl returns the AuthUrl field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAuthUrl() string { + if o == nil { + var ret string + return ret + } + + return o.AuthUrl +} + +// GetAuthUrlOk returns a tuple with the AuthUrl field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAuthUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthUrl, true +} + +// SetAuthUrl sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetAuthUrl(v string) { + o.AuthUrl = v +} + +// GetEnabled returns the Enabled field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetEnabled(v bool) { + o.Enabled = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetName(v string) { + o.Name = &v +} + +// GetOauthClientId returns the OauthClientId field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientId() string { + if o == nil { + var ret string + return ret + } + + return o.OauthClientId +} + +// GetOauthClientIdOk returns a tuple with the OauthClientId field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OauthClientId, true +} + +// SetOauthClientId sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetOauthClientId(v string) { + o.OauthClientId = v +} + +// GetOauthClientSecret returns the OauthClientSecret field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.OauthClientSecret +} + +// GetOauthClientSecretOk returns a tuple with the OauthClientSecret field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OauthClientSecret, true +} + +// SetOauthClientSecret sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetOauthClientSecret(v string) { + o.OauthClientSecret = v +} + +// GetRoleAttributePath returns the RoleAttributePath field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributePath() string { + if o == nil { + var ret string + return ret + } + + return o.RoleAttributePath +} + +// GetRoleAttributePathOk returns a tuple with the RoleAttributePath field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleAttributePath, true +} + +// SetRoleAttributePath sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetRoleAttributePath(v string) { + o.RoleAttributePath = v +} + +// GetRoleAttributeStrict returns the RoleAttributeStrict field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributeStrict() bool { + if o == nil || IsNil(o.RoleAttributeStrict) { + var ret bool + return ret + } + return *o.RoleAttributeStrict +} + +// GetRoleAttributeStrictOk returns a tuple with the RoleAttributeStrict field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributeStrictOk() (*bool, bool) { + if o == nil || IsNil(o.RoleAttributeStrict) { + return nil, false + } + return o.RoleAttributeStrict, true +} + +// HasRoleAttributeStrict returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasRoleAttributeStrict() bool { + if o != nil && !IsNil(o.RoleAttributeStrict) { + return true + } + + return false +} + +// SetRoleAttributeStrict gets a reference to the given bool and assigns it to the RoleAttributeStrict field. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetRoleAttributeStrict(v bool) { + o.RoleAttributeStrict = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetScopes() string { + if o == nil || IsNil(o.Scopes) { + var ret string + return ret + } + return *o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetScopesOk() (*string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given string and assigns it to the Scopes field. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetScopes(v string) { + o.Scopes = &v +} + +// GetTokenUrl returns the TokenUrl field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenUrl, true +} + +// SetTokenUrl sets field value +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetTokenUrl(v string) { + o.TokenUrl = v +} + +// GetUsePkce returns the UsePkce field value if set, zero value otherwise. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetUsePkce() bool { + if o == nil || IsNil(o.UsePkce) { + var ret bool + return ret + } + return *o.UsePkce +} + +// GetUsePkceOk returns a tuple with the UsePkce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetUsePkceOk() (*bool, bool) { + if o == nil || IsNil(o.UsePkce) { + return nil, false + } + return o.UsePkce, true +} + +// HasUsePkce returns a boolean if a field has been set. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasUsePkce() bool { + if o != nil && !IsNil(o.UsePkce) { + return true + } + + return false +} + +// SetUsePkce gets a reference to the given bool and assigns it to the UsePkce field. +func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetUsePkce(v bool) { + o.UsePkce = &v +} + +func (o UpdateGrafanaConfigsPayloadGenericOauth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateGrafanaConfigsPayloadGenericOauth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowAssignGrafanaAdmin) { + toSerialize["allowAssignGrafanaAdmin"] = o.AllowAssignGrafanaAdmin + } + toSerialize["apiUrl"] = o.ApiUrl + toSerialize["authUrl"] = o.AuthUrl + toSerialize["enabled"] = o.Enabled + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["oauthClientId"] = o.OauthClientId + toSerialize["oauthClientSecret"] = o.OauthClientSecret + toSerialize["roleAttributePath"] = o.RoleAttributePath + if !IsNil(o.RoleAttributeStrict) { + toSerialize["roleAttributeStrict"] = o.RoleAttributeStrict + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + toSerialize["tokenUrl"] = o.TokenUrl + if !IsNil(o.UsePkce) { + toSerialize["usePkce"] = o.UsePkce + } + return toSerialize, nil +} + +func (o *UpdateGrafanaConfigsPayloadGenericOauth) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "apiUrl", + "authUrl", + "enabled", + "oauthClientId", + "oauthClientSecret", + "roleAttributePath", + "tokenUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateGrafanaConfigsPayloadGenericOauth := _UpdateGrafanaConfigsPayloadGenericOauth{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateGrafanaConfigsPayloadGenericOauth) + + if err != nil { + return err + } + + *o = UpdateGrafanaConfigsPayloadGenericOauth(varUpdateGrafanaConfigsPayloadGenericOauth) + + return err +} + +type NullableUpdateGrafanaConfigsPayloadGenericOauth struct { + value *UpdateGrafanaConfigsPayloadGenericOauth + isSet bool +} + +func (v NullableUpdateGrafanaConfigsPayloadGenericOauth) Get() *UpdateGrafanaConfigsPayloadGenericOauth { + return v.value +} + +func (v *NullableUpdateGrafanaConfigsPayloadGenericOauth) Set(val *UpdateGrafanaConfigsPayloadGenericOauth) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateGrafanaConfigsPayloadGenericOauth) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateGrafanaConfigsPayloadGenericOauth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateGrafanaConfigsPayloadGenericOauth(val *UpdateGrafanaConfigsPayloadGenericOauth) *NullableUpdateGrafanaConfigsPayloadGenericOauth { + return &NullableUpdateGrafanaConfigsPayloadGenericOauth{value: val, isSet: true} +} + +func (v NullableUpdateGrafanaConfigsPayloadGenericOauth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateGrafanaConfigsPayloadGenericOauth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_instance_payload.go b/services/observability/v1api/model_update_instance_payload.go new file mode 100644 index 000000000..7675eccd8 --- /dev/null +++ b/services/observability/v1api/model_update_instance_payload.go @@ -0,0 +1,241 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateInstancePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateInstancePayload{} + +// UpdateInstancePayload Create update instance body. +type UpdateInstancePayload struct { + // When set to false, the Grafana server admin created during provisioning will be deleted. It's recommended to set this to false and use STACKIT SSO (`Owner` or `Observability Grafana Server Admin` role) instead. It is still possible to manually create a new Grafana admin user via the Grafana UI later. Once set to false, it is not possible to set it to true again. + GrafanaAdminEnabled *bool `json:"grafanaAdminEnabled,omitempty"` + // Name of the service + Name *string `json:"name,omitempty"` + // Additional parameters + Parameter map[string]interface{} `json:"parameter,omitempty"` + // UUID of the plan to update + PlanId *string `json:"planId,omitempty"` +} + +// NewUpdateInstancePayload instantiates a new UpdateInstancePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateInstancePayload() *UpdateInstancePayload { + this := UpdateInstancePayload{} + var grafanaAdminEnabled bool = true + this.GrafanaAdminEnabled = &grafanaAdminEnabled + return &this +} + +// NewUpdateInstancePayloadWithDefaults instantiates a new UpdateInstancePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { + this := UpdateInstancePayload{} + var grafanaAdminEnabled bool = true + this.GrafanaAdminEnabled = &grafanaAdminEnabled + return &this +} + +// GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value if set, zero value otherwise. +func (o *UpdateInstancePayload) GetGrafanaAdminEnabled() bool { + if o == nil || IsNil(o.GrafanaAdminEnabled) { + var ret bool + return ret + } + return *o.GrafanaAdminEnabled +} + +// GetGrafanaAdminEnabledOk returns a tuple with the GrafanaAdminEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePayload) GetGrafanaAdminEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.GrafanaAdminEnabled) { + return nil, false + } + return o.GrafanaAdminEnabled, true +} + +// HasGrafanaAdminEnabled returns a boolean if a field has been set. +func (o *UpdateInstancePayload) HasGrafanaAdminEnabled() bool { + if o != nil && !IsNil(o.GrafanaAdminEnabled) { + return true + } + + return false +} + +// SetGrafanaAdminEnabled gets a reference to the given bool and assigns it to the GrafanaAdminEnabled field. +func (o *UpdateInstancePayload) SetGrafanaAdminEnabled(v bool) { + o.GrafanaAdminEnabled = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateInstancePayload) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePayload) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UpdateInstancePayload) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UpdateInstancePayload) SetName(v string) { + o.Name = &v +} + +// GetParameter returns the Parameter field value if set, zero value otherwise. +func (o *UpdateInstancePayload) GetParameter() map[string]interface{} { + if o == nil || IsNil(o.Parameter) { + var ret map[string]interface{} + return ret + } + return o.Parameter +} + +// GetParameterOk returns a tuple with the Parameter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePayload) GetParameterOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Parameter) { + return map[string]interface{}{}, false + } + return o.Parameter, true +} + +// HasParameter returns a boolean if a field has been set. +func (o *UpdateInstancePayload) HasParameter() bool { + if o != nil && !IsNil(o.Parameter) { + return true + } + + return false +} + +// SetParameter gets a reference to the given map[string]interface{} and assigns it to the Parameter field. +func (o *UpdateInstancePayload) SetParameter(v map[string]interface{}) { + o.Parameter = v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *UpdateInstancePayload) GetPlanId() string { + if o == nil || IsNil(o.PlanId) { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePayload) GetPlanIdOk() (*string, bool) { + if o == nil || IsNil(o.PlanId) { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *UpdateInstancePayload) HasPlanId() bool { + if o != nil && !IsNil(o.PlanId) { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *UpdateInstancePayload) SetPlanId(v string) { + o.PlanId = &v +} + +func (o UpdateInstancePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateInstancePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GrafanaAdminEnabled) { + toSerialize["grafanaAdminEnabled"] = o.GrafanaAdminEnabled + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parameter) { + toSerialize["parameter"] = o.Parameter + } + if !IsNil(o.PlanId) { + toSerialize["planId"] = o.PlanId + } + return toSerialize, nil +} + +type NullableUpdateInstancePayload struct { + value *UpdateInstancePayload + isSet bool +} + +func (v NullableUpdateInstancePayload) Get() *UpdateInstancePayload { + return v.value +} + +func (v *NullableUpdateInstancePayload) Set(val *UpdateInstancePayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateInstancePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateInstancePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateInstancePayload(val *UpdateInstancePayload) *NullableUpdateInstancePayload { + return &NullableUpdateInstancePayload{value: val, isSet: true} +} + +func (v NullableUpdateInstancePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateInstancePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_logs_alertgroup_payload.go b/services/observability/v1api/model_update_logs_alertgroup_payload.go new file mode 100644 index 000000000..127ebf86e --- /dev/null +++ b/services/observability/v1api/model_update_logs_alertgroup_payload.go @@ -0,0 +1,199 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateLogsAlertgroupPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateLogsAlertgroupPayload{} + +// UpdateLogsAlertgroupPayload 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. +type UpdateLogsAlertgroupPayload struct { + // How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s + Interval *string `json:"interval,omitempty"` + // rules for the alert group + Rules []UpdateLogsAlertgroupPayloadRulesInner `json:"rules"` +} + +type _UpdateLogsAlertgroupPayload UpdateLogsAlertgroupPayload + +// NewUpdateLogsAlertgroupPayload instantiates a new UpdateLogsAlertgroupPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateLogsAlertgroupPayload(rules []UpdateLogsAlertgroupPayloadRulesInner) *UpdateLogsAlertgroupPayload { + this := UpdateLogsAlertgroupPayload{} + var interval string = "60s" + this.Interval = &interval + this.Rules = rules + return &this +} + +// NewUpdateLogsAlertgroupPayloadWithDefaults instantiates a new UpdateLogsAlertgroupPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateLogsAlertgroupPayloadWithDefaults() *UpdateLogsAlertgroupPayload { + this := UpdateLogsAlertgroupPayload{} + var interval string = "60s" + this.Interval = &interval + return &this +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *UpdateLogsAlertgroupPayload) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayload) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *UpdateLogsAlertgroupPayload) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *UpdateLogsAlertgroupPayload) SetInterval(v string) { + o.Interval = &v +} + +// GetRules returns the Rules field value +func (o *UpdateLogsAlertgroupPayload) GetRules() []UpdateLogsAlertgroupPayloadRulesInner { + if o == nil { + var ret []UpdateLogsAlertgroupPayloadRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayload) GetRulesOk() ([]UpdateLogsAlertgroupPayloadRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *UpdateLogsAlertgroupPayload) SetRules(v []UpdateLogsAlertgroupPayloadRulesInner) { + o.Rules = v +} + +func (o UpdateLogsAlertgroupPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateLogsAlertgroupPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + toSerialize["rules"] = o.Rules + return toSerialize, nil +} + +func (o *UpdateLogsAlertgroupPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "rules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateLogsAlertgroupPayload := _UpdateLogsAlertgroupPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateLogsAlertgroupPayload) + + if err != nil { + return err + } + + *o = UpdateLogsAlertgroupPayload(varUpdateLogsAlertgroupPayload) + + return err +} + +type NullableUpdateLogsAlertgroupPayload struct { + value *UpdateLogsAlertgroupPayload + isSet bool +} + +func (v NullableUpdateLogsAlertgroupPayload) Get() *UpdateLogsAlertgroupPayload { + return v.value +} + +func (v *NullableUpdateLogsAlertgroupPayload) Set(val *UpdateLogsAlertgroupPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateLogsAlertgroupPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateLogsAlertgroupPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateLogsAlertgroupPayload(val *UpdateLogsAlertgroupPayload) *NullableUpdateLogsAlertgroupPayload { + return &NullableUpdateLogsAlertgroupPayload{value: val, isSet: true} +} + +func (v NullableUpdateLogsAlertgroupPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateLogsAlertgroupPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_logs_alertgroup_payload_rules_inner.go b/services/observability/v1api/model_update_logs_alertgroup_payload_rules_inner.go new file mode 100644 index 000000000..5fc2e99f9 --- /dev/null +++ b/services/observability/v1api/model_update_logs_alertgroup_payload_rules_inner.go @@ -0,0 +1,347 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateLogsAlertgroupPayloadRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateLogsAlertgroupPayloadRulesInner{} + +// UpdateLogsAlertgroupPayloadRulesInner Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. +type UpdateLogsAlertgroupPayloadRulesInner struct { + // The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed + Alert *string `json:"alert,omitempty"` + // Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule + Annotations map[string]interface{} `json:"annotations,omitempty"` + // The LogQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute. + Expr string `json:"expr"` + // Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule + For *string `json:"for,omitempty"` + // Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed + Record *string `json:"record,omitempty"` +} + +type _UpdateLogsAlertgroupPayloadRulesInner UpdateLogsAlertgroupPayloadRulesInner + +// NewUpdateLogsAlertgroupPayloadRulesInner instantiates a new UpdateLogsAlertgroupPayloadRulesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateLogsAlertgroupPayloadRulesInner(expr string) *UpdateLogsAlertgroupPayloadRulesInner { + this := UpdateLogsAlertgroupPayloadRulesInner{} + this.Expr = expr + var for_ string = "0s" + this.For = &for_ + return &this +} + +// NewUpdateLogsAlertgroupPayloadRulesInnerWithDefaults instantiates a new UpdateLogsAlertgroupPayloadRulesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateLogsAlertgroupPayloadRulesInnerWithDefaults() *UpdateLogsAlertgroupPayloadRulesInner { + this := UpdateLogsAlertgroupPayloadRulesInner{} + var for_ string = "0s" + this.For = &for_ + return &this +} + +// GetAlert returns the Alert field value if set, zero value otherwise. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetAlert() string { + if o == nil || IsNil(o.Alert) { + var ret string + return ret + } + return *o.Alert +} + +// GetAlertOk returns a tuple with the Alert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetAlertOk() (*string, bool) { + if o == nil || IsNil(o.Alert) { + return nil, false + } + return o.Alert, true +} + +// HasAlert returns a boolean if a field has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) HasAlert() bool { + if o != nil && !IsNil(o.Alert) { + return true + } + + return false +} + +// SetAlert gets a reference to the given string and assigns it to the Alert field. +func (o *UpdateLogsAlertgroupPayloadRulesInner) SetAlert(v string) { + o.Alert = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *UpdateLogsAlertgroupPayloadRulesInner) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetExpr returns the Expr field value +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetExpr() string { + if o == nil { + var ret string + return ret + } + + return o.Expr +} + +// GetExprOk returns a tuple with the Expr field value +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetExprOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expr, true +} + +// SetExpr sets field value +func (o *UpdateLogsAlertgroupPayloadRulesInner) SetExpr(v string) { + o.Expr = v +} + +// GetFor returns the For field value if set, zero value otherwise. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetFor() string { + if o == nil || IsNil(o.For) { + var ret string + return ret + } + return *o.For +} + +// GetForOk returns a tuple with the For field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetForOk() (*string, bool) { + if o == nil || IsNil(o.For) { + return nil, false + } + return o.For, true +} + +// HasFor returns a boolean if a field has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) HasFor() bool { + if o != nil && !IsNil(o.For) { + return true + } + + return false +} + +// SetFor gets a reference to the given string and assigns it to the For field. +func (o *UpdateLogsAlertgroupPayloadRulesInner) SetFor(v string) { + o.For = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *UpdateLogsAlertgroupPayloadRulesInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetRecord returns the Record field value if set, zero value otherwise. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetRecord() string { + if o == nil || IsNil(o.Record) { + var ret string + return ret + } + return *o.Record +} + +// GetRecordOk returns a tuple with the Record field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) GetRecordOk() (*string, bool) { + if o == nil || IsNil(o.Record) { + return nil, false + } + return o.Record, true +} + +// HasRecord returns a boolean if a field has been set. +func (o *UpdateLogsAlertgroupPayloadRulesInner) HasRecord() bool { + if o != nil && !IsNil(o.Record) { + return true + } + + return false +} + +// SetRecord gets a reference to the given string and assigns it to the Record field. +func (o *UpdateLogsAlertgroupPayloadRulesInner) SetRecord(v string) { + o.Record = &v +} + +func (o UpdateLogsAlertgroupPayloadRulesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateLogsAlertgroupPayloadRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alert) { + toSerialize["alert"] = o.Alert + } + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + toSerialize["expr"] = o.Expr + if !IsNil(o.For) { + toSerialize["for"] = o.For + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Record) { + toSerialize["record"] = o.Record + } + return toSerialize, nil +} + +func (o *UpdateLogsAlertgroupPayloadRulesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expr", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateLogsAlertgroupPayloadRulesInner := _UpdateLogsAlertgroupPayloadRulesInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateLogsAlertgroupPayloadRulesInner) + + if err != nil { + return err + } + + *o = UpdateLogsAlertgroupPayloadRulesInner(varUpdateLogsAlertgroupPayloadRulesInner) + + return err +} + +type NullableUpdateLogsAlertgroupPayloadRulesInner struct { + value *UpdateLogsAlertgroupPayloadRulesInner + isSet bool +} + +func (v NullableUpdateLogsAlertgroupPayloadRulesInner) Get() *UpdateLogsAlertgroupPayloadRulesInner { + return v.value +} + +func (v *NullableUpdateLogsAlertgroupPayloadRulesInner) Set(val *UpdateLogsAlertgroupPayloadRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateLogsAlertgroupPayloadRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateLogsAlertgroupPayloadRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateLogsAlertgroupPayloadRulesInner(val *UpdateLogsAlertgroupPayloadRulesInner) *NullableUpdateLogsAlertgroupPayloadRulesInner { + return &NullableUpdateLogsAlertgroupPayloadRulesInner{value: val, isSet: true} +} + +func (v NullableUpdateLogsAlertgroupPayloadRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateLogsAlertgroupPayloadRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_logs_configs_payload.go b/services/observability/v1api/model_update_logs_configs_payload.go new file mode 100644 index 000000000..be322bc0d --- /dev/null +++ b/services/observability/v1api/model_update_logs_configs_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateLogsConfigsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateLogsConfigsPayload{} + +// UpdateLogsConfigsPayload struct for UpdateLogsConfigsPayload +type UpdateLogsConfigsPayload struct { + // How long to keep the logs `Additional Validators:` * Should be a valid time string * Should not be longer than 30 days + Retention string `json:"retention"` +} + +type _UpdateLogsConfigsPayload UpdateLogsConfigsPayload + +// NewUpdateLogsConfigsPayload instantiates a new UpdateLogsConfigsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateLogsConfigsPayload(retention string) *UpdateLogsConfigsPayload { + this := UpdateLogsConfigsPayload{} + this.Retention = retention + return &this +} + +// NewUpdateLogsConfigsPayloadWithDefaults instantiates a new UpdateLogsConfigsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateLogsConfigsPayloadWithDefaults() *UpdateLogsConfigsPayload { + this := UpdateLogsConfigsPayload{} + return &this +} + +// GetRetention returns the Retention field value +func (o *UpdateLogsConfigsPayload) GetRetention() string { + if o == nil { + var ret string + return ret + } + + return o.Retention +} + +// GetRetentionOk returns a tuple with the Retention field value +// and a boolean to check if the value has been set. +func (o *UpdateLogsConfigsPayload) GetRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Retention, true +} + +// SetRetention sets field value +func (o *UpdateLogsConfigsPayload) SetRetention(v string) { + o.Retention = v +} + +func (o UpdateLogsConfigsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateLogsConfigsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["retention"] = o.Retention + return toSerialize, nil +} + +func (o *UpdateLogsConfigsPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "retention", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateLogsConfigsPayload := _UpdateLogsConfigsPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateLogsConfigsPayload) + + if err != nil { + return err + } + + *o = UpdateLogsConfigsPayload(varUpdateLogsConfigsPayload) + + return err +} + +type NullableUpdateLogsConfigsPayload struct { + value *UpdateLogsConfigsPayload + isSet bool +} + +func (v NullableUpdateLogsConfigsPayload) Get() *UpdateLogsConfigsPayload { + return v.value +} + +func (v *NullableUpdateLogsConfigsPayload) Set(val *UpdateLogsConfigsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateLogsConfigsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateLogsConfigsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateLogsConfigsPayload(val *UpdateLogsConfigsPayload) *NullableUpdateLogsConfigsPayload { + return &NullableUpdateLogsConfigsPayload{value: val, isSet: true} +} + +func (v NullableUpdateLogsConfigsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateLogsConfigsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_metrics_storage_retention_payload.go b/services/observability/v1api/model_update_metrics_storage_retention_payload.go new file mode 100644 index 000000000..6b7debeea --- /dev/null +++ b/services/observability/v1api/model_update_metrics_storage_retention_payload.go @@ -0,0 +1,216 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateMetricsStorageRetentionPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateMetricsStorageRetentionPayload{} + +// UpdateMetricsStorageRetentionPayload struct for UpdateMetricsStorageRetentionPayload +type UpdateMetricsStorageRetentionPayload struct { + // Retention time of longtime storage of 1h sampled data. After that time the 1h sampled data will be deleted permanently. The goal of downsampling is to get fast results for queries over long time intervals. It is recommended to set this value to be the same as metricsRetentionTimeRaw to ensure zoom-in capabilities in your dashboards. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '10d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '10d' to '780d'. + MetricsRetentionTime1h string `json:"metricsRetentionTime1h"` + // Retention time of longtime storage of 5m sampled data. After that time the 5m sampled data will be deleted permanently. All 5m resolution metrics older than 10 days are downsampled at a 1h resolution. The goal of downsampling is to get fast results for queries over long time intervals. It is recommended to set this value to be the same as metricsRetentionTimeRaw to ensure zoom-in capabilities in your dashboards. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '10d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '10d' to '780d'. + MetricsRetentionTime5m string `json:"metricsRetentionTime5m"` + // Retention time of longtime storage of raw data. After that time the raw data will be deleted permanently. All raw resolution metrics that are older than 40 hours are downsampled at a 5m resolution. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '2d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '2d' to '780d'. + MetricsRetentionTimeRaw string `json:"metricsRetentionTimeRaw"` +} + +type _UpdateMetricsStorageRetentionPayload UpdateMetricsStorageRetentionPayload + +// NewUpdateMetricsStorageRetentionPayload instantiates a new UpdateMetricsStorageRetentionPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateMetricsStorageRetentionPayload(metricsRetentionTime1h string, metricsRetentionTime5m string, metricsRetentionTimeRaw string) *UpdateMetricsStorageRetentionPayload { + this := UpdateMetricsStorageRetentionPayload{} + this.MetricsRetentionTime1h = metricsRetentionTime1h + this.MetricsRetentionTime5m = metricsRetentionTime5m + this.MetricsRetentionTimeRaw = metricsRetentionTimeRaw + return &this +} + +// NewUpdateMetricsStorageRetentionPayloadWithDefaults instantiates a new UpdateMetricsStorageRetentionPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateMetricsStorageRetentionPayloadWithDefaults() *UpdateMetricsStorageRetentionPayload { + this := UpdateMetricsStorageRetentionPayload{} + return &this +} + +// GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value +func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime1h() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsRetentionTime1h +} + +// GetMetricsRetentionTime1hOk returns a tuple with the MetricsRetentionTime1h field value +// and a boolean to check if the value has been set. +func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime1hOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime1h, true +} + +// SetMetricsRetentionTime1h sets field value +func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTime1h(v string) { + o.MetricsRetentionTime1h = v +} + +// GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value +func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime5m() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsRetentionTime5m +} + +// GetMetricsRetentionTime5mOk returns a tuple with the MetricsRetentionTime5m field value +// and a boolean to check if the value has been set. +func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime5mOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTime5m, true +} + +// SetMetricsRetentionTime5m sets field value +func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTime5m(v string) { + o.MetricsRetentionTime5m = v +} + +// GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value +func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTimeRaw() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsRetentionTimeRaw +} + +// GetMetricsRetentionTimeRawOk returns a tuple with the MetricsRetentionTimeRaw field value +// and a boolean to check if the value has been set. +func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTimeRawOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsRetentionTimeRaw, true +} + +// SetMetricsRetentionTimeRaw sets field value +func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTimeRaw(v string) { + o.MetricsRetentionTimeRaw = v +} + +func (o UpdateMetricsStorageRetentionPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateMetricsStorageRetentionPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["metricsRetentionTime1h"] = o.MetricsRetentionTime1h + toSerialize["metricsRetentionTime5m"] = o.MetricsRetentionTime5m + toSerialize["metricsRetentionTimeRaw"] = o.MetricsRetentionTimeRaw + return toSerialize, nil +} + +func (o *UpdateMetricsStorageRetentionPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "metricsRetentionTime1h", + "metricsRetentionTime5m", + "metricsRetentionTimeRaw", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateMetricsStorageRetentionPayload := _UpdateMetricsStorageRetentionPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateMetricsStorageRetentionPayload) + + if err != nil { + return err + } + + *o = UpdateMetricsStorageRetentionPayload(varUpdateMetricsStorageRetentionPayload) + + return err +} + +type NullableUpdateMetricsStorageRetentionPayload struct { + value *UpdateMetricsStorageRetentionPayload + isSet bool +} + +func (v NullableUpdateMetricsStorageRetentionPayload) Get() *UpdateMetricsStorageRetentionPayload { + return v.value +} + +func (v *NullableUpdateMetricsStorageRetentionPayload) Set(val *UpdateMetricsStorageRetentionPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateMetricsStorageRetentionPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateMetricsStorageRetentionPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateMetricsStorageRetentionPayload(val *UpdateMetricsStorageRetentionPayload) *NullableUpdateMetricsStorageRetentionPayload { + return &NullableUpdateMetricsStorageRetentionPayload{value: val, isSet: true} +} + +func (v NullableUpdateMetricsStorageRetentionPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateMetricsStorageRetentionPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_scrape_config_payload.go b/services/observability/v1api/model_update_scrape_config_payload.go new file mode 100644 index 000000000..4595654d4 --- /dev/null +++ b/services/observability/v1api/model_update_scrape_config_payload.go @@ -0,0 +1,578 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateScrapeConfigPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScrapeConfigPayload{} + +// UpdateScrapeConfigPayload struct for UpdateScrapeConfigPayload +type UpdateScrapeConfigPayload struct { + BasicAuth *UpdateScrapeConfigPayloadBasicAuth `json:"basicAuth,omitempty"` + // Sets the 'Authorization' header on every scrape request with the configured bearer token. It is mutually exclusive with 'bearer_token_file'. `Additional Validators:` * needs to be a valid bearer token * if bearerToken is in the body no other authentication method should be in the body + BearerToken *string `json:"bearerToken,omitempty"` + // Note that any globally configured 'external_labels' are unaffected by this setting. In communication with external systems, they are always applied only when a time series does not have a given label yet and are ignored otherwise. + HonorLabels *bool `json:"honorLabels,omitempty"` + // honor_timestamps controls whether Prometheus respects the timestamps present in scraped data. If honor_timestamps is set to 'true', the timestamps of the metrics exposed by the target will be used. + HonorTimeStamps *bool `json:"honorTimeStamps,omitempty"` + // The HTTP resource path on which to fetch metrics from targets. E.g. /metrics + MetricsPath string `json:"metricsPath"` + // List of metric relabel configurations + MetricsRelabelConfigs []UpdateScrapeConfigPayloadMetricsRelabelConfigsInner `json:"metricsRelabelConfigs,omitempty"` + // Optional http params `Additional Validators:` * should not contain more than 5 keys * each key and value should not have more than 200 characters + Params map[string]interface{} `json:"params,omitempty"` + // Per-scrape limit on number of scraped samples that will be accepted. If more than this number of samples are present after metric relabeling the entire scrape will be treated as failed. The total limit depends on the service plan target limits * samples + SampleLimit *float32 `json:"sampleLimit,omitempty"` + // Configures the protocol scheme used for requests. https or http + Scheme string `json:"scheme"` + // How frequently to scrape targets from this job. E.g. 5m `Additional Validators:` * must be a valid time format* must be >= 60s + ScrapeInterval string `json:"scrapeInterval"` + // Per-scrape timeout when scraping this job. `Additional Validators:` * must be a valid time format* must be smaller than scrapeInterval + ScrapeTimeout string `json:"scrapeTimeout"` + // A list of scrape configurations. + StaticConfigs []UpdateScrapeConfigPayloadStaticConfigsInner `json:"staticConfigs"` + TlsConfig *UpdateScrapeConfigPayloadTlsConfig `json:"tlsConfig,omitempty"` +} + +type _UpdateScrapeConfigPayload UpdateScrapeConfigPayload + +// NewUpdateScrapeConfigPayload instantiates a new UpdateScrapeConfigPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScrapeConfigPayload(metricsPath string, scheme string, scrapeInterval string, scrapeTimeout string, staticConfigs []UpdateScrapeConfigPayloadStaticConfigsInner) *UpdateScrapeConfigPayload { + this := UpdateScrapeConfigPayload{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + this.MetricsPath = metricsPath + this.Scheme = scheme + this.ScrapeInterval = scrapeInterval + this.ScrapeTimeout = scrapeTimeout + this.StaticConfigs = staticConfigs + return &this +} + +// NewUpdateScrapeConfigPayloadWithDefaults instantiates a new UpdateScrapeConfigPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScrapeConfigPayloadWithDefaults() *UpdateScrapeConfigPayload { + this := UpdateScrapeConfigPayload{} + var honorLabels bool = false + this.HonorLabels = &honorLabels + var honorTimeStamps bool = false + this.HonorTimeStamps = &honorTimeStamps + var metricsPath string = "/metrics" + this.MetricsPath = metricsPath + return &this +} + +// GetBasicAuth returns the BasicAuth field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetBasicAuth() UpdateScrapeConfigPayloadBasicAuth { + if o == nil || IsNil(o.BasicAuth) { + var ret UpdateScrapeConfigPayloadBasicAuth + return ret + } + return *o.BasicAuth +} + +// GetBasicAuthOk returns a tuple with the BasicAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetBasicAuthOk() (*UpdateScrapeConfigPayloadBasicAuth, bool) { + if o == nil || IsNil(o.BasicAuth) { + return nil, false + } + return o.BasicAuth, true +} + +// HasBasicAuth returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasBasicAuth() bool { + if o != nil && !IsNil(o.BasicAuth) { + return true + } + + return false +} + +// SetBasicAuth gets a reference to the given UpdateScrapeConfigPayloadBasicAuth and assigns it to the BasicAuth field. +func (o *UpdateScrapeConfigPayload) SetBasicAuth(v UpdateScrapeConfigPayloadBasicAuth) { + o.BasicAuth = &v +} + +// GetBearerToken returns the BearerToken field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetBearerToken() string { + if o == nil || IsNil(o.BearerToken) { + var ret string + return ret + } + return *o.BearerToken +} + +// GetBearerTokenOk returns a tuple with the BearerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetBearerTokenOk() (*string, bool) { + if o == nil || IsNil(o.BearerToken) { + return nil, false + } + return o.BearerToken, true +} + +// HasBearerToken returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasBearerToken() bool { + if o != nil && !IsNil(o.BearerToken) { + return true + } + + return false +} + +// SetBearerToken gets a reference to the given string and assigns it to the BearerToken field. +func (o *UpdateScrapeConfigPayload) SetBearerToken(v string) { + o.BearerToken = &v +} + +// GetHonorLabels returns the HonorLabels field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetHonorLabels() bool { + if o == nil || IsNil(o.HonorLabels) { + var ret bool + return ret + } + return *o.HonorLabels +} + +// GetHonorLabelsOk returns a tuple with the HonorLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetHonorLabelsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorLabels) { + return nil, false + } + return o.HonorLabels, true +} + +// HasHonorLabels returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasHonorLabels() bool { + if o != nil && !IsNil(o.HonorLabels) { + return true + } + + return false +} + +// SetHonorLabels gets a reference to the given bool and assigns it to the HonorLabels field. +func (o *UpdateScrapeConfigPayload) SetHonorLabels(v bool) { + o.HonorLabels = &v +} + +// GetHonorTimeStamps returns the HonorTimeStamps field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetHonorTimeStamps() bool { + if o == nil || IsNil(o.HonorTimeStamps) { + var ret bool + return ret + } + return *o.HonorTimeStamps +} + +// GetHonorTimeStampsOk returns a tuple with the HonorTimeStamps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetHonorTimeStampsOk() (*bool, bool) { + if o == nil || IsNil(o.HonorTimeStamps) { + return nil, false + } + return o.HonorTimeStamps, true +} + +// HasHonorTimeStamps returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasHonorTimeStamps() bool { + if o != nil && !IsNil(o.HonorTimeStamps) { + return true + } + + return false +} + +// SetHonorTimeStamps gets a reference to the given bool and assigns it to the HonorTimeStamps field. +func (o *UpdateScrapeConfigPayload) SetHonorTimeStamps(v bool) { + o.HonorTimeStamps = &v +} + +// GetMetricsPath returns the MetricsPath field value +func (o *UpdateScrapeConfigPayload) GetMetricsPath() string { + if o == nil { + var ret string + return ret + } + + return o.MetricsPath +} + +// GetMetricsPathOk returns a tuple with the MetricsPath field value +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetMetricsPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricsPath, true +} + +// SetMetricsPath sets field value +func (o *UpdateScrapeConfigPayload) SetMetricsPath(v string) { + o.MetricsPath = v +} + +// GetMetricsRelabelConfigs returns the MetricsRelabelConfigs field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetMetricsRelabelConfigs() []UpdateScrapeConfigPayloadMetricsRelabelConfigsInner { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + var ret []UpdateScrapeConfigPayloadMetricsRelabelConfigsInner + return ret + } + return o.MetricsRelabelConfigs +} + +// GetMetricsRelabelConfigsOk returns a tuple with the MetricsRelabelConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetMetricsRelabelConfigsOk() ([]UpdateScrapeConfigPayloadMetricsRelabelConfigsInner, bool) { + if o == nil || IsNil(o.MetricsRelabelConfigs) { + return nil, false + } + return o.MetricsRelabelConfigs, true +} + +// HasMetricsRelabelConfigs returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasMetricsRelabelConfigs() bool { + if o != nil && !IsNil(o.MetricsRelabelConfigs) { + return true + } + + return false +} + +// SetMetricsRelabelConfigs gets a reference to the given []UpdateScrapeConfigPayloadMetricsRelabelConfigsInner and assigns it to the MetricsRelabelConfigs field. +func (o *UpdateScrapeConfigPayload) SetMetricsRelabelConfigs(v []UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) { + o.MetricsRelabelConfigs = v +} + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetParams() map[string]interface{} { + if o == nil || IsNil(o.Params) { + var ret map[string]interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetParamsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Params) { + return map[string]interface{}{}, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasParams() bool { + if o != nil && !IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given map[string]interface{} and assigns it to the Params field. +func (o *UpdateScrapeConfigPayload) SetParams(v map[string]interface{}) { + o.Params = v +} + +// GetSampleLimit returns the SampleLimit field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetSampleLimit() float32 { + if o == nil || IsNil(o.SampleLimit) { + var ret float32 + return ret + } + return *o.SampleLimit +} + +// GetSampleLimitOk returns a tuple with the SampleLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetSampleLimitOk() (*float32, bool) { + if o == nil || IsNil(o.SampleLimit) { + return nil, false + } + return o.SampleLimit, true +} + +// HasSampleLimit returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasSampleLimit() bool { + if o != nil && !IsNil(o.SampleLimit) { + return true + } + + return false +} + +// SetSampleLimit gets a reference to the given float32 and assigns it to the SampleLimit field. +func (o *UpdateScrapeConfigPayload) SetSampleLimit(v float32) { + o.SampleLimit = &v +} + +// GetScheme returns the Scheme field value +func (o *UpdateScrapeConfigPayload) GetScheme() string { + if o == nil { + var ret string + return ret + } + + return o.Scheme +} + +// GetSchemeOk returns a tuple with the Scheme field value +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Scheme, true +} + +// SetScheme sets field value +func (o *UpdateScrapeConfigPayload) SetScheme(v string) { + o.Scheme = v +} + +// GetScrapeInterval returns the ScrapeInterval field value +func (o *UpdateScrapeConfigPayload) GetScrapeInterval() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeInterval +} + +// GetScrapeIntervalOk returns a tuple with the ScrapeInterval field value +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetScrapeIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeInterval, true +} + +// SetScrapeInterval sets field value +func (o *UpdateScrapeConfigPayload) SetScrapeInterval(v string) { + o.ScrapeInterval = v +} + +// GetScrapeTimeout returns the ScrapeTimeout field value +func (o *UpdateScrapeConfigPayload) GetScrapeTimeout() string { + if o == nil { + var ret string + return ret + } + + return o.ScrapeTimeout +} + +// GetScrapeTimeoutOk returns a tuple with the ScrapeTimeout field value +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetScrapeTimeoutOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScrapeTimeout, true +} + +// SetScrapeTimeout sets field value +func (o *UpdateScrapeConfigPayload) SetScrapeTimeout(v string) { + o.ScrapeTimeout = v +} + +// GetStaticConfigs returns the StaticConfigs field value +func (o *UpdateScrapeConfigPayload) GetStaticConfigs() []UpdateScrapeConfigPayloadStaticConfigsInner { + if o == nil { + var ret []UpdateScrapeConfigPayloadStaticConfigsInner + return ret + } + + return o.StaticConfigs +} + +// GetStaticConfigsOk returns a tuple with the StaticConfigs field value +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetStaticConfigsOk() ([]UpdateScrapeConfigPayloadStaticConfigsInner, bool) { + if o == nil { + return nil, false + } + return o.StaticConfigs, true +} + +// SetStaticConfigs sets field value +func (o *UpdateScrapeConfigPayload) SetStaticConfigs(v []UpdateScrapeConfigPayloadStaticConfigsInner) { + o.StaticConfigs = v +} + +// GetTlsConfig returns the TlsConfig field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayload) GetTlsConfig() UpdateScrapeConfigPayloadTlsConfig { + if o == nil || IsNil(o.TlsConfig) { + var ret UpdateScrapeConfigPayloadTlsConfig + return ret + } + return *o.TlsConfig +} + +// GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayload) GetTlsConfigOk() (*UpdateScrapeConfigPayloadTlsConfig, bool) { + if o == nil || IsNil(o.TlsConfig) { + return nil, false + } + return o.TlsConfig, true +} + +// HasTlsConfig returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayload) HasTlsConfig() bool { + if o != nil && !IsNil(o.TlsConfig) { + return true + } + + return false +} + +// SetTlsConfig gets a reference to the given UpdateScrapeConfigPayloadTlsConfig and assigns it to the TlsConfig field. +func (o *UpdateScrapeConfigPayload) SetTlsConfig(v UpdateScrapeConfigPayloadTlsConfig) { + o.TlsConfig = &v +} + +func (o UpdateScrapeConfigPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateScrapeConfigPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BasicAuth) { + toSerialize["basicAuth"] = o.BasicAuth + } + if !IsNil(o.BearerToken) { + toSerialize["bearerToken"] = o.BearerToken + } + if !IsNil(o.HonorLabels) { + toSerialize["honorLabels"] = o.HonorLabels + } + if !IsNil(o.HonorTimeStamps) { + toSerialize["honorTimeStamps"] = o.HonorTimeStamps + } + toSerialize["metricsPath"] = o.MetricsPath + if !IsNil(o.MetricsRelabelConfigs) { + toSerialize["metricsRelabelConfigs"] = o.MetricsRelabelConfigs + } + if !IsNil(o.Params) { + toSerialize["params"] = o.Params + } + if !IsNil(o.SampleLimit) { + toSerialize["sampleLimit"] = o.SampleLimit + } + toSerialize["scheme"] = o.Scheme + toSerialize["scrapeInterval"] = o.ScrapeInterval + toSerialize["scrapeTimeout"] = o.ScrapeTimeout + toSerialize["staticConfigs"] = o.StaticConfigs + if !IsNil(o.TlsConfig) { + toSerialize["tlsConfig"] = o.TlsConfig + } + return toSerialize, nil +} + +func (o *UpdateScrapeConfigPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "metricsPath", + "scheme", + "scrapeInterval", + "scrapeTimeout", + "staticConfigs", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateScrapeConfigPayload := _UpdateScrapeConfigPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateScrapeConfigPayload) + + if err != nil { + return err + } + + *o = UpdateScrapeConfigPayload(varUpdateScrapeConfigPayload) + + return err +} + +type NullableUpdateScrapeConfigPayload struct { + value *UpdateScrapeConfigPayload + isSet bool +} + +func (v NullableUpdateScrapeConfigPayload) Get() *UpdateScrapeConfigPayload { + return v.value +} + +func (v *NullableUpdateScrapeConfigPayload) Set(val *UpdateScrapeConfigPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScrapeConfigPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScrapeConfigPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScrapeConfigPayload(val *UpdateScrapeConfigPayload) *NullableUpdateScrapeConfigPayload { + return &NullableUpdateScrapeConfigPayload{value: val, isSet: true} +} + +func (v NullableUpdateScrapeConfigPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScrapeConfigPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_scrape_config_payload_basic_auth.go b/services/observability/v1api/model_update_scrape_config_payload_basic_auth.go new file mode 100644 index 000000000..665780505 --- /dev/null +++ b/services/observability/v1api/model_update_scrape_config_payload_basic_auth.go @@ -0,0 +1,163 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateScrapeConfigPayloadBasicAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScrapeConfigPayloadBasicAuth{} + +// UpdateScrapeConfigPayloadBasicAuth 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 +type UpdateScrapeConfigPayloadBasicAuth struct { + // password + Password *string `json:"password,omitempty"` + // username + Username *string `json:"username,omitempty"` +} + +// NewUpdateScrapeConfigPayloadBasicAuth instantiates a new UpdateScrapeConfigPayloadBasicAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScrapeConfigPayloadBasicAuth() *UpdateScrapeConfigPayloadBasicAuth { + this := UpdateScrapeConfigPayloadBasicAuth{} + return &this +} + +// NewUpdateScrapeConfigPayloadBasicAuthWithDefaults instantiates a new UpdateScrapeConfigPayloadBasicAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScrapeConfigPayloadBasicAuthWithDefaults() *UpdateScrapeConfigPayloadBasicAuth { + this := UpdateScrapeConfigPayloadBasicAuth{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadBasicAuth) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadBasicAuth) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadBasicAuth) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *UpdateScrapeConfigPayloadBasicAuth) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadBasicAuth) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadBasicAuth) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadBasicAuth) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *UpdateScrapeConfigPayloadBasicAuth) SetUsername(v string) { + o.Username = &v +} + +func (o UpdateScrapeConfigPayloadBasicAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateScrapeConfigPayloadBasicAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableUpdateScrapeConfigPayloadBasicAuth struct { + value *UpdateScrapeConfigPayloadBasicAuth + isSet bool +} + +func (v NullableUpdateScrapeConfigPayloadBasicAuth) Get() *UpdateScrapeConfigPayloadBasicAuth { + return v.value +} + +func (v *NullableUpdateScrapeConfigPayloadBasicAuth) Set(val *UpdateScrapeConfigPayloadBasicAuth) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScrapeConfigPayloadBasicAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScrapeConfigPayloadBasicAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScrapeConfigPayloadBasicAuth(val *UpdateScrapeConfigPayloadBasicAuth) *NullableUpdateScrapeConfigPayloadBasicAuth { + return &NullableUpdateScrapeConfigPayloadBasicAuth{value: val, isSet: true} +} + +func (v NullableUpdateScrapeConfigPayloadBasicAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScrapeConfigPayloadBasicAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_scrape_config_payload_metrics_relabel_configs_inner.go b/services/observability/v1api/model_update_scrape_config_payload_metrics_relabel_configs_inner.go new file mode 100644 index 000000000..d46ae23b1 --- /dev/null +++ b/services/observability/v1api/model_update_scrape_config_payload_metrics_relabel_configs_inner.go @@ -0,0 +1,364 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateScrapeConfigPayloadMetricsRelabelConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScrapeConfigPayloadMetricsRelabelConfigsInner{} + +// UpdateScrapeConfigPayloadMetricsRelabelConfigsInner struct for UpdateScrapeConfigPayloadMetricsRelabelConfigsInner +type UpdateScrapeConfigPayloadMetricsRelabelConfigsInner struct { + // Action to perform based on regex matching. `Additional Validators:` * if action is replace, targetLabel needs to be in body + Action *string `json:"action,omitempty"` + // Modulus to take of the hash of the source label values. + Modulus *float32 `json:"modulus,omitempty"` + // Regular expression against which the extracted value is matched. + Regex *string `json:"regex,omitempty"` + // Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. + Replacement *string `json:"replacement,omitempty"` + // Separator placed between concatenated source label values. + Separator *string `json:"separator,omitempty"` + // The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions. + SourceLabels []string `json:"sourceLabels,omitempty"` + // Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available. + TargetLabel *string `json:"targetLabel,omitempty"` +} + +// NewUpdateScrapeConfigPayloadMetricsRelabelConfigsInner instantiates a new UpdateScrapeConfigPayloadMetricsRelabelConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScrapeConfigPayloadMetricsRelabelConfigsInner() *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner { + this := UpdateScrapeConfigPayloadMetricsRelabelConfigsInner{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// NewUpdateScrapeConfigPayloadMetricsRelabelConfigsInnerWithDefaults instantiates a new UpdateScrapeConfigPayloadMetricsRelabelConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScrapeConfigPayloadMetricsRelabelConfigsInnerWithDefaults() *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner { + this := UpdateScrapeConfigPayloadMetricsRelabelConfigsInner{} + var action string = "replace" + this.Action = &action + var regex string = ".*" + this.Regex = ®ex + var replacement string = "$1" + this.Replacement = &replacement + var separator string = ";" + this.Separator = &separator + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetAction(v string) { + o.Action = &v +} + +// GetModulus returns the Modulus field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetModulus() float32 { + if o == nil || IsNil(o.Modulus) { + var ret float32 + return ret + } + return *o.Modulus +} + +// GetModulusOk returns a tuple with the Modulus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetModulusOk() (*float32, bool) { + if o == nil || IsNil(o.Modulus) { + return nil, false + } + return o.Modulus, true +} + +// HasModulus returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasModulus() bool { + if o != nil && !IsNil(o.Modulus) { + return true + } + + return false +} + +// SetModulus gets a reference to the given float32 and assigns it to the Modulus field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetModulus(v float32) { + o.Modulus = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetRegex() string { + if o == nil || IsNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetRegexOk() (*string, bool) { + if o == nil || IsNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasRegex() bool { + if o != nil && !IsNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetRegex(v string) { + o.Regex = &v +} + +// GetReplacement returns the Replacement field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetReplacement() string { + if o == nil || IsNil(o.Replacement) { + var ret string + return ret + } + return *o.Replacement +} + +// GetReplacementOk returns a tuple with the Replacement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetReplacementOk() (*string, bool) { + if o == nil || IsNil(o.Replacement) { + return nil, false + } + return o.Replacement, true +} + +// HasReplacement returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasReplacement() bool { + if o != nil && !IsNil(o.Replacement) { + return true + } + + return false +} + +// SetReplacement gets a reference to the given string and assigns it to the Replacement field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetReplacement(v string) { + o.Replacement = &v +} + +// GetSeparator returns the Separator field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSeparator() string { + if o == nil || IsNil(o.Separator) { + var ret string + return ret + } + return *o.Separator +} + +// GetSeparatorOk returns a tuple with the Separator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSeparatorOk() (*string, bool) { + if o == nil || IsNil(o.Separator) { + return nil, false + } + return o.Separator, true +} + +// HasSeparator returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasSeparator() bool { + if o != nil && !IsNil(o.Separator) { + return true + } + + return false +} + +// SetSeparator gets a reference to the given string and assigns it to the Separator field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetSeparator(v string) { + o.Separator = &v +} + +// GetSourceLabels returns the SourceLabels field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSourceLabels() []string { + if o == nil || IsNil(o.SourceLabels) { + var ret []string + return ret + } + return o.SourceLabels +} + +// GetSourceLabelsOk returns a tuple with the SourceLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSourceLabelsOk() ([]string, bool) { + if o == nil || IsNil(o.SourceLabels) { + return nil, false + } + return o.SourceLabels, true +} + +// HasSourceLabels returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasSourceLabels() bool { + if o != nil && !IsNil(o.SourceLabels) { + return true + } + + return false +} + +// SetSourceLabels gets a reference to the given []string and assigns it to the SourceLabels field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetSourceLabels(v []string) { + o.SourceLabels = v +} + +// GetTargetLabel returns the TargetLabel field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetTargetLabel() string { + if o == nil || IsNil(o.TargetLabel) { + var ret string + return ret + } + return *o.TargetLabel +} + +// GetTargetLabelOk returns a tuple with the TargetLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) GetTargetLabelOk() (*string, bool) { + if o == nil || IsNil(o.TargetLabel) { + return nil, false + } + return o.TargetLabel, true +} + +// HasTargetLabel returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) HasTargetLabel() bool { + if o != nil && !IsNil(o.TargetLabel) { + return true + } + + return false +} + +// SetTargetLabel gets a reference to the given string and assigns it to the TargetLabel field. +func (o *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) SetTargetLabel(v string) { + o.TargetLabel = &v +} + +func (o UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Modulus) { + toSerialize["modulus"] = o.Modulus + } + if !IsNil(o.Regex) { + toSerialize["regex"] = o.Regex + } + if !IsNil(o.Replacement) { + toSerialize["replacement"] = o.Replacement + } + if !IsNil(o.Separator) { + toSerialize["separator"] = o.Separator + } + if !IsNil(o.SourceLabels) { + toSerialize["sourceLabels"] = o.SourceLabels + } + if !IsNil(o.TargetLabel) { + toSerialize["targetLabel"] = o.TargetLabel + } + return toSerialize, nil +} + +type NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner struct { + value *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner + isSet bool +} + +func (v NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner) Get() *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner { + return v.value +} + +func (v *NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner) Set(val *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner(val *UpdateScrapeConfigPayloadMetricsRelabelConfigsInner) *NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner { + return &NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScrapeConfigPayloadMetricsRelabelConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_scrape_config_payload_static_configs_inner.go b/services/observability/v1api/model_update_scrape_config_payload_static_configs_inner.go new file mode 100644 index 000000000..24a8e4503 --- /dev/null +++ b/services/observability/v1api/model_update_scrape_config_payload_static_configs_inner.go @@ -0,0 +1,195 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateScrapeConfigPayloadStaticConfigsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScrapeConfigPayloadStaticConfigsInner{} + +// UpdateScrapeConfigPayloadStaticConfigsInner struct for UpdateScrapeConfigPayloadStaticConfigsInner +type UpdateScrapeConfigPayloadStaticConfigsInner struct { + // Labels assigned to all metrics scraped from the targets. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters + Labels map[string]interface{} `json:"labels,omitempty"` + // The targets specified by the static config. + Targets []string `json:"targets"` +} + +type _UpdateScrapeConfigPayloadStaticConfigsInner UpdateScrapeConfigPayloadStaticConfigsInner + +// NewUpdateScrapeConfigPayloadStaticConfigsInner instantiates a new UpdateScrapeConfigPayloadStaticConfigsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScrapeConfigPayloadStaticConfigsInner(targets []string) *UpdateScrapeConfigPayloadStaticConfigsInner { + this := UpdateScrapeConfigPayloadStaticConfigsInner{} + this.Targets = targets + return &this +} + +// NewUpdateScrapeConfigPayloadStaticConfigsInnerWithDefaults instantiates a new UpdateScrapeConfigPayloadStaticConfigsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScrapeConfigPayloadStaticConfigsInnerWithDefaults() *UpdateScrapeConfigPayloadStaticConfigsInner { + this := UpdateScrapeConfigPayloadStaticConfigsInner{} + return &this +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +// GetTargets returns the Targets field value +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetTargets() []string { + if o == nil { + var ret []string + return ret + } + + return o.Targets +} + +// GetTargetsOk returns a tuple with the Targets field value +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetTargetsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Targets, true +} + +// SetTargets sets field value +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) SetTargets(v []string) { + o.Targets = v +} + +func (o UpdateScrapeConfigPayloadStaticConfigsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateScrapeConfigPayloadStaticConfigsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + toSerialize["targets"] = o.Targets + return toSerialize, nil +} + +func (o *UpdateScrapeConfigPayloadStaticConfigsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "targets", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateScrapeConfigPayloadStaticConfigsInner := _UpdateScrapeConfigPayloadStaticConfigsInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateScrapeConfigPayloadStaticConfigsInner) + + if err != nil { + return err + } + + *o = UpdateScrapeConfigPayloadStaticConfigsInner(varUpdateScrapeConfigPayloadStaticConfigsInner) + + return err +} + +type NullableUpdateScrapeConfigPayloadStaticConfigsInner struct { + value *UpdateScrapeConfigPayloadStaticConfigsInner + isSet bool +} + +func (v NullableUpdateScrapeConfigPayloadStaticConfigsInner) Get() *UpdateScrapeConfigPayloadStaticConfigsInner { + return v.value +} + +func (v *NullableUpdateScrapeConfigPayloadStaticConfigsInner) Set(val *UpdateScrapeConfigPayloadStaticConfigsInner) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScrapeConfigPayloadStaticConfigsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScrapeConfigPayloadStaticConfigsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScrapeConfigPayloadStaticConfigsInner(val *UpdateScrapeConfigPayloadStaticConfigsInner) *NullableUpdateScrapeConfigPayloadStaticConfigsInner { + return &NullableUpdateScrapeConfigPayloadStaticConfigsInner{value: val, isSet: true} +} + +func (v NullableUpdateScrapeConfigPayloadStaticConfigsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScrapeConfigPayloadStaticConfigsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_scrape_config_payload_tls_config.go b/services/observability/v1api/model_update_scrape_config_payload_tls_config.go new file mode 100644 index 000000000..6391c3541 --- /dev/null +++ b/services/observability/v1api/model_update_scrape_config_payload_tls_config.go @@ -0,0 +1,130 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateScrapeConfigPayloadTlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateScrapeConfigPayloadTlsConfig{} + +// UpdateScrapeConfigPayloadTlsConfig Configures the scrape request's TLS settings. +type UpdateScrapeConfigPayloadTlsConfig struct { + // Disable validation of the server certificate. + InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` +} + +// NewUpdateScrapeConfigPayloadTlsConfig instantiates a new UpdateScrapeConfigPayloadTlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateScrapeConfigPayloadTlsConfig() *UpdateScrapeConfigPayloadTlsConfig { + this := UpdateScrapeConfigPayloadTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// NewUpdateScrapeConfigPayloadTlsConfigWithDefaults instantiates a new UpdateScrapeConfigPayloadTlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateScrapeConfigPayloadTlsConfigWithDefaults() *UpdateScrapeConfigPayloadTlsConfig { + this := UpdateScrapeConfigPayloadTlsConfig{} + var insecureSkipVerify bool = false + this.InsecureSkipVerify = &insecureSkipVerify + return &this +} + +// GetInsecureSkipVerify returns the InsecureSkipVerify field value if set, zero value otherwise. +func (o *UpdateScrapeConfigPayloadTlsConfig) GetInsecureSkipVerify() bool { + if o == nil || IsNil(o.InsecureSkipVerify) { + var ret bool + return ret + } + return *o.InsecureSkipVerify +} + +// GetInsecureSkipVerifyOk returns a tuple with the InsecureSkipVerify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateScrapeConfigPayloadTlsConfig) GetInsecureSkipVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.InsecureSkipVerify) { + return nil, false + } + return o.InsecureSkipVerify, true +} + +// HasInsecureSkipVerify returns a boolean if a field has been set. +func (o *UpdateScrapeConfigPayloadTlsConfig) HasInsecureSkipVerify() bool { + if o != nil && !IsNil(o.InsecureSkipVerify) { + return true + } + + return false +} + +// SetInsecureSkipVerify gets a reference to the given bool and assigns it to the InsecureSkipVerify field. +func (o *UpdateScrapeConfigPayloadTlsConfig) SetInsecureSkipVerify(v bool) { + o.InsecureSkipVerify = &v +} + +func (o UpdateScrapeConfigPayloadTlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateScrapeConfigPayloadTlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InsecureSkipVerify) { + toSerialize["insecureSkipVerify"] = o.InsecureSkipVerify + } + return toSerialize, nil +} + +type NullableUpdateScrapeConfigPayloadTlsConfig struct { + value *UpdateScrapeConfigPayloadTlsConfig + isSet bool +} + +func (v NullableUpdateScrapeConfigPayloadTlsConfig) Get() *UpdateScrapeConfigPayloadTlsConfig { + return v.value +} + +func (v *NullableUpdateScrapeConfigPayloadTlsConfig) Set(val *UpdateScrapeConfigPayloadTlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateScrapeConfigPayloadTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateScrapeConfigPayloadTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateScrapeConfigPayloadTlsConfig(val *UpdateScrapeConfigPayloadTlsConfig) *NullableUpdateScrapeConfigPayloadTlsConfig { + return &NullableUpdateScrapeConfigPayloadTlsConfig{value: val, isSet: true} +} + +func (v NullableUpdateScrapeConfigPayloadTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateScrapeConfigPayloadTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_update_traces_configs_payload.go b/services/observability/v1api/model_update_traces_configs_payload.go new file mode 100644 index 000000000..7f4e44421 --- /dev/null +++ b/services/observability/v1api/model_update_traces_configs_payload.go @@ -0,0 +1,158 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateTracesConfigsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateTracesConfigsPayload{} + +// UpdateTracesConfigsPayload struct for UpdateTracesConfigsPayload +type UpdateTracesConfigsPayload struct { + // How long to keep the traces `Additional Validators:` * Should be a valid time string * Should not be bigger than 30 days + Retention string `json:"retention"` +} + +type _UpdateTracesConfigsPayload UpdateTracesConfigsPayload + +// NewUpdateTracesConfigsPayload instantiates a new UpdateTracesConfigsPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateTracesConfigsPayload(retention string) *UpdateTracesConfigsPayload { + this := UpdateTracesConfigsPayload{} + this.Retention = retention + return &this +} + +// NewUpdateTracesConfigsPayloadWithDefaults instantiates a new UpdateTracesConfigsPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateTracesConfigsPayloadWithDefaults() *UpdateTracesConfigsPayload { + this := UpdateTracesConfigsPayload{} + return &this +} + +// GetRetention returns the Retention field value +func (o *UpdateTracesConfigsPayload) GetRetention() string { + if o == nil { + var ret string + return ret + } + + return o.Retention +} + +// GetRetentionOk returns a tuple with the Retention field value +// and a boolean to check if the value has been set. +func (o *UpdateTracesConfigsPayload) GetRetentionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Retention, true +} + +// SetRetention sets field value +func (o *UpdateTracesConfigsPayload) SetRetention(v string) { + o.Retention = v +} + +func (o UpdateTracesConfigsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateTracesConfigsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["retention"] = o.Retention + return toSerialize, nil +} + +func (o *UpdateTracesConfigsPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "retention", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateTracesConfigsPayload := _UpdateTracesConfigsPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateTracesConfigsPayload) + + if err != nil { + return err + } + + *o = UpdateTracesConfigsPayload(varUpdateTracesConfigsPayload) + + return err +} + +type NullableUpdateTracesConfigsPayload struct { + value *UpdateTracesConfigsPayload + isSet bool +} + +func (v NullableUpdateTracesConfigsPayload) Get() *UpdateTracesConfigsPayload { + return v.value +} + +func (v *NullableUpdateTracesConfigsPayload) Set(val *UpdateTracesConfigsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateTracesConfigsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateTracesConfigsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateTracesConfigsPayload(val *UpdateTracesConfigsPayload) *NullableUpdateTracesConfigsPayload { + return &NullableUpdateTracesConfigsPayload{value: val, isSet: true} +} + +func (v NullableUpdateTracesConfigsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateTracesConfigsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/model_web_hook.go b/services/observability/v1api/model_web_hook.go new file mode 100644 index 000000000..fb3185194 --- /dev/null +++ b/services/observability/v1api/model_web_hook.go @@ -0,0 +1,277 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the WebHook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebHook{} + +// WebHook struct for WebHook +type WebHook struct { + GoogleChat *bool `json:"googleChat,omitempty"` + MsTeams *bool `json:"msTeams,omitempty"` + SendResolved *bool `json:"sendResolved,omitempty"` + Url string `json:"url"` +} + +type _WebHook WebHook + +// NewWebHook instantiates a new WebHook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWebHook(url string) *WebHook { + this := WebHook{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + this.Url = url + return &this +} + +// NewWebHookWithDefaults instantiates a new WebHook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWebHookWithDefaults() *WebHook { + this := WebHook{} + var googleChat bool = false + this.GoogleChat = &googleChat + var msTeams bool = false + this.MsTeams = &msTeams + var sendResolved bool = true + this.SendResolved = &sendResolved + return &this +} + +// GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +func (o *WebHook) GetGoogleChat() bool { + if o == nil || IsNil(o.GoogleChat) { + var ret bool + return ret + } + return *o.GoogleChat +} + +// GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebHook) GetGoogleChatOk() (*bool, bool) { + if o == nil || IsNil(o.GoogleChat) { + return nil, false + } + return o.GoogleChat, true +} + +// HasGoogleChat returns a boolean if a field has been set. +func (o *WebHook) HasGoogleChat() bool { + if o != nil && !IsNil(o.GoogleChat) { + return true + } + + return false +} + +// SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +func (o *WebHook) SetGoogleChat(v bool) { + o.GoogleChat = &v +} + +// GetMsTeams returns the MsTeams field value if set, zero value otherwise. +func (o *WebHook) GetMsTeams() bool { + if o == nil || IsNil(o.MsTeams) { + var ret bool + return ret + } + return *o.MsTeams +} + +// GetMsTeamsOk returns a tuple with the MsTeams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebHook) GetMsTeamsOk() (*bool, bool) { + if o == nil || IsNil(o.MsTeams) { + return nil, false + } + return o.MsTeams, true +} + +// HasMsTeams returns a boolean if a field has been set. +func (o *WebHook) HasMsTeams() bool { + if o != nil && !IsNil(o.MsTeams) { + return true + } + + return false +} + +// SetMsTeams gets a reference to the given bool and assigns it to the MsTeams field. +func (o *WebHook) SetMsTeams(v bool) { + o.MsTeams = &v +} + +// GetSendResolved returns the SendResolved field value if set, zero value otherwise. +func (o *WebHook) GetSendResolved() bool { + if o == nil || IsNil(o.SendResolved) { + var ret bool + return ret + } + return *o.SendResolved +} + +// GetSendResolvedOk returns a tuple with the SendResolved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebHook) GetSendResolvedOk() (*bool, bool) { + if o == nil || IsNil(o.SendResolved) { + return nil, false + } + return o.SendResolved, true +} + +// HasSendResolved returns a boolean if a field has been set. +func (o *WebHook) HasSendResolved() bool { + if o != nil && !IsNil(o.SendResolved) { + return true + } + + return false +} + +// SetSendResolved gets a reference to the given bool and assigns it to the SendResolved field. +func (o *WebHook) SetSendResolved(v bool) { + o.SendResolved = &v +} + +// GetUrl returns the Url field value +func (o *WebHook) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *WebHook) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *WebHook) SetUrl(v string) { + o.Url = v +} + +func (o WebHook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebHook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GoogleChat) { + toSerialize["googleChat"] = o.GoogleChat + } + if !IsNil(o.MsTeams) { + toSerialize["msTeams"] = o.MsTeams + } + if !IsNil(o.SendResolved) { + toSerialize["sendResolved"] = o.SendResolved + } + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *WebHook) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varWebHook := _WebHook{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varWebHook) + + if err != nil { + return err + } + + *o = WebHook(varWebHook) + + return err +} + +type NullableWebHook struct { + value *WebHook + isSet bool +} + +func (v NullableWebHook) Get() *WebHook { + return v.value +} + +func (v *NullableWebHook) Set(val *WebHook) { + v.value = val + v.isSet = true +} + +func (v NullableWebHook) IsSet() bool { + return v.isSet +} + +func (v *NullableWebHook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebHook(val *WebHook) *NullableWebHook { + return &NullableWebHook{value: val, isSet: true} +} + +func (v NullableWebHook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebHook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/v1api/response.go b/services/observability/v1api/response.go new file mode 100644 index 000000000..2713816aa --- /dev/null +++ b/services/observability/v1api/response.go @@ -0,0 +1,48 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/observability/v1api/utils.go b/services/observability/v1api/utils.go new file mode 100644 index 000000000..595e6371a --- /dev/null +++ b/services/observability/v1api/utils.go @@ -0,0 +1,362 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +Contact: stackit-argus@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} diff --git a/services/observability/wait/deprecation.go b/services/observability/wait/deprecation.go new file mode 100644 index 000000000..58f184c09 --- /dev/null +++ b/services/observability/wait/deprecation.go @@ -0,0 +1,2 @@ +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package wait