instana-client 1.0.0__py3-none-any.whl → 1.0.3__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 +91 -9
- instana_client/api/__init__.py +8 -0
- instana_client/api/action_catalog_api.py +329 -6
- instana_client/api/action_history_api.py +54 -2
- instana_client/api/ai_management_api.py +1973 -0
- instana_client/api/apdex_report_api.py +2 -2
- instana_client/api/apdex_settings_api.py +8 -9
- instana_client/api/api_token_api.py +23 -24
- instana_client/api/application_alert_configuration_api.py +79 -66
- instana_client/api/application_analyze_api.py +20 -282
- instana_client/api/application_catalog_api.py +11 -11
- instana_client/api/application_metrics_api.py +14 -14
- instana_client/api/application_resources_api.py +171 -44
- instana_client/api/application_settings_api.py +134 -104
- instana_client/api/application_topology_api.py +11 -2
- instana_client/api/audit_log_api.py +2 -2
- instana_client/api/authentication_api.py +14 -30
- instana_client/api/business_monitoring_api.py +2 -2
- instana_client/api/custom_dashboards_api.py +29 -19
- instana_client/api/custom_entities_api.py +1398 -0
- instana_client/api/end_user_monitoring_api.py +310 -0
- instana_client/api/event_settings_api.py +1365 -658
- instana_client/api/events_api.py +11 -26
- instana_client/api/global_application_alert_configuration_api.py +53 -56
- instana_client/api/groups_api.py +888 -87
- instana_client/api/health_api.py +8 -5
- instana_client/api/host_agent_api.py +274 -8
- instana_client/api/infrastructure_alert_configuration_api.py +50 -30
- instana_client/api/infrastructure_analyze_api.py +14 -14
- instana_client/api/infrastructure_catalog_api.py +44 -13
- instana_client/api/infrastructure_metrics_api.py +5 -5
- instana_client/api/infrastructure_resources_api.py +11 -11
- instana_client/api/infrastructure_topology_api.py +2 -2
- instana_client/api/log_alert_configuration_api.py +50 -30
- instana_client/api/logging_analyze_api.py +343 -0
- instana_client/api/maintenance_configuration_api.py +32 -20
- instana_client/api/mobile_app_analyze_api.py +2 -2
- instana_client/api/mobile_app_catalog_api.py +8 -2
- instana_client/api/mobile_app_configuration_api.py +3058 -334
- instana_client/api/mobile_app_metrics_api.py +3 -6
- instana_client/api/policies_api.py +14 -11
- instana_client/api/releases_api.py +8 -11
- instana_client/api/roles_api.py +1410 -0
- instana_client/api/service_levels_alert_configuration_api.py +2 -2
- instana_client/api/service_levels_objective_slo_configurations_api.py +211 -87
- instana_client/api/service_levels_objective_slo_report_api.py +38 -2
- instana_client/api/session_settings_api.py +2 -2
- instana_client/api/sli_report_api.py +2 -2
- instana_client/api/sli_settings_api.py +5 -8
- instana_client/api/slo_correction_configurations_api.py +1537 -0
- instana_client/api/slo_correction_windows_api.py +392 -0
- instana_client/api/synthetic_alert_configuration_api.py +53 -56
- instana_client/api/synthetic_calls_api.py +20 -9
- instana_client/api/synthetic_catalog_api.py +20 -2
- instana_client/api/synthetic_metrics_api.py +5 -5
- instana_client/api/synthetic_settings_api.py +1915 -477
- instana_client/api/synthetic_test_playback_results_api.py +307 -20
- instana_client/api/teams_api.py +1380 -0
- instana_client/api/usage_api.py +2 -2
- instana_client/api/user_api.py +41 -28
- instana_client/api/website_analyze_api.py +8 -8
- instana_client/api/website_catalog_api.py +11 -8
- instana_client/api/website_configuration_api.py +1801 -336
- instana_client/api/website_metrics_api.py +3 -3
- instana_client/api_client.py +3 -3
- instana_client/configuration.py +14 -7
- instana_client/exceptions.py +2 -2
- instana_client/models/__init__.py +626 -11
- instana_client/models/abstract_integration.py +11 -5
- instana_client/models/abstract_rule.py +2 -2
- instana_client/models/access_log_entry.py +12 -7
- instana_client/models/access_log_response.py +2 -2
- instana_client/models/access_rule.py +2 -2
- instana_client/models/action.py +2 -2
- instana_client/models/action_configuration.py +2 -2
- instana_client/models/action_instance.py +2 -2
- instana_client/models/action_instance_metadata_entry.py +2 -2
- instana_client/models/action_instance_parameter.py +2 -2
- instana_client/models/action_instance_request.py +2 -2
- instana_client/models/action_instance_request_parameters.py +2 -2
- instana_client/models/action_match.py +19 -6
- instana_client/models/action_search_space.py +2 -2
- instana_client/models/adaptive_baseline.py +3 -3
- instana_client/models/adaptive_threshold_rule.py +3 -3
- instana_client/models/addition.py +97 -0
- instana_client/models/adjusted_timeframe.py +2 -2
- instana_client/models/agent_configuration_update.py +2 -2
- instana_client/models/alerting_configuration.py +2 -2
- instana_client/models/alerting_configuration_with_last_updated.py +2 -2
- instana_client/models/alerting_time_window.py +2 -2
- instana_client/models/apdex_configuration.py +2 -2
- instana_client/models/apdex_configuration_input.py +2 -2
- instana_client/models/apdex_entity.py +2 -2
- instana_client/models/apdex_report.py +2 -2
- instana_client/models/api_create_group.py +2 -2
- instana_client/models/api_create_role.py +101 -0
- instana_client/models/api_group.py +2 -2
- instana_client/models/api_member.py +5 -3
- instana_client/models/api_permission_set.py +12 -3
- instana_client/models/api_restricted_application_filter.py +2 -2
- instana_client/models/api_role.py +102 -0
- instana_client/models/api_tag.py +91 -0
- instana_client/models/api_team.py +113 -0
- instana_client/models/api_team_info.py +89 -0
- instana_client/models/api_team_member.py +102 -0
- instana_client/models/api_team_role.py +92 -0
- instana_client/models/api_team_scope.py +131 -0
- instana_client/models/api_token.py +35 -5
- instana_client/models/app_data_metric_configuration.py +2 -2
- instana_client/models/application.py +2 -2
- instana_client/models/application_alert_config.py +2 -2
- instana_client/models/application_alert_config_with_metadata.py +2 -2
- instana_client/models/application_alert_rule.py +2 -2
- instana_client/models/application_apdex_entity.py +2 -2
- instana_client/models/application_config.py +2 -2
- instana_client/models/application_event_result.py +6 -7
- instana_client/models/application_item.py +2 -2
- instana_client/models/application_metric_result.py +2 -2
- instana_client/models/application_node.py +2 -2
- instana_client/models/application_result.py +2 -2
- instana_client/models/application_scope.py +4 -4
- instana_client/models/application_scope_with_metadata.py +6 -6
- instana_client/models/application_sli_entity.py +2 -2
- instana_client/models/application_slo_entity.py +2 -2
- instana_client/models/application_time_threshold.py +2 -2
- instana_client/models/arithmetic_configuration.py +123 -0
- instana_client/models/arithmetic_operand.py +154 -0
- instana_client/models/arithmetic_operation.py +128 -0
- instana_client/models/audit_log_entry.py +2 -2
- instana_client/models/audit_log_ui_response.py +2 -2
- instana_client/models/author.py +2 -2
- instana_client/models/availability_blueprint_indicator.py +5 -16
- instana_client/models/availability_sli_entity.py +2 -2
- instana_client/models/available_metrics.py +2 -2
- instana_client/models/available_plugins.py +2 -2
- instana_client/models/backend_trace_reference.py +2 -2
- instana_client/models/bidirectional_ms_teams_app_integration.py +108 -0
- instana_client/models/bidirectional_slack_app_integration.py +104 -0
- instana_client/models/binary_operator_dto.py +2 -2
- instana_client/models/browser_script_configuration.py +5 -3
- instana_client/models/browser_script_configuration_update.py +129 -0
- instana_client/models/built_in_event_specification.py +2 -2
- instana_client/models/built_in_event_specification_with_last_updated.py +2 -2
- instana_client/models/business_activity.py +5 -3
- instana_client/models/business_perspective_config.py +2 -2
- instana_client/models/call_groups_item.py +2 -2
- instana_client/models/call_groups_result.py +2 -2
- instana_client/models/call_relation.py +2 -2
- instana_client/models/change_summary.py +2 -2
- instana_client/models/cloudfoundry_physical_context.py +4 -4
- instana_client/models/condition.py +2 -2
- instana_client/models/config_version.py +2 -2
- instana_client/models/correction.py +105 -0
- instana_client/models/correction_configuration.py +110 -0
- instana_client/models/correction_scheduling.py +105 -0
- instana_client/models/correction_window.py +95 -0
- instana_client/models/crash_mobile_app_alert_rule.py +2 -2
- instana_client/models/create_website_request_inner.py +90 -0
- instana_client/models/cursor_paginated_business_activity_item.py +2 -2
- instana_client/models/cursor_pagination.py +2 -2
- instana_client/models/cursor_pagination_infra_explore_cursor.py +2 -2
- instana_client/models/custom_blueprint_indicator.py +8 -4
- instana_client/models/custom_dashboard.py +2 -2
- instana_client/models/custom_dashboard_preview.py +2 -2
- instana_client/models/custom_dashboard_with_user_specific_information.py +115 -0
- instana_client/models/custom_dependency.py +119 -0
- instana_client/models/custom_email_subject_prefix.py +2 -2
- instana_client/models/custom_entity_model.py +126 -0
- instana_client/models/custom_entity_with_metadata.py +98 -0
- instana_client/models/custom_event_mobile_app_alert_rule.py +2 -2
- instana_client/models/custom_event_specification.py +9 -3
- instana_client/models/custom_event_specification_with_last_updated.py +9 -3
- instana_client/models/custom_event_website_alert_rule.py +2 -2
- instana_client/models/custom_metric.py +134 -0
- instana_client/models/custom_payload_configuration.py +2 -2
- instana_client/models/custom_payload_field.py +2 -2
- instana_client/models/custom_payload_with_last_updated.py +2 -2
- instana_client/models/custom_payload_with_version.py +101 -0
- instana_client/models/dashboard_api_token.py +2 -2
- instana_client/models/database_integration.py +2 -2
- instana_client/models/deprecated_tag_filter.py +4 -4
- instana_client/models/division.py +97 -0
- instana_client/models/dns_configuration.py +146 -0
- instana_client/models/dns_configuration_update.py +143 -0
- instana_client/models/dns_filter_query_time.py +99 -0
- instana_client/models/dns_filter_target_value.py +106 -0
- instana_client/models/duration.py +2 -2
- instana_client/models/dynamic_field.py +2 -2
- instana_client/models/dynamic_field_value.py +2 -2
- instana_client/models/dynamic_parameter.py +2 -2
- instana_client/models/edit_user.py +2 -2
- instana_client/models/email_integration.py +2 -2
- instana_client/models/empty_configuration.py +2 -2
- instana_client/models/endpoint.py +4 -4
- instana_client/models/endpoint_config.py +2 -2
- instana_client/models/endpoint_event_result.py +8 -9
- instana_client/models/endpoint_item.py +2 -2
- instana_client/models/endpoint_metric_result.py +2 -2
- instana_client/models/endpoint_node.py +2 -2
- instana_client/models/endpoint_result.py +3 -3
- instana_client/models/endpoint_simple.py +3 -3
- instana_client/models/entity_count_rule.py +2 -2
- instana_client/models/entity_count_verification_rule.py +3 -3
- instana_client/models/entity_health_info.py +2 -2
- instana_client/models/entity_id.py +2 -2
- instana_client/models/entity_verification_rule.py +3 -3
- instana_client/models/error_budget_alert_rule.py +5 -5
- instana_client/models/errors_application_alert_rule.py +2 -2
- instana_client/models/event.py +11 -3
- instana_client/models/event_filtering_configuration.py +2 -2
- instana_client/models/event_result.py +4 -3
- instana_client/models/event_specification_info.py +2 -2
- instana_client/models/extended_service.py +2 -2
- instana_client/models/failure_synthetic_alert_rule.py +2 -2
- instana_client/models/fixed_http_path_segment_matching_rule.py +2 -2
- instana_client/models/fixed_time_window.py +4 -3
- instana_client/models/generic_infra_alert_rule.py +12 -4
- instana_client/models/geo_location_configuration.py +2 -2
- instana_client/models/geo_mapping_rule.py +2 -2
- instana_client/models/geo_subdivision.py +2 -2
- instana_client/models/get_activities.py +2 -2
- instana_client/models/get_application_metrics.py +2 -2
- instana_client/models/get_applications.py +2 -2
- instana_client/models/get_available_metrics_query.py +2 -2
- instana_client/models/get_available_plugins_query.py +2 -2
- instana_client/models/get_call_groups.py +2 -2
- instana_client/models/get_combined_metrics.py +2 -2
- instana_client/models/get_dynamic_parameter_values.py +2 -2
- instana_client/models/get_endpoints.py +2 -2
- instana_client/models/get_infrastructure_groups_query.py +2 -2
- instana_client/models/get_infrastructure_query.py +2 -2
- instana_client/models/get_metrics_result.py +2 -2
- instana_client/models/get_mobile_app_beacon_groups.py +2 -2
- instana_client/models/get_mobile_app_beacons.py +2 -2
- instana_client/models/get_mobile_app_metrics.py +2 -2
- instana_client/models/get_mobile_app_metrics_v2.py +2 -2
- instana_client/models/get_payload_keys_result.py +2 -2
- instana_client/models/get_services.py +2 -2
- instana_client/models/get_snapshots_query.py +2 -2
- instana_client/models/get_test_result.py +2 -2
- instana_client/models/get_test_result_analytic.py +126 -0
- instana_client/models/get_test_result_base.py +2 -2
- instana_client/models/get_test_result_list.py +2 -2
- instana_client/models/get_test_summary_result.py +2 -2
- instana_client/models/get_trace_download_result_item.py +3 -3
- instana_client/models/get_trace_groups.py +2 -2
- instana_client/models/get_traces.py +4 -4
- instana_client/models/get_website_beacon_groups.py +2 -2
- instana_client/models/get_website_beacons.py +2 -2
- instana_client/models/get_website_metrics.py +2 -2
- instana_client/models/get_website_metrics_v2.py +2 -2
- instana_client/models/global_application_alert_config_with_metadata.py +2 -2
- instana_client/models/global_applications_alert_config.py +2 -2
- instana_client/models/google_chat_integration.py +2 -2
- instana_client/models/graph_edge.py +2 -2
- instana_client/models/graph_node.py +2 -2
- instana_client/models/group.py +2 -2
- instana_client/models/group_by_tag.py +2 -2
- instana_client/models/group_mapping.py +5 -3
- instana_client/models/group_mapping_overview.py +96 -0
- instana_client/models/health_state.py +2 -2
- instana_client/models/historic_baseline.py +3 -3
- instana_client/models/host_availability_rule.py +2 -2
- instana_client/models/http_action_configuration.py +2 -2
- instana_client/models/http_action_configuration_update.py +138 -0
- instana_client/models/http_endpoint_config.py +2 -2
- instana_client/models/http_endpoint_rule.py +2 -2
- instana_client/models/http_path_segment_matching_rule.py +2 -2
- instana_client/models/http_script_configuration.py +5 -3
- instana_client/models/http_script_configuration_update.py +115 -0
- instana_client/models/hyper_param.py +2 -2
- instana_client/models/identity_provider_patch.py +2 -2
- instana_client/models/impacted_beacon_info.py +96 -0
- instana_client/models/infra_alert_config.py +8 -6
- instana_client/models/infra_alert_config_with_metadata.py +7 -5
- instana_client/models/infra_alert_rule.py +9 -3
- instana_client/models/infra_event_result.py +7 -8
- instana_client/models/infra_metric_configuration.py +103 -80
- instana_client/models/infra_slo_entity.py +95 -0
- instana_client/models/infra_time_threshold.py +2 -2
- instana_client/models/infrastructure_entities_result.py +2 -2
- instana_client/models/infrastructure_group.py +5 -3
- instana_client/models/infrastructure_groups_result.py +2 -2
- instana_client/models/infrastructure_item.py +2 -2
- instana_client/models/infrastructure_metric_result.py +2 -2
- instana_client/models/instana_version_info.py +2 -2
- instana_client/models/integration_overview.py +14 -4
- instana_client/models/invitation.py +6 -4
- instana_client/models/invitation_response.py +2 -2
- instana_client/models/invitation_result.py +2 -2
- instana_client/models/ip_masking_configuration.py +2 -2
- instana_client/models/js_stack_trace_line.py +2 -2
- instana_client/models/kubernetes_physical_context.py +3 -3
- instana_client/models/latency_blueprint_indicator.py +5 -16
- instana_client/models/llm_egress_gateway.py +124 -0
- instana_client/models/location_status.py +2 -2
- instana_client/models/log_alert_config.py +8 -6
- instana_client/models/log_alert_config_with_metadata.py +8 -6
- instana_client/models/log_alert_rule.py +2 -2
- instana_client/models/log_count_alert_rule.py +2 -2
- instana_client/models/log_entry_actor.py +2 -2
- instana_client/models/log_event_result.py +6 -7
- instana_client/models/log_time_threshold.py +2 -2
- instana_client/models/log_volume_group.py +91 -0
- instana_client/models/log_volume_usage_item.py +101 -0
- instana_client/models/log_volume_usage_result.py +96 -0
- instana_client/models/logs_application_alert_rule.py +4 -4
- instana_client/models/maintenance_config.py +2 -2
- instana_client/models/maintenance_config_scheduling.py +2 -2
- instana_client/models/maintenance_config_v2.py +2 -2
- instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +2 -2
- instana_client/models/maintenance_config_with_last_updated.py +2 -2
- instana_client/models/maintenance_window.py +2 -2
- instana_client/models/manual_alerting_channel_configuration.py +2 -2
- instana_client/models/manual_close_info.py +2 -2
- instana_client/models/manual_service_config.py +2 -2
- instana_client/models/match_all_http_path_segment_matching_rule.py +2 -2
- instana_client/models/match_expression_dto.py +3 -3
- instana_client/models/meta_data.py +2 -2
- instana_client/models/metric_api_result.py +2 -2
- instana_client/models/metric_config.py +2 -2
- instana_client/models/metric_configuration.py +3 -3
- instana_client/models/metric_description.py +2 -2
- instana_client/models/metric_instance.py +2 -2
- instana_client/models/metric_item.py +2 -2
- instana_client/models/metric_metadata.py +4 -4
- instana_client/models/metric_pattern.py +2 -2
- instana_client/models/metric_query.py +128 -0
- instana_client/models/metrics_result.py +2 -2
- instana_client/models/metrics_result_item.py +5 -3
- instana_client/models/metrics_test_result_item.py +2 -2
- instana_client/models/mobile_app.py +2 -2
- instana_client/models/mobile_app_alert_config.py +2 -2
- instana_client/models/mobile_app_alert_rule.py +8 -5
- instana_client/models/mobile_app_beacon_groups_item.py +2 -2
- instana_client/models/mobile_app_beacon_groups_result.py +2 -2
- instana_client/models/mobile_app_beacon_result.py +2 -2
- instana_client/models/mobile_app_beacon_tag_group.py +2 -2
- instana_client/models/mobile_app_beacons_item.py +11 -5
- instana_client/models/mobile_app_event_result.py +6 -7
- instana_client/models/mobile_app_metric_result.py +2 -2
- instana_client/models/mobile_app_monitoring_beacon.py +22 -4
- instana_client/models/mobile_app_monitoring_metric_description.py +5 -3
- instana_client/models/mobile_app_monitoring_metrics_configuration.py +2 -2
- instana_client/models/mobile_app_time_threshold.py +2 -2
- instana_client/models/model_field.py +2 -2
- instana_client/models/monitored_entities_stats.py +92 -0
- instana_client/models/monitoring_state.py +11 -3
- instana_client/models/multiple_scripts_configuration.py +2 -2
- instana_client/models/multiplication.py +97 -0
- instana_client/models/nested_operation.py +128 -0
- instana_client/models/new_application_config.py +2 -2
- instana_client/models/new_business_perspective_config.py +2 -2
- instana_client/models/new_manual_service_config.py +2 -2
- instana_client/models/o_auth_config.py +110 -0
- instana_client/models/o_auth_integration.py +98 -0
- instana_client/models/o_auth_token.py +111 -0
- instana_client/models/occurrence.py +2 -2
- instana_client/models/office365_integration.py +2 -2
- instana_client/models/one_time_maintenance_window.py +2 -2
- instana_client/models/opsgenie_integration.py +2 -2
- instana_client/models/order.py +2 -2
- instana_client/models/pagerduty_integration.py +2 -2
- instana_client/models/paginated_result.py +2 -2
- instana_client/models/pagination.py +2 -2
- instana_client/models/parameter.py +2 -2
- instana_client/models/parameter_value.py +2 -2
- instana_client/models/path_parameter_http_path_segment_matching_rule.py +2 -2
- instana_client/models/physical_context.py +3 -3
- instana_client/models/plugin_result.py +2 -2
- instana_client/models/policy.py +2 -2
- instana_client/models/policy_runnable.py +2 -2
- instana_client/models/policy_scheduling.py +91 -0
- instana_client/models/post_mobile_app_source_map_config_request.py +88 -0
- instana_client/models/post_snapshots_result.py +2 -2
- instana_client/models/problem.py +2 -2
- instana_client/models/prometheus_webhook_integration.py +2 -2
- instana_client/models/recurrent_maintenance_window.py +2 -2
- instana_client/models/release.py +6 -6
- instana_client/models/release_scope.py +2 -2
- instana_client/models/release_with_metadata.py +8 -8
- instana_client/models/retention_period.py +101 -0
- instana_client/models/rolling_time_window.py +4 -3
- instana_client/models/rule_input.py +2 -2
- instana_client/models/rule_with_threshold_application_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_infra_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_log_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +2 -2
- instana_client/models/rule_with_threshold_website_alert_rule.py +2 -2
- instana_client/models/run_configuration.py +2 -2
- instana_client/models/salesforce_integration.py +2 -2
- instana_client/models/saturation_blueprint_indicator.py +97 -0
- instana_client/models/scope_binding.py +2 -2
- instana_client/models/search_field_result.py +2 -2
- instana_client/models/service.py +3 -3
- instana_client/models/service_config.py +2 -2
- instana_client/models/service_event_result.py +6 -7
- instana_client/models/service_item.py +2 -2
- instana_client/models/service_level_indicator.py +10 -7
- instana_client/models/service_level_objective_alert_rule.py +2 -2
- instana_client/models/service_level_objective_configuration.py +3 -3
- instana_client/models/service_levels_alert_config.py +15 -5
- instana_client/models/service_levels_alert_rule.py +2 -2
- instana_client/models/service_levels_burn_rate_config.py +115 -0
- instana_client/models/service_levels_burn_rate_time_windows.py +2 -2
- instana_client/models/service_levels_static_threshold_config.py +100 -0
- instana_client/models/service_levels_time_threshold.py +5 -5
- instana_client/models/service_levelse_alert_config_with_metadata.py +15 -5
- instana_client/models/service_map.py +2 -2
- instana_client/models/service_map_connection.py +2 -2
- instana_client/models/service_matching_rule.py +2 -2
- instana_client/models/service_metric_result.py +2 -2
- instana_client/models/service_node.py +2 -2
- instana_client/models/service_now_enhanced_integration.py +2 -2
- instana_client/models/service_now_integration.py +2 -2
- instana_client/models/service_result.py +3 -3
- instana_client/models/service_scope.py +4 -4
- instana_client/models/service_scope_with_metadata.py +5 -5
- instana_client/models/service_scoped_to.py +3 -3
- instana_client/models/service_scoped_to_with_metadata.py +4 -4
- instana_client/models/service_simple.py +2 -2
- instana_client/models/session_settings.py +4 -4
- instana_client/models/simple_metric_configuration.py +123 -0
- instana_client/models/single_value.py +128 -0
- instana_client/models/slack_integration.py +2 -2
- instana_client/models/sli_configuration.py +2 -2
- instana_client/models/sli_configuration_with_last_updated.py +2 -2
- instana_client/models/sli_entity.py +2 -2
- instana_client/models/sli_report.py +2 -2
- instana_client/models/slo_config_with_rbac_tag.py +128 -0
- instana_client/models/slo_entity.py +8 -5
- instana_client/models/slo_report.py +2 -2
- instana_client/models/slowness_application_alert_rule.py +2 -2
- instana_client/models/slowness_mobile_app_alert_rule.py +90 -0
- instana_client/models/slowness_website_alert_rule.py +2 -2
- instana_client/models/snapshot_item.py +2 -2
- instana_client/models/snapshot_preview.py +7 -7
- instana_client/models/snapshot_result.py +2 -2
- instana_client/models/software_user.py +2 -2
- instana_client/models/software_version.py +2 -2
- instana_client/models/source_map_file_blob.py +2 -2
- instana_client/models/source_map_file_meta.py +2 -2
- instana_client/models/source_map_upload_config.py +2 -2
- instana_client/models/source_map_upload_configs.py +106 -0
- instana_client/models/span_excerpt.py +12 -12
- instana_client/models/span_relation.py +3 -3
- instana_client/models/specific_js_errors_website_alert_rule.py +4 -4
- instana_client/models/splunk_integration.py +2 -2
- instana_client/models/ssl_certificate_configuration.py +17 -5
- instana_client/models/ssl_certificate_configuration_update.py +107 -0
- instana_client/models/ssl_certificate_validation.py +99 -0
- instana_client/models/stack_trace_item.py +7 -7
- instana_client/models/stack_trace_line.py +2 -2
- instana_client/models/static_baseline_threshold_rule.py +3 -3
- instana_client/models/static_string_field.py +2 -2
- instana_client/models/static_threshold.py +2 -2
- instana_client/models/static_threshold_rule.py +2 -2
- instana_client/models/status_code_application_alert_rule.py +2 -2
- instana_client/models/status_code_mobile_app_alert_rule.py +4 -4
- instana_client/models/status_code_website_alert_rule.py +4 -4
- instana_client/models/subtraction.py +97 -0
- instana_client/models/synthetic_alert_config.py +2 -2
- instana_client/models/synthetic_alert_config_with_metadata.py +2 -2
- instana_client/models/synthetic_alert_rule.py +2 -2
- instana_client/models/synthetic_bulk_response.py +92 -0
- instana_client/models/synthetic_call_config.py +4 -4
- instana_client/models/synthetic_call_rule.py +6 -6
- instana_client/models/synthetic_call_with_defaults_config.py +4 -4
- instana_client/models/synthetic_configuration.py +93 -0
- instana_client/models/synthetic_configuration_update.py +95 -0
- instana_client/models/synthetic_credential.py +23 -3
- instana_client/models/synthetic_datacenter.py +2 -2
- instana_client/models/synthetic_datacenter_configuration.py +2 -2
- instana_client/models/synthetic_geo_point.py +2 -2
- instana_client/models/synthetic_location.py +2 -2
- instana_client/models/synthetic_location_configuration.py +2 -2
- instana_client/models/synthetic_metric_configuration.py +2 -2
- instana_client/models/synthetic_metric_tag_group.py +18 -5
- instana_client/models/synthetic_playback_capabilities.py +17 -4
- instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py +105 -0
- instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py +105 -0
- instana_client/models/synthetic_resource_update_list_string_list_string.py +90 -0
- instana_client/models/synthetic_resource_update_map_string_string_list_string.py +90 -0
- instana_client/models/synthetic_slo_entity.py +7 -5
- instana_client/models/synthetic_test.py +27 -3
- instana_client/models/synthetic_test_cicd.py +96 -0
- instana_client/models/synthetic_test_cicd_customization.py +96 -0
- instana_client/models/synthetic_test_cicd_item.py +114 -0
- instana_client/models/synthetic_test_cicd_response.py +92 -0
- instana_client/models/synthetic_test_deep_update.py +122 -0
- instana_client/models/synthetic_test_shallow_update.py +122 -0
- instana_client/models/synthetic_test_update.py +147 -0
- instana_client/models/synthetic_time_threshold.py +2 -2
- instana_client/models/synthetic_type_configuration.py +11 -11
- instana_client/models/synthetic_type_configuration_update.py +152 -0
- instana_client/models/synthetics_event_result.py +6 -7
- instana_client/models/system_rule.py +2 -2
- instana_client/models/system_rule_label.py +2 -2
- instana_client/models/tag.py +6 -6
- instana_client/models/tag_catalog.py +2 -2
- instana_client/models/tag_filter.py +22 -10
- instana_client/models/tag_filter_all_of_value.py +195 -0
- instana_client/models/tag_filter_expression.py +2 -2
- instana_client/models/tag_filter_expression_element.py +2 -2
- instana_client/models/tag_matcher_dto.py +2 -2
- instana_client/models/tag_tree_level.py +2 -2
- instana_client/models/tag_tree_node.py +2 -2
- instana_client/models/tag_tree_tag.py +2 -2
- instana_client/models/test_common_properties.py +2 -2
- instana_client/models/test_last_error.py +90 -0
- instana_client/models/test_result.py +2 -2
- instana_client/models/test_result_common_properties.py +24 -3
- instana_client/models/test_result_detail_data.py +2 -2
- instana_client/models/test_result_item.py +2 -2
- instana_client/models/test_result_list_item.py +2 -2
- instana_client/models/test_result_list_result.py +2 -2
- instana_client/models/test_result_metadata.py +2 -2
- instana_client/models/test_result_subtransaction.py +2 -2
- instana_client/models/threshold.py +2 -2
- instana_client/models/threshold_config_rule.py +2 -2
- instana_client/models/threshold_rule.py +2 -2
- instana_client/models/throughput_application_alert_rule.py +2 -2
- instana_client/models/throughput_mobile_app_alert_rule.py +2 -2
- instana_client/models/throughput_website_alert_rule.py +2 -2
- instana_client/models/time_frame.py +2 -2
- instana_client/models/time_window.py +5 -4
- instana_client/models/topology.py +2 -2
- instana_client/models/trace.py +8 -8
- instana_client/models/trace_activity_tree_node_details.py +27 -15
- instana_client/models/trace_download_result.py +2 -2
- instana_client/models/trace_groups_item.py +2 -2
- instana_client/models/trace_groups_result.py +2 -2
- instana_client/models/trace_impact_application_time_threshold.py +2 -2
- instana_client/models/trace_item.py +2 -2
- instana_client/models/trace_result.py +2 -2
- instana_client/models/traffic_blueprint_indicator.py +3 -3
- instana_client/models/trigger.py +15 -7
- instana_client/models/type_configuration.py +2 -2
- instana_client/models/unsupported_http_path_segment_matching_rule.py +2 -2
- instana_client/models/updated_business_perspective_config.py +2 -2
- instana_client/models/usage_result.py +2 -2
- instana_client/models/usage_result_items.py +2 -2
- instana_client/models/user_basic_result.py +2 -2
- instana_client/models/user_impact_mobile_app_time_threshold.py +3 -3
- instana_client/models/user_impact_website_time_threshold.py +3 -3
- instana_client/models/user_result.py +2 -2
- instana_client/models/users_result.py +2 -2
- instana_client/models/validated_alerting_channel_input_info.py +4 -4
- instana_client/models/validated_alerting_configuration.py +2 -2
- instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +2 -2
- instana_client/models/validated_maintenance_config_with_status.py +2 -2
- instana_client/models/victor_ops_integration.py +2 -2
- instana_client/models/violations_in_period_application_time_threshold.py +2 -2
- instana_client/models/violations_in_period_mobile_app_time_threshold.py +2 -2
- instana_client/models/violations_in_period_website_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_application_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_infra_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_log_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_synthetic_time_threshold.py +2 -2
- instana_client/models/violations_in_sequence_website_time_threshold.py +2 -2
- instana_client/models/watson_ai_ops_webhook_integration.py +2 -2
- instana_client/models/webex_teams_webhook_integration.py +2 -2
- instana_client/models/webhook_integration.py +14 -4
- instana_client/models/webpage_action_configuration.py +2 -2
- instana_client/models/webpage_action_configuration_update.py +109 -0
- instana_client/models/webpage_script_configuration.py +5 -3
- instana_client/models/webpage_script_configuration_update.py +111 -0
- instana_client/models/website.py +2 -2
- instana_client/models/website_alert_config.py +2 -2
- instana_client/models/website_alert_config_with_metadata.py +2 -2
- instana_client/models/website_alert_rule.py +2 -2
- instana_client/models/website_apdex_entity.py +2 -2
- instana_client/models/website_beacon_groups_item.py +2 -2
- instana_client/models/website_beacon_groups_result.py +2 -2
- instana_client/models/website_beacon_result.py +2 -2
- instana_client/models/website_beacon_tag_group.py +2 -2
- instana_client/models/website_beacons_item.py +11 -5
- instana_client/models/website_event_based_sli_entity.py +2 -2
- instana_client/models/website_event_result.py +5 -6
- instana_client/models/website_metric_result.py +2 -2
- instana_client/models/website_monitoring_beacon.py +7 -3
- instana_client/models/website_monitoring_metric_description.py +2 -2
- instana_client/models/website_monitoring_metrics_configuration.py +2 -2
- instana_client/models/website_slo_entity.py +2 -2
- instana_client/models/website_time_based_sli_entity.py +2 -2
- instana_client/models/website_time_threshold.py +2 -2
- instana_client/models/widget.py +2 -2
- instana_client/models/with_metadata.py +2 -2
- instana_client/models/with_resolved_name.py +2 -2
- instana_client/models/z_chat_ops_integration.py +2 -2
- instana_client/rest.py +3 -2
- instana_client-1.0.3.dist-info/METADATA +1097 -0
- instana_client-1.0.3.dist-info/RECORD +599 -0
- {instana_client-1.0.0.dist-info → instana_client-1.0.3.dist-info}/WHEEL +1 -1
- instana_client/models/dns_action_configuration.py +0 -134
- instana_client/models/dns_action_filter_query_time.py +0 -99
- instana_client/models/dns_action_filter_target_value.py +0 -106
- instana_client/models/full_trace.py +0 -97
- instana_client/models/span.py +0 -156
- instana_client-1.0.0.dist-info/METADATA +0 -25
- instana_client-1.0.0.dist-info/RECORD +0 -515
- {instana_client-1.0.0.dist-info → instana_client-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {instana_client-1.0.0.dist-info → instana_client-1.0.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1380 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Instana REST API documentation
|
|
5
|
+
|
|
6
|
+
Documentation for INSTANA REST API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.309.1268
|
|
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, StrictBool, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from instana_client.models.api_team import ApiTeam
|
|
24
|
+
|
|
25
|
+
from instana_client.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from instana_client.api_response import ApiResponse
|
|
27
|
+
from instana_client.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TeamsApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def create_team(
|
|
45
|
+
self,
|
|
46
|
+
api_team: Annotated[ApiTeam, Field(description="Team to create")],
|
|
47
|
+
_request_timeout: Union[
|
|
48
|
+
None,
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
+
) -> None:
|
|
60
|
+
"""Create team
|
|
61
|
+
|
|
62
|
+
Create a new team.
|
|
63
|
+
|
|
64
|
+
:param api_team: Team to create (required)
|
|
65
|
+
:type api_team: ApiTeam
|
|
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._create_team_serialize(
|
|
89
|
+
api_team=api_team,
|
|
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
|
+
'200': None,
|
|
98
|
+
}
|
|
99
|
+
response_data = self.api_client.call_api(
|
|
100
|
+
*_param,
|
|
101
|
+
_request_timeout=_request_timeout
|
|
102
|
+
)
|
|
103
|
+
response_data.read()
|
|
104
|
+
return self.api_client.response_deserialize(
|
|
105
|
+
response_data=response_data,
|
|
106
|
+
response_types_map=_response_types_map,
|
|
107
|
+
).data
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
@validate_call
|
|
111
|
+
def create_team_with_http_info(
|
|
112
|
+
self,
|
|
113
|
+
api_team: Annotated[ApiTeam, Field(description="Team to create")],
|
|
114
|
+
_request_timeout: Union[
|
|
115
|
+
None,
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Tuple[
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
120
|
+
]
|
|
121
|
+
] = None,
|
|
122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_content_type: Optional[StrictStr] = None,
|
|
124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
+
) -> ApiResponse[None]:
|
|
127
|
+
"""Create team
|
|
128
|
+
|
|
129
|
+
Create a new team.
|
|
130
|
+
|
|
131
|
+
:param api_team: Team to create (required)
|
|
132
|
+
:type api_team: ApiTeam
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._create_team_serialize(
|
|
156
|
+
api_team=api_team,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': None,
|
|
165
|
+
}
|
|
166
|
+
response_data = self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
170
|
+
response_data.read()
|
|
171
|
+
return self.api_client.response_deserialize(
|
|
172
|
+
response_data=response_data,
|
|
173
|
+
response_types_map=_response_types_map,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@validate_call
|
|
178
|
+
def create_team_without_preload_content(
|
|
179
|
+
self,
|
|
180
|
+
api_team: Annotated[ApiTeam, Field(description="Team to create")],
|
|
181
|
+
_request_timeout: Union[
|
|
182
|
+
None,
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Tuple[
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
187
|
+
]
|
|
188
|
+
] = None,
|
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
|
+
) -> RESTResponseType:
|
|
194
|
+
"""Create team
|
|
195
|
+
|
|
196
|
+
Create a new team.
|
|
197
|
+
|
|
198
|
+
:param api_team: Team to create (required)
|
|
199
|
+
:type api_team: ApiTeam
|
|
200
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
201
|
+
number provided, it will be total request
|
|
202
|
+
timeout. It can also be a pair (tuple) of
|
|
203
|
+
(connection, read) timeouts.
|
|
204
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
205
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
206
|
+
request; this effectively ignores the
|
|
207
|
+
authentication in the spec for a single request.
|
|
208
|
+
:type _request_auth: dict, optional
|
|
209
|
+
:param _content_type: force content-type for the request.
|
|
210
|
+
:type _content_type: str, Optional
|
|
211
|
+
:param _headers: set to override the headers for a single
|
|
212
|
+
request; this effectively ignores the headers
|
|
213
|
+
in the spec for a single request.
|
|
214
|
+
:type _headers: dict, optional
|
|
215
|
+
:param _host_index: set to override the host_index for a single
|
|
216
|
+
request; this effectively ignores the host_index
|
|
217
|
+
in the spec for a single request.
|
|
218
|
+
:type _host_index: int, optional
|
|
219
|
+
:return: Returns the result object.
|
|
220
|
+
""" # noqa: E501
|
|
221
|
+
|
|
222
|
+
_param = self._create_team_serialize(
|
|
223
|
+
api_team=api_team,
|
|
224
|
+
_request_auth=_request_auth,
|
|
225
|
+
_content_type=_content_type,
|
|
226
|
+
_headers=_headers,
|
|
227
|
+
_host_index=_host_index
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
231
|
+
'200': None,
|
|
232
|
+
}
|
|
233
|
+
response_data = self.api_client.call_api(
|
|
234
|
+
*_param,
|
|
235
|
+
_request_timeout=_request_timeout
|
|
236
|
+
)
|
|
237
|
+
return response_data.response
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def _create_team_serialize(
|
|
241
|
+
self,
|
|
242
|
+
api_team,
|
|
243
|
+
_request_auth,
|
|
244
|
+
_content_type,
|
|
245
|
+
_headers,
|
|
246
|
+
_host_index,
|
|
247
|
+
) -> RequestSerialized:
|
|
248
|
+
|
|
249
|
+
_host = None
|
|
250
|
+
|
|
251
|
+
_collection_formats: Dict[str, str] = {
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
_path_params: Dict[str, str] = {}
|
|
255
|
+
_query_params: List[Tuple[str, str]] = []
|
|
256
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
257
|
+
_form_params: List[Tuple[str, str]] = []
|
|
258
|
+
_files: Dict[
|
|
259
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
260
|
+
] = {}
|
|
261
|
+
_body_params: Optional[bytes] = None
|
|
262
|
+
|
|
263
|
+
# process the path parameters
|
|
264
|
+
# process the query parameters
|
|
265
|
+
# process the header parameters
|
|
266
|
+
# process the form parameters
|
|
267
|
+
# process the body parameter
|
|
268
|
+
if api_team is not None:
|
|
269
|
+
_body_params = api_team
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Content-Type`
|
|
274
|
+
if _content_type:
|
|
275
|
+
_header_params['Content-Type'] = _content_type
|
|
276
|
+
else:
|
|
277
|
+
_default_content_type = (
|
|
278
|
+
self.api_client.select_header_content_type(
|
|
279
|
+
[
|
|
280
|
+
'application/json'
|
|
281
|
+
]
|
|
282
|
+
)
|
|
283
|
+
)
|
|
284
|
+
if _default_content_type is not None:
|
|
285
|
+
_header_params['Content-Type'] = _default_content_type
|
|
286
|
+
|
|
287
|
+
# authentication setting
|
|
288
|
+
_auth_settings: List[str] = [
|
|
289
|
+
'ApiKeyAuth'
|
|
290
|
+
]
|
|
291
|
+
|
|
292
|
+
return self.api_client.param_serialize(
|
|
293
|
+
method='POST',
|
|
294
|
+
resource_path='/api/settings/rbac/teams',
|
|
295
|
+
path_params=_path_params,
|
|
296
|
+
query_params=_query_params,
|
|
297
|
+
header_params=_header_params,
|
|
298
|
+
body=_body_params,
|
|
299
|
+
post_params=_form_params,
|
|
300
|
+
files=_files,
|
|
301
|
+
auth_settings=_auth_settings,
|
|
302
|
+
collection_formats=_collection_formats,
|
|
303
|
+
_host=_host,
|
|
304
|
+
_request_auth=_request_auth
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
@validate_call
|
|
311
|
+
def delete_team(
|
|
312
|
+
self,
|
|
313
|
+
id: Annotated[StrictStr, Field(description="Id of the team to delete")],
|
|
314
|
+
_request_timeout: Union[
|
|
315
|
+
None,
|
|
316
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
317
|
+
Tuple[
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
319
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
320
|
+
]
|
|
321
|
+
] = None,
|
|
322
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
323
|
+
_content_type: Optional[StrictStr] = None,
|
|
324
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
325
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
326
|
+
) -> None:
|
|
327
|
+
"""Delete team
|
|
328
|
+
|
|
329
|
+
Delete the team data.
|
|
330
|
+
|
|
331
|
+
:param id: Id of the team to delete (required)
|
|
332
|
+
:type id: str
|
|
333
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
334
|
+
number provided, it will be total request
|
|
335
|
+
timeout. It can also be a pair (tuple) of
|
|
336
|
+
(connection, read) timeouts.
|
|
337
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
338
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
339
|
+
request; this effectively ignores the
|
|
340
|
+
authentication in the spec for a single request.
|
|
341
|
+
:type _request_auth: dict, optional
|
|
342
|
+
:param _content_type: force content-type for the request.
|
|
343
|
+
:type _content_type: str, Optional
|
|
344
|
+
:param _headers: set to override the headers for a single
|
|
345
|
+
request; this effectively ignores the headers
|
|
346
|
+
in the spec for a single request.
|
|
347
|
+
:type _headers: dict, optional
|
|
348
|
+
:param _host_index: set to override the host_index for a single
|
|
349
|
+
request; this effectively ignores the host_index
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _host_index: int, optional
|
|
352
|
+
:return: Returns the result object.
|
|
353
|
+
""" # noqa: E501
|
|
354
|
+
|
|
355
|
+
_param = self._delete_team_serialize(
|
|
356
|
+
id=id,
|
|
357
|
+
_request_auth=_request_auth,
|
|
358
|
+
_content_type=_content_type,
|
|
359
|
+
_headers=_headers,
|
|
360
|
+
_host_index=_host_index
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
364
|
+
}
|
|
365
|
+
response_data = self.api_client.call_api(
|
|
366
|
+
*_param,
|
|
367
|
+
_request_timeout=_request_timeout
|
|
368
|
+
)
|
|
369
|
+
response_data.read()
|
|
370
|
+
return self.api_client.response_deserialize(
|
|
371
|
+
response_data=response_data,
|
|
372
|
+
response_types_map=_response_types_map,
|
|
373
|
+
).data
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
@validate_call
|
|
377
|
+
def delete_team_with_http_info(
|
|
378
|
+
self,
|
|
379
|
+
id: Annotated[StrictStr, Field(description="Id of the team to delete")],
|
|
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[None]:
|
|
393
|
+
"""Delete team
|
|
394
|
+
|
|
395
|
+
Delete the team data.
|
|
396
|
+
|
|
397
|
+
:param id: Id of the team to delete (required)
|
|
398
|
+
:type id: str
|
|
399
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
400
|
+
number provided, it will be total request
|
|
401
|
+
timeout. It can also be a pair (tuple) of
|
|
402
|
+
(connection, read) timeouts.
|
|
403
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
404
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
405
|
+
request; this effectively ignores the
|
|
406
|
+
authentication in the spec for a single request.
|
|
407
|
+
:type _request_auth: dict, optional
|
|
408
|
+
:param _content_type: force content-type for the request.
|
|
409
|
+
:type _content_type: str, Optional
|
|
410
|
+
:param _headers: set to override the headers for a single
|
|
411
|
+
request; this effectively ignores the headers
|
|
412
|
+
in the spec for a single request.
|
|
413
|
+
:type _headers: dict, optional
|
|
414
|
+
:param _host_index: set to override the host_index for a single
|
|
415
|
+
request; this effectively ignores the host_index
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _host_index: int, optional
|
|
418
|
+
:return: Returns the result object.
|
|
419
|
+
""" # noqa: E501
|
|
420
|
+
|
|
421
|
+
_param = self._delete_team_serialize(
|
|
422
|
+
id=id,
|
|
423
|
+
_request_auth=_request_auth,
|
|
424
|
+
_content_type=_content_type,
|
|
425
|
+
_headers=_headers,
|
|
426
|
+
_host_index=_host_index
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
430
|
+
}
|
|
431
|
+
response_data = self.api_client.call_api(
|
|
432
|
+
*_param,
|
|
433
|
+
_request_timeout=_request_timeout
|
|
434
|
+
)
|
|
435
|
+
response_data.read()
|
|
436
|
+
return self.api_client.response_deserialize(
|
|
437
|
+
response_data=response_data,
|
|
438
|
+
response_types_map=_response_types_map,
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
@validate_call
|
|
443
|
+
def delete_team_without_preload_content(
|
|
444
|
+
self,
|
|
445
|
+
id: Annotated[StrictStr, Field(description="Id of the team to delete")],
|
|
446
|
+
_request_timeout: Union[
|
|
447
|
+
None,
|
|
448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
449
|
+
Tuple[
|
|
450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
452
|
+
]
|
|
453
|
+
] = None,
|
|
454
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
455
|
+
_content_type: Optional[StrictStr] = None,
|
|
456
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
457
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
458
|
+
) -> RESTResponseType:
|
|
459
|
+
"""Delete team
|
|
460
|
+
|
|
461
|
+
Delete the team data.
|
|
462
|
+
|
|
463
|
+
:param id: Id of the team to delete (required)
|
|
464
|
+
:type id: str
|
|
465
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
466
|
+
number provided, it will be total request
|
|
467
|
+
timeout. It can also be a pair (tuple) of
|
|
468
|
+
(connection, read) timeouts.
|
|
469
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
470
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
471
|
+
request; this effectively ignores the
|
|
472
|
+
authentication in the spec for a single request.
|
|
473
|
+
:type _request_auth: dict, optional
|
|
474
|
+
:param _content_type: force content-type for the request.
|
|
475
|
+
:type _content_type: str, Optional
|
|
476
|
+
:param _headers: set to override the headers for a single
|
|
477
|
+
request; this effectively ignores the headers
|
|
478
|
+
in the spec for a single request.
|
|
479
|
+
:type _headers: dict, optional
|
|
480
|
+
:param _host_index: set to override the host_index for a single
|
|
481
|
+
request; this effectively ignores the host_index
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _host_index: int, optional
|
|
484
|
+
:return: Returns the result object.
|
|
485
|
+
""" # noqa: E501
|
|
486
|
+
|
|
487
|
+
_param = self._delete_team_serialize(
|
|
488
|
+
id=id,
|
|
489
|
+
_request_auth=_request_auth,
|
|
490
|
+
_content_type=_content_type,
|
|
491
|
+
_headers=_headers,
|
|
492
|
+
_host_index=_host_index
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
496
|
+
}
|
|
497
|
+
response_data = self.api_client.call_api(
|
|
498
|
+
*_param,
|
|
499
|
+
_request_timeout=_request_timeout
|
|
500
|
+
)
|
|
501
|
+
return response_data.response
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
def _delete_team_serialize(
|
|
505
|
+
self,
|
|
506
|
+
id,
|
|
507
|
+
_request_auth,
|
|
508
|
+
_content_type,
|
|
509
|
+
_headers,
|
|
510
|
+
_host_index,
|
|
511
|
+
) -> RequestSerialized:
|
|
512
|
+
|
|
513
|
+
_host = None
|
|
514
|
+
|
|
515
|
+
_collection_formats: Dict[str, str] = {
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
_path_params: Dict[str, str] = {}
|
|
519
|
+
_query_params: List[Tuple[str, str]] = []
|
|
520
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
521
|
+
_form_params: List[Tuple[str, str]] = []
|
|
522
|
+
_files: Dict[
|
|
523
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
524
|
+
] = {}
|
|
525
|
+
_body_params: Optional[bytes] = None
|
|
526
|
+
|
|
527
|
+
# process the path parameters
|
|
528
|
+
if id is not None:
|
|
529
|
+
_path_params['id'] = id
|
|
530
|
+
# process the query parameters
|
|
531
|
+
# process the header parameters
|
|
532
|
+
# process the form parameters
|
|
533
|
+
# process the body parameter
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
# set the HTTP header `Accept`
|
|
537
|
+
if 'Accept' not in _header_params:
|
|
538
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
539
|
+
[
|
|
540
|
+
'application/json'
|
|
541
|
+
]
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
# authentication setting
|
|
546
|
+
_auth_settings: List[str] = [
|
|
547
|
+
'ApiKeyAuth'
|
|
548
|
+
]
|
|
549
|
+
|
|
550
|
+
return self.api_client.param_serialize(
|
|
551
|
+
method='DELETE',
|
|
552
|
+
resource_path='/api/settings/rbac/teams/{id}',
|
|
553
|
+
path_params=_path_params,
|
|
554
|
+
query_params=_query_params,
|
|
555
|
+
header_params=_header_params,
|
|
556
|
+
body=_body_params,
|
|
557
|
+
post_params=_form_params,
|
|
558
|
+
files=_files,
|
|
559
|
+
auth_settings=_auth_settings,
|
|
560
|
+
collection_formats=_collection_formats,
|
|
561
|
+
_host=_host,
|
|
562
|
+
_request_auth=_request_auth
|
|
563
|
+
)
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
@validate_call
|
|
569
|
+
def get_team(
|
|
570
|
+
self,
|
|
571
|
+
id: Annotated[StrictStr, Field(description="Id of the team for retrieval")],
|
|
572
|
+
include_team_usage: Optional[StrictBool] = None,
|
|
573
|
+
_request_timeout: Union[
|
|
574
|
+
None,
|
|
575
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
576
|
+
Tuple[
|
|
577
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
578
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
579
|
+
]
|
|
580
|
+
] = None,
|
|
581
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
582
|
+
_content_type: Optional[StrictStr] = None,
|
|
583
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
584
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
585
|
+
) -> ApiTeam:
|
|
586
|
+
"""Get team by ID
|
|
587
|
+
|
|
588
|
+
Retrieve a specific team by its ID.
|
|
589
|
+
|
|
590
|
+
:param id: Id of the team for retrieval (required)
|
|
591
|
+
:type id: str
|
|
592
|
+
:param include_team_usage:
|
|
593
|
+
:type include_team_usage: bool
|
|
594
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
595
|
+
number provided, it will be total request
|
|
596
|
+
timeout. It can also be a pair (tuple) of
|
|
597
|
+
(connection, read) timeouts.
|
|
598
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
599
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
600
|
+
request; this effectively ignores the
|
|
601
|
+
authentication in the spec for a single request.
|
|
602
|
+
:type _request_auth: dict, optional
|
|
603
|
+
:param _content_type: force content-type for the request.
|
|
604
|
+
:type _content_type: str, Optional
|
|
605
|
+
:param _headers: set to override the headers for a single
|
|
606
|
+
request; this effectively ignores the headers
|
|
607
|
+
in the spec for a single request.
|
|
608
|
+
:type _headers: dict, optional
|
|
609
|
+
:param _host_index: set to override the host_index for a single
|
|
610
|
+
request; this effectively ignores the host_index
|
|
611
|
+
in the spec for a single request.
|
|
612
|
+
:type _host_index: int, optional
|
|
613
|
+
:return: Returns the result object.
|
|
614
|
+
""" # noqa: E501
|
|
615
|
+
|
|
616
|
+
_param = self._get_team_serialize(
|
|
617
|
+
id=id,
|
|
618
|
+
include_team_usage=include_team_usage,
|
|
619
|
+
_request_auth=_request_auth,
|
|
620
|
+
_content_type=_content_type,
|
|
621
|
+
_headers=_headers,
|
|
622
|
+
_host_index=_host_index
|
|
623
|
+
)
|
|
624
|
+
|
|
625
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
626
|
+
'200': "ApiTeam",
|
|
627
|
+
'404': None,
|
|
628
|
+
}
|
|
629
|
+
response_data = self.api_client.call_api(
|
|
630
|
+
*_param,
|
|
631
|
+
_request_timeout=_request_timeout
|
|
632
|
+
)
|
|
633
|
+
response_data.read()
|
|
634
|
+
return self.api_client.response_deserialize(
|
|
635
|
+
response_data=response_data,
|
|
636
|
+
response_types_map=_response_types_map,
|
|
637
|
+
).data
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
@validate_call
|
|
641
|
+
def get_team_with_http_info(
|
|
642
|
+
self,
|
|
643
|
+
id: Annotated[StrictStr, Field(description="Id of the team for retrieval")],
|
|
644
|
+
include_team_usage: Optional[StrictBool] = None,
|
|
645
|
+
_request_timeout: Union[
|
|
646
|
+
None,
|
|
647
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
648
|
+
Tuple[
|
|
649
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
650
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
651
|
+
]
|
|
652
|
+
] = None,
|
|
653
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
654
|
+
_content_type: Optional[StrictStr] = None,
|
|
655
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
656
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
657
|
+
) -> ApiResponse[ApiTeam]:
|
|
658
|
+
"""Get team by ID
|
|
659
|
+
|
|
660
|
+
Retrieve a specific team by its ID.
|
|
661
|
+
|
|
662
|
+
:param id: Id of the team for retrieval (required)
|
|
663
|
+
:type id: str
|
|
664
|
+
:param include_team_usage:
|
|
665
|
+
:type include_team_usage: bool
|
|
666
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
667
|
+
number provided, it will be total request
|
|
668
|
+
timeout. It can also be a pair (tuple) of
|
|
669
|
+
(connection, read) timeouts.
|
|
670
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
671
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
672
|
+
request; this effectively ignores the
|
|
673
|
+
authentication in the spec for a single request.
|
|
674
|
+
:type _request_auth: dict, optional
|
|
675
|
+
:param _content_type: force content-type for the request.
|
|
676
|
+
:type _content_type: str, Optional
|
|
677
|
+
:param _headers: set to override the headers for a single
|
|
678
|
+
request; this effectively ignores the headers
|
|
679
|
+
in the spec for a single request.
|
|
680
|
+
:type _headers: dict, optional
|
|
681
|
+
:param _host_index: set to override the host_index for a single
|
|
682
|
+
request; this effectively ignores the host_index
|
|
683
|
+
in the spec for a single request.
|
|
684
|
+
:type _host_index: int, optional
|
|
685
|
+
:return: Returns the result object.
|
|
686
|
+
""" # noqa: E501
|
|
687
|
+
|
|
688
|
+
_param = self._get_team_serialize(
|
|
689
|
+
id=id,
|
|
690
|
+
include_team_usage=include_team_usage,
|
|
691
|
+
_request_auth=_request_auth,
|
|
692
|
+
_content_type=_content_type,
|
|
693
|
+
_headers=_headers,
|
|
694
|
+
_host_index=_host_index
|
|
695
|
+
)
|
|
696
|
+
|
|
697
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
698
|
+
'200': "ApiTeam",
|
|
699
|
+
'404': None,
|
|
700
|
+
}
|
|
701
|
+
response_data = self.api_client.call_api(
|
|
702
|
+
*_param,
|
|
703
|
+
_request_timeout=_request_timeout
|
|
704
|
+
)
|
|
705
|
+
response_data.read()
|
|
706
|
+
return self.api_client.response_deserialize(
|
|
707
|
+
response_data=response_data,
|
|
708
|
+
response_types_map=_response_types_map,
|
|
709
|
+
)
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
@validate_call
|
|
713
|
+
def get_team_without_preload_content(
|
|
714
|
+
self,
|
|
715
|
+
id: Annotated[StrictStr, Field(description="Id of the team for retrieval")],
|
|
716
|
+
include_team_usage: Optional[StrictBool] = None,
|
|
717
|
+
_request_timeout: Union[
|
|
718
|
+
None,
|
|
719
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
720
|
+
Tuple[
|
|
721
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
722
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
723
|
+
]
|
|
724
|
+
] = None,
|
|
725
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
726
|
+
_content_type: Optional[StrictStr] = None,
|
|
727
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
728
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
729
|
+
) -> RESTResponseType:
|
|
730
|
+
"""Get team by ID
|
|
731
|
+
|
|
732
|
+
Retrieve a specific team by its ID.
|
|
733
|
+
|
|
734
|
+
:param id: Id of the team for retrieval (required)
|
|
735
|
+
:type id: str
|
|
736
|
+
:param include_team_usage:
|
|
737
|
+
:type include_team_usage: bool
|
|
738
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
739
|
+
number provided, it will be total request
|
|
740
|
+
timeout. It can also be a pair (tuple) of
|
|
741
|
+
(connection, read) timeouts.
|
|
742
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
743
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
744
|
+
request; this effectively ignores the
|
|
745
|
+
authentication in the spec for a single request.
|
|
746
|
+
:type _request_auth: dict, optional
|
|
747
|
+
:param _content_type: force content-type for the request.
|
|
748
|
+
:type _content_type: str, Optional
|
|
749
|
+
:param _headers: set to override the headers for a single
|
|
750
|
+
request; this effectively ignores the headers
|
|
751
|
+
in the spec for a single request.
|
|
752
|
+
:type _headers: dict, optional
|
|
753
|
+
:param _host_index: set to override the host_index for a single
|
|
754
|
+
request; this effectively ignores the host_index
|
|
755
|
+
in the spec for a single request.
|
|
756
|
+
:type _host_index: int, optional
|
|
757
|
+
:return: Returns the result object.
|
|
758
|
+
""" # noqa: E501
|
|
759
|
+
|
|
760
|
+
_param = self._get_team_serialize(
|
|
761
|
+
id=id,
|
|
762
|
+
include_team_usage=include_team_usage,
|
|
763
|
+
_request_auth=_request_auth,
|
|
764
|
+
_content_type=_content_type,
|
|
765
|
+
_headers=_headers,
|
|
766
|
+
_host_index=_host_index
|
|
767
|
+
)
|
|
768
|
+
|
|
769
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
770
|
+
'200': "ApiTeam",
|
|
771
|
+
'404': None,
|
|
772
|
+
}
|
|
773
|
+
response_data = self.api_client.call_api(
|
|
774
|
+
*_param,
|
|
775
|
+
_request_timeout=_request_timeout
|
|
776
|
+
)
|
|
777
|
+
return response_data.response
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
def _get_team_serialize(
|
|
781
|
+
self,
|
|
782
|
+
id,
|
|
783
|
+
include_team_usage,
|
|
784
|
+
_request_auth,
|
|
785
|
+
_content_type,
|
|
786
|
+
_headers,
|
|
787
|
+
_host_index,
|
|
788
|
+
) -> RequestSerialized:
|
|
789
|
+
|
|
790
|
+
_host = None
|
|
791
|
+
|
|
792
|
+
_collection_formats: Dict[str, str] = {
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
_path_params: Dict[str, str] = {}
|
|
796
|
+
_query_params: List[Tuple[str, str]] = []
|
|
797
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
798
|
+
_form_params: List[Tuple[str, str]] = []
|
|
799
|
+
_files: Dict[
|
|
800
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
801
|
+
] = {}
|
|
802
|
+
_body_params: Optional[bytes] = None
|
|
803
|
+
|
|
804
|
+
# process the path parameters
|
|
805
|
+
if id is not None:
|
|
806
|
+
_path_params['id'] = id
|
|
807
|
+
# process the query parameters
|
|
808
|
+
if include_team_usage is not None:
|
|
809
|
+
|
|
810
|
+
_query_params.append(('includeTeamUsage', include_team_usage))
|
|
811
|
+
|
|
812
|
+
# process the header parameters
|
|
813
|
+
# process the form parameters
|
|
814
|
+
# process the body parameter
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
# set the HTTP header `Accept`
|
|
818
|
+
if 'Accept' not in _header_params:
|
|
819
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
820
|
+
[
|
|
821
|
+
'application/json'
|
|
822
|
+
]
|
|
823
|
+
)
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
# authentication setting
|
|
827
|
+
_auth_settings: List[str] = [
|
|
828
|
+
'ApiKeyAuth'
|
|
829
|
+
]
|
|
830
|
+
|
|
831
|
+
return self.api_client.param_serialize(
|
|
832
|
+
method='GET',
|
|
833
|
+
resource_path='/api/settings/rbac/teams/{id}',
|
|
834
|
+
path_params=_path_params,
|
|
835
|
+
query_params=_query_params,
|
|
836
|
+
header_params=_header_params,
|
|
837
|
+
body=_body_params,
|
|
838
|
+
post_params=_form_params,
|
|
839
|
+
files=_files,
|
|
840
|
+
auth_settings=_auth_settings,
|
|
841
|
+
collection_formats=_collection_formats,
|
|
842
|
+
_host=_host,
|
|
843
|
+
_request_auth=_request_auth
|
|
844
|
+
)
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
@validate_call
|
|
850
|
+
def get_teams(
|
|
851
|
+
self,
|
|
852
|
+
_request_timeout: Union[
|
|
853
|
+
None,
|
|
854
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
855
|
+
Tuple[
|
|
856
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
857
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
858
|
+
]
|
|
859
|
+
] = None,
|
|
860
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
861
|
+
_content_type: Optional[StrictStr] = None,
|
|
862
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
863
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
864
|
+
) -> List[ApiTeam]:
|
|
865
|
+
"""Get all teams
|
|
866
|
+
|
|
867
|
+
Retrieve all user teams for the current tenant unit.
|
|
868
|
+
|
|
869
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
870
|
+
number provided, it will be total request
|
|
871
|
+
timeout. It can also be a pair (tuple) of
|
|
872
|
+
(connection, read) timeouts.
|
|
873
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
874
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
875
|
+
request; this effectively ignores the
|
|
876
|
+
authentication in the spec for a single request.
|
|
877
|
+
:type _request_auth: dict, optional
|
|
878
|
+
:param _content_type: force content-type for the request.
|
|
879
|
+
:type _content_type: str, Optional
|
|
880
|
+
:param _headers: set to override the headers for a single
|
|
881
|
+
request; this effectively ignores the headers
|
|
882
|
+
in the spec for a single request.
|
|
883
|
+
:type _headers: dict, optional
|
|
884
|
+
:param _host_index: set to override the host_index for a single
|
|
885
|
+
request; this effectively ignores the host_index
|
|
886
|
+
in the spec for a single request.
|
|
887
|
+
:type _host_index: int, optional
|
|
888
|
+
:return: Returns the result object.
|
|
889
|
+
""" # noqa: E501
|
|
890
|
+
|
|
891
|
+
_param = self._get_teams_serialize(
|
|
892
|
+
_request_auth=_request_auth,
|
|
893
|
+
_content_type=_content_type,
|
|
894
|
+
_headers=_headers,
|
|
895
|
+
_host_index=_host_index
|
|
896
|
+
)
|
|
897
|
+
|
|
898
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
899
|
+
'200': "List[ApiTeam]",
|
|
900
|
+
'404': None,
|
|
901
|
+
}
|
|
902
|
+
response_data = self.api_client.call_api(
|
|
903
|
+
*_param,
|
|
904
|
+
_request_timeout=_request_timeout
|
|
905
|
+
)
|
|
906
|
+
response_data.read()
|
|
907
|
+
return self.api_client.response_deserialize(
|
|
908
|
+
response_data=response_data,
|
|
909
|
+
response_types_map=_response_types_map,
|
|
910
|
+
).data
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
@validate_call
|
|
914
|
+
def get_teams_with_http_info(
|
|
915
|
+
self,
|
|
916
|
+
_request_timeout: Union[
|
|
917
|
+
None,
|
|
918
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
919
|
+
Tuple[
|
|
920
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
921
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
922
|
+
]
|
|
923
|
+
] = None,
|
|
924
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
925
|
+
_content_type: Optional[StrictStr] = None,
|
|
926
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
927
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
928
|
+
) -> ApiResponse[List[ApiTeam]]:
|
|
929
|
+
"""Get all teams
|
|
930
|
+
|
|
931
|
+
Retrieve all user teams for the current tenant unit.
|
|
932
|
+
|
|
933
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
934
|
+
number provided, it will be total request
|
|
935
|
+
timeout. It can also be a pair (tuple) of
|
|
936
|
+
(connection, read) timeouts.
|
|
937
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
938
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
939
|
+
request; this effectively ignores the
|
|
940
|
+
authentication in the spec for a single request.
|
|
941
|
+
:type _request_auth: dict, optional
|
|
942
|
+
:param _content_type: force content-type for the request.
|
|
943
|
+
:type _content_type: str, Optional
|
|
944
|
+
:param _headers: set to override the headers for a single
|
|
945
|
+
request; this effectively ignores the headers
|
|
946
|
+
in the spec for a single request.
|
|
947
|
+
:type _headers: dict, optional
|
|
948
|
+
:param _host_index: set to override the host_index for a single
|
|
949
|
+
request; this effectively ignores the host_index
|
|
950
|
+
in the spec for a single request.
|
|
951
|
+
:type _host_index: int, optional
|
|
952
|
+
:return: Returns the result object.
|
|
953
|
+
""" # noqa: E501
|
|
954
|
+
|
|
955
|
+
_param = self._get_teams_serialize(
|
|
956
|
+
_request_auth=_request_auth,
|
|
957
|
+
_content_type=_content_type,
|
|
958
|
+
_headers=_headers,
|
|
959
|
+
_host_index=_host_index
|
|
960
|
+
)
|
|
961
|
+
|
|
962
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
963
|
+
'200': "List[ApiTeam]",
|
|
964
|
+
'404': None,
|
|
965
|
+
}
|
|
966
|
+
response_data = self.api_client.call_api(
|
|
967
|
+
*_param,
|
|
968
|
+
_request_timeout=_request_timeout
|
|
969
|
+
)
|
|
970
|
+
response_data.read()
|
|
971
|
+
return self.api_client.response_deserialize(
|
|
972
|
+
response_data=response_data,
|
|
973
|
+
response_types_map=_response_types_map,
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
@validate_call
|
|
978
|
+
def get_teams_without_preload_content(
|
|
979
|
+
self,
|
|
980
|
+
_request_timeout: Union[
|
|
981
|
+
None,
|
|
982
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
983
|
+
Tuple[
|
|
984
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
985
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
986
|
+
]
|
|
987
|
+
] = None,
|
|
988
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
989
|
+
_content_type: Optional[StrictStr] = None,
|
|
990
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
991
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
992
|
+
) -> RESTResponseType:
|
|
993
|
+
"""Get all teams
|
|
994
|
+
|
|
995
|
+
Retrieve all user teams for the current tenant unit.
|
|
996
|
+
|
|
997
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
998
|
+
number provided, it will be total request
|
|
999
|
+
timeout. It can also be a pair (tuple) of
|
|
1000
|
+
(connection, read) timeouts.
|
|
1001
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1002
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1003
|
+
request; this effectively ignores the
|
|
1004
|
+
authentication in the spec for a single request.
|
|
1005
|
+
:type _request_auth: dict, optional
|
|
1006
|
+
:param _content_type: force content-type for the request.
|
|
1007
|
+
:type _content_type: str, Optional
|
|
1008
|
+
:param _headers: set to override the headers for a single
|
|
1009
|
+
request; this effectively ignores the headers
|
|
1010
|
+
in the spec for a single request.
|
|
1011
|
+
:type _headers: dict, optional
|
|
1012
|
+
:param _host_index: set to override the host_index for a single
|
|
1013
|
+
request; this effectively ignores the host_index
|
|
1014
|
+
in the spec for a single request.
|
|
1015
|
+
:type _host_index: int, optional
|
|
1016
|
+
:return: Returns the result object.
|
|
1017
|
+
""" # noqa: E501
|
|
1018
|
+
|
|
1019
|
+
_param = self._get_teams_serialize(
|
|
1020
|
+
_request_auth=_request_auth,
|
|
1021
|
+
_content_type=_content_type,
|
|
1022
|
+
_headers=_headers,
|
|
1023
|
+
_host_index=_host_index
|
|
1024
|
+
)
|
|
1025
|
+
|
|
1026
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1027
|
+
'200': "List[ApiTeam]",
|
|
1028
|
+
'404': None,
|
|
1029
|
+
}
|
|
1030
|
+
response_data = self.api_client.call_api(
|
|
1031
|
+
*_param,
|
|
1032
|
+
_request_timeout=_request_timeout
|
|
1033
|
+
)
|
|
1034
|
+
return response_data.response
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
def _get_teams_serialize(
|
|
1038
|
+
self,
|
|
1039
|
+
_request_auth,
|
|
1040
|
+
_content_type,
|
|
1041
|
+
_headers,
|
|
1042
|
+
_host_index,
|
|
1043
|
+
) -> RequestSerialized:
|
|
1044
|
+
|
|
1045
|
+
_host = None
|
|
1046
|
+
|
|
1047
|
+
_collection_formats: Dict[str, str] = {
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
_path_params: Dict[str, str] = {}
|
|
1051
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1052
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1053
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1054
|
+
_files: Dict[
|
|
1055
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1056
|
+
] = {}
|
|
1057
|
+
_body_params: Optional[bytes] = None
|
|
1058
|
+
|
|
1059
|
+
# process the path parameters
|
|
1060
|
+
# process the query parameters
|
|
1061
|
+
# process the header parameters
|
|
1062
|
+
# process the form parameters
|
|
1063
|
+
# process the body parameter
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
# set the HTTP header `Accept`
|
|
1067
|
+
if 'Accept' not in _header_params:
|
|
1068
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1069
|
+
[
|
|
1070
|
+
'application/json'
|
|
1071
|
+
]
|
|
1072
|
+
)
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
# authentication setting
|
|
1076
|
+
_auth_settings: List[str] = [
|
|
1077
|
+
'ApiKeyAuth'
|
|
1078
|
+
]
|
|
1079
|
+
|
|
1080
|
+
return self.api_client.param_serialize(
|
|
1081
|
+
method='GET',
|
|
1082
|
+
resource_path='/api/settings/rbac/teams',
|
|
1083
|
+
path_params=_path_params,
|
|
1084
|
+
query_params=_query_params,
|
|
1085
|
+
header_params=_header_params,
|
|
1086
|
+
body=_body_params,
|
|
1087
|
+
post_params=_form_params,
|
|
1088
|
+
files=_files,
|
|
1089
|
+
auth_settings=_auth_settings,
|
|
1090
|
+
collection_formats=_collection_formats,
|
|
1091
|
+
_host=_host,
|
|
1092
|
+
_request_auth=_request_auth
|
|
1093
|
+
)
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
@validate_call
|
|
1099
|
+
def update_team(
|
|
1100
|
+
self,
|
|
1101
|
+
id: Annotated[StrictStr, Field(description="Id of the team to update")],
|
|
1102
|
+
api_team: Optional[ApiTeam] = None,
|
|
1103
|
+
_request_timeout: Union[
|
|
1104
|
+
None,
|
|
1105
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1106
|
+
Tuple[
|
|
1107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1108
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1109
|
+
]
|
|
1110
|
+
] = None,
|
|
1111
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1112
|
+
_content_type: Optional[StrictStr] = None,
|
|
1113
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1114
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1115
|
+
) -> None:
|
|
1116
|
+
"""Update team
|
|
1117
|
+
|
|
1118
|
+
Update an existing team by ID.
|
|
1119
|
+
|
|
1120
|
+
:param id: Id of the team to update (required)
|
|
1121
|
+
:type id: str
|
|
1122
|
+
:param api_team:
|
|
1123
|
+
:type api_team: ApiTeam
|
|
1124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1125
|
+
number provided, it will be total request
|
|
1126
|
+
timeout. It can also be a pair (tuple) of
|
|
1127
|
+
(connection, read) timeouts.
|
|
1128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1130
|
+
request; this effectively ignores the
|
|
1131
|
+
authentication in the spec for a single request.
|
|
1132
|
+
:type _request_auth: dict, optional
|
|
1133
|
+
:param _content_type: force content-type for the request.
|
|
1134
|
+
:type _content_type: str, Optional
|
|
1135
|
+
:param _headers: set to override the headers for a single
|
|
1136
|
+
request; this effectively ignores the headers
|
|
1137
|
+
in the spec for a single request.
|
|
1138
|
+
:type _headers: dict, optional
|
|
1139
|
+
:param _host_index: set to override the host_index for a single
|
|
1140
|
+
request; this effectively ignores the host_index
|
|
1141
|
+
in the spec for a single request.
|
|
1142
|
+
:type _host_index: int, optional
|
|
1143
|
+
:return: Returns the result object.
|
|
1144
|
+
""" # noqa: E501
|
|
1145
|
+
|
|
1146
|
+
_param = self._update_team_serialize(
|
|
1147
|
+
id=id,
|
|
1148
|
+
api_team=api_team,
|
|
1149
|
+
_request_auth=_request_auth,
|
|
1150
|
+
_content_type=_content_type,
|
|
1151
|
+
_headers=_headers,
|
|
1152
|
+
_host_index=_host_index
|
|
1153
|
+
)
|
|
1154
|
+
|
|
1155
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1156
|
+
'200': None,
|
|
1157
|
+
'404': None,
|
|
1158
|
+
}
|
|
1159
|
+
response_data = self.api_client.call_api(
|
|
1160
|
+
*_param,
|
|
1161
|
+
_request_timeout=_request_timeout
|
|
1162
|
+
)
|
|
1163
|
+
response_data.read()
|
|
1164
|
+
return self.api_client.response_deserialize(
|
|
1165
|
+
response_data=response_data,
|
|
1166
|
+
response_types_map=_response_types_map,
|
|
1167
|
+
).data
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
@validate_call
|
|
1171
|
+
def update_team_with_http_info(
|
|
1172
|
+
self,
|
|
1173
|
+
id: Annotated[StrictStr, Field(description="Id of the team to update")],
|
|
1174
|
+
api_team: Optional[ApiTeam] = None,
|
|
1175
|
+
_request_timeout: Union[
|
|
1176
|
+
None,
|
|
1177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1178
|
+
Tuple[
|
|
1179
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1180
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1181
|
+
]
|
|
1182
|
+
] = None,
|
|
1183
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1184
|
+
_content_type: Optional[StrictStr] = None,
|
|
1185
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1186
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1187
|
+
) -> ApiResponse[None]:
|
|
1188
|
+
"""Update team
|
|
1189
|
+
|
|
1190
|
+
Update an existing team by ID.
|
|
1191
|
+
|
|
1192
|
+
:param id: Id of the team to update (required)
|
|
1193
|
+
:type id: str
|
|
1194
|
+
:param api_team:
|
|
1195
|
+
:type api_team: ApiTeam
|
|
1196
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1197
|
+
number provided, it will be total request
|
|
1198
|
+
timeout. It can also be a pair (tuple) of
|
|
1199
|
+
(connection, read) timeouts.
|
|
1200
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1201
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1202
|
+
request; this effectively ignores the
|
|
1203
|
+
authentication in the spec for a single request.
|
|
1204
|
+
:type _request_auth: dict, optional
|
|
1205
|
+
:param _content_type: force content-type for the request.
|
|
1206
|
+
:type _content_type: str, Optional
|
|
1207
|
+
:param _headers: set to override the headers for a single
|
|
1208
|
+
request; this effectively ignores the headers
|
|
1209
|
+
in the spec for a single request.
|
|
1210
|
+
:type _headers: dict, optional
|
|
1211
|
+
:param _host_index: set to override the host_index for a single
|
|
1212
|
+
request; this effectively ignores the host_index
|
|
1213
|
+
in the spec for a single request.
|
|
1214
|
+
:type _host_index: int, optional
|
|
1215
|
+
:return: Returns the result object.
|
|
1216
|
+
""" # noqa: E501
|
|
1217
|
+
|
|
1218
|
+
_param = self._update_team_serialize(
|
|
1219
|
+
id=id,
|
|
1220
|
+
api_team=api_team,
|
|
1221
|
+
_request_auth=_request_auth,
|
|
1222
|
+
_content_type=_content_type,
|
|
1223
|
+
_headers=_headers,
|
|
1224
|
+
_host_index=_host_index
|
|
1225
|
+
)
|
|
1226
|
+
|
|
1227
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1228
|
+
'200': None,
|
|
1229
|
+
'404': None,
|
|
1230
|
+
}
|
|
1231
|
+
response_data = self.api_client.call_api(
|
|
1232
|
+
*_param,
|
|
1233
|
+
_request_timeout=_request_timeout
|
|
1234
|
+
)
|
|
1235
|
+
response_data.read()
|
|
1236
|
+
return self.api_client.response_deserialize(
|
|
1237
|
+
response_data=response_data,
|
|
1238
|
+
response_types_map=_response_types_map,
|
|
1239
|
+
)
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
@validate_call
|
|
1243
|
+
def update_team_without_preload_content(
|
|
1244
|
+
self,
|
|
1245
|
+
id: Annotated[StrictStr, Field(description="Id of the team to update")],
|
|
1246
|
+
api_team: Optional[ApiTeam] = None,
|
|
1247
|
+
_request_timeout: Union[
|
|
1248
|
+
None,
|
|
1249
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1250
|
+
Tuple[
|
|
1251
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1252
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1253
|
+
]
|
|
1254
|
+
] = None,
|
|
1255
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1256
|
+
_content_type: Optional[StrictStr] = None,
|
|
1257
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1258
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1259
|
+
) -> RESTResponseType:
|
|
1260
|
+
"""Update team
|
|
1261
|
+
|
|
1262
|
+
Update an existing team by ID.
|
|
1263
|
+
|
|
1264
|
+
:param id: Id of the team to update (required)
|
|
1265
|
+
:type id: str
|
|
1266
|
+
:param api_team:
|
|
1267
|
+
:type api_team: ApiTeam
|
|
1268
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1269
|
+
number provided, it will be total request
|
|
1270
|
+
timeout. It can also be a pair (tuple) of
|
|
1271
|
+
(connection, read) timeouts.
|
|
1272
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1273
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1274
|
+
request; this effectively ignores the
|
|
1275
|
+
authentication in the spec for a single request.
|
|
1276
|
+
:type _request_auth: dict, optional
|
|
1277
|
+
:param _content_type: force content-type for the request.
|
|
1278
|
+
:type _content_type: str, Optional
|
|
1279
|
+
:param _headers: set to override the headers for a single
|
|
1280
|
+
request; this effectively ignores the headers
|
|
1281
|
+
in the spec for a single request.
|
|
1282
|
+
:type _headers: dict, optional
|
|
1283
|
+
:param _host_index: set to override the host_index for a single
|
|
1284
|
+
request; this effectively ignores the host_index
|
|
1285
|
+
in the spec for a single request.
|
|
1286
|
+
:type _host_index: int, optional
|
|
1287
|
+
:return: Returns the result object.
|
|
1288
|
+
""" # noqa: E501
|
|
1289
|
+
|
|
1290
|
+
_param = self._update_team_serialize(
|
|
1291
|
+
id=id,
|
|
1292
|
+
api_team=api_team,
|
|
1293
|
+
_request_auth=_request_auth,
|
|
1294
|
+
_content_type=_content_type,
|
|
1295
|
+
_headers=_headers,
|
|
1296
|
+
_host_index=_host_index
|
|
1297
|
+
)
|
|
1298
|
+
|
|
1299
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1300
|
+
'200': None,
|
|
1301
|
+
'404': None,
|
|
1302
|
+
}
|
|
1303
|
+
response_data = self.api_client.call_api(
|
|
1304
|
+
*_param,
|
|
1305
|
+
_request_timeout=_request_timeout
|
|
1306
|
+
)
|
|
1307
|
+
return response_data.response
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
def _update_team_serialize(
|
|
1311
|
+
self,
|
|
1312
|
+
id,
|
|
1313
|
+
api_team,
|
|
1314
|
+
_request_auth,
|
|
1315
|
+
_content_type,
|
|
1316
|
+
_headers,
|
|
1317
|
+
_host_index,
|
|
1318
|
+
) -> RequestSerialized:
|
|
1319
|
+
|
|
1320
|
+
_host = None
|
|
1321
|
+
|
|
1322
|
+
_collection_formats: Dict[str, str] = {
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
_path_params: Dict[str, str] = {}
|
|
1326
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1327
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1328
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1329
|
+
_files: Dict[
|
|
1330
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1331
|
+
] = {}
|
|
1332
|
+
_body_params: Optional[bytes] = None
|
|
1333
|
+
|
|
1334
|
+
# process the path parameters
|
|
1335
|
+
if id is not None:
|
|
1336
|
+
_path_params['id'] = id
|
|
1337
|
+
# process the query parameters
|
|
1338
|
+
# process the header parameters
|
|
1339
|
+
# process the form parameters
|
|
1340
|
+
# process the body parameter
|
|
1341
|
+
if api_team is not None:
|
|
1342
|
+
_body_params = api_team
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
# set the HTTP header `Content-Type`
|
|
1347
|
+
if _content_type:
|
|
1348
|
+
_header_params['Content-Type'] = _content_type
|
|
1349
|
+
else:
|
|
1350
|
+
_default_content_type = (
|
|
1351
|
+
self.api_client.select_header_content_type(
|
|
1352
|
+
[
|
|
1353
|
+
'application/json'
|
|
1354
|
+
]
|
|
1355
|
+
)
|
|
1356
|
+
)
|
|
1357
|
+
if _default_content_type is not None:
|
|
1358
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1359
|
+
|
|
1360
|
+
# authentication setting
|
|
1361
|
+
_auth_settings: List[str] = [
|
|
1362
|
+
'ApiKeyAuth'
|
|
1363
|
+
]
|
|
1364
|
+
|
|
1365
|
+
return self.api_client.param_serialize(
|
|
1366
|
+
method='PUT',
|
|
1367
|
+
resource_path='/api/settings/rbac/teams/{id}',
|
|
1368
|
+
path_params=_path_params,
|
|
1369
|
+
query_params=_query_params,
|
|
1370
|
+
header_params=_header_params,
|
|
1371
|
+
body=_body_params,
|
|
1372
|
+
post_params=_form_params,
|
|
1373
|
+
files=_files,
|
|
1374
|
+
auth_settings=_auth_settings,
|
|
1375
|
+
collection_formats=_collection_formats,
|
|
1376
|
+
_host=_host,
|
|
1377
|
+
_request_auth=_request_auth
|
|
1378
|
+
)
|
|
1379
|
+
|
|
1380
|
+
|