instana-client 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- instana_client/__init__.py +534 -0
- instana_client/api/__init__.py +58 -0
- instana_client/api/action_catalog_api.py +1380 -0
- instana_client/api/action_history_api.py +1793 -0
- instana_client/api/apdex_report_api.py +338 -0
- instana_client/api/apdex_settings_api.py +1353 -0
- instana_client/api/api_token_api.py +1370 -0
- instana_client/api/application_alert_configuration_api.py +2865 -0
- instana_client/api/application_analyze_api.py +2017 -0
- instana_client/api/application_catalog_api.py +885 -0
- instana_client/api/application_metrics_api.py +1211 -0
- instana_client/api/application_resources_api.py +1487 -0
- instana_client/api/application_settings_api.py +7261 -0
- instana_client/api/application_topology_api.py +354 -0
- instana_client/api/audit_log_api.py +635 -0
- instana_client/api/authentication_api.py +1008 -0
- instana_client/api/business_monitoring_api.py +2177 -0
- instana_client/api/custom_dashboards_api.py +1930 -0
- instana_client/api/event_settings_api.py +14613 -0
- instana_client/api/events_api.py +1654 -0
- instana_client/api/global_application_alert_configuration_api.py +2606 -0
- instana_client/api/groups_api.py +4078 -0
- instana_client/api/health_api.py +527 -0
- instana_client/api/host_agent_api.py +2120 -0
- instana_client/api/infrastructure_alert_configuration_api.py +2524 -0
- instana_client/api/infrastructure_analyze_api.py +1141 -0
- instana_client/api/infrastructure_catalog_api.py +1822 -0
- instana_client/api/infrastructure_metrics_api.py +331 -0
- instana_client/api/infrastructure_resources_api.py +1880 -0
- instana_client/api/infrastructure_topology_api.py +595 -0
- instana_client/api/log_alert_configuration_api.py +2524 -0
- instana_client/api/maintenance_configuration_api.py +2683 -0
- instana_client/api/mobile_app_analyze_api.py +613 -0
- instana_client/api/mobile_app_catalog_api.py +825 -0
- instana_client/api/mobile_app_configuration_api.py +2847 -0
- instana_client/api/mobile_app_metrics_api.py +892 -0
- instana_client/api/policies_api.py +1755 -0
- instana_client/api/releases_api.py +1408 -0
- instana_client/api/service_levels_alert_configuration_api.py +2577 -0
- instana_client/api/service_levels_objective_slo_configurations_api.py +1825 -0
- instana_client/api/service_levels_objective_slo_report_api.py +335 -0
- instana_client/api/session_settings_api.py +801 -0
- instana_client/api/sli_report_api.py +352 -0
- instana_client/api/sli_settings_api.py +2677 -0
- instana_client/api/synthetic_alert_configuration_api.py +2606 -0
- instana_client/api/synthetic_calls_api.py +789 -0
- instana_client/api/synthetic_catalog_api.py +543 -0
- instana_client/api/synthetic_metrics_api.py +322 -0
- instana_client/api/synthetic_settings_api.py +5144 -0
- instana_client/api/synthetic_test_playback_results_api.py +2142 -0
- instana_client/api/usage_api.py +1404 -0
- instana_client/api/user_api.py +2404 -0
- instana_client/api/website_analyze_api.py +619 -0
- instana_client/api/website_catalog_api.py +832 -0
- instana_client/api/website_configuration_api.py +3745 -0
- instana_client/api/website_metrics_api.py +889 -0
- instana_client/api_client.py +798 -0
- instana_client/api_response.py +21 -0
- instana_client/configuration.py +616 -0
- instana_client/exceptions.py +217 -0
- instana_client/models/__init__.py +464 -0
- instana_client/models/abstract_integration.py +155 -0
- instana_client/models/abstract_rule.py +124 -0
- instana_client/models/access_log_entry.py +105 -0
- instana_client/models/access_log_response.py +98 -0
- instana_client/models/access_rule.py +107 -0
- instana_client/models/action.py +135 -0
- instana_client/models/action_configuration.py +104 -0
- instana_client/models/action_instance.py +185 -0
- instana_client/models/action_instance_metadata_entry.py +90 -0
- instana_client/models/action_instance_parameter.py +94 -0
- instana_client/models/action_instance_request.py +108 -0
- instana_client/models/action_instance_request_parameters.py +92 -0
- instana_client/models/action_match.py +98 -0
- instana_client/models/action_search_space.py +94 -0
- instana_client/models/adaptive_baseline.py +92 -0
- instana_client/models/adaptive_threshold_rule.py +91 -0
- instana_client/models/adjusted_timeframe.py +91 -0
- instana_client/models/agent_configuration_update.py +93 -0
- instana_client/models/alerting_configuration.py +113 -0
- instana_client/models/alerting_configuration_with_last_updated.py +115 -0
- instana_client/models/alerting_time_window.py +109 -0
- instana_client/models/apdex_configuration.py +99 -0
- instana_client/models/apdex_configuration_input.py +95 -0
- instana_client/models/apdex_entity.py +119 -0
- instana_client/models/apdex_report.py +94 -0
- instana_client/models/api_create_group.py +104 -0
- instana_client/models/api_group.py +107 -0
- instana_client/models/api_member.py +90 -0
- instana_client/models/api_permission_set.py +178 -0
- instana_client/models/api_restricted_application_filter.py +108 -0
- instana_client/models/api_token.py +250 -0
- instana_client/models/app_data_metric_configuration.py +105 -0
- instana_client/models/application.py +104 -0
- instana_client/models/application_alert_config.py +203 -0
- instana_client/models/application_alert_config_with_metadata.py +213 -0
- instana_client/models/application_alert_rule.py +135 -0
- instana_client/models/application_apdex_entity.py +111 -0
- instana_client/models/application_config.py +131 -0
- instana_client/models/application_event_result.py +108 -0
- instana_client/models/application_item.py +94 -0
- instana_client/models/application_metric_result.py +109 -0
- instana_client/models/application_node.py +106 -0
- instana_client/models/application_result.py +102 -0
- instana_client/models/application_scope.py +89 -0
- instana_client/models/application_scope_with_metadata.py +90 -0
- instana_client/models/application_sli_entity.py +103 -0
- instana_client/models/application_slo_entity.py +112 -0
- instana_client/models/application_time_threshold.py +115 -0
- instana_client/models/audit_log_entry.py +102 -0
- instana_client/models/audit_log_ui_response.py +98 -0
- instana_client/models/author.py +100 -0
- instana_client/models/availability_blueprint_indicator.py +106 -0
- instana_client/models/availability_sli_entity.py +138 -0
- instana_client/models/available_metrics.py +96 -0
- instana_client/models/available_plugins.py +88 -0
- instana_client/models/backend_trace_reference.py +88 -0
- instana_client/models/binary_operator_dto.py +107 -0
- instana_client/models/browser_script_configuration.py +127 -0
- instana_client/models/built_in_event_specification.py +123 -0
- instana_client/models/built_in_event_specification_with_last_updated.py +125 -0
- instana_client/models/business_activity.py +132 -0
- instana_client/models/business_perspective_config.py +99 -0
- instana_client/models/call_groups_item.py +95 -0
- instana_client/models/call_groups_result.py +111 -0
- instana_client/models/call_relation.py +100 -0
- instana_client/models/change_summary.py +101 -0
- instana_client/models/cloudfoundry_physical_context.py +104 -0
- instana_client/models/condition.py +88 -0
- instana_client/models/config_version.py +101 -0
- instana_client/models/crash_mobile_app_alert_rule.py +90 -0
- instana_client/models/cursor_paginated_business_activity_item.py +96 -0
- instana_client/models/cursor_pagination.py +93 -0
- instana_client/models/cursor_pagination_infra_explore_cursor.py +90 -0
- instana_client/models/custom_blueprint_indicator.py +104 -0
- instana_client/models/custom_dashboard.py +111 -0
- instana_client/models/custom_dashboard_preview.py +103 -0
- instana_client/models/custom_email_subject_prefix.py +94 -0
- instana_client/models/custom_event_mobile_app_alert_rule.py +92 -0
- instana_client/models/custom_event_specification.py +133 -0
- instana_client/models/custom_event_specification_with_last_updated.py +143 -0
- instana_client/models/custom_event_website_alert_rule.py +92 -0
- instana_client/models/custom_payload_configuration.py +97 -0
- instana_client/models/custom_payload_field.py +112 -0
- instana_client/models/custom_payload_with_last_updated.py +99 -0
- instana_client/models/dashboard_api_token.py +90 -0
- instana_client/models/database_integration.py +90 -0
- instana_client/models/deprecated_tag_filter.py +111 -0
- instana_client/models/dns_action_configuration.py +134 -0
- instana_client/models/dns_action_filter_query_time.py +99 -0
- instana_client/models/dns_action_filter_target_value.py +106 -0
- instana_client/models/duration.py +98 -0
- instana_client/models/dynamic_field.py +95 -0
- instana_client/models/dynamic_field_value.py +90 -0
- instana_client/models/dynamic_parameter.py +94 -0
- instana_client/models/edit_user.py +88 -0
- instana_client/models/email_integration.py +98 -0
- instana_client/models/empty_configuration.py +92 -0
- instana_client/models/endpoint.py +131 -0
- instana_client/models/endpoint_config.py +112 -0
- instana_client/models/endpoint_event_result.py +112 -0
- instana_client/models/endpoint_item.py +94 -0
- instana_client/models/endpoint_metric_result.py +109 -0
- instana_client/models/endpoint_node.py +91 -0
- instana_client/models/endpoint_result.py +102 -0
- instana_client/models/endpoint_simple.py +102 -0
- instana_client/models/entity_count_rule.py +100 -0
- instana_client/models/entity_count_verification_rule.py +114 -0
- instana_client/models/entity_health_info.py +99 -0
- instana_client/models/entity_id.py +92 -0
- instana_client/models/entity_verification_rule.py +105 -0
- instana_client/models/error_budget_alert_rule.py +97 -0
- instana_client/models/errors_application_alert_rule.py +90 -0
- instana_client/models/event.py +127 -0
- instana_client/models/event_filtering_configuration.py +106 -0
- instana_client/models/event_result.py +145 -0
- instana_client/models/event_specification_info.py +114 -0
- instana_client/models/extended_service.py +123 -0
- instana_client/models/failure_synthetic_alert_rule.py +90 -0
- instana_client/models/fixed_http_path_segment_matching_rule.py +90 -0
- instana_client/models/fixed_time_window.py +93 -0
- instana_client/models/full_trace.py +97 -0
- instana_client/models/generic_infra_alert_rule.py +93 -0
- instana_client/models/geo_location_configuration.py +106 -0
- instana_client/models/geo_mapping_rule.py +120 -0
- instana_client/models/geo_subdivision.py +91 -0
- instana_client/models/get_activities.py +115 -0
- instana_client/models/get_application_metrics.py +112 -0
- instana_client/models/get_applications.py +150 -0
- instana_client/models/get_available_metrics_query.py +103 -0
- instana_client/models/get_available_plugins_query.py +98 -0
- instana_client/models/get_call_groups.py +141 -0
- instana_client/models/get_combined_metrics.py +103 -0
- instana_client/models/get_dynamic_parameter_values.py +100 -0
- instana_client/models/get_endpoints.py +150 -0
- instana_client/models/get_infrastructure_groups_query.py +127 -0
- instana_client/models/get_infrastructure_query.py +127 -0
- instana_client/models/get_metrics_result.py +128 -0
- instana_client/models/get_mobile_app_beacon_groups.py +146 -0
- instana_client/models/get_mobile_app_beacons.py +118 -0
- instana_client/models/get_mobile_app_metrics.py +122 -0
- instana_client/models/get_mobile_app_metrics_v2.py +118 -0
- instana_client/models/get_payload_keys_result.py +88 -0
- instana_client/models/get_services.py +147 -0
- instana_client/models/get_snapshots_query.py +95 -0
- instana_client/models/get_test_result.py +139 -0
- instana_client/models/get_test_result_base.py +120 -0
- instana_client/models/get_test_result_list.py +125 -0
- instana_client/models/get_test_summary_result.py +130 -0
- instana_client/models/get_trace_download_result_item.py +114 -0
- instana_client/models/get_trace_groups.py +141 -0
- instana_client/models/get_traces.py +125 -0
- instana_client/models/get_website_beacon_groups.py +146 -0
- instana_client/models/get_website_beacons.py +118 -0
- instana_client/models/get_website_metrics.py +122 -0
- instana_client/models/get_website_metrics_v2.py +118 -0
- instana_client/models/global_application_alert_config_with_metadata.py +205 -0
- instana_client/models/global_applications_alert_config.py +191 -0
- instana_client/models/google_chat_integration.py +92 -0
- instana_client/models/graph_edge.py +102 -0
- instana_client/models/graph_node.py +100 -0
- instana_client/models/group.py +100 -0
- instana_client/models/group_by_tag.py +90 -0
- instana_client/models/group_mapping.py +95 -0
- instana_client/models/health_state.py +100 -0
- instana_client/models/historic_baseline.py +105 -0
- instana_client/models/host_availability_rule.py +100 -0
- instana_client/models/http_action_configuration.py +127 -0
- instana_client/models/http_endpoint_config.py +103 -0
- instana_client/models/http_endpoint_rule.py +101 -0
- instana_client/models/http_path_segment_matching_rule.py +124 -0
- instana_client/models/http_script_configuration.py +113 -0
- instana_client/models/hyper_param.py +111 -0
- instana_client/models/identity_provider_patch.py +88 -0
- instana_client/models/infra_alert_config.py +166 -0
- instana_client/models/infra_alert_config_with_metadata.py +176 -0
- instana_client/models/infra_alert_rule.py +133 -0
- instana_client/models/infra_event_result.py +109 -0
- instana_client/models/infra_metric_configuration.py +115 -0
- instana_client/models/infra_time_threshold.py +109 -0
- instana_client/models/infrastructure_entities_result.py +109 -0
- instana_client/models/infrastructure_group.py +92 -0
- instana_client/models/infrastructure_groups_result.py +109 -0
- instana_client/models/infrastructure_item.py +104 -0
- instana_client/models/infrastructure_metric_result.py +96 -0
- instana_client/models/instana_version_info.py +92 -0
- instana_client/models/integration_overview.py +94 -0
- instana_client/models/invitation.py +94 -0
- instana_client/models/invitation_response.py +96 -0
- instana_client/models/invitation_result.py +100 -0
- instana_client/models/ip_masking_configuration.py +95 -0
- instana_client/models/js_stack_trace_line.py +99 -0
- instana_client/models/kubernetes_physical_context.py +107 -0
- instana_client/models/latency_blueprint_indicator.py +106 -0
- instana_client/models/location_status.py +96 -0
- instana_client/models/log_alert_config.py +154 -0
- instana_client/models/log_alert_config_with_metadata.py +164 -0
- instana_client/models/log_alert_rule.py +120 -0
- instana_client/models/log_count_alert_rule.py +90 -0
- instana_client/models/log_entry_actor.py +101 -0
- instana_client/models/log_event_result.py +107 -0
- instana_client/models/log_time_threshold.py +109 -0
- instana_client/models/logs_application_alert_rule.py +122 -0
- instana_client/models/maintenance_config.py +103 -0
- instana_client/models/maintenance_config_scheduling.py +118 -0
- instana_client/models/maintenance_config_v2.py +111 -0
- instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +131 -0
- instana_client/models/maintenance_config_with_last_updated.py +105 -0
- instana_client/models/maintenance_window.py +93 -0
- instana_client/models/manual_alerting_channel_configuration.py +99 -0
- instana_client/models/manual_close_info.py +99 -0
- instana_client/models/manual_service_config.py +103 -0
- instana_client/models/match_all_http_path_segment_matching_rule.py +88 -0
- instana_client/models/match_expression_dto.py +111 -0
- instana_client/models/meta_data.py +96 -0
- instana_client/models/metric_api_result.py +94 -0
- instana_client/models/metric_config.py +99 -0
- instana_client/models/metric_configuration.py +103 -0
- instana_client/models/metric_description.py +116 -0
- instana_client/models/metric_instance.py +105 -0
- instana_client/models/metric_item.py +102 -0
- instana_client/models/metric_metadata.py +132 -0
- instana_client/models/metric_pattern.py +101 -0
- instana_client/models/metrics_result.py +96 -0
- instana_client/models/metrics_result_item.py +100 -0
- instana_client/models/metrics_test_result_item.py +102 -0
- instana_client/models/mobile_app.py +91 -0
- instana_client/models/mobile_app_alert_config.py +162 -0
- instana_client/models/mobile_app_alert_rule.py +129 -0
- instana_client/models/mobile_app_beacon_groups_item.py +95 -0
- instana_client/models/mobile_app_beacon_groups_result.py +111 -0
- instana_client/models/mobile_app_beacon_result.py +111 -0
- instana_client/models/mobile_app_beacon_tag_group.py +100 -0
- instana_client/models/mobile_app_beacons_item.py +94 -0
- instana_client/models/mobile_app_event_result.py +108 -0
- instana_client/models/mobile_app_metric_result.py +88 -0
- instana_client/models/mobile_app_monitoring_beacon.py +259 -0
- instana_client/models/mobile_app_monitoring_metric_description.py +123 -0
- instana_client/models/mobile_app_monitoring_metrics_configuration.py +105 -0
- instana_client/models/mobile_app_time_threshold.py +115 -0
- instana_client/models/model_field.py +96 -0
- instana_client/models/monitoring_state.py +92 -0
- instana_client/models/multiple_scripts_configuration.py +90 -0
- instana_client/models/new_application_config.py +129 -0
- instana_client/models/new_business_perspective_config.py +97 -0
- instana_client/models/new_manual_service_config.py +100 -0
- instana_client/models/occurrence.py +91 -0
- instana_client/models/office365_integration.py +92 -0
- instana_client/models/one_time_maintenance_window.py +94 -0
- instana_client/models/opsgenie_integration.py +105 -0
- instana_client/models/order.py +99 -0
- instana_client/models/pagerduty_integration.py +92 -0
- instana_client/models/paginated_result.py +95 -0
- instana_client/models/pagination.py +91 -0
- instana_client/models/parameter.py +102 -0
- instana_client/models/parameter_value.py +90 -0
- instana_client/models/path_parameter_http_path_segment_matching_rule.py +90 -0
- instana_client/models/physical_context.py +119 -0
- instana_client/models/plugin_result.py +90 -0
- instana_client/models/policy.py +113 -0
- instana_client/models/policy_runnable.py +103 -0
- instana_client/models/post_snapshots_result.py +98 -0
- instana_client/models/problem.py +95 -0
- instana_client/models/prometheus_webhook_integration.py +94 -0
- instana_client/models/recurrent_maintenance_window.py +98 -0
- instana_client/models/release.py +111 -0
- instana_client/models/release_scope.py +94 -0
- instana_client/models/release_with_metadata.py +125 -0
- instana_client/models/rolling_time_window.py +90 -0
- instana_client/models/rule_input.py +98 -0
- instana_client/models/rule_with_threshold_application_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_infra_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_log_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_website_alert_rule.py +116 -0
- instana_client/models/run_configuration.py +96 -0
- instana_client/models/salesforce_integration.py +98 -0
- instana_client/models/scope_binding.py +91 -0
- instana_client/models/search_field_result.py +116 -0
- instana_client/models/service.py +116 -0
- instana_client/models/service_config.py +107 -0
- instana_client/models/service_event_result.py +110 -0
- instana_client/models/service_item.py +94 -0
- instana_client/models/service_level_indicator.py +172 -0
- instana_client/models/service_level_objective_alert_rule.py +100 -0
- instana_client/models/service_level_objective_configuration.py +118 -0
- instana_client/models/service_levels_alert_config.py +133 -0
- instana_client/models/service_levels_alert_rule.py +111 -0
- instana_client/models/service_levels_burn_rate_time_windows.py +97 -0
- instana_client/models/service_levels_time_threshold.py +90 -0
- instana_client/models/service_levelse_alert_config_with_metadata.py +143 -0
- instana_client/models/service_map.py +106 -0
- instana_client/models/service_map_connection.py +97 -0
- instana_client/models/service_matching_rule.py +90 -0
- instana_client/models/service_metric_result.py +109 -0
- instana_client/models/service_node.py +106 -0
- instana_client/models/service_now_enhanced_integration.py +116 -0
- instana_client/models/service_now_integration.py +98 -0
- instana_client/models/service_result.py +102 -0
- instana_client/models/service_scope.py +95 -0
- instana_client/models/service_scope_with_metadata.py +96 -0
- instana_client/models/service_scoped_to.py +97 -0
- instana_client/models/service_scoped_to_with_metadata.py +97 -0
- instana_client/models/service_simple.py +90 -0
- instana_client/models/session_settings.py +91 -0
- instana_client/models/slack_integration.py +98 -0
- instana_client/models/sli_configuration.py +105 -0
- instana_client/models/sli_configuration_with_last_updated.py +107 -0
- instana_client/models/sli_entity.py +117 -0
- instana_client/models/sli_report.py +100 -0
- instana_client/models/slo_entity.py +119 -0
- instana_client/models/slo_report.py +112 -0
- instana_client/models/slowness_application_alert_rule.py +90 -0
- instana_client/models/slowness_website_alert_rule.py +90 -0
- instana_client/models/snapshot_item.py +102 -0
- instana_client/models/snapshot_preview.py +97 -0
- instana_client/models/snapshot_result.py +96 -0
- instana_client/models/software_user.py +94 -0
- instana_client/models/software_version.py +124 -0
- instana_client/models/source_map_file_blob.py +92 -0
- instana_client/models/source_map_file_meta.py +115 -0
- instana_client/models/source_map_upload_config.py +106 -0
- instana_client/models/span.py +156 -0
- instana_client/models/span_excerpt.py +132 -0
- instana_client/models/span_relation.py +114 -0
- instana_client/models/specific_js_errors_website_alert_rule.py +101 -0
- instana_client/models/splunk_integration.py +94 -0
- instana_client/models/ssl_certificate_configuration.py +99 -0
- instana_client/models/stack_trace_item.py +92 -0
- instana_client/models/stack_trace_line.py +99 -0
- instana_client/models/static_baseline_threshold_rule.py +102 -0
- instana_client/models/static_string_field.py +91 -0
- instana_client/models/static_threshold.py +94 -0
- instana_client/models/static_threshold_rule.py +91 -0
- instana_client/models/status_code_application_alert_rule.py +95 -0
- instana_client/models/status_code_mobile_app_alert_rule.py +101 -0
- instana_client/models/status_code_website_alert_rule.py +101 -0
- instana_client/models/synthetic_alert_config.py +127 -0
- instana_client/models/synthetic_alert_config_with_metadata.py +137 -0
- instana_client/models/synthetic_alert_rule.py +120 -0
- instana_client/models/synthetic_call_config.py +99 -0
- instana_client/models/synthetic_call_rule.py +99 -0
- instana_client/models/synthetic_call_with_defaults_config.py +108 -0
- instana_client/models/synthetic_credential.py +111 -0
- instana_client/models/synthetic_datacenter.py +117 -0
- instana_client/models/synthetic_datacenter_configuration.py +88 -0
- instana_client/models/synthetic_geo_point.py +94 -0
- instana_client/models/synthetic_location.py +129 -0
- instana_client/models/synthetic_location_configuration.py +102 -0
- instana_client/models/synthetic_metric_configuration.py +99 -0
- instana_client/models/synthetic_metric_tag_group.py +100 -0
- instana_client/models/synthetic_playback_capabilities.py +98 -0
- instana_client/models/synthetic_slo_entity.py +95 -0
- instana_client/models/synthetic_test.py +149 -0
- instana_client/models/synthetic_time_threshold.py +110 -0
- instana_client/models/synthetic_type_configuration.py +141 -0
- instana_client/models/synthetics_event_result.py +110 -0
- instana_client/models/system_rule.py +91 -0
- instana_client/models/system_rule_label.py +90 -0
- instana_client/models/tag.py +123 -0
- instana_client/models/tag_catalog.py +106 -0
- instana_client/models/tag_filter.py +113 -0
- instana_client/models/tag_filter_expression.py +106 -0
- instana_client/models/tag_filter_expression_element.py +111 -0
- instana_client/models/tag_matcher_dto.py +110 -0
- instana_client/models/tag_tree_level.py +109 -0
- instana_client/models/tag_tree_node.py +113 -0
- instana_client/models/tag_tree_tag.py +103 -0
- instana_client/models/test_common_properties.py +136 -0
- instana_client/models/test_result.py +105 -0
- instana_client/models/test_result_common_properties.py +108 -0
- instana_client/models/test_result_detail_data.py +112 -0
- instana_client/models/test_result_item.py +106 -0
- instana_client/models/test_result_list_item.py +94 -0
- instana_client/models/test_result_list_result.py +103 -0
- instana_client/models/test_result_metadata.py +94 -0
- instana_client/models/test_result_subtransaction.py +90 -0
- instana_client/models/threshold.py +122 -0
- instana_client/models/threshold_config_rule.py +114 -0
- instana_client/models/threshold_rule.py +125 -0
- instana_client/models/throughput_application_alert_rule.py +90 -0
- instana_client/models/throughput_mobile_app_alert_rule.py +90 -0
- instana_client/models/throughput_website_alert_rule.py +90 -0
- instana_client/models/time_frame.py +91 -0
- instana_client/models/time_window.py +120 -0
- instana_client/models/topology.py +106 -0
- instana_client/models/trace.py +109 -0
- instana_client/models/trace_activity_tree_node_details.py +139 -0
- instana_client/models/trace_download_result.py +111 -0
- instana_client/models/trace_groups_item.py +95 -0
- instana_client/models/trace_groups_result.py +111 -0
- instana_client/models/trace_impact_application_time_threshold.py +92 -0
- instana_client/models/trace_item.py +94 -0
- instana_client/models/trace_result.py +111 -0
- instana_client/models/traffic_blueprint_indicator.py +104 -0
- instana_client/models/trigger.py +99 -0
- instana_client/models/type_configuration.py +107 -0
- instana_client/models/unsupported_http_path_segment_matching_rule.py +90 -0
- instana_client/models/updated_business_perspective_config.py +97 -0
- instana_client/models/usage_result.py +98 -0
- instana_client/models/usage_result_items.py +90 -0
- instana_client/models/user_basic_result.py +92 -0
- instana_client/models/user_impact_mobile_app_time_threshold.py +103 -0
- instana_client/models/user_impact_website_time_threshold.py +103 -0
- instana_client/models/user_result.py +98 -0
- instana_client/models/users_result.py +106 -0
- instana_client/models/validated_alerting_channel_input_info.py +123 -0
- instana_client/models/validated_alerting_configuration.py +121 -0
- instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +135 -0
- instana_client/models/validated_maintenance_config_with_status.py +116 -0
- instana_client/models/victor_ops_integration.py +94 -0
- instana_client/models/violations_in_period_application_time_threshold.py +92 -0
- instana_client/models/violations_in_period_mobile_app_time_threshold.py +92 -0
- instana_client/models/violations_in_period_website_time_threshold.py +92 -0
- instana_client/models/violations_in_sequence_application_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_infra_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_log_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_synthetic_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_website_time_threshold.py +89 -0
- instana_client/models/watson_ai_ops_webhook_integration.py +94 -0
- instana_client/models/webex_teams_webhook_integration.py +92 -0
- instana_client/models/webhook_integration.py +94 -0
- instana_client/models/webpage_action_configuration.py +109 -0
- instana_client/models/webpage_script_configuration.py +109 -0
- instana_client/models/website.py +92 -0
- instana_client/models/website_alert_config.py +166 -0
- instana_client/models/website_alert_config_with_metadata.py +176 -0
- instana_client/models/website_alert_rule.py +132 -0
- instana_client/models/website_apdex_entity.py +107 -0
- instana_client/models/website_beacon_groups_item.py +95 -0
- instana_client/models/website_beacon_groups_result.py +111 -0
- instana_client/models/website_beacon_result.py +111 -0
- instana_client/models/website_beacon_tag_group.py +100 -0
- instana_client/models/website_beacons_item.py +94 -0
- instana_client/models/website_event_based_sli_entity.py +110 -0
- instana_client/models/website_event_result.py +108 -0
- instana_client/models/website_metric_result.py +88 -0
- instana_client/models/website_monitoring_beacon.py +301 -0
- instana_client/models/website_monitoring_metric_description.py +123 -0
- instana_client/models/website_monitoring_metrics_configuration.py +99 -0
- instana_client/models/website_slo_entity.py +104 -0
- instana_client/models/website_time_based_sli_entity.py +105 -0
- instana_client/models/website_time_threshold.py +115 -0
- instana_client/models/widget.py +103 -0
- instana_client/models/with_metadata.py +172 -0
- instana_client/models/with_resolved_name.py +102 -0
- instana_client/models/z_chat_ops_integration.py +97 -0
- instana_client/py.typed +0 -0
- instana_client/rest.py +258 -0
- instana_client-1.0.0.dist-info/METADATA +25 -0
- instana_client-1.0.0.dist-info/RECORD +515 -0
- instana_client-1.0.0.dist-info/WHEEL +5 -0
- instana_client-1.0.0.dist-info/licenses/LICENSE +202 -0
- instana_client-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1408 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Instana REST API documentation
|
|
5
|
+
|
|
6
|
+
Searching for answers and best pratices? Check our [IBM Instana Community](https://community.ibm.com/community/user/aiops/communities/community-home?CommunityKey=58f324a3-3104-41be-9510-5b7c413cc48f). ## Overview The Instana REST API provides programmatic access to the Instana platform. It can be used to retrieve data available through the Instana UI Dashboard -- metrics, events, traces, etc -- and also to automate configuration tasks such as user management. ### Navigating the API documentation The API endpoints are grouped by product area and functionality. This generally maps to how our UI Dashboard is organized, hopefully making it easier to locate which endpoints you'd use to fetch the data you see visualized in our UI. The [UI sections](https://www.ibm.com/docs/en/instana-observability/current?topic=working-user-interface#navigation-menu) include: - Websites & Mobile Apps - Applications - Infrastructure - Synthetic Monitoring - Events - Automation - Service Levels - Settings - etc ### Rate Limiting A rate limit is applied to API usage. Up to 5,000 calls per hour can be made. How many remaining calls can be made and when this call limit resets, can inspected via three headers that are part of the responses of the API server. - **X-RateLimit-Limit:** Shows the maximum number of calls that may be executed per hour. - **X-RateLimit-Remaining:** How many calls may still be executed within the current hour. - **X-RateLimit-Reset:** Time when the remaining calls will be reset to the limit. For compatibility reasons with other rate limited APIs, this date is not the date in milliseconds, but instead in seconds since 1970-01-01T00:00:00+00:00. ### Further Reading We provide additional documentation for our REST API in our [product documentation](https://www.ibm.com/docs/en/instana-observability/current?topic=apis-web-rest-api). Here you'll also find some common queries for retrieving data and configuring Instana. ## Getting Started with the REST API ### API base URL The base URL for an specific instance of Instana can be determined using the tenant and unit information. - `base`: This is the base URL of a tenant unit, e.g. `https://test-example.instana.io`. This is the same URL that is used to access the Instana user interface. - `apiToken`: Requests against the Instana API require valid API tokens. An initial API token can be generated via the Instana user interface. Any additional API tokens can be generated via the API itself. ### Curl Example Here is an Example to use the REST API with Curl. First lets get all the available metrics with possible aggregations with a GET call. ```bash curl --request GET \\ --url https://test-instana.instana.io/api/application-monitoring/catalog/metrics \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' ``` Next we can get every call grouped by the endpoint name that has an error count greater then zero. As a metric we could get the mean error rate for example. ```bash curl --request POST \\ --url https://test-instana.instana.io/api/application-monitoring/analyze/call-groups \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' \\ --header 'content-type: application/json' \\ --data '{ \"group\":{ \"groupbyTag\":\"endpoint.name\" }, \"tagFilters\":[ { \"name\":\"call.error.count\", \"value\":\"0\", \"operator\":\"GREATER_THAN\" } ], \"metrics\":[ { \"metric\":\"errors\", \"aggregation\":\"MEAN\" } ] }' ``` ### Generating REST API clients The API is specified using the [OpenAPI v3](https://github.com/OAI/OpenAPI-Specification) (previously known as Swagger) format. You can download the current specification at our [GitHub API documentation](https://instana.github.io/openapi/openapi.yaml). OpenAPI tries to solve the issue of ever-evolving APIs and clients lagging behind. Please make sure that you always use the latest version of the generator, as a number of improvements are regularly made. To generate a client library for your language, you can use the [OpenAPI client generators](https://github.com/OpenAPITools/openapi-generator). #### Go For example, to generate a client library for Go to interact with our backend, you can use the following script; mind replacing the values of the `UNIT_NAME` and `TENANT_NAME` environment variables using those for your tenant unit: ```bash #!/bin/bash ### This script assumes you have the `java` and `wget` commands on the path export UNIT_NAME='myunit' # for example: prod export TENANT_NAME='mytenant' # for example: awesomecompany //Download the generator to your current working directory: wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar -O openapi-generator-cli.jar --server-variables \"tenant=${TENANT_NAME},unit=${UNIT_NAME}\" //generate a client library that you can vendor into your repository java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g go \\ -o pkg/instana/openapi \\ --skip-validate-spec //(optional) format the Go code according to the Go code standard gofmt -s -w pkg/instana/openapi ``` The generated clients contain comprehensive READMEs, and you can start right away using the client from the example above: ```go import instana \"./pkg/instana/openapi\" // readTags will read all available application monitoring tags along with their type and category func readTags() { configuration := instana.NewConfiguration() configuration.Host = \"tenant-unit.instana.io\" configuration.BasePath = \"https://tenant-unit.instana.io\" client := instana.NewAPIClient(configuration) auth := context.WithValue(context.Background(), instana.ContextAPIKey, instana.APIKey{ Key: apiKey, Prefix: \"apiToken\", }) tags, _, err := client.ApplicationCatalogApi.GetApplicationTagCatalog(auth) if err != nil { fmt.Fatalf(\"Error calling the API, aborting.\") } for _, tag := range tags { fmt.Printf(\"%s (%s): %s\\n\", tag.Category, tag.Type, tag.Name) } } ``` #### Java Follow the instructions provided in the official documentation from [OpenAPI Tools](https://github.com/OpenAPITools) to download the [openapi-generator-cli.jar](https://github.com/OpenAPITools/openapi-generator?tab=readme-ov-file#13---download-jar). Depending on your environment, use one of the following java http client implementations which will create a valid client for our OpenAPI specification: ``` //Nativ Java HTTP Client java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8 --library native //Spring WebClient java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library webclient //Spring RestTemplate java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library resttemplate ```
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.291.1002
|
|
9
|
+
Contact: support@instana.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from instana_client.models.release import Release
|
|
24
|
+
from instana_client.models.release_with_metadata import ReleaseWithMetadata
|
|
25
|
+
|
|
26
|
+
from instana_client.api_client import ApiClient, RequestSerialized
|
|
27
|
+
from instana_client.api_response import ApiResponse
|
|
28
|
+
from instana_client.rest import RESTResponseType
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ReleasesApi:
|
|
32
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
33
|
+
Ref: https://openapi-generator.tech
|
|
34
|
+
|
|
35
|
+
Do not edit the class manually.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
def __init__(self, api_client=None) -> None:
|
|
39
|
+
if api_client is None:
|
|
40
|
+
api_client = ApiClient.get_default()
|
|
41
|
+
self.api_client = api_client
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@validate_call
|
|
45
|
+
def delete_release(
|
|
46
|
+
self,
|
|
47
|
+
release_id: StrictStr,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
+
]
|
|
55
|
+
] = None,
|
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
+
) -> None:
|
|
61
|
+
"""Delete release
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param release_id: (required)
|
|
65
|
+
:type release_id: str
|
|
66
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
67
|
+
number provided, it will be total request
|
|
68
|
+
timeout. It can also be a pair (tuple) of
|
|
69
|
+
(connection, read) timeouts.
|
|
70
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
71
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
72
|
+
request; this effectively ignores the
|
|
73
|
+
authentication in the spec for a single request.
|
|
74
|
+
:type _request_auth: dict, optional
|
|
75
|
+
:param _content_type: force content-type for the request.
|
|
76
|
+
:type _content_type: str, Optional
|
|
77
|
+
:param _headers: set to override the headers for a single
|
|
78
|
+
request; this effectively ignores the headers
|
|
79
|
+
in the spec for a single request.
|
|
80
|
+
:type _headers: dict, optional
|
|
81
|
+
:param _host_index: set to override the host_index for a single
|
|
82
|
+
request; this effectively ignores the host_index
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _host_index: int, optional
|
|
85
|
+
:return: Returns the result object.
|
|
86
|
+
""" # noqa: E501
|
|
87
|
+
|
|
88
|
+
_param = self._delete_release_serialize(
|
|
89
|
+
release_id=release_id,
|
|
90
|
+
_request_auth=_request_auth,
|
|
91
|
+
_content_type=_content_type,
|
|
92
|
+
_headers=_headers,
|
|
93
|
+
_host_index=_host_index
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
+
}
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
def delete_release_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
release_id: StrictStr,
|
|
113
|
+
_request_timeout: Union[
|
|
114
|
+
None,
|
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
+
Tuple[
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
119
|
+
]
|
|
120
|
+
] = None,
|
|
121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
122
|
+
_content_type: Optional[StrictStr] = None,
|
|
123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
125
|
+
) -> ApiResponse[None]:
|
|
126
|
+
"""Delete release
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param release_id: (required)
|
|
130
|
+
:type release_id: str
|
|
131
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
132
|
+
number provided, it will be total request
|
|
133
|
+
timeout. It can also be a pair (tuple) of
|
|
134
|
+
(connection, read) timeouts.
|
|
135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
137
|
+
request; this effectively ignores the
|
|
138
|
+
authentication in the spec for a single request.
|
|
139
|
+
:type _request_auth: dict, optional
|
|
140
|
+
:param _content_type: force content-type for the request.
|
|
141
|
+
:type _content_type: str, Optional
|
|
142
|
+
:param _headers: set to override the headers for a single
|
|
143
|
+
request; this effectively ignores the headers
|
|
144
|
+
in the spec for a single request.
|
|
145
|
+
:type _headers: dict, optional
|
|
146
|
+
:param _host_index: set to override the host_index for a single
|
|
147
|
+
request; this effectively ignores the host_index
|
|
148
|
+
in the spec for a single request.
|
|
149
|
+
:type _host_index: int, optional
|
|
150
|
+
:return: Returns the result object.
|
|
151
|
+
""" # noqa: E501
|
|
152
|
+
|
|
153
|
+
_param = self._delete_release_serialize(
|
|
154
|
+
release_id=release_id,
|
|
155
|
+
_request_auth=_request_auth,
|
|
156
|
+
_content_type=_content_type,
|
|
157
|
+
_headers=_headers,
|
|
158
|
+
_host_index=_host_index
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
162
|
+
}
|
|
163
|
+
response_data = self.api_client.call_api(
|
|
164
|
+
*_param,
|
|
165
|
+
_request_timeout=_request_timeout
|
|
166
|
+
)
|
|
167
|
+
response_data.read()
|
|
168
|
+
return self.api_client.response_deserialize(
|
|
169
|
+
response_data=response_data,
|
|
170
|
+
response_types_map=_response_types_map,
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
@validate_call
|
|
175
|
+
def delete_release_without_preload_content(
|
|
176
|
+
self,
|
|
177
|
+
release_id: StrictStr,
|
|
178
|
+
_request_timeout: Union[
|
|
179
|
+
None,
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
181
|
+
Tuple[
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
184
|
+
]
|
|
185
|
+
] = None,
|
|
186
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
187
|
+
_content_type: Optional[StrictStr] = None,
|
|
188
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
190
|
+
) -> RESTResponseType:
|
|
191
|
+
"""Delete release
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param release_id: (required)
|
|
195
|
+
:type release_id: str
|
|
196
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
197
|
+
number provided, it will be total request
|
|
198
|
+
timeout. It can also be a pair (tuple) of
|
|
199
|
+
(connection, read) timeouts.
|
|
200
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
201
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
202
|
+
request; this effectively ignores the
|
|
203
|
+
authentication in the spec for a single request.
|
|
204
|
+
:type _request_auth: dict, optional
|
|
205
|
+
:param _content_type: force content-type for the request.
|
|
206
|
+
:type _content_type: str, Optional
|
|
207
|
+
:param _headers: set to override the headers for a single
|
|
208
|
+
request; this effectively ignores the headers
|
|
209
|
+
in the spec for a single request.
|
|
210
|
+
:type _headers: dict, optional
|
|
211
|
+
:param _host_index: set to override the host_index for a single
|
|
212
|
+
request; this effectively ignores the host_index
|
|
213
|
+
in the spec for a single request.
|
|
214
|
+
:type _host_index: int, optional
|
|
215
|
+
:return: Returns the result object.
|
|
216
|
+
""" # noqa: E501
|
|
217
|
+
|
|
218
|
+
_param = self._delete_release_serialize(
|
|
219
|
+
release_id=release_id,
|
|
220
|
+
_request_auth=_request_auth,
|
|
221
|
+
_content_type=_content_type,
|
|
222
|
+
_headers=_headers,
|
|
223
|
+
_host_index=_host_index
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
227
|
+
}
|
|
228
|
+
response_data = self.api_client.call_api(
|
|
229
|
+
*_param,
|
|
230
|
+
_request_timeout=_request_timeout
|
|
231
|
+
)
|
|
232
|
+
return response_data.response
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def _delete_release_serialize(
|
|
236
|
+
self,
|
|
237
|
+
release_id,
|
|
238
|
+
_request_auth,
|
|
239
|
+
_content_type,
|
|
240
|
+
_headers,
|
|
241
|
+
_host_index,
|
|
242
|
+
) -> RequestSerialized:
|
|
243
|
+
|
|
244
|
+
_host = None
|
|
245
|
+
|
|
246
|
+
_collection_formats: Dict[str, str] = {
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
_path_params: Dict[str, str] = {}
|
|
250
|
+
_query_params: List[Tuple[str, str]] = []
|
|
251
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
252
|
+
_form_params: List[Tuple[str, str]] = []
|
|
253
|
+
_files: Dict[
|
|
254
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
255
|
+
] = {}
|
|
256
|
+
_body_params: Optional[bytes] = None
|
|
257
|
+
|
|
258
|
+
# process the path parameters
|
|
259
|
+
if release_id is not None:
|
|
260
|
+
_path_params['releaseId'] = release_id
|
|
261
|
+
# process the query parameters
|
|
262
|
+
# process the header parameters
|
|
263
|
+
# process the form parameters
|
|
264
|
+
# process the body parameter
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
# set the HTTP header `Accept`
|
|
268
|
+
if 'Accept' not in _header_params:
|
|
269
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
270
|
+
[
|
|
271
|
+
'application/json'
|
|
272
|
+
]
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
# authentication setting
|
|
277
|
+
_auth_settings: List[str] = [
|
|
278
|
+
'ApiKeyAuth'
|
|
279
|
+
]
|
|
280
|
+
|
|
281
|
+
return self.api_client.param_serialize(
|
|
282
|
+
method='DELETE',
|
|
283
|
+
resource_path='/api/releases/{releaseId}',
|
|
284
|
+
path_params=_path_params,
|
|
285
|
+
query_params=_query_params,
|
|
286
|
+
header_params=_header_params,
|
|
287
|
+
body=_body_params,
|
|
288
|
+
post_params=_form_params,
|
|
289
|
+
files=_files,
|
|
290
|
+
auth_settings=_auth_settings,
|
|
291
|
+
collection_formats=_collection_formats,
|
|
292
|
+
_host=_host,
|
|
293
|
+
_request_auth=_request_auth
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
@validate_call
|
|
300
|
+
def get_all_releases(
|
|
301
|
+
self,
|
|
302
|
+
var_from: Optional[StrictInt] = None,
|
|
303
|
+
to: Optional[StrictInt] = None,
|
|
304
|
+
max_results: Optional[StrictInt] = None,
|
|
305
|
+
_request_timeout: Union[
|
|
306
|
+
None,
|
|
307
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
308
|
+
Tuple[
|
|
309
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
310
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
311
|
+
]
|
|
312
|
+
] = None,
|
|
313
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
314
|
+
_content_type: Optional[StrictStr] = None,
|
|
315
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
316
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
317
|
+
) -> List[ReleaseWithMetadata]:
|
|
318
|
+
"""Get all releases
|
|
319
|
+
|
|
320
|
+
This endpoint exposes the Releases functionality. These APIs can be used to create, update, delete and fetch already existing releases. ## Mandatory Parameters: **releaseId:** A unique identifier assigned to each release. ## Optional Parameters: **name:** Name of the exact release you want to retrieve, eg. \"Release-161\", \"Release-162\". **start:** Start time of the particular release (as UNIX timestamp in milliseconds). **from:** Filters the releases to retrieve only the releases which have \"start\" time greater than or equal to this value (as UNIX timestamp in milliseconds). **to:** Filters the releases to retrieve only the releases which have \"start\" time lesser than or equal to this value (as UNIX timestamp in milliseconds). **maxResults:** Maximum number of releases to be retrieved. ## Defaults: **from, to, maxResults:** By default these parameters are not set.
|
|
321
|
+
|
|
322
|
+
:param var_from:
|
|
323
|
+
:type var_from: int
|
|
324
|
+
:param to:
|
|
325
|
+
:type to: int
|
|
326
|
+
:param max_results:
|
|
327
|
+
:type max_results: int
|
|
328
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
329
|
+
number provided, it will be total request
|
|
330
|
+
timeout. It can also be a pair (tuple) of
|
|
331
|
+
(connection, read) timeouts.
|
|
332
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
333
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
334
|
+
request; this effectively ignores the
|
|
335
|
+
authentication in the spec for a single request.
|
|
336
|
+
:type _request_auth: dict, optional
|
|
337
|
+
:param _content_type: force content-type for the request.
|
|
338
|
+
:type _content_type: str, Optional
|
|
339
|
+
:param _headers: set to override the headers for a single
|
|
340
|
+
request; this effectively ignores the headers
|
|
341
|
+
in the spec for a single request.
|
|
342
|
+
:type _headers: dict, optional
|
|
343
|
+
:param _host_index: set to override the host_index for a single
|
|
344
|
+
request; this effectively ignores the host_index
|
|
345
|
+
in the spec for a single request.
|
|
346
|
+
:type _host_index: int, optional
|
|
347
|
+
:return: Returns the result object.
|
|
348
|
+
""" # noqa: E501
|
|
349
|
+
|
|
350
|
+
_param = self._get_all_releases_serialize(
|
|
351
|
+
var_from=var_from,
|
|
352
|
+
to=to,
|
|
353
|
+
max_results=max_results,
|
|
354
|
+
_request_auth=_request_auth,
|
|
355
|
+
_content_type=_content_type,
|
|
356
|
+
_headers=_headers,
|
|
357
|
+
_host_index=_host_index
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
361
|
+
'200': "List[ReleaseWithMetadata]",
|
|
362
|
+
}
|
|
363
|
+
response_data = self.api_client.call_api(
|
|
364
|
+
*_param,
|
|
365
|
+
_request_timeout=_request_timeout
|
|
366
|
+
)
|
|
367
|
+
response_data.read()
|
|
368
|
+
return self.api_client.response_deserialize(
|
|
369
|
+
response_data=response_data,
|
|
370
|
+
response_types_map=_response_types_map,
|
|
371
|
+
).data
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
@validate_call
|
|
375
|
+
def get_all_releases_with_http_info(
|
|
376
|
+
self,
|
|
377
|
+
var_from: Optional[StrictInt] = None,
|
|
378
|
+
to: Optional[StrictInt] = None,
|
|
379
|
+
max_results: Optional[StrictInt] = None,
|
|
380
|
+
_request_timeout: Union[
|
|
381
|
+
None,
|
|
382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
383
|
+
Tuple[
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
385
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
386
|
+
]
|
|
387
|
+
] = None,
|
|
388
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
389
|
+
_content_type: Optional[StrictStr] = None,
|
|
390
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
391
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
392
|
+
) -> ApiResponse[List[ReleaseWithMetadata]]:
|
|
393
|
+
"""Get all releases
|
|
394
|
+
|
|
395
|
+
This endpoint exposes the Releases functionality. These APIs can be used to create, update, delete and fetch already existing releases. ## Mandatory Parameters: **releaseId:** A unique identifier assigned to each release. ## Optional Parameters: **name:** Name of the exact release you want to retrieve, eg. \"Release-161\", \"Release-162\". **start:** Start time of the particular release (as UNIX timestamp in milliseconds). **from:** Filters the releases to retrieve only the releases which have \"start\" time greater than or equal to this value (as UNIX timestamp in milliseconds). **to:** Filters the releases to retrieve only the releases which have \"start\" time lesser than or equal to this value (as UNIX timestamp in milliseconds). **maxResults:** Maximum number of releases to be retrieved. ## Defaults: **from, to, maxResults:** By default these parameters are not set.
|
|
396
|
+
|
|
397
|
+
:param var_from:
|
|
398
|
+
:type var_from: int
|
|
399
|
+
:param to:
|
|
400
|
+
:type to: int
|
|
401
|
+
:param max_results:
|
|
402
|
+
:type max_results: int
|
|
403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
404
|
+
number provided, it will be total request
|
|
405
|
+
timeout. It can also be a pair (tuple) of
|
|
406
|
+
(connection, read) timeouts.
|
|
407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
409
|
+
request; this effectively ignores the
|
|
410
|
+
authentication in the spec for a single request.
|
|
411
|
+
:type _request_auth: dict, optional
|
|
412
|
+
:param _content_type: force content-type for the request.
|
|
413
|
+
:type _content_type: str, Optional
|
|
414
|
+
:param _headers: set to override the headers for a single
|
|
415
|
+
request; this effectively ignores the headers
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _headers: dict, optional
|
|
418
|
+
:param _host_index: set to override the host_index for a single
|
|
419
|
+
request; this effectively ignores the host_index
|
|
420
|
+
in the spec for a single request.
|
|
421
|
+
:type _host_index: int, optional
|
|
422
|
+
:return: Returns the result object.
|
|
423
|
+
""" # noqa: E501
|
|
424
|
+
|
|
425
|
+
_param = self._get_all_releases_serialize(
|
|
426
|
+
var_from=var_from,
|
|
427
|
+
to=to,
|
|
428
|
+
max_results=max_results,
|
|
429
|
+
_request_auth=_request_auth,
|
|
430
|
+
_content_type=_content_type,
|
|
431
|
+
_headers=_headers,
|
|
432
|
+
_host_index=_host_index
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
436
|
+
'200': "List[ReleaseWithMetadata]",
|
|
437
|
+
}
|
|
438
|
+
response_data = self.api_client.call_api(
|
|
439
|
+
*_param,
|
|
440
|
+
_request_timeout=_request_timeout
|
|
441
|
+
)
|
|
442
|
+
response_data.read()
|
|
443
|
+
return self.api_client.response_deserialize(
|
|
444
|
+
response_data=response_data,
|
|
445
|
+
response_types_map=_response_types_map,
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
@validate_call
|
|
450
|
+
def get_all_releases_without_preload_content(
|
|
451
|
+
self,
|
|
452
|
+
var_from: Optional[StrictInt] = None,
|
|
453
|
+
to: Optional[StrictInt] = None,
|
|
454
|
+
max_results: Optional[StrictInt] = None,
|
|
455
|
+
_request_timeout: Union[
|
|
456
|
+
None,
|
|
457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
458
|
+
Tuple[
|
|
459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
461
|
+
]
|
|
462
|
+
] = None,
|
|
463
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
464
|
+
_content_type: Optional[StrictStr] = None,
|
|
465
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
466
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
467
|
+
) -> RESTResponseType:
|
|
468
|
+
"""Get all releases
|
|
469
|
+
|
|
470
|
+
This endpoint exposes the Releases functionality. These APIs can be used to create, update, delete and fetch already existing releases. ## Mandatory Parameters: **releaseId:** A unique identifier assigned to each release. ## Optional Parameters: **name:** Name of the exact release you want to retrieve, eg. \"Release-161\", \"Release-162\". **start:** Start time of the particular release (as UNIX timestamp in milliseconds). **from:** Filters the releases to retrieve only the releases which have \"start\" time greater than or equal to this value (as UNIX timestamp in milliseconds). **to:** Filters the releases to retrieve only the releases which have \"start\" time lesser than or equal to this value (as UNIX timestamp in milliseconds). **maxResults:** Maximum number of releases to be retrieved. ## Defaults: **from, to, maxResults:** By default these parameters are not set.
|
|
471
|
+
|
|
472
|
+
:param var_from:
|
|
473
|
+
:type var_from: int
|
|
474
|
+
:param to:
|
|
475
|
+
:type to: int
|
|
476
|
+
:param max_results:
|
|
477
|
+
:type max_results: int
|
|
478
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
479
|
+
number provided, it will be total request
|
|
480
|
+
timeout. It can also be a pair (tuple) of
|
|
481
|
+
(connection, read) timeouts.
|
|
482
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
483
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
484
|
+
request; this effectively ignores the
|
|
485
|
+
authentication in the spec for a single request.
|
|
486
|
+
:type _request_auth: dict, optional
|
|
487
|
+
:param _content_type: force content-type for the request.
|
|
488
|
+
:type _content_type: str, Optional
|
|
489
|
+
:param _headers: set to override the headers for a single
|
|
490
|
+
request; this effectively ignores the headers
|
|
491
|
+
in the spec for a single request.
|
|
492
|
+
:type _headers: dict, optional
|
|
493
|
+
:param _host_index: set to override the host_index for a single
|
|
494
|
+
request; this effectively ignores the host_index
|
|
495
|
+
in the spec for a single request.
|
|
496
|
+
:type _host_index: int, optional
|
|
497
|
+
:return: Returns the result object.
|
|
498
|
+
""" # noqa: E501
|
|
499
|
+
|
|
500
|
+
_param = self._get_all_releases_serialize(
|
|
501
|
+
var_from=var_from,
|
|
502
|
+
to=to,
|
|
503
|
+
max_results=max_results,
|
|
504
|
+
_request_auth=_request_auth,
|
|
505
|
+
_content_type=_content_type,
|
|
506
|
+
_headers=_headers,
|
|
507
|
+
_host_index=_host_index
|
|
508
|
+
)
|
|
509
|
+
|
|
510
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
511
|
+
'200': "List[ReleaseWithMetadata]",
|
|
512
|
+
}
|
|
513
|
+
response_data = self.api_client.call_api(
|
|
514
|
+
*_param,
|
|
515
|
+
_request_timeout=_request_timeout
|
|
516
|
+
)
|
|
517
|
+
return response_data.response
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
def _get_all_releases_serialize(
|
|
521
|
+
self,
|
|
522
|
+
var_from,
|
|
523
|
+
to,
|
|
524
|
+
max_results,
|
|
525
|
+
_request_auth,
|
|
526
|
+
_content_type,
|
|
527
|
+
_headers,
|
|
528
|
+
_host_index,
|
|
529
|
+
) -> RequestSerialized:
|
|
530
|
+
|
|
531
|
+
_host = None
|
|
532
|
+
|
|
533
|
+
_collection_formats: Dict[str, str] = {
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
_path_params: Dict[str, str] = {}
|
|
537
|
+
_query_params: List[Tuple[str, str]] = []
|
|
538
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
539
|
+
_form_params: List[Tuple[str, str]] = []
|
|
540
|
+
_files: Dict[
|
|
541
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
542
|
+
] = {}
|
|
543
|
+
_body_params: Optional[bytes] = None
|
|
544
|
+
|
|
545
|
+
# process the path parameters
|
|
546
|
+
# process the query parameters
|
|
547
|
+
if var_from is not None:
|
|
548
|
+
|
|
549
|
+
_query_params.append(('from', var_from))
|
|
550
|
+
|
|
551
|
+
if to is not None:
|
|
552
|
+
|
|
553
|
+
_query_params.append(('to', to))
|
|
554
|
+
|
|
555
|
+
if max_results is not None:
|
|
556
|
+
|
|
557
|
+
_query_params.append(('maxResults', max_results))
|
|
558
|
+
|
|
559
|
+
# process the header parameters
|
|
560
|
+
# process the form parameters
|
|
561
|
+
# process the body parameter
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
# set the HTTP header `Accept`
|
|
565
|
+
if 'Accept' not in _header_params:
|
|
566
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
567
|
+
[
|
|
568
|
+
'application/json'
|
|
569
|
+
]
|
|
570
|
+
)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
# authentication setting
|
|
574
|
+
_auth_settings: List[str] = [
|
|
575
|
+
'ApiKeyAuth'
|
|
576
|
+
]
|
|
577
|
+
|
|
578
|
+
return self.api_client.param_serialize(
|
|
579
|
+
method='GET',
|
|
580
|
+
resource_path='/api/releases',
|
|
581
|
+
path_params=_path_params,
|
|
582
|
+
query_params=_query_params,
|
|
583
|
+
header_params=_header_params,
|
|
584
|
+
body=_body_params,
|
|
585
|
+
post_params=_form_params,
|
|
586
|
+
files=_files,
|
|
587
|
+
auth_settings=_auth_settings,
|
|
588
|
+
collection_formats=_collection_formats,
|
|
589
|
+
_host=_host,
|
|
590
|
+
_request_auth=_request_auth
|
|
591
|
+
)
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
@validate_call
|
|
597
|
+
def get_release(
|
|
598
|
+
self,
|
|
599
|
+
release_id: Annotated[StrictStr, Field(description="Release ID")],
|
|
600
|
+
_request_timeout: Union[
|
|
601
|
+
None,
|
|
602
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
603
|
+
Tuple[
|
|
604
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
605
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
606
|
+
]
|
|
607
|
+
] = None,
|
|
608
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
609
|
+
_content_type: Optional[StrictStr] = None,
|
|
610
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
611
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
612
|
+
) -> ReleaseWithMetadata:
|
|
613
|
+
"""Get release
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
:param release_id: Release ID (required)
|
|
617
|
+
:type release_id: str
|
|
618
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
619
|
+
number provided, it will be total request
|
|
620
|
+
timeout. It can also be a pair (tuple) of
|
|
621
|
+
(connection, read) timeouts.
|
|
622
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
623
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
624
|
+
request; this effectively ignores the
|
|
625
|
+
authentication in the spec for a single request.
|
|
626
|
+
:type _request_auth: dict, optional
|
|
627
|
+
:param _content_type: force content-type for the request.
|
|
628
|
+
:type _content_type: str, Optional
|
|
629
|
+
:param _headers: set to override the headers for a single
|
|
630
|
+
request; this effectively ignores the headers
|
|
631
|
+
in the spec for a single request.
|
|
632
|
+
:type _headers: dict, optional
|
|
633
|
+
:param _host_index: set to override the host_index for a single
|
|
634
|
+
request; this effectively ignores the host_index
|
|
635
|
+
in the spec for a single request.
|
|
636
|
+
:type _host_index: int, optional
|
|
637
|
+
:return: Returns the result object.
|
|
638
|
+
""" # noqa: E501
|
|
639
|
+
|
|
640
|
+
_param = self._get_release_serialize(
|
|
641
|
+
release_id=release_id,
|
|
642
|
+
_request_auth=_request_auth,
|
|
643
|
+
_content_type=_content_type,
|
|
644
|
+
_headers=_headers,
|
|
645
|
+
_host_index=_host_index
|
|
646
|
+
)
|
|
647
|
+
|
|
648
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
649
|
+
'200': "ReleaseWithMetadata",
|
|
650
|
+
}
|
|
651
|
+
response_data = self.api_client.call_api(
|
|
652
|
+
*_param,
|
|
653
|
+
_request_timeout=_request_timeout
|
|
654
|
+
)
|
|
655
|
+
response_data.read()
|
|
656
|
+
return self.api_client.response_deserialize(
|
|
657
|
+
response_data=response_data,
|
|
658
|
+
response_types_map=_response_types_map,
|
|
659
|
+
).data
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
@validate_call
|
|
663
|
+
def get_release_with_http_info(
|
|
664
|
+
self,
|
|
665
|
+
release_id: Annotated[StrictStr, Field(description="Release ID")],
|
|
666
|
+
_request_timeout: Union[
|
|
667
|
+
None,
|
|
668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
669
|
+
Tuple[
|
|
670
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
671
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
672
|
+
]
|
|
673
|
+
] = None,
|
|
674
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
675
|
+
_content_type: Optional[StrictStr] = None,
|
|
676
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
677
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
678
|
+
) -> ApiResponse[ReleaseWithMetadata]:
|
|
679
|
+
"""Get release
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
:param release_id: Release ID (required)
|
|
683
|
+
:type release_id: str
|
|
684
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
685
|
+
number provided, it will be total request
|
|
686
|
+
timeout. It can also be a pair (tuple) of
|
|
687
|
+
(connection, read) timeouts.
|
|
688
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
689
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
690
|
+
request; this effectively ignores the
|
|
691
|
+
authentication in the spec for a single request.
|
|
692
|
+
:type _request_auth: dict, optional
|
|
693
|
+
:param _content_type: force content-type for the request.
|
|
694
|
+
:type _content_type: str, Optional
|
|
695
|
+
:param _headers: set to override the headers for a single
|
|
696
|
+
request; this effectively ignores the headers
|
|
697
|
+
in the spec for a single request.
|
|
698
|
+
:type _headers: dict, optional
|
|
699
|
+
:param _host_index: set to override the host_index for a single
|
|
700
|
+
request; this effectively ignores the host_index
|
|
701
|
+
in the spec for a single request.
|
|
702
|
+
:type _host_index: int, optional
|
|
703
|
+
:return: Returns the result object.
|
|
704
|
+
""" # noqa: E501
|
|
705
|
+
|
|
706
|
+
_param = self._get_release_serialize(
|
|
707
|
+
release_id=release_id,
|
|
708
|
+
_request_auth=_request_auth,
|
|
709
|
+
_content_type=_content_type,
|
|
710
|
+
_headers=_headers,
|
|
711
|
+
_host_index=_host_index
|
|
712
|
+
)
|
|
713
|
+
|
|
714
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
715
|
+
'200': "ReleaseWithMetadata",
|
|
716
|
+
}
|
|
717
|
+
response_data = self.api_client.call_api(
|
|
718
|
+
*_param,
|
|
719
|
+
_request_timeout=_request_timeout
|
|
720
|
+
)
|
|
721
|
+
response_data.read()
|
|
722
|
+
return self.api_client.response_deserialize(
|
|
723
|
+
response_data=response_data,
|
|
724
|
+
response_types_map=_response_types_map,
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
@validate_call
|
|
729
|
+
def get_release_without_preload_content(
|
|
730
|
+
self,
|
|
731
|
+
release_id: Annotated[StrictStr, Field(description="Release ID")],
|
|
732
|
+
_request_timeout: Union[
|
|
733
|
+
None,
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
735
|
+
Tuple[
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
738
|
+
]
|
|
739
|
+
] = None,
|
|
740
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
741
|
+
_content_type: Optional[StrictStr] = None,
|
|
742
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
743
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
744
|
+
) -> RESTResponseType:
|
|
745
|
+
"""Get release
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
:param release_id: Release ID (required)
|
|
749
|
+
:type release_id: str
|
|
750
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
751
|
+
number provided, it will be total request
|
|
752
|
+
timeout. It can also be a pair (tuple) of
|
|
753
|
+
(connection, read) timeouts.
|
|
754
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
755
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
756
|
+
request; this effectively ignores the
|
|
757
|
+
authentication in the spec for a single request.
|
|
758
|
+
:type _request_auth: dict, optional
|
|
759
|
+
:param _content_type: force content-type for the request.
|
|
760
|
+
:type _content_type: str, Optional
|
|
761
|
+
:param _headers: set to override the headers for a single
|
|
762
|
+
request; this effectively ignores the headers
|
|
763
|
+
in the spec for a single request.
|
|
764
|
+
:type _headers: dict, optional
|
|
765
|
+
:param _host_index: set to override the host_index for a single
|
|
766
|
+
request; this effectively ignores the host_index
|
|
767
|
+
in the spec for a single request.
|
|
768
|
+
:type _host_index: int, optional
|
|
769
|
+
:return: Returns the result object.
|
|
770
|
+
""" # noqa: E501
|
|
771
|
+
|
|
772
|
+
_param = self._get_release_serialize(
|
|
773
|
+
release_id=release_id,
|
|
774
|
+
_request_auth=_request_auth,
|
|
775
|
+
_content_type=_content_type,
|
|
776
|
+
_headers=_headers,
|
|
777
|
+
_host_index=_host_index
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
781
|
+
'200': "ReleaseWithMetadata",
|
|
782
|
+
}
|
|
783
|
+
response_data = self.api_client.call_api(
|
|
784
|
+
*_param,
|
|
785
|
+
_request_timeout=_request_timeout
|
|
786
|
+
)
|
|
787
|
+
return response_data.response
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
def _get_release_serialize(
|
|
791
|
+
self,
|
|
792
|
+
release_id,
|
|
793
|
+
_request_auth,
|
|
794
|
+
_content_type,
|
|
795
|
+
_headers,
|
|
796
|
+
_host_index,
|
|
797
|
+
) -> RequestSerialized:
|
|
798
|
+
|
|
799
|
+
_host = None
|
|
800
|
+
|
|
801
|
+
_collection_formats: Dict[str, str] = {
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
_path_params: Dict[str, str] = {}
|
|
805
|
+
_query_params: List[Tuple[str, str]] = []
|
|
806
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
807
|
+
_form_params: List[Tuple[str, str]] = []
|
|
808
|
+
_files: Dict[
|
|
809
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
810
|
+
] = {}
|
|
811
|
+
_body_params: Optional[bytes] = None
|
|
812
|
+
|
|
813
|
+
# process the path parameters
|
|
814
|
+
if release_id is not None:
|
|
815
|
+
_path_params['releaseId'] = release_id
|
|
816
|
+
# process the query parameters
|
|
817
|
+
# process the header parameters
|
|
818
|
+
# process the form parameters
|
|
819
|
+
# process the body parameter
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
# set the HTTP header `Accept`
|
|
823
|
+
if 'Accept' not in _header_params:
|
|
824
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
825
|
+
[
|
|
826
|
+
'application/json'
|
|
827
|
+
]
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
# authentication setting
|
|
832
|
+
_auth_settings: List[str] = [
|
|
833
|
+
'ApiKeyAuth'
|
|
834
|
+
]
|
|
835
|
+
|
|
836
|
+
return self.api_client.param_serialize(
|
|
837
|
+
method='GET',
|
|
838
|
+
resource_path='/api/releases/{releaseId}',
|
|
839
|
+
path_params=_path_params,
|
|
840
|
+
query_params=_query_params,
|
|
841
|
+
header_params=_header_params,
|
|
842
|
+
body=_body_params,
|
|
843
|
+
post_params=_form_params,
|
|
844
|
+
files=_files,
|
|
845
|
+
auth_settings=_auth_settings,
|
|
846
|
+
collection_formats=_collection_formats,
|
|
847
|
+
_host=_host,
|
|
848
|
+
_request_auth=_request_auth
|
|
849
|
+
)
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
@validate_call
|
|
855
|
+
def post_release(
|
|
856
|
+
self,
|
|
857
|
+
release: Release,
|
|
858
|
+
_request_timeout: Union[
|
|
859
|
+
None,
|
|
860
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
861
|
+
Tuple[
|
|
862
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
863
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
864
|
+
]
|
|
865
|
+
] = None,
|
|
866
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
867
|
+
_content_type: Optional[StrictStr] = None,
|
|
868
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
869
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
870
|
+
) -> ReleaseWithMetadata:
|
|
871
|
+
"""Create release
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
:param release: (required)
|
|
875
|
+
:type release: Release
|
|
876
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
877
|
+
number provided, it will be total request
|
|
878
|
+
timeout. It can also be a pair (tuple) of
|
|
879
|
+
(connection, read) timeouts.
|
|
880
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
881
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
882
|
+
request; this effectively ignores the
|
|
883
|
+
authentication in the spec for a single request.
|
|
884
|
+
:type _request_auth: dict, optional
|
|
885
|
+
:param _content_type: force content-type for the request.
|
|
886
|
+
:type _content_type: str, Optional
|
|
887
|
+
:param _headers: set to override the headers for a single
|
|
888
|
+
request; this effectively ignores the headers
|
|
889
|
+
in the spec for a single request.
|
|
890
|
+
:type _headers: dict, optional
|
|
891
|
+
:param _host_index: set to override the host_index for a single
|
|
892
|
+
request; this effectively ignores the host_index
|
|
893
|
+
in the spec for a single request.
|
|
894
|
+
:type _host_index: int, optional
|
|
895
|
+
:return: Returns the result object.
|
|
896
|
+
""" # noqa: E501
|
|
897
|
+
|
|
898
|
+
_param = self._post_release_serialize(
|
|
899
|
+
release=release,
|
|
900
|
+
_request_auth=_request_auth,
|
|
901
|
+
_content_type=_content_type,
|
|
902
|
+
_headers=_headers,
|
|
903
|
+
_host_index=_host_index
|
|
904
|
+
)
|
|
905
|
+
|
|
906
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
907
|
+
'200': "ReleaseWithMetadata",
|
|
908
|
+
}
|
|
909
|
+
response_data = self.api_client.call_api(
|
|
910
|
+
*_param,
|
|
911
|
+
_request_timeout=_request_timeout
|
|
912
|
+
)
|
|
913
|
+
response_data.read()
|
|
914
|
+
return self.api_client.response_deserialize(
|
|
915
|
+
response_data=response_data,
|
|
916
|
+
response_types_map=_response_types_map,
|
|
917
|
+
).data
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
@validate_call
|
|
921
|
+
def post_release_with_http_info(
|
|
922
|
+
self,
|
|
923
|
+
release: Release,
|
|
924
|
+
_request_timeout: Union[
|
|
925
|
+
None,
|
|
926
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
927
|
+
Tuple[
|
|
928
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
929
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
930
|
+
]
|
|
931
|
+
] = None,
|
|
932
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
933
|
+
_content_type: Optional[StrictStr] = None,
|
|
934
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
935
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
936
|
+
) -> ApiResponse[ReleaseWithMetadata]:
|
|
937
|
+
"""Create release
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
:param release: (required)
|
|
941
|
+
:type release: Release
|
|
942
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
943
|
+
number provided, it will be total request
|
|
944
|
+
timeout. It can also be a pair (tuple) of
|
|
945
|
+
(connection, read) timeouts.
|
|
946
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
947
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
948
|
+
request; this effectively ignores the
|
|
949
|
+
authentication in the spec for a single request.
|
|
950
|
+
:type _request_auth: dict, optional
|
|
951
|
+
:param _content_type: force content-type for the request.
|
|
952
|
+
:type _content_type: str, Optional
|
|
953
|
+
:param _headers: set to override the headers for a single
|
|
954
|
+
request; this effectively ignores the headers
|
|
955
|
+
in the spec for a single request.
|
|
956
|
+
:type _headers: dict, optional
|
|
957
|
+
:param _host_index: set to override the host_index for a single
|
|
958
|
+
request; this effectively ignores the host_index
|
|
959
|
+
in the spec for a single request.
|
|
960
|
+
:type _host_index: int, optional
|
|
961
|
+
:return: Returns the result object.
|
|
962
|
+
""" # noqa: E501
|
|
963
|
+
|
|
964
|
+
_param = self._post_release_serialize(
|
|
965
|
+
release=release,
|
|
966
|
+
_request_auth=_request_auth,
|
|
967
|
+
_content_type=_content_type,
|
|
968
|
+
_headers=_headers,
|
|
969
|
+
_host_index=_host_index
|
|
970
|
+
)
|
|
971
|
+
|
|
972
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
973
|
+
'200': "ReleaseWithMetadata",
|
|
974
|
+
}
|
|
975
|
+
response_data = self.api_client.call_api(
|
|
976
|
+
*_param,
|
|
977
|
+
_request_timeout=_request_timeout
|
|
978
|
+
)
|
|
979
|
+
response_data.read()
|
|
980
|
+
return self.api_client.response_deserialize(
|
|
981
|
+
response_data=response_data,
|
|
982
|
+
response_types_map=_response_types_map,
|
|
983
|
+
)
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
@validate_call
|
|
987
|
+
def post_release_without_preload_content(
|
|
988
|
+
self,
|
|
989
|
+
release: Release,
|
|
990
|
+
_request_timeout: Union[
|
|
991
|
+
None,
|
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
993
|
+
Tuple[
|
|
994
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
995
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
996
|
+
]
|
|
997
|
+
] = None,
|
|
998
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
999
|
+
_content_type: Optional[StrictStr] = None,
|
|
1000
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1001
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1002
|
+
) -> RESTResponseType:
|
|
1003
|
+
"""Create release
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
:param release: (required)
|
|
1007
|
+
:type release: Release
|
|
1008
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1009
|
+
number provided, it will be total request
|
|
1010
|
+
timeout. It can also be a pair (tuple) of
|
|
1011
|
+
(connection, read) timeouts.
|
|
1012
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1013
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1014
|
+
request; this effectively ignores the
|
|
1015
|
+
authentication in the spec for a single request.
|
|
1016
|
+
:type _request_auth: dict, optional
|
|
1017
|
+
:param _content_type: force content-type for the request.
|
|
1018
|
+
:type _content_type: str, Optional
|
|
1019
|
+
:param _headers: set to override the headers for a single
|
|
1020
|
+
request; this effectively ignores the headers
|
|
1021
|
+
in the spec for a single request.
|
|
1022
|
+
:type _headers: dict, optional
|
|
1023
|
+
:param _host_index: set to override the host_index for a single
|
|
1024
|
+
request; this effectively ignores the host_index
|
|
1025
|
+
in the spec for a single request.
|
|
1026
|
+
:type _host_index: int, optional
|
|
1027
|
+
:return: Returns the result object.
|
|
1028
|
+
""" # noqa: E501
|
|
1029
|
+
|
|
1030
|
+
_param = self._post_release_serialize(
|
|
1031
|
+
release=release,
|
|
1032
|
+
_request_auth=_request_auth,
|
|
1033
|
+
_content_type=_content_type,
|
|
1034
|
+
_headers=_headers,
|
|
1035
|
+
_host_index=_host_index
|
|
1036
|
+
)
|
|
1037
|
+
|
|
1038
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1039
|
+
'200': "ReleaseWithMetadata",
|
|
1040
|
+
}
|
|
1041
|
+
response_data = self.api_client.call_api(
|
|
1042
|
+
*_param,
|
|
1043
|
+
_request_timeout=_request_timeout
|
|
1044
|
+
)
|
|
1045
|
+
return response_data.response
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
def _post_release_serialize(
|
|
1049
|
+
self,
|
|
1050
|
+
release,
|
|
1051
|
+
_request_auth,
|
|
1052
|
+
_content_type,
|
|
1053
|
+
_headers,
|
|
1054
|
+
_host_index,
|
|
1055
|
+
) -> RequestSerialized:
|
|
1056
|
+
|
|
1057
|
+
_host = None
|
|
1058
|
+
|
|
1059
|
+
_collection_formats: Dict[str, str] = {
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
_path_params: Dict[str, str] = {}
|
|
1063
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1064
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1065
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1066
|
+
_files: Dict[
|
|
1067
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1068
|
+
] = {}
|
|
1069
|
+
_body_params: Optional[bytes] = None
|
|
1070
|
+
|
|
1071
|
+
# process the path parameters
|
|
1072
|
+
# process the query parameters
|
|
1073
|
+
# process the header parameters
|
|
1074
|
+
# process the form parameters
|
|
1075
|
+
# process the body parameter
|
|
1076
|
+
if release is not None:
|
|
1077
|
+
_body_params = release
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
# set the HTTP header `Accept`
|
|
1081
|
+
if 'Accept' not in _header_params:
|
|
1082
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1083
|
+
[
|
|
1084
|
+
'application/json'
|
|
1085
|
+
]
|
|
1086
|
+
)
|
|
1087
|
+
|
|
1088
|
+
# set the HTTP header `Content-Type`
|
|
1089
|
+
if _content_type:
|
|
1090
|
+
_header_params['Content-Type'] = _content_type
|
|
1091
|
+
else:
|
|
1092
|
+
_default_content_type = (
|
|
1093
|
+
self.api_client.select_header_content_type(
|
|
1094
|
+
[
|
|
1095
|
+
'application/json'
|
|
1096
|
+
]
|
|
1097
|
+
)
|
|
1098
|
+
)
|
|
1099
|
+
if _default_content_type is not None:
|
|
1100
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1101
|
+
|
|
1102
|
+
# authentication setting
|
|
1103
|
+
_auth_settings: List[str] = [
|
|
1104
|
+
'ApiKeyAuth'
|
|
1105
|
+
]
|
|
1106
|
+
|
|
1107
|
+
return self.api_client.param_serialize(
|
|
1108
|
+
method='POST',
|
|
1109
|
+
resource_path='/api/releases',
|
|
1110
|
+
path_params=_path_params,
|
|
1111
|
+
query_params=_query_params,
|
|
1112
|
+
header_params=_header_params,
|
|
1113
|
+
body=_body_params,
|
|
1114
|
+
post_params=_form_params,
|
|
1115
|
+
files=_files,
|
|
1116
|
+
auth_settings=_auth_settings,
|
|
1117
|
+
collection_formats=_collection_formats,
|
|
1118
|
+
_host=_host,
|
|
1119
|
+
_request_auth=_request_auth
|
|
1120
|
+
)
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
@validate_call
|
|
1126
|
+
def put_release(
|
|
1127
|
+
self,
|
|
1128
|
+
release_id: StrictStr,
|
|
1129
|
+
release: Release,
|
|
1130
|
+
_request_timeout: Union[
|
|
1131
|
+
None,
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1133
|
+
Tuple[
|
|
1134
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1135
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1136
|
+
]
|
|
1137
|
+
] = None,
|
|
1138
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1139
|
+
_content_type: Optional[StrictStr] = None,
|
|
1140
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1141
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1142
|
+
) -> ReleaseWithMetadata:
|
|
1143
|
+
"""Update release
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
:param release_id: (required)
|
|
1147
|
+
:type release_id: str
|
|
1148
|
+
:param release: (required)
|
|
1149
|
+
:type release: Release
|
|
1150
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1151
|
+
number provided, it will be total request
|
|
1152
|
+
timeout. It can also be a pair (tuple) of
|
|
1153
|
+
(connection, read) timeouts.
|
|
1154
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1155
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1156
|
+
request; this effectively ignores the
|
|
1157
|
+
authentication in the spec for a single request.
|
|
1158
|
+
:type _request_auth: dict, optional
|
|
1159
|
+
:param _content_type: force content-type for the request.
|
|
1160
|
+
:type _content_type: str, Optional
|
|
1161
|
+
:param _headers: set to override the headers for a single
|
|
1162
|
+
request; this effectively ignores the headers
|
|
1163
|
+
in the spec for a single request.
|
|
1164
|
+
:type _headers: dict, optional
|
|
1165
|
+
:param _host_index: set to override the host_index for a single
|
|
1166
|
+
request; this effectively ignores the host_index
|
|
1167
|
+
in the spec for a single request.
|
|
1168
|
+
:type _host_index: int, optional
|
|
1169
|
+
:return: Returns the result object.
|
|
1170
|
+
""" # noqa: E501
|
|
1171
|
+
|
|
1172
|
+
_param = self._put_release_serialize(
|
|
1173
|
+
release_id=release_id,
|
|
1174
|
+
release=release,
|
|
1175
|
+
_request_auth=_request_auth,
|
|
1176
|
+
_content_type=_content_type,
|
|
1177
|
+
_headers=_headers,
|
|
1178
|
+
_host_index=_host_index
|
|
1179
|
+
)
|
|
1180
|
+
|
|
1181
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1182
|
+
'200': "ReleaseWithMetadata",
|
|
1183
|
+
}
|
|
1184
|
+
response_data = self.api_client.call_api(
|
|
1185
|
+
*_param,
|
|
1186
|
+
_request_timeout=_request_timeout
|
|
1187
|
+
)
|
|
1188
|
+
response_data.read()
|
|
1189
|
+
return self.api_client.response_deserialize(
|
|
1190
|
+
response_data=response_data,
|
|
1191
|
+
response_types_map=_response_types_map,
|
|
1192
|
+
).data
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
@validate_call
|
|
1196
|
+
def put_release_with_http_info(
|
|
1197
|
+
self,
|
|
1198
|
+
release_id: StrictStr,
|
|
1199
|
+
release: Release,
|
|
1200
|
+
_request_timeout: Union[
|
|
1201
|
+
None,
|
|
1202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1203
|
+
Tuple[
|
|
1204
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1205
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1206
|
+
]
|
|
1207
|
+
] = None,
|
|
1208
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1209
|
+
_content_type: Optional[StrictStr] = None,
|
|
1210
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1211
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1212
|
+
) -> ApiResponse[ReleaseWithMetadata]:
|
|
1213
|
+
"""Update release
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
:param release_id: (required)
|
|
1217
|
+
:type release_id: str
|
|
1218
|
+
:param release: (required)
|
|
1219
|
+
:type release: Release
|
|
1220
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1221
|
+
number provided, it will be total request
|
|
1222
|
+
timeout. It can also be a pair (tuple) of
|
|
1223
|
+
(connection, read) timeouts.
|
|
1224
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1225
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1226
|
+
request; this effectively ignores the
|
|
1227
|
+
authentication in the spec for a single request.
|
|
1228
|
+
:type _request_auth: dict, optional
|
|
1229
|
+
:param _content_type: force content-type for the request.
|
|
1230
|
+
:type _content_type: str, Optional
|
|
1231
|
+
:param _headers: set to override the headers for a single
|
|
1232
|
+
request; this effectively ignores the headers
|
|
1233
|
+
in the spec for a single request.
|
|
1234
|
+
:type _headers: dict, optional
|
|
1235
|
+
:param _host_index: set to override the host_index for a single
|
|
1236
|
+
request; this effectively ignores the host_index
|
|
1237
|
+
in the spec for a single request.
|
|
1238
|
+
:type _host_index: int, optional
|
|
1239
|
+
:return: Returns the result object.
|
|
1240
|
+
""" # noqa: E501
|
|
1241
|
+
|
|
1242
|
+
_param = self._put_release_serialize(
|
|
1243
|
+
release_id=release_id,
|
|
1244
|
+
release=release,
|
|
1245
|
+
_request_auth=_request_auth,
|
|
1246
|
+
_content_type=_content_type,
|
|
1247
|
+
_headers=_headers,
|
|
1248
|
+
_host_index=_host_index
|
|
1249
|
+
)
|
|
1250
|
+
|
|
1251
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1252
|
+
'200': "ReleaseWithMetadata",
|
|
1253
|
+
}
|
|
1254
|
+
response_data = self.api_client.call_api(
|
|
1255
|
+
*_param,
|
|
1256
|
+
_request_timeout=_request_timeout
|
|
1257
|
+
)
|
|
1258
|
+
response_data.read()
|
|
1259
|
+
return self.api_client.response_deserialize(
|
|
1260
|
+
response_data=response_data,
|
|
1261
|
+
response_types_map=_response_types_map,
|
|
1262
|
+
)
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
@validate_call
|
|
1266
|
+
def put_release_without_preload_content(
|
|
1267
|
+
self,
|
|
1268
|
+
release_id: StrictStr,
|
|
1269
|
+
release: Release,
|
|
1270
|
+
_request_timeout: Union[
|
|
1271
|
+
None,
|
|
1272
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1273
|
+
Tuple[
|
|
1274
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1276
|
+
]
|
|
1277
|
+
] = None,
|
|
1278
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1279
|
+
_content_type: Optional[StrictStr] = None,
|
|
1280
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1281
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1282
|
+
) -> RESTResponseType:
|
|
1283
|
+
"""Update release
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
:param release_id: (required)
|
|
1287
|
+
:type release_id: str
|
|
1288
|
+
:param release: (required)
|
|
1289
|
+
:type release: Release
|
|
1290
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1291
|
+
number provided, it will be total request
|
|
1292
|
+
timeout. It can also be a pair (tuple) of
|
|
1293
|
+
(connection, read) timeouts.
|
|
1294
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1295
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1296
|
+
request; this effectively ignores the
|
|
1297
|
+
authentication in the spec for a single request.
|
|
1298
|
+
:type _request_auth: dict, optional
|
|
1299
|
+
:param _content_type: force content-type for the request.
|
|
1300
|
+
:type _content_type: str, Optional
|
|
1301
|
+
:param _headers: set to override the headers for a single
|
|
1302
|
+
request; this effectively ignores the headers
|
|
1303
|
+
in the spec for a single request.
|
|
1304
|
+
:type _headers: dict, optional
|
|
1305
|
+
:param _host_index: set to override the host_index for a single
|
|
1306
|
+
request; this effectively ignores the host_index
|
|
1307
|
+
in the spec for a single request.
|
|
1308
|
+
:type _host_index: int, optional
|
|
1309
|
+
:return: Returns the result object.
|
|
1310
|
+
""" # noqa: E501
|
|
1311
|
+
|
|
1312
|
+
_param = self._put_release_serialize(
|
|
1313
|
+
release_id=release_id,
|
|
1314
|
+
release=release,
|
|
1315
|
+
_request_auth=_request_auth,
|
|
1316
|
+
_content_type=_content_type,
|
|
1317
|
+
_headers=_headers,
|
|
1318
|
+
_host_index=_host_index
|
|
1319
|
+
)
|
|
1320
|
+
|
|
1321
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1322
|
+
'200': "ReleaseWithMetadata",
|
|
1323
|
+
}
|
|
1324
|
+
response_data = self.api_client.call_api(
|
|
1325
|
+
*_param,
|
|
1326
|
+
_request_timeout=_request_timeout
|
|
1327
|
+
)
|
|
1328
|
+
return response_data.response
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
def _put_release_serialize(
|
|
1332
|
+
self,
|
|
1333
|
+
release_id,
|
|
1334
|
+
release,
|
|
1335
|
+
_request_auth,
|
|
1336
|
+
_content_type,
|
|
1337
|
+
_headers,
|
|
1338
|
+
_host_index,
|
|
1339
|
+
) -> RequestSerialized:
|
|
1340
|
+
|
|
1341
|
+
_host = None
|
|
1342
|
+
|
|
1343
|
+
_collection_formats: Dict[str, str] = {
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
_path_params: Dict[str, str] = {}
|
|
1347
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1348
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1349
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1350
|
+
_files: Dict[
|
|
1351
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1352
|
+
] = {}
|
|
1353
|
+
_body_params: Optional[bytes] = None
|
|
1354
|
+
|
|
1355
|
+
# process the path parameters
|
|
1356
|
+
if release_id is not None:
|
|
1357
|
+
_path_params['releaseId'] = release_id
|
|
1358
|
+
# process the query parameters
|
|
1359
|
+
# process the header parameters
|
|
1360
|
+
# process the form parameters
|
|
1361
|
+
# process the body parameter
|
|
1362
|
+
if release is not None:
|
|
1363
|
+
_body_params = release
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
# set the HTTP header `Accept`
|
|
1367
|
+
if 'Accept' not in _header_params:
|
|
1368
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1369
|
+
[
|
|
1370
|
+
'application/json'
|
|
1371
|
+
]
|
|
1372
|
+
)
|
|
1373
|
+
|
|
1374
|
+
# set the HTTP header `Content-Type`
|
|
1375
|
+
if _content_type:
|
|
1376
|
+
_header_params['Content-Type'] = _content_type
|
|
1377
|
+
else:
|
|
1378
|
+
_default_content_type = (
|
|
1379
|
+
self.api_client.select_header_content_type(
|
|
1380
|
+
[
|
|
1381
|
+
'application/json'
|
|
1382
|
+
]
|
|
1383
|
+
)
|
|
1384
|
+
)
|
|
1385
|
+
if _default_content_type is not None:
|
|
1386
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1387
|
+
|
|
1388
|
+
# authentication setting
|
|
1389
|
+
_auth_settings: List[str] = [
|
|
1390
|
+
'ApiKeyAuth'
|
|
1391
|
+
]
|
|
1392
|
+
|
|
1393
|
+
return self.api_client.param_serialize(
|
|
1394
|
+
method='PUT',
|
|
1395
|
+
resource_path='/api/releases/{releaseId}',
|
|
1396
|
+
path_params=_path_params,
|
|
1397
|
+
query_params=_query_params,
|
|
1398
|
+
header_params=_header_params,
|
|
1399
|
+
body=_body_params,
|
|
1400
|
+
post_params=_form_params,
|
|
1401
|
+
files=_files,
|
|
1402
|
+
auth_settings=_auth_settings,
|
|
1403
|
+
collection_formats=_collection_formats,
|
|
1404
|
+
_host=_host,
|
|
1405
|
+
_request_auth=_request_auth
|
|
1406
|
+
)
|
|
1407
|
+
|
|
1408
|
+
|