instana-client 1.0.0__py3-none-any.whl → 1.0.1__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 +1754 -514
- instana_client/api/__init__.py +85 -1
- 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 +17 -17
- 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 +21 -21
- 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 +2 -2
- 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 +1673 -0
- instana_client/api/end_user_monitoring_api.py +310 -0
- instana_client/api/event_settings_api.py +1251 -653
- 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 +1121 -62
- 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 +2 -2
- 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 +44 -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 +1394 -0
- instana_client/api/service_levels_alert_configuration_api.py +2 -2
- instana_client/api/service_levels_objective_slo_configurations_api.py +160 -89
- 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 +1528 -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 +1238 -369
- 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 +302 -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 +11 -4
- instana_client/configuration.py +14 -7
- instana_client/exceptions.py +2 -2
- instana_client/models/__init__.py +585 -9
- 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 +29 -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 +5 -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 +121 -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 +102 -0
- instana_client/models/binary_operator_dto.py +2 -2
- instana_client/models/browser_script_configuration.py +5 -3
- 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 +109 -0
- instana_client/models/correction_scheduling.py +104 -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 +116 -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_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 +7 -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 +7 -3
- instana_client/models/event_filtering_configuration.py +2 -2
- instana_client/models/event_result.py +2 -2
- 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_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/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 +6 -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 +2 -2
- 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 +125 -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 +5 -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 +5 -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 +107 -0
- instana_client/models/o_auth_integration.py +98 -0
- instana_client/models/o_auth_token.py +121 -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 +5 -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 +121 -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_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_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_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 +2 -2
- instana_client/models/synthetic_playback_capabilities.py +17 -4
- 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_time_threshold.py +2 -2
- instana_client/models/synthetic_type_configuration.py +11 -11
- instana_client/models/synthetics_event_result.py +5 -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 +4 -4
- 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 +13 -13
- 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_script_configuration.py +5 -3
- 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 +4 -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.1.dist-info/METADATA +1068 -0
- instana_client-1.0.1.dist-info/RECORD +581 -0
- {instana_client-1.0.0.dist-info → instana_client-1.0.1.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.1.dist-info}/licenses/LICENSE +0 -0
- {instana_client-1.0.0.dist-info → instana_client-1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1394 @@
|
|
|
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.306.1368
|
|
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_create_role import ApiCreateRole
|
|
24
|
+
from instana_client.models.api_role import ApiRole
|
|
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 RolesApi:
|
|
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 create_role(
|
|
46
|
+
self,
|
|
47
|
+
api_create_role: Annotated[ApiCreateRole, Field(description="Role to create")],
|
|
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
|
+
) -> ApiRole:
|
|
61
|
+
"""Create role
|
|
62
|
+
|
|
63
|
+
Create a new role.
|
|
64
|
+
|
|
65
|
+
:param api_create_role: Role to create (required)
|
|
66
|
+
:type api_create_role: ApiCreateRole
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._create_role_serialize(
|
|
90
|
+
api_create_role=api_create_role,
|
|
91
|
+
_request_auth=_request_auth,
|
|
92
|
+
_content_type=_content_type,
|
|
93
|
+
_headers=_headers,
|
|
94
|
+
_host_index=_host_index
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
+
'200': "ApiRole",
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def create_role_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
api_create_role: Annotated[ApiCreateRole, Field(description="Role to create")],
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[ApiRole]:
|
|
128
|
+
"""Create role
|
|
129
|
+
|
|
130
|
+
Create a new role.
|
|
131
|
+
|
|
132
|
+
:param api_create_role: Role to create (required)
|
|
133
|
+
:type api_create_role: ApiCreateRole
|
|
134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
135
|
+
number provided, it will be total request
|
|
136
|
+
timeout. It can also be a pair (tuple) of
|
|
137
|
+
(connection, read) timeouts.
|
|
138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
140
|
+
request; this effectively ignores the
|
|
141
|
+
authentication in the spec for a single request.
|
|
142
|
+
:type _request_auth: dict, optional
|
|
143
|
+
:param _content_type: force content-type for the request.
|
|
144
|
+
:type _content_type: str, Optional
|
|
145
|
+
:param _headers: set to override the headers for a single
|
|
146
|
+
request; this effectively ignores the headers
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _headers: dict, optional
|
|
149
|
+
:param _host_index: set to override the host_index for a single
|
|
150
|
+
request; this effectively ignores the host_index
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _host_index: int, optional
|
|
153
|
+
:return: Returns the result object.
|
|
154
|
+
""" # noqa: E501
|
|
155
|
+
|
|
156
|
+
_param = self._create_role_serialize(
|
|
157
|
+
api_create_role=api_create_role,
|
|
158
|
+
_request_auth=_request_auth,
|
|
159
|
+
_content_type=_content_type,
|
|
160
|
+
_headers=_headers,
|
|
161
|
+
_host_index=_host_index
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
+
'200': "ApiRole",
|
|
166
|
+
}
|
|
167
|
+
response_data = self.api_client.call_api(
|
|
168
|
+
*_param,
|
|
169
|
+
_request_timeout=_request_timeout
|
|
170
|
+
)
|
|
171
|
+
response_data.read()
|
|
172
|
+
return self.api_client.response_deserialize(
|
|
173
|
+
response_data=response_data,
|
|
174
|
+
response_types_map=_response_types_map,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
@validate_call
|
|
179
|
+
def create_role_without_preload_content(
|
|
180
|
+
self,
|
|
181
|
+
api_create_role: Annotated[ApiCreateRole, Field(description="Role to create")],
|
|
182
|
+
_request_timeout: Union[
|
|
183
|
+
None,
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
+
Tuple[
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
188
|
+
]
|
|
189
|
+
] = None,
|
|
190
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
191
|
+
_content_type: Optional[StrictStr] = None,
|
|
192
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
194
|
+
) -> RESTResponseType:
|
|
195
|
+
"""Create role
|
|
196
|
+
|
|
197
|
+
Create a new role.
|
|
198
|
+
|
|
199
|
+
:param api_create_role: Role to create (required)
|
|
200
|
+
:type api_create_role: ApiCreateRole
|
|
201
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
202
|
+
number provided, it will be total request
|
|
203
|
+
timeout. It can also be a pair (tuple) of
|
|
204
|
+
(connection, read) timeouts.
|
|
205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
207
|
+
request; this effectively ignores the
|
|
208
|
+
authentication in the spec for a single request.
|
|
209
|
+
:type _request_auth: dict, optional
|
|
210
|
+
:param _content_type: force content-type for the request.
|
|
211
|
+
:type _content_type: str, Optional
|
|
212
|
+
:param _headers: set to override the headers for a single
|
|
213
|
+
request; this effectively ignores the headers
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _headers: dict, optional
|
|
216
|
+
:param _host_index: set to override the host_index for a single
|
|
217
|
+
request; this effectively ignores the host_index
|
|
218
|
+
in the spec for a single request.
|
|
219
|
+
:type _host_index: int, optional
|
|
220
|
+
:return: Returns the result object.
|
|
221
|
+
""" # noqa: E501
|
|
222
|
+
|
|
223
|
+
_param = self._create_role_serialize(
|
|
224
|
+
api_create_role=api_create_role,
|
|
225
|
+
_request_auth=_request_auth,
|
|
226
|
+
_content_type=_content_type,
|
|
227
|
+
_headers=_headers,
|
|
228
|
+
_host_index=_host_index
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
+
'200': "ApiRole",
|
|
233
|
+
}
|
|
234
|
+
response_data = self.api_client.call_api(
|
|
235
|
+
*_param,
|
|
236
|
+
_request_timeout=_request_timeout
|
|
237
|
+
)
|
|
238
|
+
return response_data.response
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def _create_role_serialize(
|
|
242
|
+
self,
|
|
243
|
+
api_create_role,
|
|
244
|
+
_request_auth,
|
|
245
|
+
_content_type,
|
|
246
|
+
_headers,
|
|
247
|
+
_host_index,
|
|
248
|
+
) -> RequestSerialized:
|
|
249
|
+
|
|
250
|
+
_host = None
|
|
251
|
+
|
|
252
|
+
_collection_formats: Dict[str, str] = {
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
_path_params: Dict[str, str] = {}
|
|
256
|
+
_query_params: List[Tuple[str, str]] = []
|
|
257
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
258
|
+
_form_params: List[Tuple[str, str]] = []
|
|
259
|
+
_files: Dict[
|
|
260
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
261
|
+
] = {}
|
|
262
|
+
_body_params: Optional[bytes] = None
|
|
263
|
+
|
|
264
|
+
# process the path parameters
|
|
265
|
+
# process the query parameters
|
|
266
|
+
# process the header parameters
|
|
267
|
+
# process the form parameters
|
|
268
|
+
# process the body parameter
|
|
269
|
+
if api_create_role is not None:
|
|
270
|
+
_body_params = api_create_role
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Accept`
|
|
274
|
+
if 'Accept' not in _header_params:
|
|
275
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
276
|
+
[
|
|
277
|
+
'application/json'
|
|
278
|
+
]
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
# set the HTTP header `Content-Type`
|
|
282
|
+
if _content_type:
|
|
283
|
+
_header_params['Content-Type'] = _content_type
|
|
284
|
+
else:
|
|
285
|
+
_default_content_type = (
|
|
286
|
+
self.api_client.select_header_content_type(
|
|
287
|
+
[
|
|
288
|
+
'application/json'
|
|
289
|
+
]
|
|
290
|
+
)
|
|
291
|
+
)
|
|
292
|
+
if _default_content_type is not None:
|
|
293
|
+
_header_params['Content-Type'] = _default_content_type
|
|
294
|
+
|
|
295
|
+
# authentication setting
|
|
296
|
+
_auth_settings: List[str] = [
|
|
297
|
+
'ApiKeyAuth'
|
|
298
|
+
]
|
|
299
|
+
|
|
300
|
+
return self.api_client.param_serialize(
|
|
301
|
+
method='POST',
|
|
302
|
+
resource_path='/api/settings/rbac/roles',
|
|
303
|
+
path_params=_path_params,
|
|
304
|
+
query_params=_query_params,
|
|
305
|
+
header_params=_header_params,
|
|
306
|
+
body=_body_params,
|
|
307
|
+
post_params=_form_params,
|
|
308
|
+
files=_files,
|
|
309
|
+
auth_settings=_auth_settings,
|
|
310
|
+
collection_formats=_collection_formats,
|
|
311
|
+
_host=_host,
|
|
312
|
+
_request_auth=_request_auth
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
@validate_call
|
|
319
|
+
def delete_role(
|
|
320
|
+
self,
|
|
321
|
+
id: Annotated[StrictStr, Field(description="Id of the role to delete")],
|
|
322
|
+
_request_timeout: Union[
|
|
323
|
+
None,
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
325
|
+
Tuple[
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
327
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
328
|
+
]
|
|
329
|
+
] = None,
|
|
330
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
331
|
+
_content_type: Optional[StrictStr] = None,
|
|
332
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
333
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
334
|
+
) -> None:
|
|
335
|
+
"""Delete role
|
|
336
|
+
|
|
337
|
+
Delete a role by ID.
|
|
338
|
+
|
|
339
|
+
:param id: Id of the role to delete (required)
|
|
340
|
+
:type id: str
|
|
341
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
342
|
+
number provided, it will be total request
|
|
343
|
+
timeout. It can also be a pair (tuple) of
|
|
344
|
+
(connection, read) timeouts.
|
|
345
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
346
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
347
|
+
request; this effectively ignores the
|
|
348
|
+
authentication in the spec for a single request.
|
|
349
|
+
:type _request_auth: dict, optional
|
|
350
|
+
:param _content_type: force content-type for the request.
|
|
351
|
+
:type _content_type: str, Optional
|
|
352
|
+
:param _headers: set to override the headers for a single
|
|
353
|
+
request; this effectively ignores the headers
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _headers: dict, optional
|
|
356
|
+
:param _host_index: set to override the host_index for a single
|
|
357
|
+
request; this effectively ignores the host_index
|
|
358
|
+
in the spec for a single request.
|
|
359
|
+
:type _host_index: int, optional
|
|
360
|
+
:return: Returns the result object.
|
|
361
|
+
""" # noqa: E501
|
|
362
|
+
|
|
363
|
+
_param = self._delete_role_serialize(
|
|
364
|
+
id=id,
|
|
365
|
+
_request_auth=_request_auth,
|
|
366
|
+
_content_type=_content_type,
|
|
367
|
+
_headers=_headers,
|
|
368
|
+
_host_index=_host_index
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
372
|
+
'204': None,
|
|
373
|
+
'404': None,
|
|
374
|
+
}
|
|
375
|
+
response_data = self.api_client.call_api(
|
|
376
|
+
*_param,
|
|
377
|
+
_request_timeout=_request_timeout
|
|
378
|
+
)
|
|
379
|
+
response_data.read()
|
|
380
|
+
return self.api_client.response_deserialize(
|
|
381
|
+
response_data=response_data,
|
|
382
|
+
response_types_map=_response_types_map,
|
|
383
|
+
).data
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
@validate_call
|
|
387
|
+
def delete_role_with_http_info(
|
|
388
|
+
self,
|
|
389
|
+
id: Annotated[StrictStr, Field(description="Id of the role to delete")],
|
|
390
|
+
_request_timeout: Union[
|
|
391
|
+
None,
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
393
|
+
Tuple[
|
|
394
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
395
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
396
|
+
]
|
|
397
|
+
] = None,
|
|
398
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
399
|
+
_content_type: Optional[StrictStr] = None,
|
|
400
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
401
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
402
|
+
) -> ApiResponse[None]:
|
|
403
|
+
"""Delete role
|
|
404
|
+
|
|
405
|
+
Delete a role by ID.
|
|
406
|
+
|
|
407
|
+
:param id: Id of the role to delete (required)
|
|
408
|
+
:type id: str
|
|
409
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
410
|
+
number provided, it will be total request
|
|
411
|
+
timeout. It can also be a pair (tuple) of
|
|
412
|
+
(connection, read) timeouts.
|
|
413
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
414
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
415
|
+
request; this effectively ignores the
|
|
416
|
+
authentication in the spec for a single request.
|
|
417
|
+
:type _request_auth: dict, optional
|
|
418
|
+
:param _content_type: force content-type for the request.
|
|
419
|
+
:type _content_type: str, Optional
|
|
420
|
+
:param _headers: set to override the headers for a single
|
|
421
|
+
request; this effectively ignores the headers
|
|
422
|
+
in the spec for a single request.
|
|
423
|
+
:type _headers: dict, optional
|
|
424
|
+
:param _host_index: set to override the host_index for a single
|
|
425
|
+
request; this effectively ignores the host_index
|
|
426
|
+
in the spec for a single request.
|
|
427
|
+
:type _host_index: int, optional
|
|
428
|
+
:return: Returns the result object.
|
|
429
|
+
""" # noqa: E501
|
|
430
|
+
|
|
431
|
+
_param = self._delete_role_serialize(
|
|
432
|
+
id=id,
|
|
433
|
+
_request_auth=_request_auth,
|
|
434
|
+
_content_type=_content_type,
|
|
435
|
+
_headers=_headers,
|
|
436
|
+
_host_index=_host_index
|
|
437
|
+
)
|
|
438
|
+
|
|
439
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
440
|
+
'204': None,
|
|
441
|
+
'404': None,
|
|
442
|
+
}
|
|
443
|
+
response_data = self.api_client.call_api(
|
|
444
|
+
*_param,
|
|
445
|
+
_request_timeout=_request_timeout
|
|
446
|
+
)
|
|
447
|
+
response_data.read()
|
|
448
|
+
return self.api_client.response_deserialize(
|
|
449
|
+
response_data=response_data,
|
|
450
|
+
response_types_map=_response_types_map,
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
@validate_call
|
|
455
|
+
def delete_role_without_preload_content(
|
|
456
|
+
self,
|
|
457
|
+
id: Annotated[StrictStr, Field(description="Id of the role to delete")],
|
|
458
|
+
_request_timeout: Union[
|
|
459
|
+
None,
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
461
|
+
Tuple[
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
464
|
+
]
|
|
465
|
+
] = None,
|
|
466
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
467
|
+
_content_type: Optional[StrictStr] = None,
|
|
468
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
469
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
470
|
+
) -> RESTResponseType:
|
|
471
|
+
"""Delete role
|
|
472
|
+
|
|
473
|
+
Delete a role by ID.
|
|
474
|
+
|
|
475
|
+
:param id: Id of the role to delete (required)
|
|
476
|
+
:type id: str
|
|
477
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
478
|
+
number provided, it will be total request
|
|
479
|
+
timeout. It can also be a pair (tuple) of
|
|
480
|
+
(connection, read) timeouts.
|
|
481
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
482
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
483
|
+
request; this effectively ignores the
|
|
484
|
+
authentication in the spec for a single request.
|
|
485
|
+
:type _request_auth: dict, optional
|
|
486
|
+
:param _content_type: force content-type for the request.
|
|
487
|
+
:type _content_type: str, Optional
|
|
488
|
+
:param _headers: set to override the headers for a single
|
|
489
|
+
request; this effectively ignores the headers
|
|
490
|
+
in the spec for a single request.
|
|
491
|
+
:type _headers: dict, optional
|
|
492
|
+
:param _host_index: set to override the host_index for a single
|
|
493
|
+
request; this effectively ignores the host_index
|
|
494
|
+
in the spec for a single request.
|
|
495
|
+
:type _host_index: int, optional
|
|
496
|
+
:return: Returns the result object.
|
|
497
|
+
""" # noqa: E501
|
|
498
|
+
|
|
499
|
+
_param = self._delete_role_serialize(
|
|
500
|
+
id=id,
|
|
501
|
+
_request_auth=_request_auth,
|
|
502
|
+
_content_type=_content_type,
|
|
503
|
+
_headers=_headers,
|
|
504
|
+
_host_index=_host_index
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
508
|
+
'204': None,
|
|
509
|
+
'404': None,
|
|
510
|
+
}
|
|
511
|
+
response_data = self.api_client.call_api(
|
|
512
|
+
*_param,
|
|
513
|
+
_request_timeout=_request_timeout
|
|
514
|
+
)
|
|
515
|
+
return response_data.response
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
def _delete_role_serialize(
|
|
519
|
+
self,
|
|
520
|
+
id,
|
|
521
|
+
_request_auth,
|
|
522
|
+
_content_type,
|
|
523
|
+
_headers,
|
|
524
|
+
_host_index,
|
|
525
|
+
) -> RequestSerialized:
|
|
526
|
+
|
|
527
|
+
_host = None
|
|
528
|
+
|
|
529
|
+
_collection_formats: Dict[str, str] = {
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
_path_params: Dict[str, str] = {}
|
|
533
|
+
_query_params: List[Tuple[str, str]] = []
|
|
534
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
535
|
+
_form_params: List[Tuple[str, str]] = []
|
|
536
|
+
_files: Dict[
|
|
537
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
538
|
+
] = {}
|
|
539
|
+
_body_params: Optional[bytes] = None
|
|
540
|
+
|
|
541
|
+
# process the path parameters
|
|
542
|
+
if id is not None:
|
|
543
|
+
_path_params['id'] = id
|
|
544
|
+
# process the query parameters
|
|
545
|
+
# process the header parameters
|
|
546
|
+
# process the form parameters
|
|
547
|
+
# process the body parameter
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
# authentication setting
|
|
553
|
+
_auth_settings: List[str] = [
|
|
554
|
+
'ApiKeyAuth'
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
return self.api_client.param_serialize(
|
|
558
|
+
method='DELETE',
|
|
559
|
+
resource_path='/api/settings/rbac/roles/{id}',
|
|
560
|
+
path_params=_path_params,
|
|
561
|
+
query_params=_query_params,
|
|
562
|
+
header_params=_header_params,
|
|
563
|
+
body=_body_params,
|
|
564
|
+
post_params=_form_params,
|
|
565
|
+
files=_files,
|
|
566
|
+
auth_settings=_auth_settings,
|
|
567
|
+
collection_formats=_collection_formats,
|
|
568
|
+
_host=_host,
|
|
569
|
+
_request_auth=_request_auth
|
|
570
|
+
)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
@validate_call
|
|
576
|
+
def get_role(
|
|
577
|
+
self,
|
|
578
|
+
id: Annotated[StrictStr, Field(description="Id of the role for retrieval")],
|
|
579
|
+
include_team_usage: Optional[StrictBool] = None,
|
|
580
|
+
_request_timeout: Union[
|
|
581
|
+
None,
|
|
582
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
583
|
+
Tuple[
|
|
584
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
585
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
586
|
+
]
|
|
587
|
+
] = None,
|
|
588
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
589
|
+
_content_type: Optional[StrictStr] = None,
|
|
590
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
591
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
592
|
+
) -> ApiRole:
|
|
593
|
+
"""Get role by ID
|
|
594
|
+
|
|
595
|
+
Retrieve a specific role by its ID.
|
|
596
|
+
|
|
597
|
+
:param id: Id of the role for retrieval (required)
|
|
598
|
+
:type id: str
|
|
599
|
+
:param include_team_usage:
|
|
600
|
+
:type include_team_usage: bool
|
|
601
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
602
|
+
number provided, it will be total request
|
|
603
|
+
timeout. It can also be a pair (tuple) of
|
|
604
|
+
(connection, read) timeouts.
|
|
605
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
606
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
607
|
+
request; this effectively ignores the
|
|
608
|
+
authentication in the spec for a single request.
|
|
609
|
+
:type _request_auth: dict, optional
|
|
610
|
+
:param _content_type: force content-type for the request.
|
|
611
|
+
:type _content_type: str, Optional
|
|
612
|
+
:param _headers: set to override the headers for a single
|
|
613
|
+
request; this effectively ignores the headers
|
|
614
|
+
in the spec for a single request.
|
|
615
|
+
:type _headers: dict, optional
|
|
616
|
+
:param _host_index: set to override the host_index for a single
|
|
617
|
+
request; this effectively ignores the host_index
|
|
618
|
+
in the spec for a single request.
|
|
619
|
+
:type _host_index: int, optional
|
|
620
|
+
:return: Returns the result object.
|
|
621
|
+
""" # noqa: E501
|
|
622
|
+
|
|
623
|
+
_param = self._get_role_serialize(
|
|
624
|
+
id=id,
|
|
625
|
+
include_team_usage=include_team_usage,
|
|
626
|
+
_request_auth=_request_auth,
|
|
627
|
+
_content_type=_content_type,
|
|
628
|
+
_headers=_headers,
|
|
629
|
+
_host_index=_host_index
|
|
630
|
+
)
|
|
631
|
+
|
|
632
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
633
|
+
'200': "ApiRole",
|
|
634
|
+
'404': None,
|
|
635
|
+
}
|
|
636
|
+
response_data = self.api_client.call_api(
|
|
637
|
+
*_param,
|
|
638
|
+
_request_timeout=_request_timeout
|
|
639
|
+
)
|
|
640
|
+
response_data.read()
|
|
641
|
+
return self.api_client.response_deserialize(
|
|
642
|
+
response_data=response_data,
|
|
643
|
+
response_types_map=_response_types_map,
|
|
644
|
+
).data
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
@validate_call
|
|
648
|
+
def get_role_with_http_info(
|
|
649
|
+
self,
|
|
650
|
+
id: Annotated[StrictStr, Field(description="Id of the role for retrieval")],
|
|
651
|
+
include_team_usage: Optional[StrictBool] = None,
|
|
652
|
+
_request_timeout: Union[
|
|
653
|
+
None,
|
|
654
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
655
|
+
Tuple[
|
|
656
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
657
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
658
|
+
]
|
|
659
|
+
] = None,
|
|
660
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
661
|
+
_content_type: Optional[StrictStr] = None,
|
|
662
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
663
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
664
|
+
) -> ApiResponse[ApiRole]:
|
|
665
|
+
"""Get role by ID
|
|
666
|
+
|
|
667
|
+
Retrieve a specific role by its ID.
|
|
668
|
+
|
|
669
|
+
:param id: Id of the role for retrieval (required)
|
|
670
|
+
:type id: str
|
|
671
|
+
:param include_team_usage:
|
|
672
|
+
:type include_team_usage: bool
|
|
673
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
674
|
+
number provided, it will be total request
|
|
675
|
+
timeout. It can also be a pair (tuple) of
|
|
676
|
+
(connection, read) timeouts.
|
|
677
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
678
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
679
|
+
request; this effectively ignores the
|
|
680
|
+
authentication in the spec for a single request.
|
|
681
|
+
:type _request_auth: dict, optional
|
|
682
|
+
:param _content_type: force content-type for the request.
|
|
683
|
+
:type _content_type: str, Optional
|
|
684
|
+
:param _headers: set to override the headers for a single
|
|
685
|
+
request; this effectively ignores the headers
|
|
686
|
+
in the spec for a single request.
|
|
687
|
+
:type _headers: dict, optional
|
|
688
|
+
:param _host_index: set to override the host_index for a single
|
|
689
|
+
request; this effectively ignores the host_index
|
|
690
|
+
in the spec for a single request.
|
|
691
|
+
:type _host_index: int, optional
|
|
692
|
+
:return: Returns the result object.
|
|
693
|
+
""" # noqa: E501
|
|
694
|
+
|
|
695
|
+
_param = self._get_role_serialize(
|
|
696
|
+
id=id,
|
|
697
|
+
include_team_usage=include_team_usage,
|
|
698
|
+
_request_auth=_request_auth,
|
|
699
|
+
_content_type=_content_type,
|
|
700
|
+
_headers=_headers,
|
|
701
|
+
_host_index=_host_index
|
|
702
|
+
)
|
|
703
|
+
|
|
704
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
705
|
+
'200': "ApiRole",
|
|
706
|
+
'404': None,
|
|
707
|
+
}
|
|
708
|
+
response_data = self.api_client.call_api(
|
|
709
|
+
*_param,
|
|
710
|
+
_request_timeout=_request_timeout
|
|
711
|
+
)
|
|
712
|
+
response_data.read()
|
|
713
|
+
return self.api_client.response_deserialize(
|
|
714
|
+
response_data=response_data,
|
|
715
|
+
response_types_map=_response_types_map,
|
|
716
|
+
)
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
@validate_call
|
|
720
|
+
def get_role_without_preload_content(
|
|
721
|
+
self,
|
|
722
|
+
id: Annotated[StrictStr, Field(description="Id of the role for retrieval")],
|
|
723
|
+
include_team_usage: Optional[StrictBool] = None,
|
|
724
|
+
_request_timeout: Union[
|
|
725
|
+
None,
|
|
726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
727
|
+
Tuple[
|
|
728
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
729
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
730
|
+
]
|
|
731
|
+
] = None,
|
|
732
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
733
|
+
_content_type: Optional[StrictStr] = None,
|
|
734
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
735
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
736
|
+
) -> RESTResponseType:
|
|
737
|
+
"""Get role by ID
|
|
738
|
+
|
|
739
|
+
Retrieve a specific role by its ID.
|
|
740
|
+
|
|
741
|
+
:param id: Id of the role for retrieval (required)
|
|
742
|
+
:type id: str
|
|
743
|
+
:param include_team_usage:
|
|
744
|
+
:type include_team_usage: bool
|
|
745
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
746
|
+
number provided, it will be total request
|
|
747
|
+
timeout. It can also be a pair (tuple) of
|
|
748
|
+
(connection, read) timeouts.
|
|
749
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
750
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
751
|
+
request; this effectively ignores the
|
|
752
|
+
authentication in the spec for a single request.
|
|
753
|
+
:type _request_auth: dict, optional
|
|
754
|
+
:param _content_type: force content-type for the request.
|
|
755
|
+
:type _content_type: str, Optional
|
|
756
|
+
:param _headers: set to override the headers for a single
|
|
757
|
+
request; this effectively ignores the headers
|
|
758
|
+
in the spec for a single request.
|
|
759
|
+
:type _headers: dict, optional
|
|
760
|
+
:param _host_index: set to override the host_index for a single
|
|
761
|
+
request; this effectively ignores the host_index
|
|
762
|
+
in the spec for a single request.
|
|
763
|
+
:type _host_index: int, optional
|
|
764
|
+
:return: Returns the result object.
|
|
765
|
+
""" # noqa: E501
|
|
766
|
+
|
|
767
|
+
_param = self._get_role_serialize(
|
|
768
|
+
id=id,
|
|
769
|
+
include_team_usage=include_team_usage,
|
|
770
|
+
_request_auth=_request_auth,
|
|
771
|
+
_content_type=_content_type,
|
|
772
|
+
_headers=_headers,
|
|
773
|
+
_host_index=_host_index
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
777
|
+
'200': "ApiRole",
|
|
778
|
+
'404': None,
|
|
779
|
+
}
|
|
780
|
+
response_data = self.api_client.call_api(
|
|
781
|
+
*_param,
|
|
782
|
+
_request_timeout=_request_timeout
|
|
783
|
+
)
|
|
784
|
+
return response_data.response
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
def _get_role_serialize(
|
|
788
|
+
self,
|
|
789
|
+
id,
|
|
790
|
+
include_team_usage,
|
|
791
|
+
_request_auth,
|
|
792
|
+
_content_type,
|
|
793
|
+
_headers,
|
|
794
|
+
_host_index,
|
|
795
|
+
) -> RequestSerialized:
|
|
796
|
+
|
|
797
|
+
_host = None
|
|
798
|
+
|
|
799
|
+
_collection_formats: Dict[str, str] = {
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
_path_params: Dict[str, str] = {}
|
|
803
|
+
_query_params: List[Tuple[str, str]] = []
|
|
804
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
805
|
+
_form_params: List[Tuple[str, str]] = []
|
|
806
|
+
_files: Dict[
|
|
807
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
808
|
+
] = {}
|
|
809
|
+
_body_params: Optional[bytes] = None
|
|
810
|
+
|
|
811
|
+
# process the path parameters
|
|
812
|
+
if id is not None:
|
|
813
|
+
_path_params['id'] = id
|
|
814
|
+
# process the query parameters
|
|
815
|
+
if include_team_usage is not None:
|
|
816
|
+
|
|
817
|
+
_query_params.append(('includeTeamUsage', include_team_usage))
|
|
818
|
+
|
|
819
|
+
# process the header parameters
|
|
820
|
+
# process the form parameters
|
|
821
|
+
# process the body parameter
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
# set the HTTP header `Accept`
|
|
825
|
+
if 'Accept' not in _header_params:
|
|
826
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
827
|
+
[
|
|
828
|
+
'application/json'
|
|
829
|
+
]
|
|
830
|
+
)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
# authentication setting
|
|
834
|
+
_auth_settings: List[str] = [
|
|
835
|
+
'ApiKeyAuth'
|
|
836
|
+
]
|
|
837
|
+
|
|
838
|
+
return self.api_client.param_serialize(
|
|
839
|
+
method='GET',
|
|
840
|
+
resource_path='/api/settings/rbac/roles/{id}',
|
|
841
|
+
path_params=_path_params,
|
|
842
|
+
query_params=_query_params,
|
|
843
|
+
header_params=_header_params,
|
|
844
|
+
body=_body_params,
|
|
845
|
+
post_params=_form_params,
|
|
846
|
+
files=_files,
|
|
847
|
+
auth_settings=_auth_settings,
|
|
848
|
+
collection_formats=_collection_formats,
|
|
849
|
+
_host=_host,
|
|
850
|
+
_request_auth=_request_auth
|
|
851
|
+
)
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
@validate_call
|
|
857
|
+
def get_roles(
|
|
858
|
+
self,
|
|
859
|
+
_request_timeout: Union[
|
|
860
|
+
None,
|
|
861
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
862
|
+
Tuple[
|
|
863
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
864
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
865
|
+
]
|
|
866
|
+
] = None,
|
|
867
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
868
|
+
_content_type: Optional[StrictStr] = None,
|
|
869
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
870
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
871
|
+
) -> List[ApiRole]:
|
|
872
|
+
"""Get all roles
|
|
873
|
+
|
|
874
|
+
Retrieve all roles for the current tenant unit.
|
|
875
|
+
|
|
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._get_roles_serialize(
|
|
899
|
+
_request_auth=_request_auth,
|
|
900
|
+
_content_type=_content_type,
|
|
901
|
+
_headers=_headers,
|
|
902
|
+
_host_index=_host_index
|
|
903
|
+
)
|
|
904
|
+
|
|
905
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
906
|
+
'200': "List[ApiRole]",
|
|
907
|
+
'404': None,
|
|
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 get_roles_with_http_info(
|
|
922
|
+
self,
|
|
923
|
+
_request_timeout: Union[
|
|
924
|
+
None,
|
|
925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
926
|
+
Tuple[
|
|
927
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
928
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
929
|
+
]
|
|
930
|
+
] = None,
|
|
931
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
932
|
+
_content_type: Optional[StrictStr] = None,
|
|
933
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
934
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
935
|
+
) -> ApiResponse[List[ApiRole]]:
|
|
936
|
+
"""Get all roles
|
|
937
|
+
|
|
938
|
+
Retrieve all roles for the current tenant unit.
|
|
939
|
+
|
|
940
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
941
|
+
number provided, it will be total request
|
|
942
|
+
timeout. It can also be a pair (tuple) of
|
|
943
|
+
(connection, read) timeouts.
|
|
944
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
945
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
946
|
+
request; this effectively ignores the
|
|
947
|
+
authentication in the spec for a single request.
|
|
948
|
+
:type _request_auth: dict, optional
|
|
949
|
+
:param _content_type: force content-type for the request.
|
|
950
|
+
:type _content_type: str, Optional
|
|
951
|
+
:param _headers: set to override the headers for a single
|
|
952
|
+
request; this effectively ignores the headers
|
|
953
|
+
in the spec for a single request.
|
|
954
|
+
:type _headers: dict, optional
|
|
955
|
+
:param _host_index: set to override the host_index for a single
|
|
956
|
+
request; this effectively ignores the host_index
|
|
957
|
+
in the spec for a single request.
|
|
958
|
+
:type _host_index: int, optional
|
|
959
|
+
:return: Returns the result object.
|
|
960
|
+
""" # noqa: E501
|
|
961
|
+
|
|
962
|
+
_param = self._get_roles_serialize(
|
|
963
|
+
_request_auth=_request_auth,
|
|
964
|
+
_content_type=_content_type,
|
|
965
|
+
_headers=_headers,
|
|
966
|
+
_host_index=_host_index
|
|
967
|
+
)
|
|
968
|
+
|
|
969
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
970
|
+
'200': "List[ApiRole]",
|
|
971
|
+
'404': None,
|
|
972
|
+
}
|
|
973
|
+
response_data = self.api_client.call_api(
|
|
974
|
+
*_param,
|
|
975
|
+
_request_timeout=_request_timeout
|
|
976
|
+
)
|
|
977
|
+
response_data.read()
|
|
978
|
+
return self.api_client.response_deserialize(
|
|
979
|
+
response_data=response_data,
|
|
980
|
+
response_types_map=_response_types_map,
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
@validate_call
|
|
985
|
+
def get_roles_without_preload_content(
|
|
986
|
+
self,
|
|
987
|
+
_request_timeout: Union[
|
|
988
|
+
None,
|
|
989
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
990
|
+
Tuple[
|
|
991
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
992
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
993
|
+
]
|
|
994
|
+
] = None,
|
|
995
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
996
|
+
_content_type: Optional[StrictStr] = None,
|
|
997
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
998
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
999
|
+
) -> RESTResponseType:
|
|
1000
|
+
"""Get all roles
|
|
1001
|
+
|
|
1002
|
+
Retrieve all roles for the current tenant unit.
|
|
1003
|
+
|
|
1004
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1005
|
+
number provided, it will be total request
|
|
1006
|
+
timeout. It can also be a pair (tuple) of
|
|
1007
|
+
(connection, read) timeouts.
|
|
1008
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1009
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1010
|
+
request; this effectively ignores the
|
|
1011
|
+
authentication in the spec for a single request.
|
|
1012
|
+
:type _request_auth: dict, optional
|
|
1013
|
+
:param _content_type: force content-type for the request.
|
|
1014
|
+
:type _content_type: str, Optional
|
|
1015
|
+
:param _headers: set to override the headers for a single
|
|
1016
|
+
request; this effectively ignores the headers
|
|
1017
|
+
in the spec for a single request.
|
|
1018
|
+
:type _headers: dict, optional
|
|
1019
|
+
:param _host_index: set to override the host_index for a single
|
|
1020
|
+
request; this effectively ignores the host_index
|
|
1021
|
+
in the spec for a single request.
|
|
1022
|
+
:type _host_index: int, optional
|
|
1023
|
+
:return: Returns the result object.
|
|
1024
|
+
""" # noqa: E501
|
|
1025
|
+
|
|
1026
|
+
_param = self._get_roles_serialize(
|
|
1027
|
+
_request_auth=_request_auth,
|
|
1028
|
+
_content_type=_content_type,
|
|
1029
|
+
_headers=_headers,
|
|
1030
|
+
_host_index=_host_index
|
|
1031
|
+
)
|
|
1032
|
+
|
|
1033
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1034
|
+
'200': "List[ApiRole]",
|
|
1035
|
+
'404': None,
|
|
1036
|
+
}
|
|
1037
|
+
response_data = self.api_client.call_api(
|
|
1038
|
+
*_param,
|
|
1039
|
+
_request_timeout=_request_timeout
|
|
1040
|
+
)
|
|
1041
|
+
return response_data.response
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
def _get_roles_serialize(
|
|
1045
|
+
self,
|
|
1046
|
+
_request_auth,
|
|
1047
|
+
_content_type,
|
|
1048
|
+
_headers,
|
|
1049
|
+
_host_index,
|
|
1050
|
+
) -> RequestSerialized:
|
|
1051
|
+
|
|
1052
|
+
_host = None
|
|
1053
|
+
|
|
1054
|
+
_collection_formats: Dict[str, str] = {
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
_path_params: Dict[str, str] = {}
|
|
1058
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1059
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1060
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1061
|
+
_files: Dict[
|
|
1062
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1063
|
+
] = {}
|
|
1064
|
+
_body_params: Optional[bytes] = None
|
|
1065
|
+
|
|
1066
|
+
# process the path parameters
|
|
1067
|
+
# process the query parameters
|
|
1068
|
+
# process the header parameters
|
|
1069
|
+
# process the form parameters
|
|
1070
|
+
# process the body parameter
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
# set the HTTP header `Accept`
|
|
1074
|
+
if 'Accept' not in _header_params:
|
|
1075
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1076
|
+
[
|
|
1077
|
+
'application/json'
|
|
1078
|
+
]
|
|
1079
|
+
)
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
# authentication setting
|
|
1083
|
+
_auth_settings: List[str] = [
|
|
1084
|
+
'ApiKeyAuth'
|
|
1085
|
+
]
|
|
1086
|
+
|
|
1087
|
+
return self.api_client.param_serialize(
|
|
1088
|
+
method='GET',
|
|
1089
|
+
resource_path='/api/settings/rbac/roles',
|
|
1090
|
+
path_params=_path_params,
|
|
1091
|
+
query_params=_query_params,
|
|
1092
|
+
header_params=_header_params,
|
|
1093
|
+
body=_body_params,
|
|
1094
|
+
post_params=_form_params,
|
|
1095
|
+
files=_files,
|
|
1096
|
+
auth_settings=_auth_settings,
|
|
1097
|
+
collection_formats=_collection_formats,
|
|
1098
|
+
_host=_host,
|
|
1099
|
+
_request_auth=_request_auth
|
|
1100
|
+
)
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
@validate_call
|
|
1106
|
+
def update_role(
|
|
1107
|
+
self,
|
|
1108
|
+
id: Annotated[StrictStr, Field(description="Id of the role to update")],
|
|
1109
|
+
api_role: Annotated[ApiRole, Field(description="Updated role data")],
|
|
1110
|
+
_request_timeout: Union[
|
|
1111
|
+
None,
|
|
1112
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1113
|
+
Tuple[
|
|
1114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1115
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1116
|
+
]
|
|
1117
|
+
] = None,
|
|
1118
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1119
|
+
_content_type: Optional[StrictStr] = None,
|
|
1120
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1121
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1122
|
+
) -> ApiRole:
|
|
1123
|
+
"""Update role
|
|
1124
|
+
|
|
1125
|
+
Update an existing role by ID.
|
|
1126
|
+
|
|
1127
|
+
:param id: Id of the role to update (required)
|
|
1128
|
+
:type id: str
|
|
1129
|
+
:param api_role: Updated role data (required)
|
|
1130
|
+
:type api_role: ApiRole
|
|
1131
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1132
|
+
number provided, it will be total request
|
|
1133
|
+
timeout. It can also be a pair (tuple) of
|
|
1134
|
+
(connection, read) timeouts.
|
|
1135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1137
|
+
request; this effectively ignores the
|
|
1138
|
+
authentication in the spec for a single request.
|
|
1139
|
+
:type _request_auth: dict, optional
|
|
1140
|
+
:param _content_type: force content-type for the request.
|
|
1141
|
+
:type _content_type: str, Optional
|
|
1142
|
+
:param _headers: set to override the headers for a single
|
|
1143
|
+
request; this effectively ignores the headers
|
|
1144
|
+
in the spec for a single request.
|
|
1145
|
+
:type _headers: dict, optional
|
|
1146
|
+
:param _host_index: set to override the host_index for a single
|
|
1147
|
+
request; this effectively ignores the host_index
|
|
1148
|
+
in the spec for a single request.
|
|
1149
|
+
:type _host_index: int, optional
|
|
1150
|
+
:return: Returns the result object.
|
|
1151
|
+
""" # noqa: E501
|
|
1152
|
+
|
|
1153
|
+
_param = self._update_role_serialize(
|
|
1154
|
+
id=id,
|
|
1155
|
+
api_role=api_role,
|
|
1156
|
+
_request_auth=_request_auth,
|
|
1157
|
+
_content_type=_content_type,
|
|
1158
|
+
_headers=_headers,
|
|
1159
|
+
_host_index=_host_index
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1163
|
+
'200': "ApiRole",
|
|
1164
|
+
'404': None,
|
|
1165
|
+
}
|
|
1166
|
+
response_data = self.api_client.call_api(
|
|
1167
|
+
*_param,
|
|
1168
|
+
_request_timeout=_request_timeout
|
|
1169
|
+
)
|
|
1170
|
+
response_data.read()
|
|
1171
|
+
return self.api_client.response_deserialize(
|
|
1172
|
+
response_data=response_data,
|
|
1173
|
+
response_types_map=_response_types_map,
|
|
1174
|
+
).data
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
@validate_call
|
|
1178
|
+
def update_role_with_http_info(
|
|
1179
|
+
self,
|
|
1180
|
+
id: Annotated[StrictStr, Field(description="Id of the role to update")],
|
|
1181
|
+
api_role: Annotated[ApiRole, Field(description="Updated role data")],
|
|
1182
|
+
_request_timeout: Union[
|
|
1183
|
+
None,
|
|
1184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1185
|
+
Tuple[
|
|
1186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1187
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1188
|
+
]
|
|
1189
|
+
] = None,
|
|
1190
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1191
|
+
_content_type: Optional[StrictStr] = None,
|
|
1192
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1193
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1194
|
+
) -> ApiResponse[ApiRole]:
|
|
1195
|
+
"""Update role
|
|
1196
|
+
|
|
1197
|
+
Update an existing role by ID.
|
|
1198
|
+
|
|
1199
|
+
:param id: Id of the role to update (required)
|
|
1200
|
+
:type id: str
|
|
1201
|
+
:param api_role: Updated role data (required)
|
|
1202
|
+
:type api_role: ApiRole
|
|
1203
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1204
|
+
number provided, it will be total request
|
|
1205
|
+
timeout. It can also be a pair (tuple) of
|
|
1206
|
+
(connection, read) timeouts.
|
|
1207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1209
|
+
request; this effectively ignores the
|
|
1210
|
+
authentication in the spec for a single request.
|
|
1211
|
+
:type _request_auth: dict, optional
|
|
1212
|
+
:param _content_type: force content-type for the request.
|
|
1213
|
+
:type _content_type: str, Optional
|
|
1214
|
+
:param _headers: set to override the headers for a single
|
|
1215
|
+
request; this effectively ignores the headers
|
|
1216
|
+
in the spec for a single request.
|
|
1217
|
+
:type _headers: dict, optional
|
|
1218
|
+
:param _host_index: set to override the host_index for a single
|
|
1219
|
+
request; this effectively ignores the host_index
|
|
1220
|
+
in the spec for a single request.
|
|
1221
|
+
:type _host_index: int, optional
|
|
1222
|
+
:return: Returns the result object.
|
|
1223
|
+
""" # noqa: E501
|
|
1224
|
+
|
|
1225
|
+
_param = self._update_role_serialize(
|
|
1226
|
+
id=id,
|
|
1227
|
+
api_role=api_role,
|
|
1228
|
+
_request_auth=_request_auth,
|
|
1229
|
+
_content_type=_content_type,
|
|
1230
|
+
_headers=_headers,
|
|
1231
|
+
_host_index=_host_index
|
|
1232
|
+
)
|
|
1233
|
+
|
|
1234
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1235
|
+
'200': "ApiRole",
|
|
1236
|
+
'404': None,
|
|
1237
|
+
}
|
|
1238
|
+
response_data = self.api_client.call_api(
|
|
1239
|
+
*_param,
|
|
1240
|
+
_request_timeout=_request_timeout
|
|
1241
|
+
)
|
|
1242
|
+
response_data.read()
|
|
1243
|
+
return self.api_client.response_deserialize(
|
|
1244
|
+
response_data=response_data,
|
|
1245
|
+
response_types_map=_response_types_map,
|
|
1246
|
+
)
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
@validate_call
|
|
1250
|
+
def update_role_without_preload_content(
|
|
1251
|
+
self,
|
|
1252
|
+
id: Annotated[StrictStr, Field(description="Id of the role to update")],
|
|
1253
|
+
api_role: Annotated[ApiRole, Field(description="Updated role data")],
|
|
1254
|
+
_request_timeout: Union[
|
|
1255
|
+
None,
|
|
1256
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1257
|
+
Tuple[
|
|
1258
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1259
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1260
|
+
]
|
|
1261
|
+
] = None,
|
|
1262
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1263
|
+
_content_type: Optional[StrictStr] = None,
|
|
1264
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1265
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1266
|
+
) -> RESTResponseType:
|
|
1267
|
+
"""Update role
|
|
1268
|
+
|
|
1269
|
+
Update an existing role by ID.
|
|
1270
|
+
|
|
1271
|
+
:param id: Id of the role to update (required)
|
|
1272
|
+
:type id: str
|
|
1273
|
+
:param api_role: Updated role data (required)
|
|
1274
|
+
:type api_role: ApiRole
|
|
1275
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1276
|
+
number provided, it will be total request
|
|
1277
|
+
timeout. It can also be a pair (tuple) of
|
|
1278
|
+
(connection, read) timeouts.
|
|
1279
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1280
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1281
|
+
request; this effectively ignores the
|
|
1282
|
+
authentication in the spec for a single request.
|
|
1283
|
+
:type _request_auth: dict, optional
|
|
1284
|
+
:param _content_type: force content-type for the request.
|
|
1285
|
+
:type _content_type: str, Optional
|
|
1286
|
+
:param _headers: set to override the headers for a single
|
|
1287
|
+
request; this effectively ignores the headers
|
|
1288
|
+
in the spec for a single request.
|
|
1289
|
+
:type _headers: dict, optional
|
|
1290
|
+
:param _host_index: set to override the host_index for a single
|
|
1291
|
+
request; this effectively ignores the host_index
|
|
1292
|
+
in the spec for a single request.
|
|
1293
|
+
:type _host_index: int, optional
|
|
1294
|
+
:return: Returns the result object.
|
|
1295
|
+
""" # noqa: E501
|
|
1296
|
+
|
|
1297
|
+
_param = self._update_role_serialize(
|
|
1298
|
+
id=id,
|
|
1299
|
+
api_role=api_role,
|
|
1300
|
+
_request_auth=_request_auth,
|
|
1301
|
+
_content_type=_content_type,
|
|
1302
|
+
_headers=_headers,
|
|
1303
|
+
_host_index=_host_index
|
|
1304
|
+
)
|
|
1305
|
+
|
|
1306
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1307
|
+
'200': "ApiRole",
|
|
1308
|
+
'404': None,
|
|
1309
|
+
}
|
|
1310
|
+
response_data = self.api_client.call_api(
|
|
1311
|
+
*_param,
|
|
1312
|
+
_request_timeout=_request_timeout
|
|
1313
|
+
)
|
|
1314
|
+
return response_data.response
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
def _update_role_serialize(
|
|
1318
|
+
self,
|
|
1319
|
+
id,
|
|
1320
|
+
api_role,
|
|
1321
|
+
_request_auth,
|
|
1322
|
+
_content_type,
|
|
1323
|
+
_headers,
|
|
1324
|
+
_host_index,
|
|
1325
|
+
) -> RequestSerialized:
|
|
1326
|
+
|
|
1327
|
+
_host = None
|
|
1328
|
+
|
|
1329
|
+
_collection_formats: Dict[str, str] = {
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
_path_params: Dict[str, str] = {}
|
|
1333
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1334
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1335
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1336
|
+
_files: Dict[
|
|
1337
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1338
|
+
] = {}
|
|
1339
|
+
_body_params: Optional[bytes] = None
|
|
1340
|
+
|
|
1341
|
+
# process the path parameters
|
|
1342
|
+
if id is not None:
|
|
1343
|
+
_path_params['id'] = id
|
|
1344
|
+
# process the query parameters
|
|
1345
|
+
# process the header parameters
|
|
1346
|
+
# process the form parameters
|
|
1347
|
+
# process the body parameter
|
|
1348
|
+
if api_role is not None:
|
|
1349
|
+
_body_params = api_role
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
# set the HTTP header `Accept`
|
|
1353
|
+
if 'Accept' not in _header_params:
|
|
1354
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1355
|
+
[
|
|
1356
|
+
'application/json'
|
|
1357
|
+
]
|
|
1358
|
+
)
|
|
1359
|
+
|
|
1360
|
+
# set the HTTP header `Content-Type`
|
|
1361
|
+
if _content_type:
|
|
1362
|
+
_header_params['Content-Type'] = _content_type
|
|
1363
|
+
else:
|
|
1364
|
+
_default_content_type = (
|
|
1365
|
+
self.api_client.select_header_content_type(
|
|
1366
|
+
[
|
|
1367
|
+
'application/json'
|
|
1368
|
+
]
|
|
1369
|
+
)
|
|
1370
|
+
)
|
|
1371
|
+
if _default_content_type is not None:
|
|
1372
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1373
|
+
|
|
1374
|
+
# authentication setting
|
|
1375
|
+
_auth_settings: List[str] = [
|
|
1376
|
+
'ApiKeyAuth'
|
|
1377
|
+
]
|
|
1378
|
+
|
|
1379
|
+
return self.api_client.param_serialize(
|
|
1380
|
+
method='PUT',
|
|
1381
|
+
resource_path='/api/settings/rbac/roles/{id}',
|
|
1382
|
+
path_params=_path_params,
|
|
1383
|
+
query_params=_query_params,
|
|
1384
|
+
header_params=_header_params,
|
|
1385
|
+
body=_body_params,
|
|
1386
|
+
post_params=_form_params,
|
|
1387
|
+
files=_files,
|
|
1388
|
+
auth_settings=_auth_settings,
|
|
1389
|
+
collection_formats=_collection_formats,
|
|
1390
|
+
_host=_host,
|
|
1391
|
+
_request_auth=_request_auth
|
|
1392
|
+
)
|
|
1393
|
+
|
|
1394
|
+
|