diff --git a/cue.mod/gen/github.com/go-openapi/strfmt/default_go_gen.cue b/cue.mod/gen/github.com/go-openapi/strfmt/default_go_gen.cue index 39e4796e0..63e4aa405 100644 --- a/cue.mod/gen/github.com/go-openapi/strfmt/default_go_gen.cue +++ b/cue.mod/gen/github.com/go-openapi/strfmt/default_go_gen.cue @@ -33,20 +33,28 @@ package strfmt // - symbol unicode points are permitted (e.g. emoji) (not for top-level domain) #HostnamePattern: "^([a-zA-Z0-9\\p{S}\\p{L}]((-?[a-zA-Z0-9\\p{S}\\p{L}]{0,62})?)|([a-zA-Z0-9\\p{S}\\p{L}](([a-zA-Z0-9-\\p{S}\\p{L}]{0,61}[a-zA-Z0-9\\p{S}\\p{L}])?)(\\.)){1,}([a-zA-Z\\p{L}]){2,63})$" // `^([a-zA-Z0-9\p{S}\p{L}]((-?[a-zA-Z0-9\p{S}\p{L}]{0,62})?)|([a-zA-Z0-9\p{S}\p{L}](([a-zA-Z0-9-\p{S}\p{L}]{0,61}[a-zA-Z0-9\p{S}\p{L}])?)(\.)){1,}([a-zA-Z\p{L}]){2,63})$` +// json null type +_#jsonNull: "null" + // UUIDPattern Regex for UUID that allows uppercase -#UUIDPattern: "(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$" // `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$` +// +// Deprecated: strfmt no longer uses regular expressions to validate UUIDs. +#UUIDPattern: "(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$)|(^[0-9a-f]{32}$)" // `(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$)|(^[0-9a-f]{32}$)` // UUID3Pattern Regex for UUID3 that allows uppercase -#UUID3Pattern: "(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$" // `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$` +// +// Deprecated: strfmt no longer uses regular expressions to validate UUIDs. +#UUID3Pattern: "(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$)|(^[0-9a-f]{12}3[0-9a-f]{3}?[0-9a-f]{16}$)" // `(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$)|(^[0-9a-f]{12}3[0-9a-f]{3}?[0-9a-f]{16}$)` // UUID4Pattern Regex for UUID4 that allows uppercase -#UUID4Pattern: "(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$" // `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$` +// +// Deprecated: strfmt no longer uses regular expressions to validate UUIDs. +#UUID4Pattern: "(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)|(^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$)" // `(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)|(^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$)` // UUID5Pattern Regex for UUID5 that allows uppercase -#UUID5Pattern: "(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$" // `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$` - -// json null type -_#jsonNull: "null" +// +// Deprecated: strfmt no longer uses regular expressions to validate UUIDs. +#UUID5Pattern: "(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)|(^[0-9a-f]{12}5[0-9a-f]{3}[89ab][0-9a-f]{15}$)" // `(?i)(^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)|(^[0-9a-f]{12}5[0-9a-f]{3}[89ab][0-9a-f]{15}$)` // Base64 represents a base64 encoded string, using URLEncoding alphabet // diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/BUILD.bazel b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/BUILD.bazel new file mode 100644 index 000000000..3615bb1aa --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/BUILD.bazel @@ -0,0 +1,426 @@ +load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_library") + +cue_library( + name = "cue_models_library", + srcs = [ + "ack_go_gen.cue", + "active_sync_status_dto_go_gen.cue", + "active_user_stats_go_gen.cue", + "add_api_key_command_go_gen.cue", + "add_data_source_command_go_gen.cue", + "add_data_source_ok_body_go_gen.cue", + "add_invite_form_go_gen.cue", + "add_org_user_command_go_gen.cue", + "add_service_account_token_command_go_gen.cue", + "add_team_member_command_go_gen.cue", + "add_team_role_command_go_gen.cue", + "add_user_role_command_go_gen.cue", + "address_go_gen.cue", + "admin_create_user_form_go_gen.cue", + "admin_create_user_response_go_gen.cue", + "admin_stats_go_gen.cue", + "admin_update_user_password_form_go_gen.cue", + "admin_update_user_permissions_form_go_gen.cue", + "alert_discovery_go_gen.cue", + "alert_go_gen.cue", + "alert_group_go_gen.cue", + "alert_instances_response_go_gen.cue", + "alert_list_item_dto_go_gen.cue", + "alert_manager_go_gen.cue", + "alert_managers_result_go_gen.cue", + "alert_notification_go_gen.cue", + "alert_notification_lookup_go_gen.cue", + "alert_pair_go_gen.cue", + "alert_query_export_go_gen.cue", + "alert_query_go_gen.cue", + "alert_rule_export_go_gen.cue", + "alert_rule_group_export_go_gen.cue", + "alert_rule_group_go_gen.cue", + "alert_rule_upgrade_go_gen.cue", + "alert_state_info_dto_go_gen.cue", + "alert_state_type_go_gen.cue", + "alert_status_go_gen.cue", + "alert_test_command_go_gen.cue", + "alert_test_result_go_gen.cue", + "alert_test_result_log_go_gen.cue", + "alerting_file_export_go_gen.cue", + "alerting_rule_go_gen.cue", + "alertmanager_config_go_gen.cue", + "annotation_actions_go_gen.cue", + "annotation_event_go_gen.cue", + "annotation_go_gen.cue", + "annotation_panel_filter_go_gen.cue", + "annotation_permission_go_gen.cue", + "annotation_query_go_gen.cue", + "annotation_target_go_gen.cue", + "api_key_dto_go_gen.cue", + "assignments_go_gen.cue", + "attribute_type_and_value_go_gen.cue", + "authorization_go_gen.cue", + "basic_auth_go_gen.cue", + "calculate_dashboard_diff_params_body_go_gen.cue", + "calculate_diff_target_go_gen.cue", + "certificate_go_gen.cue", + "change_user_password_command_go_gen.cue", + "clear_help_flags_ok_body_go_gen.cue", + "cluster_status_go_gen.cue", + "conf_float64_go_gen.cue", + "contact_pair_go_gen.cue", + "contact_point_export_go_gen.cue", + "contact_point_upgrade_go_gen.cue", + "contact_points_go_gen.cue", + "cookie_preferences_go_gen.cue", + "cookie_type_go_gen.cue", + "correlation_config_go_gen.cue", + "correlation_config_type_go_gen.cue", + "correlation_config_update_dto_go_gen.cue", + "correlation_go_gen.cue", + "counter_reset_hint_go_gen.cue", + "create_alert_notification_command_go_gen.cue", + "create_correlation_command_go_gen.cue", + "create_correlation_response_body_go_gen.cue", + "create_dashboard_snapshot_command_go_gen.cue", + "create_dashboard_snapshot_ok_body_go_gen.cue", + "create_folder_command_go_gen.cue", + "create_library_element_command_go_gen.cue", + "create_or_update_report_config_go_gen.cue", + "create_org_command_go_gen.cue", + "create_org_ok_body_go_gen.cue", + "create_playlist_command_go_gen.cue", + "create_query_in_query_history_command_go_gen.cue", + "create_report_ok_body_go_gen.cue", + "create_role_form_go_gen.cue", + "create_service_account_form_go_gen.cue", + "create_team_command_go_gen.cue", + "create_team_ok_body_go_gen.cue", + "dashboard_acl_info_dto_go_gen.cue", + "dashboard_acl_update_item_go_gen.cue", + "dashboard_full_with_meta_go_gen.cue", + "dashboard_meta_go_gen.cue", + "dashboard_snapshot_dto_go_gen.cue", + "dashboard_tag_cloud_item_go_gen.cue", + "dashboard_upgrade_go_gen.cue", + "dashboard_version_meta_go_gen.cue", + "data_link_go_gen.cue", + "data_response_go_gen.cue", + "data_source_go_gen.cue", + "data_source_list_go_gen.cue", + "data_source_list_item_dto_go_gen.cue", + "data_source_ref_go_gen.cue", + "data_topic_go_gen.cue", + "delete_alert_notification_channel_by_uid_ok_body_go_gen.cue", + "delete_correlation_response_body_go_gen.cue", + "delete_dashboard_by_uid_ok_body_go_gen.cue", + "delete_data_source_by_name_ok_body_go_gen.cue", + "delete_folder_ok_body_go_gen.cue", + "delete_token_command_go_gen.cue", + "descendant_counts_go_gen.cue", + "description_go_gen.cue", + "device_dto_go_gen.cue", + "device_search_hit_dto_go_gen.cue", + "discord_config_go_gen.cue", + "ds_access_go_gen.cue", + "duration_go_gen.cue", + "email_config_go_gen.cue", + "email_dto_go_gen.cue", + "embedded_contact_point_go_gen.cue", + "enum_field_config_go_gen.cue", + "error_response_body_go_gen.cue", + "error_source_go_gen.cue", + "error_type_go_gen.cue", + "eval_alert_condition_command_go_gen.cue", + "eval_match_go_gen.cue", + "explore_panels_state_go_gen.cue", + "ext_key_usage_go_gen.cue", + "extension_go_gen.cue", + "failed_user_go_gen.cue", + "field_config_go_gen.cue", + "field_go_gen.cue", + "field_type_config_go_gen.cue", + "find_tags_result_go_gen.cue", + "float_histogram_go_gen.cue", + "folder_go_gen.cue", + "folder_search_hit_go_gen.cue", + "frame_go_gen.cue", + "frame_labels_go_gen.cue", + "frame_meta_go_gen.cue", + "frame_type_go_gen.cue", + "frame_type_version_go_gen.cue", + "frames_go_gen.cue", + "generic_public_error_go_gen.cue", + "get_annotation_tags_response_go_gen.cue", + "get_data_source_id_by_name_ok_body_go_gen.cue", + "get_home_dashboard_response_all_of0_go_gen.cue", + "get_home_dashboard_response_all_of1_go_gen.cue", + "get_home_dashboard_response_go_gen.cue", + "get_provider_settings_ok_body_go_gen.cue", + "get_sharing_options_ok_body_go_gen.cue", + "gettable_alert_go_gen.cue", + "gettable_api_alerting_config_go_gen.cue", + "gettable_api_receiver_go_gen.cue", + "gettable_extended_rule_node_go_gen.cue", + "gettable_grafana_receiver_go_gen.cue", + "gettable_grafana_rule_go_gen.cue", + "gettable_rule_group_config_go_gen.cue", + "gettable_silence_go_gen.cue", + "global_config_go_gen.cue", + "header_go_gen.cue", + "hit_go_gen.cue", + "hit_list_go_gen.cue", + "hit_type_go_gen.cue", + "host_port_go_gen.cue", + "http_client_config_go_gen.cue", + "import_dashboard_input_go_gen.cue", + "import_dashboard_request_go_gen.cue", + "import_dashboard_response_go_gen.cue", + "inhibit_rule_go_gen.cue", + "inspect_type_go_gen.cue", + "integration_go_gen.cue", + "internal_data_link_go_gen.cue", + "ip_mask_go_gen.cue", + "ip_net_go_gen.cue", + "json_go_gen.cue", + "json_web_key_go_gen.cue", + "key_usage_go_gen.cue", + "label_go_gen.cue", + "label_name_go_gen.cue", + "label_names_go_gen.cue", + "label_set_go_gen.cue", + "label_value_go_gen.cue", + "labels_go_gen.cue", + "legacy_alert_go_gen.cue", + "legacy_channel_go_gen.cue", + "library_element_array_response_go_gen.cue", + "library_element_connection_dto_go_gen.cue", + "library_element_connections_response_go_gen.cue", + "library_element_dto_go_gen.cue", + "library_element_dto_meta_go_gen.cue", + "library_element_dto_meta_user_go_gen.cue", + "library_element_response_go_gen.cue", + "library_element_search_response_go_gen.cue", + "library_element_search_result_go_gen.cue", + "link_transformation_config_go_gen.cue", + "list_all_providers_settings_ok_body_items_go_gen.cue", + "list_sort_options_ok_body_go_gen.cue", + "m_s_teams_config_go_gen.cue", + "mass_delete_annotations_cmd_go_gen.cue", + "match_regexps_go_gen.cue", + "match_type_go_gen.cue", + "matcher_go_gen.cue", + "matchers_go_gen.cue", + "metadata_go_gen.cue", + "metric_request_go_gen.cue", + "move_folder_command_go_gen.cue", + "mute_time_interval_export_go_gen.cue", + "mute_time_interval_go_gen.cue", + "mute_timings_go_gen.cue", + "name_go_gen.cue", + "new_api_key_result_go_gen.cue", + "not_found_go_gen.cue", + "notice_go_gen.cue", + "notice_severity_go_gen.cue", + "notification_policy_export_go_gen.cue", + "notification_template_content_go_gen.cue", + "notification_template_go_gen.cue", + "notification_templates_go_gen.cue", + "notification_test_command_go_gen.cue", + "o_auth2_go_gen.cue", + "object_identifier_go_gen.cue", + "object_matcher_go_gen.cue", + "object_matchers_go_gen.cue", + "ops_genie_config_go_gen.cue", + "ops_genie_config_responder_go_gen.cue", + "org_details_dto_go_gen.cue", + "org_dto_go_gen.cue", + "org_user_dto_go_gen.cue", + "override_labels_go_gen.cue", + "pagerduty_config_go_gen.cue", + "pagerduty_image_go_gen.cue", + "pagerduty_link_go_gen.cue", + "patch_annotations_cmd_go_gen.cue", + "patch_library_element_command_go_gen.cue", + "patch_prefs_cmd_go_gen.cue", + "patch_query_comment_in_query_history_command_go_gen.cue", + "pause_alert_command_go_gen.cue", + "pause_alert_ok_body_go_gen.cue", + "pause_all_alerts_command_go_gen.cue", + "pause_all_alerts_ok_body_go_gen.cue", + "peer_status_go_gen.cue", + "permission_denied_go_gen.cue", + "permission_go_gen.cue", + "permission_type_go_gen.cue", + "playlist_dashboard_go_gen.cue", + "playlist_go_gen.cue", + "playlist_item_dto_go_gen.cue", + "playlist_item_go_gen.cue", + "playlists_go_gen.cue", + "post_annotation_ok_body_go_gen.cue", + "post_annotations_cmd_go_gen.cue", + "post_dashboard_ok_body_go_gen.cue", + "post_graphite_annotation_ok_body_go_gen.cue", + "post_graphite_annotations_cmd_go_gen.cue", + "postable_alert_go_gen.cue", + "postable_api_alerting_config_go_gen.cue", + "postable_api_receiver_go_gen.cue", + "postable_extended_rule_node_go_gen.cue", + "postable_grafana_receiver_go_gen.cue", + "postable_grafana_rule_go_gen.cue", + "preferences_go_gen.cue", + "prometheus_remote_write_target_json_go_gen.cue", + "provenance_go_gen.cue", + "provisioned_alert_rule_go_gen.cue", + "provisioned_alert_rules_go_gen.cue", + "public_dashboard_dto_go_gen.cue", + "public_dashboard_go_gen.cue", + "public_dashboard_list_response_go_gen.cue", + "public_dashboard_list_response_with_pagination_go_gen.cue", + "public_error_go_gen.cue", + "public_key_algorithm_go_gen.cue", + "pushover_config_go_gen.cue", + "query_data_response_go_gen.cue", + "query_history_delete_query_response_go_gen.cue", + "query_history_dto_go_gen.cue", + "query_history_preference_go_gen.cue", + "query_history_response_go_gen.cue", + "query_history_search_response_go_gen.cue", + "query_history_search_result_go_gen.cue", + "query_stat_go_gen.cue", + "quota_dto_go_gen.cue", + "raw_message_go_gen.cue", + "receiver_export_go_gen.cue", + "receiver_go_gen.cue", + "recording_rule_json_go_gen.cue", + "relative_time_range_export_go_gen.cue", + "relative_time_range_go_gen.cue", + "report_branding_options_go_gen.cue", + "report_dashboard_go_gen.cue", + "report_dashboard_id_go_gen.cue", + "report_email_go_gen.cue", + "report_go_gen.cue", + "report_options_go_gen.cue", + "report_schedule_go_gen.cue", + "report_settings_go_gen.cue", + "report_time_range_go_gen.cue", + "resource_permission_dto_go_gen.cue", + "response_details_go_gen.cue", + "responses_go_gen.cue", + "restore_dashboard_version_by_id_ok_body_go_gen.cue", + "restore_dashboard_version_by_uid_ok_body_go_gen.cue", + "restore_dashboard_version_command_go_gen.cue", + "retrieve_j_w_k_s_ok_body_go_gen.cue", + "revoke_auth_token_cmd_go_gen.cue", + "role_assignments_dto_go_gen.cue", + "role_dto_go_gen.cue", + "roles_search_query_go_gen.cue", + "route_export_go_gen.cue", + "route_go_gen.cue", + "rule_discovery_go_gen.cue", + "rule_group_go_gen.cue", + "rule_type_go_gen.cue", + "sample_go_gen.cue", + "save_dashboard_command_go_gen.cue", + "search_device_query_result_go_gen.cue", + "search_org_service_accounts_result_go_gen.cue", + "search_org_users_query_result_go_gen.cue", + "search_result_go_gen.cue", + "search_result_item_go_gen.cue", + "search_team_query_result_go_gen.cue", + "search_user_query_result_go_gen.cue", + "secret_go_gen.cue", + "secret_url_go_gen.cue", + "service_account_dto_go_gen.cue", + "service_account_profile_dto_go_gen.cue", + "set_help_flag_ok_body_go_gen.cue", + "set_permission_command_go_gen.cue", + "set_permissions_command_go_gen.cue", + "set_resource_permission_command_go_gen.cue", + "set_role_assignments_command_go_gen.cue", + "set_user_roles_command_go_gen.cue", + "settings_bag_go_gen.cue", + "settings_source_go_gen.cue", + "share_type_go_gen.cue", + "sig_v4_config_go_gen.cue", + "signature_algorithm_go_gen.cue", + "silence_status_go_gen.cue", + "slack_action_go_gen.cue", + "slack_config_go_gen.cue", + "slack_confirmation_field_go_gen.cue", + "slack_field_go_gen.cue", + "sns_config_go_gen.cue", + "span_go_gen.cue", + "state_go_gen.cue", + "status_go_gen.cue", + "success_response_body_go_gen.cue", + "supported_transformation_types_go_gen.cue", + "sync_result_go_gen.cue", + "tags_dto_go_gen.cue", + "team_dto_go_gen.cue", + "team_group_dto_go_gen.cue", + "team_group_mapping_go_gen.cue", + "team_member_dto_go_gen.cue", + "telegram_config_go_gen.cue", + "temp_user_dto_go_gen.cue", + "temp_user_status_go_gen.cue", + "test_receiver_config_result_go_gen.cue", + "test_receiver_result_go_gen.cue", + "test_receivers_config_alert_params_go_gen.cue", + "test_templates_error_result_go_gen.cue", + "test_templates_result_go_gen.cue", + "threshold_go_gen.cue", + "thresholds_config_go_gen.cue", + "thresholds_mode_go_gen.cue", + "time_interval_go_gen.cue", + "time_interval_range_go_gen.cue", + "tls_config_go_gen.cue", + "tls_version_go_gen.cue", + "token_dto_go_gen.cue", + "token_go_gen.cue", + "token_status_go_gen.cue", + "transformation_go_gen.cue", + "transformations_go_gen.cue", + "type_go_gen.cue", + "update_alert_notification_command_go_gen.cue", + "update_alert_notification_with_uid_command_go_gen.cue", + "update_annotations_cmd_go_gen.cue", + "update_correlation_command_go_gen.cue", + "update_correlation_response_body_go_gen.cue", + "update_dashboard_acl_command_go_gen.cue", + "update_data_source_by_id_ok_body_go_gen.cue", + "update_data_source_by_uid_ok_body_go_gen.cue", + "update_data_source_command_go_gen.cue", + "update_folder_command_go_gen.cue", + "update_org_address_form_go_gen.cue", + "update_org_form_go_gen.cue", + "update_org_user_command_go_gen.cue", + "update_playlist_command_go_gen.cue", + "update_prefs_cmd_go_gen.cue", + "update_provider_settings_params_body_go_gen.cue", + "update_quota_cmd_go_gen.cue", + "update_role_command_go_gen.cue", + "update_service_account_form_go_gen.cue", + "update_service_account_ok_body_go_gen.cue", + "update_team_command_go_gen.cue", + "update_team_member_command_go_gen.cue", + "update_user_command_go_gen.cue", + "url_go_gen.cue", + "user_lookup_dto_go_gen.cue", + "user_org_dto_go_gen.cue", + "user_profile_dto_go_gen.cue", + "user_search_hit_dto_go_gen.cue", + "user_token_go_gen.cue", + "userinfo_go_gen.cue", + "validation_error_go_gen.cue", + "value_mapping_go_gen.cue", + "value_mappings_go_gen.cue", + "vector_go_gen.cue", + "version_info_go_gen.cue", + "victor_ops_config_go_gen.cue", + "vis_type_go_gen.cue", + "webex_config_go_gen.cue", + "webhook_config_go_gen.cue", + "wechat_config_go_gen.cue", + ], + importpath = "github.com/grafana/grafana-openapi-client-go/models", + visibility = ["//visibility:public"], + deps = ["//cue.mod/gen/github.com/go-openapi/strfmt:cue_strfmt_library"], +) diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ack_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ack_go_gen.cue new file mode 100644 index 000000000..b5e3edb7a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ack_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Ack ack +// +// swagger:model Ack +#Ack: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/active_sync_status_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/active_sync_status_dto_go_gen.cue new file mode 100644 index 000000000..156151de9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/active_sync_status_dto_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ActiveSyncStatusDTO ActiveSyncStatusDTO holds the information for LDAP background Sync +// +// swagger:model ActiveSyncStatusDTO +#ActiveSyncStatusDTO: { + // enabled + enabled?: bool @go(Enabled) + + // prev sync + prevSync?: null | #SyncResult @go(PrevSync,*SyncResult) + + // schedule + schedule?: string @go(Schedule) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/active_user_stats_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/active_user_stats_go_gen.cue new file mode 100644 index 000000000..678afac3c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/active_user_stats_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ActiveUserStats active user stats +// +// swagger:model ActiveUserStats +#ActiveUserStats: { + // active admins and editors + active_admins_and_editors?: int64 @go(ActiveAdminsAndEditors) + + // active anonymous devices + active_anonymous_devices?: int64 @go(ActiveAnonymousDevices) + + // active users + active_users?: int64 @go(ActiveUsers) + + // active viewers + active_viewers?: int64 @go(ActiveViewers) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_api_key_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_api_key_command_go_gen.cue new file mode 100644 index 000000000..d291df25a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_api_key_command_go_gen.cue @@ -0,0 +1,32 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddAPIKeyCommand add API key command +// +// swagger:model AddAPIKeyCommand +#AddAPIKeyCommand: { + // name + name?: string @go(Name) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) + + // seconds to live + secondsToLive?: int64 @go(SecondsToLive) +} + +// AddAPIKeyCommandRoleNone captures enum value "None" +#AddAPIKeyCommandRoleNone: "None" + +// AddAPIKeyCommandRoleViewer captures enum value "Viewer" +#AddAPIKeyCommandRoleViewer: "Viewer" + +// AddAPIKeyCommandRoleEditor captures enum value "Editor" +#AddAPIKeyCommandRoleEditor: "Editor" + +// AddAPIKeyCommandRoleAdmin captures enum value "Admin" +#AddAPIKeyCommandRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_data_source_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_data_source_command_go_gen.cue new file mode 100644 index 000000000..4a8efb44e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_data_source_command_go_gen.cue @@ -0,0 +1,49 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddDataSourceCommand Also acts as api DTO +// +// swagger:model AddDataSourceCommand +#AddDataSourceCommand: { + // access + access?: #DsAccess @go(Access) + + // basic auth + basicAuth?: bool @go(BasicAuth) + + // basic auth user + basicAuthUser?: string @go(BasicAuthUser) + + // database + database?: string @go(Database) + + // is default + isDefault?: bool @go(IsDefault) + + // json data + jsonData?: #JSON @go(JSONData) + + // name + name?: string @go(Name) + + // secure Json data + secureJsonData?: {[string]: string} @go(SecureJSONData,map[string]string) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) + + // url + url?: string @go(URL) + + // user + user?: string @go(User) + + // with credentials + withCredentials?: bool @go(WithCredentials) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_data_source_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_data_source_ok_body_go_gen.cue new file mode 100644 index 000000000..cd8126bfb --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_data_source_ok_body_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddDataSourceOKBody add data source Ok body +// +// swagger:model addDataSourceOkBody +#AddDataSourceOKBody: { + // datasource + // Required: true + datasource?: null | #DataSource @go(Datasource,*DataSource) + + // ID Identifier of the new data source. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted dashboard. + // Example: Data source added + // Required: true + message?: null | string @go(Message,*string) + + // Name of the new data source. + // Example: My Data source + // Required: true + name?: null | string @go(Name,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_invite_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_invite_form_go_gen.cue new file mode 100644 index 000000000..7547c71c7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_invite_form_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddInviteForm add invite form +// +// swagger:model AddInviteForm +#AddInviteForm: { + // login or email + loginOrEmail?: string @go(LoginOrEmail) + + // name + name?: string @go(Name) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) + + // send email + sendEmail?: bool @go(SendEmail) +} + +// AddInviteFormRoleNone captures enum value "None" +#AddInviteFormRoleNone: "None" + +// AddInviteFormRoleViewer captures enum value "Viewer" +#AddInviteFormRoleViewer: "Viewer" + +// AddInviteFormRoleEditor captures enum value "Editor" +#AddInviteFormRoleEditor: "Editor" + +// AddInviteFormRoleAdmin captures enum value "Admin" +#AddInviteFormRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_org_user_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_org_user_command_go_gen.cue new file mode 100644 index 000000000..b0183fd91 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_org_user_command_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddOrgUserCommand add org user command +// +// swagger:model AddOrgUserCommand +#AddOrgUserCommand: { + // login or email + loginOrEmail?: string @go(LoginOrEmail) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) +} + +// AddOrgUserCommandRoleNone captures enum value "None" +#AddOrgUserCommandRoleNone: "None" + +// AddOrgUserCommandRoleViewer captures enum value "Viewer" +#AddOrgUserCommandRoleViewer: "Viewer" + +// AddOrgUserCommandRoleEditor captures enum value "Editor" +#AddOrgUserCommandRoleEditor: "Editor" + +// AddOrgUserCommandRoleAdmin captures enum value "Admin" +#AddOrgUserCommandRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_service_account_token_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_service_account_token_command_go_gen.cue new file mode 100644 index 000000000..aa0430d9d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_service_account_token_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddServiceAccountTokenCommand add service account token command +// +// swagger:model AddServiceAccountTokenCommand +#AddServiceAccountTokenCommand: { + // name + name?: string @go(Name) + + // seconds to live + secondsToLive?: int64 @go(SecondsToLive) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_team_member_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_team_member_command_go_gen.cue new file mode 100644 index 000000000..1c85eac8e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_team_member_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddTeamMemberCommand add team member command +// +// swagger:model AddTeamMemberCommand +#AddTeamMemberCommand: { + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_team_role_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_team_role_command_go_gen.cue new file mode 100644 index 000000000..6ab19810a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_team_role_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddTeamRoleCommand add team role command +// +// swagger:model AddTeamRoleCommand +#AddTeamRoleCommand: { + // role Uid + roleUid?: string @go(RoleUID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_user_role_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_user_role_command_go_gen.cue new file mode 100644 index 000000000..5729c7309 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/add_user_role_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AddUserRoleCommand add user role command +// +// swagger:model AddUserRoleCommand +#AddUserRoleCommand: { + // global + global?: bool @go(Global) + + // role Uid + roleUid?: string @go(RoleUID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/address_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/address_go_gen.cue new file mode 100644 index 000000000..b17519532 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/address_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Address address +// +// swagger:model Address +#Address: { + // address1 + address1?: string @go(Address1) + + // address2 + address2?: string @go(Address2) + + // city + city?: string @go(City) + + // country + country?: string @go(Country) + + // state + state?: string @go(State) + + // zip code + zipCode?: string @go(ZipCode) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_create_user_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_create_user_form_go_gen.cue new file mode 100644 index 000000000..48f96dc00 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_create_user_form_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AdminCreateUserForm admin create user form +// +// swagger:model AdminCreateUserForm +#AdminCreateUserForm: { + // email + email?: string @go(Email) + + // login + login?: string @go(Login) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // password + password?: string @go(Password) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_create_user_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_create_user_response_go_gen.cue new file mode 100644 index 000000000..02b224c9c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_create_user_response_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AdminCreateUserResponse admin create user response +// +// swagger:model AdminCreateUserResponse +#AdminCreateUserResponse: { + // id + id?: int64 @go(ID) + + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_stats_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_stats_go_gen.cue new file mode 100644 index 000000000..98f26d141 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_stats_go_gen.cue @@ -0,0 +1,82 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AdminStats admin stats +// +// swagger:model AdminStats +#AdminStats: { + // active admins + activeAdmins?: int64 @go(ActiveAdmins) + + // active devices + activeDevices?: int64 @go(ActiveDevices) + + // active editors + activeEditors?: int64 @go(ActiveEditors) + + // active sessions + activeSessions?: int64 @go(ActiveSessions) + + // active users + activeUsers?: int64 @go(ActiveUsers) + + // active viewers + activeViewers?: int64 @go(ActiveViewers) + + // admins + admins?: int64 @go(Admins) + + // alerts + alerts?: int64 @go(Alerts) + + // daily active admins + dailyActiveAdmins?: int64 @go(DailyActiveAdmins) + + // daily active editors + dailyActiveEditors?: int64 @go(DailyActiveEditors) + + // daily active sessions + dailyActiveSessions?: int64 @go(DailyActiveSessions) + + // daily active users + dailyActiveUsers?: int64 @go(DailyActiveUsers) + + // daily active viewers + dailyActiveViewers?: int64 @go(DailyActiveViewers) + + // dashboards + dashboards?: int64 @go(Dashboards) + + // datasources + datasources?: int64 @go(Datasources) + + // editors + editors?: int64 @go(Editors) + + // monthly active users + monthlyActiveUsers?: int64 @go(MonthlyActiveUsers) + + // orgs + orgs?: int64 @go(Orgs) + + // playlists + playlists?: int64 @go(Playlists) + + // snapshots + snapshots?: int64 @go(Snapshots) + + // stars + stars?: int64 @go(Stars) + + // tags + tags?: int64 @go(Tags) + + // users + users?: int64 @go(Users) + + // viewers + viewers?: int64 @go(Viewers) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_update_user_password_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_update_user_password_form_go_gen.cue new file mode 100644 index 000000000..c5c2e268a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_update_user_password_form_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AdminUpdateUserPasswordForm admin update user password form +// +// swagger:model AdminUpdateUserPasswordForm +#AdminUpdateUserPasswordForm: { + // password + password?: string @go(Password) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_update_user_permissions_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_update_user_permissions_form_go_gen.cue new file mode 100644 index 000000000..fc8cee151 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/admin_update_user_permissions_form_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AdminUpdateUserPermissionsForm admin update user permissions form +// +// swagger:model AdminUpdateUserPermissionsForm +#AdminUpdateUserPermissionsForm: { + // is grafana admin + isGrafanaAdmin?: bool @go(IsGrafanaAdmin) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_discovery_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_discovery_go_gen.cue new file mode 100644 index 000000000..d174d3369 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_discovery_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertDiscovery AlertDiscovery has info for all active alerts. +// +// swagger:model AlertDiscovery +#AlertDiscovery: { + // alerts + // Required: true + alerts: [...null | #Alert] @go(Alerts,[]*Alert) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_go_gen.cue new file mode 100644 index 000000000..502e9c918 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_go_gen.cue @@ -0,0 +1,26 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Alert Alert has info for an alert. +// +// swagger:model Alert +#Alert: { + // annotations + // Required: true + annotations: #OverrideLabels @go(Annotations) + + // labels + // Required: true + labels: #OverrideLabels @go(Labels) + + // state + // Required: true + state?: null | string @go(State,*string) + + // value + // Required: true + value?: null | string @go(Value,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_group_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_group_go_gen.cue new file mode 100644 index 000000000..4dec2129b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_group_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertGroup AlertGroup alert group +// +// swagger:model alertGroup +#AlertGroup: { + // alerts + // Required: true + alerts: [...null | #GettableAlert] @go(Alerts,[]*GettableAlert) + + // labels + // Required: true + labels: #LabelSet @go(Labels) + + // receiver + // Required: true + receiver?: null | #Receiver @go(Receiver,*Receiver) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_instances_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_instances_response_go_gen.cue new file mode 100644 index 000000000..3e788b283 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_instances_response_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertInstancesResponse alert instances response +// +// swagger:model AlertInstancesResponse +#AlertInstancesResponse: { + // Instances is an array of arrow encoded dataframes + // each frame has a single row, and a column for each instance (alert identified by unique labels) with a boolean value (firing/not firing) + instances: [...[...uint8]] @go(Instances,[][]uint8) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_list_item_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_list_item_dto_go_gen.cue new file mode 100644 index 000000000..0a788d676 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_list_item_dto_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertListItemDTO alert list item DTO +// +// swagger:model AlertListItemDTO +#AlertListItemDTO: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard slug + dashboardSlug?: string @go(DashboardSlug) + + // dashboard Uid + dashboardUid?: string @go(DashboardUID) + + // eval data + evalData?: #JSON @go(EvalData) + + // execution error + executionError?: string @go(ExecutionError) + + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) + + // panel Id + panelId?: int64 @go(PanelID) + + // state + state?: #AlertStateType @go(State) + + // url + url?: string @go(URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_manager_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_manager_go_gen.cue new file mode 100644 index 000000000..d2194ff1b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_manager_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertManager AlertManager models a configured Alert Manager. +// +// swagger:model AlertManager +#AlertManager: { + // url + url?: string @go(URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_managers_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_managers_result_go_gen.cue new file mode 100644 index 000000000..432b4c5d6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_managers_result_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertManagersResult AlertManagersResult contains the result from querying the alertmanagers endpoint. +// +// swagger:model AlertManagersResult +#AlertManagersResult: { + // active alert managers + activeAlertManagers: [...null | #AlertManager] @go(ActiveAlertManagers,[]*AlertManager) + + // dropped alert managers + droppedAlertManagers: [...null | #AlertManager] @go(DroppedAlertManagers,[]*AlertManager) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_notification_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_notification_go_gen.cue new file mode 100644 index 000000000..a56f3f26f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_notification_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertNotification alert notification +// +// swagger:model AlertNotification +#AlertNotification: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // frequency + frequency?: string @go(Frequency) + + // id + id?: int64 @go(ID) + + // is default + isDefault?: bool @go(IsDefault) + + // name + name?: string @go(Name) + + // secure fields + secureFields?: {[string]: bool} @go(SecureFields,map[string]bool) + + // send reminder + sendReminder?: bool @go(SendReminder) + + // settings + settings?: #JSON @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_notification_lookup_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_notification_lookup_go_gen.cue new file mode 100644 index 000000000..27ffd7470 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_notification_lookup_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertNotificationLookup alert notification lookup +// +// swagger:model AlertNotificationLookup +#AlertNotificationLookup: { + // id + id?: int64 @go(ID) + + // is default + isDefault?: bool @go(IsDefault) + + // name + name?: string @go(Name) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_pair_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_pair_go_gen.cue new file mode 100644 index 000000000..e1afee6e2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_pair_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertPair alert pair +// +// swagger:model AlertPair +#AlertPair: { + // alert rule + alertRule?: null | #AlertRuleUpgrade @go(AlertRule,*AlertRuleUpgrade) + + // error + error?: string @go(Error) + + // legacy alert + legacyAlert?: null | #LegacyAlert @go(LegacyAlert,*LegacyAlert) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_query_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_query_export_go_gen.cue new file mode 100644 index 000000000..2d48acd29 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_query_export_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertQueryExport AlertQueryExport is the provisioned export of models.AlertQuery. +// +// swagger:model AlertQueryExport +#AlertQueryExport: { + // datasource Uid + datasourceUid?: string @go(DatasourceUID) + + // model + model?: _ @go(Model,interface{}) + + // query type + queryType?: string @go(QueryType) + + // ref Id + refId?: string @go(RefID) + + // relative time range + relativeTimeRange?: null | #RelativeTimeRangeExport @go(RelativeTimeRange,*RelativeTimeRangeExport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_query_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_query_go_gen.cue new file mode 100644 index 000000000..5f5c7c1b4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_query_go_gen.cue @@ -0,0 +1,26 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertQuery AlertQuery represents a single query associated with an alert definition. +// +// swagger:model AlertQuery +#AlertQuery: { + // Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation. + datasourceUid?: string @go(DatasourceUID) + + // JSON is the raw JSON query and includes the above properties as well as custom properties. + model?: _ @go(Model,interface{}) + + // QueryType is an optional identifier for the type of query. + // It can be used to distinguish different types of queries. + queryType?: string @go(QueryType) + + // RefID is the unique identifier of the query, set by the frontend call. + refId?: string @go(RefID) + + // relative time range + relativeTimeRange?: null | #RelativeTimeRange @go(RelativeTimeRange,*RelativeTimeRange) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_export_go_gen.cue new file mode 100644 index 000000000..93304a4a6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_export_go_gen.cue @@ -0,0 +1,66 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertRuleExport AlertRuleExport is the provisioned file export of models.AlertRule. +// +// swagger:model AlertRuleExport +#AlertRuleExport: { + // annotations + annotations?: {[string]: string} @go(Annotations,map[string]string) + + // condition + condition?: string @go(Condition) + + // dasboard Uid + dasboardUid?: string @go(DasboardUID) + + // data + data: [...null | #AlertQueryExport] @go(Data,[]*AlertQueryExport) + + // exec err state + // Enum: [OK Alerting Error] + execErrState?: string @go(ExecErrState) + + // for + for?: #Duration @go(For) + + // is paused + isPaused?: bool @go(IsPaused) + + // labels + labels?: {[string]: string} @go(Labels,map[string]string) + + // no data state + // Enum: [Alerting NoData OK] + noDataState?: string @go(NoDataState) + + // panel Id + panelId?: int64 @go(PanelID) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} + +// AlertRuleExportExecErrStateOK captures enum value "OK" +#AlertRuleExportExecErrStateOK: "OK" + +// AlertRuleExportExecErrStateAlerting captures enum value "Alerting" +#AlertRuleExportExecErrStateAlerting: "Alerting" + +// AlertRuleExportExecErrStateError captures enum value "Error" +#AlertRuleExportExecErrStateError: "Error" + +// AlertRuleExportNoDataStateAlerting captures enum value "Alerting" +#AlertRuleExportNoDataStateAlerting: "Alerting" + +// AlertRuleExportNoDataStateNoData captures enum value "NoData" +#AlertRuleExportNoDataStateNoData: "NoData" + +// AlertRuleExportNoDataStateOK captures enum value "OK" +#AlertRuleExportNoDataStateOK: "OK" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_group_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_group_export_go_gen.cue new file mode 100644 index 000000000..b044b2f4c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_group_export_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertRuleGroupExport AlertRuleGroupExport is the provisioned file export of AlertRuleGroupV1. +// +// swagger:model AlertRuleGroupExport +#AlertRuleGroupExport: { + // folder + folder?: string @go(Folder) + + // interval + interval?: #Duration @go(Interval) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // rules + rules: [...null | #AlertRuleExport] @go(Rules,[]*AlertRuleExport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_group_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_group_go_gen.cue new file mode 100644 index 000000000..b6394780e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_group_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertRuleGroup alert rule group +// +// swagger:model AlertRuleGroup +#AlertRuleGroup: { + // folder Uid + folderUid?: string @go(FolderUID) + + // interval + interval?: int64 @go(Interval) + + // rules + rules: [...null | #ProvisionedAlertRule] @go(Rules,[]*ProvisionedAlertRule) + + // title + title?: string @go(Title) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_upgrade_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_upgrade_go_gen.cue new file mode 100644 index 000000000..731ee9469 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_rule_upgrade_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertRuleUpgrade alert rule upgrade +// +// swagger:model AlertRuleUpgrade +#AlertRuleUpgrade: { + // sends to + sendsTo: [...string] @go(SendsTo,[]string) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_state_info_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_state_info_dto_go_gen.cue new file mode 100644 index 000000000..2206aa198 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_state_info_dto_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertStateInfoDTO alert state info DTO +// +// swagger:model AlertStateInfoDTO +#AlertStateInfoDTO: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // id + id?: int64 @go(ID) + + // panel Id + panelId?: int64 @go(PanelID) + + // state + state?: #AlertStateType @go(State) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_state_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_state_type_go_gen.cue new file mode 100644 index 000000000..127dc9f71 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_state_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertStateType alert state type +// +// swagger:model AlertStateType +#AlertStateType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_status_go_gen.cue new file mode 100644 index 000000000..fbcd148b2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_status_go_gen.cue @@ -0,0 +1,26 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertStatus AlertStatus alert status +// +// swagger:model alertStatus +#AlertStatus: { + // inhibited by + // Required: true + inhibitedBy: [...string] @go(InhibitedBy,[]string) + + // silenced by + // Required: true + silencedBy: [...string] @go(SilencedBy,[]string) + + // state + // Required: true + // Enum: [[unprocessed active suppressed]] + state?: null | string @go(State,*string) +} + +// AlertStatusStateUnprocessedActiveSuppressed captures enum value "[unprocessed active suppressed]" +#AlertStatusStateUnprocessedActiveSuppressed: "[unprocessed active suppressed]" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_command_go_gen.cue new file mode 100644 index 000000000..96fac549a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertTestCommand alert test command +// +// swagger:model AlertTestCommand +#AlertTestCommand: { + // dashboard + dashboard?: #JSON @go(Dashboard) + + // panel Id + panelId?: int64 @go(PanelID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_result_go_gen.cue new file mode 100644 index 000000000..c48b7b55a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_result_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertTestResult alert test result +// +// swagger:model AlertTestResult +#AlertTestResult: { + // condition evals + conditionEvals?: string @go(ConditionEvals) + + // error + error?: string @go(Error) + + // firing + firing?: bool @go(Firing) + + // logs + logs: [...null | #AlertTestResultLog] @go(Logs,[]*AlertTestResultLog) + + // matches + matches: [...null | #EvalMatch] @go(Matches,[]*EvalMatch) + + // state + state?: #AlertStateType @go(State) + + // time ms + timeMs?: string @go(TimeMs) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_result_log_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_result_log_go_gen.cue new file mode 100644 index 000000000..de8280ca8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alert_test_result_log_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertTestResultLog alert test result log +// +// swagger:model AlertTestResultLog +#AlertTestResultLog: { + // data + data?: _ @go(Data,interface{}) + + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alerting_file_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alerting_file_export_go_gen.cue new file mode 100644 index 000000000..890e1d221 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alerting_file_export_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertingFileExport AlertingFileExport is the full provisioned file export. +// +// swagger:model AlertingFileExport +#AlertingFileExport: { + // api version + apiVersion?: int64 @go(APIVersion) + + // contact points + contactPoints: [...null | #ContactPointExport] @go(ContactPoints,[]*ContactPointExport) + + // groups + groups: [...null | #AlertRuleGroupExport] @go(Groups,[]*AlertRuleGroupExport) + + // mute times + muteTimes: [...null | #MuteTimeIntervalExport] @go(MuteTimes,[]*MuteTimeIntervalExport) + + // policies + policies: [...null | #NotificationPolicyExport] @go(Policies,[]*NotificationPolicyExport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alerting_rule_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alerting_rule_go_gen.cue new file mode 100644 index 000000000..a598a13b9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alerting_rule_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertingRule adapted from cortex +// +// swagger:model AlertingRule +#AlertingRule: { + // alerts + alerts: [...null | #Alert] @go(Alerts,[]*Alert) + + // annotations + // Required: true + annotations: #OverrideLabels @go(Annotations) + + // duration + duration?: float64 @go(Duration) + + // evaluation time + evaluationTime?: float64 @go(EvaluationTime) + + // health + // Required: true + health?: null | string @go(Health,*string) + + // labels + labels?: #OverrideLabels @go(Labels) + + // last error + lastError?: string @go(LastError) + + // name + // Required: true + name?: null | string @go(Name,*string) + + // query + // Required: true + query?: null | string @go(Query,*string) + + // State can be "pending", "firing", "inactive". + // Required: true + state?: null | string @go(State,*string) + + // totals + totals?: {[string]: int64} @go(Totals,map[string]int64) + + // totals filtered + totalsFiltered?: {[string]: int64} @go(TotalsFiltered,map[string]int64) + + // type + // Required: true + type?: null | #RuleType @go(Type,*RuleType) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alertmanager_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alertmanager_config_go_gen.cue new file mode 100644 index 000000000..57501ca0d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/alertmanager_config_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AlertmanagerConfig AlertmanagerConfig alertmanager config +// +// swagger:model alertmanagerConfig +#AlertmanagerConfig: { + // original + // Required: true + original?: null | string @go(Original,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_actions_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_actions_go_gen.cue new file mode 100644 index 000000000..7244746cb --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_actions_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AnnotationActions annotation actions +// +// swagger:model AnnotationActions +#AnnotationActions: { + // can add + canAdd?: bool @go(CanAdd) + + // can delete + canDelete?: bool @go(CanDelete) + + // can edit + canEdit?: bool @go(CanEdit) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_event_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_event_go_gen.cue new file mode 100644 index 000000000..ec7c34975 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_event_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AnnotationEvent annotation event +// +// swagger:model AnnotationEvent +#AnnotationEvent: { + // color + color?: string @go(Color) + + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // id + id?: int64 @go(ID) + + // is region + isRegion?: bool @go(IsRegion) + + // panel Id + panelId?: int64 @go(PanelID) + + // source + source?: null | #AnnotationQuery @go(Source,*AnnotationQuery) + + // tags + tags: [...string] @go(Tags,[]string) + + // text + text?: string @go(Text) + + // time + time?: int64 @go(Time) + + // time end + timeEnd?: int64 @go(TimeEnd) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_go_gen.cue new file mode 100644 index 000000000..f844e063b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_go_gen.cue @@ -0,0 +1,67 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Annotation annotation +// +// swagger:model Annotation +#Annotation: { + // alert Id + alertId?: int64 @go(AlertID) + + // alert name + alertName?: string @go(AlertName) + + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // created + created?: int64 @go(Created) + + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard UID + dashboardUID?: string @go(DashboardUID) + + // data + data?: #JSON @go(Data) + + // email + email?: string @go(Email) + + // id + id?: int64 @go(ID) + + // login + login?: string @go(Login) + + // new state + newState?: string @go(NewState) + + // panel Id + panelId?: int64 @go(PanelID) + + // prev state + prevState?: string @go(PrevState) + + // tags + tags: [...string] @go(Tags,[]string) + + // text + text?: string @go(Text) + + // time + time?: int64 @go(Time) + + // time end + timeEnd?: int64 @go(TimeEnd) + + // updated + updated?: int64 @go(Updated) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_panel_filter_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_panel_filter_go_gen.cue new file mode 100644 index 000000000..7cad67d2f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_panel_filter_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AnnotationPanelFilter AnnotationPanelFilter defines model for AnnotationPanelFilter. +// +// swagger:model AnnotationPanelFilter +#AnnotationPanelFilter: { + // Should the specified panels be included or excluded + exclude?: bool @go(Exclude) + + // Panel IDs that should be included or excluded + ids: [...int64] @go(Ids,[]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_permission_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_permission_go_gen.cue new file mode 100644 index 000000000..b58b85202 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_permission_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AnnotationPermission annotation permission +// +// swagger:model AnnotationPermission +#AnnotationPermission: { + // dashboard + dashboard?: null | #AnnotationActions @go(Dashboard,*AnnotationActions) + + // organization + organization?: null | #AnnotationActions @go(Organization,*AnnotationActions) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_query_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_query_go_gen.cue new file mode 100644 index 000000000..c768ab6a1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_query_go_gen.cue @@ -0,0 +1,39 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AnnotationQuery TODO docs +// FROM: AnnotationQuery in grafana-data/src/types/annotations.ts +// +// swagger:model AnnotationQuery +#AnnotationQuery: { + // Set to 1 for the standard annotation query all dashboards have by default. + builtIn?: float32 @go(BuiltIn) + + // datasource + datasource?: null | #DataSourceRef @go(Datasource,*DataSourceRef) + + // When enabled the annotation query is issued with every dashboard refresh + enable?: bool @go(Enable) + + // filter + filter?: null | #AnnotationPanelFilter @go(Filter,*AnnotationPanelFilter) + + // Annotation queries can be toggled on or off at the top of the dashboard. + // When hide is true, the toggle is not shown in the dashboard. + hide?: bool @go(Hide) + + // Color to use for the annotation event markers + iconColor?: string @go(IconColor) + + // Name of annotation. + name?: string @go(Name) + + // target + target?: null | #AnnotationTarget @go(Target,*AnnotationTarget) + + // TODO -- this should not exist here, it is based on the --grafana-- datasource + type?: string @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_target_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_target_go_gen.cue new file mode 100644 index 000000000..a2956ec64 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/annotation_target_go_gen.cue @@ -0,0 +1,27 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AnnotationTarget TODO: this should be a regular DataQuery that depends on the selected dashboard +// these match the properties of the "grafana" datasouce that is default in most dashboards +// +// swagger:model AnnotationTarget +#AnnotationTarget: { + // Only required/valid for the grafana datasource... + // but code+tests is already depending on it so hard to change + limit?: int64 @go(Limit) + + // Only required/valid for the grafana datasource... + // but code+tests is already depending on it so hard to change + matchAny?: bool @go(MatchAny) + + // Only required/valid for the grafana datasource... + // but code+tests is already depending on it so hard to change + tags: [...string] @go(Tags,[]string) + + // Only required/valid for the grafana datasource... + // but code+tests is already depending on it so hard to change + type?: string @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/api_key_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/api_key_dto_go_gen.cue new file mode 100644 index 000000000..e8c146520 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/api_key_dto_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// APIKeyDTO Api key DTO +// +// swagger:model ApiKeyDTO +#APIKeyDTO: { + // access control + accessControl?: #Metadata @go(AccessControl) + + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) +} + +// APIKeyDTORoleNone captures enum value "None" +#APIKeyDTORoleNone: "None" + +// APIKeyDTORoleViewer captures enum value "Viewer" +#APIKeyDTORoleViewer: "Viewer" + +// APIKeyDTORoleEditor captures enum value "Editor" +#APIKeyDTORoleEditor: "Editor" + +// APIKeyDTORoleAdmin captures enum value "Admin" +#APIKeyDTORoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/assignments_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/assignments_go_gen.cue new file mode 100644 index 000000000..491de00c0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/assignments_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Assignments assignments +// +// swagger:model Assignments +#Assignments: { + // built in roles + builtInRoles?: bool @go(BuiltInRoles) + + // service accounts + serviceAccounts?: bool @go(ServiceAccounts) + + // teams + teams?: bool @go(Teams) + + // users + users?: bool @go(Users) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/attribute_type_and_value_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/attribute_type_and_value_go_gen.cue new file mode 100644 index 000000000..fe8772036 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/attribute_type_and_value_go_gen.cue @@ -0,0 +1,17 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// AttributeTypeAndValue AttributeTypeAndValue mirrors the ASN.1 structure of the same name in +// RFC 5280, Section 4.1.2.4. +// +// swagger:model AttributeTypeAndValue +#AttributeTypeAndValue: { + // type + Type?: #ObjectIdentifier + + // value + Value?: _ @go(,interface{}) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/authorization_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/authorization_go_gen.cue new file mode 100644 index 000000000..98efe2454 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/authorization_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Authorization Authorization contains HTTP authorization credentials. +// +// swagger:model Authorization +#Authorization: { + // credentials + credentials?: #Secret @go(Credentials) + + // credentials file + credentials_file?: string @go(CredentialsFile) + + // type + type?: string @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/basic_auth_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/basic_auth_go_gen.cue new file mode 100644 index 000000000..f76f05806 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/basic_auth_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// BasicAuth BasicAuth contains basic HTTP authentication credentials. +// +// swagger:model BasicAuth +#BasicAuth: { + // password + password?: #Secret @go(Password) + + // password file + password_file?: string @go(PasswordFile) + + // username + username?: string @go(Username) + + // username file + username_file?: string @go(UsernameFile) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/calculate_dashboard_diff_params_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/calculate_dashboard_diff_params_body_go_gen.cue new file mode 100644 index 000000000..2cb3ac9a4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/calculate_dashboard_diff_params_body_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CalculateDashboardDiffParamsBody calculate dashboard diff params body +// +// swagger:model calculateDashboardDiffParamsBody +#CalculateDashboardDiffParamsBody: { + // base + base?: null | #CalculateDiffTarget @go(Base,*CalculateDiffTarget) + + // The type of diff to return + // Description: + // `basic` + // `json` + // Enum: [basic json] + diffType?: string @go(DiffType) + + // new + new?: null | #CalculateDiffTarget @go(New,*CalculateDiffTarget) +} + +// CalculateDashboardDiffParamsBodyDiffTypeBasic captures enum value "basic" +#CalculateDashboardDiffParamsBodyDiffTypeBasic: "basic" + +// CalculateDashboardDiffParamsBodyDiffTypeJSON captures enum value "json" +#CalculateDashboardDiffParamsBodyDiffTypeJSON: "json" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/calculate_diff_target_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/calculate_diff_target_go_gen.cue new file mode 100644 index 000000000..bbb6ac6f7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/calculate_diff_target_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CalculateDiffTarget calculate diff target +// +// swagger:model CalculateDiffTarget +#CalculateDiffTarget: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // unsaved dashboard + unsavedDashboard?: #JSON @go(UnsavedDashboard) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/certificate_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/certificate_go_gen.cue new file mode 100644 index 000000000..b9a0c6831 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/certificate_go_gen.cue @@ -0,0 +1,166 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Certificate A Certificate represents an X.509 certificate. +// +// swagger:model Certificate +#Certificate: { + // authority key Id + AuthorityKeyId: [...uint8] @go(AuthorityKeyID,[]uint8) + + // BasicConstraintsValid indicates whether IsCA, MaxPathLen, + // and MaxPathLenZero are valid. + BasicConstraintsValid?: bool + + // CRL Distribution Points + CRLDistributionPoints: [...string] @go(,[]string) + + // Subject Alternate Name values. (Note that these values may not be valid + // if invalid values were contained within a parsed certificate. For + // example, an element of DNSNames may not be a valid DNS domain name.) + DNSNames: [...string] @go(,[]string) + + // email addresses + EmailAddresses: [...string] @go(,[]string) + + // excluded DNS domains + ExcludedDNSDomains: [...string] @go(,[]string) + + // excluded email addresses + ExcludedEmailAddresses: [...string] @go(,[]string) + + // excluded IP ranges + ExcludedIPRanges: [...null | #IPNet] @go(,[]*IPNet) + + // excluded URI domains + ExcludedURIDomains: [...string] @go(,[]string) + + // ext key usage + ExtKeyUsage: [...#ExtKeyUsage] @go(,[]ExtKeyUsage) + + // Extensions contains raw X.509 extensions. When parsing certificates, + // this can be used to extract non-critical extensions that are not + // parsed by this package. When marshaling certificates, the Extensions + // field is ignored, see ExtraExtensions. + Extensions: [...null | #Extension] @go(,[]*Extension) + + // ExtraExtensions contains extensions to be copied, raw, into any + // marshaled certificates. Values override any extensions that would + // otherwise be produced based on the other fields. The ExtraExtensions + // field is not populated when parsing certificates, see Extensions. + ExtraExtensions: [...null | #Extension] @go(,[]*Extension) + + // IP addresses + IPAddresses: [...string] @go(,[]string) + + // is c a + IsCA?: bool + + // issuer + Issuer?: null | #Name @go(,*Name) + + // issuing certificate URL + IssuingCertificateURL: [...string] @go(,[]string) + + // key usage + KeyUsage?: #KeyUsage + + // MaxPathLen and MaxPathLenZero indicate the presence and + // value of the BasicConstraints' "pathLenConstraint". + // + // When parsing a certificate, a positive non-zero MaxPathLen + // means that the field was specified, -1 means it was unset, + // and MaxPathLenZero being true mean that the field was + // explicitly set to zero. The case of MaxPathLen==0 with MaxPathLenZero==false + // should be treated equivalent to -1 (unset). + // + // When generating a certificate, an unset pathLenConstraint + // can be requested with either MaxPathLen == -1 or using the + // zero value for both MaxPathLen and MaxPathLenZero. + MaxPathLen?: int64 + + // MaxPathLenZero indicates that BasicConstraintsValid==true + // and MaxPathLen==0 should be interpreted as an actual + // maximum path length of zero. Otherwise, that combination is + // interpreted as MaxPathLen not being set. + MaxPathLenZero?: bool + + // RFC 5280, 4.2.2.1 (Authority Information Access) + OCSPServer: [...string] @go(,[]string) + + // permitted DNS domains + PermittedDNSDomains: [...string] @go(,[]string) + + // Name constraints + PermittedDNSDomainsCritical?: bool + + // permitted email addresses + PermittedEmailAddresses: [...string] @go(,[]string) + + // permitted IP ranges + PermittedIPRanges: [...null | #IPNet] @go(,[]*IPNet) + + // permitted URI domains + PermittedURIDomains: [...string] @go(,[]string) + + // policy identifiers + PolicyIdentifiers: [...#ObjectIdentifier] @go(,[]ObjectIdentifier) + + // public key + PublicKey?: _ @go(,interface{}) + + // public key algorithm + PublicKeyAlgorithm?: #PublicKeyAlgorithm + + // raw + Raw: [...uint8] @go(,[]uint8) + + // raw issuer + RawIssuer: [...uint8] @go(,[]uint8) + + // raw subject + RawSubject: [...uint8] @go(,[]uint8) + + // raw subject public key info + RawSubjectPublicKeyInfo: [...uint8] @go(,[]uint8) + + // raw t b s certificate + RawTBSCertificate: [...uint8] @go(,[]uint8) + + // serial number + SerialNumber?: string + + // signature + Signature: [...uint8] @go(,[]uint8) + + // signature algorithm + SignatureAlgorithm?: #SignatureAlgorithm + + // subject + Subject?: null | #Name @go(,*Name) + + // subject key Id + SubjectKeyId: [...uint8] @go(SubjectKeyID,[]uint8) + + // u r is + URIs: [...null | #URL] @go(,[]*URL) + + // UnhandledCriticalExtensions contains a list of extension IDs that + // were not (fully) processed when parsing. Verify will fail if this + // slice is non-empty, unless verification is delegated to an OS + // library which understands all the critical extensions. + // + // Users can access these extensions using Extensions and can remove + // elements from this slice if they believe that they have been + // handled. + UnhandledCriticalExtensions: [...#ObjectIdentifier] @go(,[]ObjectIdentifier) + + // unknown ext key usage + UnknownExtKeyUsage: [...#ObjectIdentifier] @go(,[]ObjectIdentifier) + + // version + Version?: int64 +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/change_user_password_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/change_user_password_command_go_gen.cue new file mode 100644 index 000000000..2dcf154a0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/change_user_password_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ChangeUserPasswordCommand change user password command +// +// swagger:model ChangeUserPasswordCommand +#ChangeUserPasswordCommand: { + // new password + newPassword?: string @go(NewPassword) + + // old password + oldPassword?: string @go(OldPassword) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/clear_help_flags_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/clear_help_flags_ok_body_go_gen.cue new file mode 100644 index 000000000..00f7535a6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/clear_help_flags_ok_body_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ClearHelpFlagsOKBody clear help flags Ok body +// +// swagger:model clearHelpFlagsOkBody +#ClearHelpFlagsOKBody: { + // help flags1 + helpFlags1?: int64 @go(HelpFlags1) + + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cluster_status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cluster_status_go_gen.cue new file mode 100644 index 000000000..0127e34b5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cluster_status_go_gen.cue @@ -0,0 +1,24 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ClusterStatus ClusterStatus cluster status +// +// swagger:model clusterStatus +#ClusterStatus: { + // name + name?: string @go(Name) + + // peers + peers: [...null | #PeerStatus] @go(Peers,[]*PeerStatus) + + // status + // Required: true + // Enum: [[ready settling disabled]] + status?: null | string @go(Status,*string) +} + +// ClusterStatusStatusReadySettlingDisabled captures enum value "[ready settling disabled]" +#ClusterStatusStatusReadySettlingDisabled: "[ready settling disabled]" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/conf_float64_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/conf_float64_go_gen.cue new file mode 100644 index 000000000..d1471b3b8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/conf_float64_go_gen.cue @@ -0,0 +1,11 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ConfFloat64 ConfFloat64 is a float64. It Marshals float64 values of NaN of Inf +// to null. +// +// swagger:model ConfFloat64 +#ConfFloat64: float64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_pair_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_pair_go_gen.cue new file mode 100644 index 000000000..479693bcd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_pair_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ContactPair contact pair +// +// swagger:model ContactPair +#ContactPair: { + // contact point + contactPoint?: null | #ContactPointUpgrade @go(ContactPoint,*ContactPointUpgrade) + + // error + error?: string @go(Error) + + // legacy channel + legacyChannel?: null | #LegacyChannel @go(LegacyChannel,*LegacyChannel) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_point_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_point_export_go_gen.cue new file mode 100644 index 000000000..3634049e9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_point_export_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ContactPointExport ContactPointExport is the provisioned file export of alerting.ContactPointV1. +// +// swagger:model ContactPointExport +#ContactPointExport: { + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // receivers + receivers: [...null | #ReceiverExport] @go(Receivers,[]*ReceiverExport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_point_upgrade_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_point_upgrade_go_gen.cue new file mode 100644 index 000000000..0fe10c6b1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_point_upgrade_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ContactPointUpgrade contact point upgrade +// +// swagger:model ContactPointUpgrade +#ContactPointUpgrade: { + // name + name?: string @go(Name) + + // route matchers + routeMatchers?: #ObjectMatchers @go(RouteMatchers) + + // type + type?: string @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_points_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_points_go_gen.cue new file mode 100644 index 000000000..afd6a714a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/contact_points_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ContactPoints contact points +// +// swagger:model ContactPoints +#ContactPoints: [...null | #EmbeddedContactPoint] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cookie_preferences_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cookie_preferences_go_gen.cue new file mode 100644 index 000000000..c398a9e29 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cookie_preferences_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CookiePreferences CookiePreferences defines model for CookiePreferences. +// +// swagger:model CookiePreferences +#CookiePreferences: { + // analytics + analytics?: _ @go(Analytics,interface{}) + + // functional + functional?: _ @go(Functional,interface{}) + + // performance + performance?: _ @go(Performance,interface{}) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cookie_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cookie_type_go_gen.cue new file mode 100644 index 000000000..161666aaf --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/cookie_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CookieType cookie type +// +// swagger:model CookieType +#CookieType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_go_gen.cue new file mode 100644 index 000000000..07216ce9e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_go_gen.cue @@ -0,0 +1,27 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CorrelationConfig correlation config +// +// swagger:model CorrelationConfig +#CorrelationConfig: { + // Field used to attach the correlation link + // Example: message + // Required: true + field?: null | string @go(Field,*string) + + // Target data query + // Example: {"prop1":"value1","prop2":"value"} + // Required: true + target: _ @go(Target,interface{}) + + // transformations + transformations?: #Transformations @go(Transformations) + + // type + // Required: true + type?: null | #CorrelationConfigType @go(Type,*CorrelationConfigType) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_type_go_gen.cue new file mode 100644 index 000000000..31da441a3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CorrelationConfigType correlation config type +// +// swagger:model CorrelationConfigType +#CorrelationConfigType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_update_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_update_dto_go_gen.cue new file mode 100644 index 000000000..ef7dea7be --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_config_update_dto_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CorrelationConfigUpdateDTO correlation config update DTO +// +// swagger:model CorrelationConfigUpdateDTO +#CorrelationConfigUpdateDTO: { + // Field used to attach the correlation link + // Example: message + field?: string @go(Field) + + // Target data query + // Example: {"prop1":"value1","prop2":"value"} + target?: _ @go(Target,interface{}) + + // Source data transformations + // Example: [{"type":"logfmt"},{"expression":"(Superman|Batman)","type":"regex","variable":"name"}] + transformations: [...null | #Transformation] @go(Transformations,[]*Transformation) + + // type + type?: #CorrelationConfigType @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_go_gen.cue new file mode 100644 index 000000000..a71c8d34e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/correlation_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Correlation Correlation is the model for correlations definitions +// +// swagger:model Correlation +#Correlation: { + // config + config?: null | #CorrelationConfig @go(Config,*CorrelationConfig) + + // Description of the correlation + // Example: Logs to Traces + description?: string @go(Description) + + // Label identifying the correlation + // Example: My Label + label?: string @go(Label) + + // OrgID of the data source the correlation originates from + // Example: 1 + orgId?: int64 @go(OrgID) + + // Provisioned True if the correlation was created during provisioning + provisioned?: bool @go(Provisioned) + + // UID of the data source the correlation originates from + // Example: d0oxYRg4z + sourceUID?: string @go(SourceUID) + + // UID of the data source the correlation points to + // Example: PE1C5CBDA0504A6A3 + targetUID?: string @go(TargetUID) + + // Unique identifier of the correlation + // Example: 50xhMlg9k + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/counter_reset_hint_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/counter_reset_hint_go_gen.cue new file mode 100644 index 000000000..494a2add6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/counter_reset_hint_go_gen.cue @@ -0,0 +1,12 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CounterResetHint CounterResetHint contains the known information about a counter reset, +// +// or alternatively that we are dealing with a gauge histogram, where counter resets do not apply. +// +// swagger:model CounterResetHint +#CounterResetHint: uint8 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_alert_notification_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_alert_notification_command_go_gen.cue new file mode 100644 index 000000000..93527dfe9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_alert_notification_command_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateAlertNotificationCommand create alert notification command +// +// swagger:model CreateAlertNotificationCommand +#CreateAlertNotificationCommand: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // frequency + frequency?: string @go(Frequency) + + // is default + isDefault?: bool @go(IsDefault) + + // name + name?: string @go(Name) + + // secure settings + secureSettings?: {[string]: string} @go(SecureSettings,map[string]string) + + // send reminder + sendReminder?: bool @go(SendReminder) + + // settings + settings?: #JSON @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_correlation_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_correlation_command_go_gen.cue new file mode 100644 index 000000000..cb51ffde8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_correlation_command_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateCorrelationCommand CreateCorrelationCommand is the command for creating a correlation +// +// swagger:model CreateCorrelationCommand +#CreateCorrelationCommand: { + // config + config?: null | #CorrelationConfig @go(Config,*CorrelationConfig) + + // Optional description of the correlation + // Example: Logs to Traces + description?: string @go(Description) + + // Optional label identifying the correlation + // Example: My label + label?: string @go(Label) + + // True if correlation was created with provisioning. This makes it read-only. + provisioned?: bool @go(Provisioned) + + // Target data source UID to which the correlation is created. required if config.type = query + // Example: PE1C5CBDA0504A6A3 + targetUID?: string @go(TargetUID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_correlation_response_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_correlation_response_body_go_gen.cue new file mode 100644 index 000000000..868b53417 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_correlation_response_body_go_gen.cue @@ -0,0 +1,17 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateCorrelationResponseBody CreateCorrelationResponse is the response struct for CreateCorrelationCommand +// +// swagger:model CreateCorrelationResponseBody +#CreateCorrelationResponseBody: { + // message + // Example: Correlation created + message?: string @go(Message) + + // result + result?: null | #Correlation @go(Result,*Correlation) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_dashboard_snapshot_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_dashboard_snapshot_command_go_gen.cue new file mode 100644 index 000000000..e8c8a853f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_dashboard_snapshot_command_go_gen.cue @@ -0,0 +1,30 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateDashboardSnapshotCommand create dashboard snapshot command +// +// swagger:model CreateDashboardSnapshotCommand +#CreateDashboardSnapshotCommand: { + // dashboard + // Required: true + dashboard: #JSON @go(Dashboard) + + // Unique key used to delete the snapshot. It is different from the `key` so that only the creator can delete the snapshot. Required if `external` is `true`. + deleteKey?: string @go(DeleteKey) + + // When the snapshot should expire in seconds in seconds. Default is never to expire. + expires?: int64 @go(Expires) + + // these are passed when storing an external snapshot ref + // Save the snapshot on an external server rather than locally. + external?: null | bool @go(External,*bool) + + // Define the unique key. Required if `external` is `true`. + key?: string @go(Key) + + // Snapshot name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_dashboard_snapshot_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_dashboard_snapshot_ok_body_go_gen.cue new file mode 100644 index 000000000..5431855a2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_dashboard_snapshot_ok_body_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateDashboardSnapshotOKBody create dashboard snapshot Ok body +// +// swagger:model createDashboardSnapshotOkBody +#CreateDashboardSnapshotOKBody: { + // Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot. + deleteKey?: string @go(DeleteKey) + + // delete Url + deleteUrl?: string @go(DeleteURL) + + // Snapshot id + id?: int64 @go(ID) + + // Unique key + key?: string @go(Key) + + // url + url?: string @go(URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_folder_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_folder_command_go_gen.cue new file mode 100644 index 000000000..e8a7a9516 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_folder_command_go_gen.cue @@ -0,0 +1,23 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateFolderCommand CreateFolderCommand captures the information required by the folder service +// to create a folder. +// +// swagger:model CreateFolderCommand +#CreateFolderCommand: { + // description + description?: string @go(Description) + + // parent Uid + parentUid?: string @go(ParentUID) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_library_element_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_library_element_command_go_gen.cue new file mode 100644 index 000000000..391291d29 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_library_element_command_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateLibraryElementCommand CreateLibraryElementCommand is the command for adding a LibraryElement +// +// swagger:model CreateLibraryElementCommand +#CreateLibraryElementCommand: { + // ID of the folder where the library element is stored. + // + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // UID of the folder where the library element is stored. + folderUid?: string @go(FolderUID) + + // Kind of element to create, Use 1 for library panels or 2 for c. + // Description: + // 1 - library panels + // 2 - library variables + // Enum: [1 2] + kind?: int64 @go(Kind) + + // The JSON model for the library element. + model?: _ @go(Model,interface{}) + + // Name of the library element. + name?: string @go(Name) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_or_update_report_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_or_update_report_config_go_gen.cue new file mode 100644 index 000000000..430f1cc5d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_or_update_report_config_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateOrUpdateReportConfig create or update report config +// +// swagger:model CreateOrUpdateReportConfig +#CreateOrUpdateReportConfig: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard Uid + dashboardUid?: string @go(DashboardUID) + + // dashboards + dashboards: [...null | #ReportDashboard] @go(Dashboards,[]*ReportDashboard) + + // enable Csv + enableCsv?: bool @go(EnableCSV) + + // enable dashboard Url + enableDashboardUrl?: bool @go(EnableDashboardURL) + + // formats + formats: [...#Type] @go(Formats,[]Type) + + // message + message?: string @go(Message) + + // name + name?: string @go(Name) + + // options + options?: null | #ReportOptions @go(Options,*ReportOptions) + + // recipients + recipients?: string @go(Recipients) + + // reply to + replyTo?: string @go(ReplyTo) + + // scale factor + scaleFactor?: int64 @go(ScaleFactor) + + // schedule + schedule?: null | #ReportSchedule @go(Schedule,*ReportSchedule) + + // state + state?: #State @go(State) + + // template vars + templateVars?: _ @go(TemplateVars,interface{}) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_org_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_org_command_go_gen.cue new file mode 100644 index 000000000..a26b879b5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_org_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateOrgCommand create org command +// +// swagger:model CreateOrgCommand +#CreateOrgCommand: { + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_org_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_org_ok_body_go_gen.cue new file mode 100644 index 000000000..f0366818d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_org_ok_body_go_gen.cue @@ -0,0 +1,20 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateOrgOKBody create org Ok body +// +// swagger:model createOrgOkBody +#CreateOrgOKBody: { + // Message Message of the created org. + // Example: Data source added + // Required: true + message?: null | string @go(Message,*string) + + // ID Identifier of the created org. + // Example: 65 + // Required: true + orgId?: null | int64 @go(OrgID,*int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_playlist_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_playlist_command_go_gen.cue new file mode 100644 index 000000000..c8b569885 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_playlist_command_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreatePlaylistCommand create playlist command +// +// swagger:model CreatePlaylistCommand +#CreatePlaylistCommand: { + // interval + interval?: string @go(Interval) + + // items + items: [...null | #PlaylistItem] @go(Items,[]*PlaylistItem) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_query_in_query_history_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_query_in_query_history_command_go_gen.cue new file mode 100644 index 000000000..8b85af850 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_query_in_query_history_command_go_gen.cue @@ -0,0 +1,18 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateQueryInQueryHistoryCommand CreateQueryInQueryHistoryCommand is the command for adding query history +// +// swagger:model CreateQueryInQueryHistoryCommand +#CreateQueryInQueryHistoryCommand: { + // UID of the data source for which are queries stored. + // Example: PE1C5CBDA0504A6A3 + datasourceUid?: string @go(DatasourceUID) + + // queries + // Required: true + queries: #JSON @go(Queries) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_report_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_report_ok_body_go_gen.cue new file mode 100644 index 000000000..3802826a4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_report_ok_body_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateReportOKBody create report Ok body +// +// swagger:model createReportOkBody +#CreateReportOKBody: { + // id + id?: int64 @go(ID) + + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_role_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_role_form_go_gen.cue new file mode 100644 index 000000000..2bd1fed74 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_role_form_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateRoleForm create role form +// +// swagger:model CreateRoleForm +#CreateRoleForm: { + // description + description?: string @go(Description) + + // display name + displayName?: string @go(DisplayName) + + // global + global?: bool @go(Global) + + // group + group?: string @go(Group) + + // hidden + hidden?: bool @go(Hidden) + + // name + name?: string @go(Name) + + // permissions + permissions: [...null | #Permission] @go(Permissions,[]*Permission) + + // uid + uid?: string @go(UID) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_service_account_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_service_account_form_go_gen.cue new file mode 100644 index 000000000..40b3d1b26 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_service_account_form_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateServiceAccountForm create service account form +// +// swagger:model CreateServiceAccountForm +#CreateServiceAccountForm: { + // is disabled + // Example: false + isDisabled?: bool @go(IsDisabled) + + // name + // Example: grafana + name?: string @go(Name) + + // role + // Example: Admin + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) +} + +// CreateServiceAccountFormRoleNone captures enum value "None" +#CreateServiceAccountFormRoleNone: "None" + +// CreateServiceAccountFormRoleViewer captures enum value "Viewer" +#CreateServiceAccountFormRoleViewer: "Viewer" + +// CreateServiceAccountFormRoleEditor captures enum value "Editor" +#CreateServiceAccountFormRoleEditor: "Editor" + +// CreateServiceAccountFormRoleAdmin captures enum value "Admin" +#CreateServiceAccountFormRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_team_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_team_command_go_gen.cue new file mode 100644 index 000000000..0783df25b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_team_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateTeamCommand create team command +// +// swagger:model CreateTeamCommand +#CreateTeamCommand: { + // email + email?: string @go(Email) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_team_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_team_ok_body_go_gen.cue new file mode 100644 index 000000000..d1c1b34f2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/create_team_ok_body_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// CreateTeamOKBody create team Ok body +// +// swagger:model createTeamOkBody +#CreateTeamOKBody: { + // message + message?: string @go(Message) + + // team Id + teamId?: int64 @go(TeamID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_acl_info_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_acl_info_dto_go_gen.cue new file mode 100644 index 000000000..e422d6d73 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_acl_info_dto_go_gen.cue @@ -0,0 +1,83 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardACLInfoDTO dashboard ACL info DTO +// +// swagger:model DashboardACLInfoDTO +#DashboardACLInfoDTO: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder Uid + folderUid?: string @go(FolderUID) + + // inherited + inherited?: bool @go(Inherited) + + // is folder + isFolder?: bool @go(IsFolder) + + // permission + permission?: #PermissionType @go(Permission) + + // permission name + permissionName?: string @go(PermissionName) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) + + // slug + slug?: string @go(Slug) + + // team + team?: string @go(Team) + + // team avatar Url + teamAvatarUrl?: string @go(TeamAvatarURL) + + // team email + teamEmail?: string @go(TeamEmail) + + // team Id + teamId?: int64 @go(TeamID) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) + + // url + url?: string @go(URL) + + // user avatar Url + userAvatarUrl?: string @go(UserAvatarURL) + + // user email + userEmail?: string @go(UserEmail) + + // user Id + userId?: int64 @go(UserID) + + // user login + userLogin?: string @go(UserLogin) +} + +// DashboardACLInfoDTORoleNone captures enum value "None" +#DashboardACLInfoDTORoleNone: "None" + +// DashboardACLInfoDTORoleViewer captures enum value "Viewer" +#DashboardACLInfoDTORoleViewer: "Viewer" + +// DashboardACLInfoDTORoleEditor captures enum value "Editor" +#DashboardACLInfoDTORoleEditor: "Editor" + +// DashboardACLInfoDTORoleAdmin captures enum value "Admin" +#DashboardACLInfoDTORoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_acl_update_item_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_acl_update_item_go_gen.cue new file mode 100644 index 000000000..085d2da2c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_acl_update_item_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardACLUpdateItem dashboard ACL update item +// +// swagger:model DashboardACLUpdateItem +#DashboardACLUpdateItem: { + // permission + permission?: #PermissionType @go(Permission) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) + + // team Id + teamId?: int64 @go(TeamID) + + // user Id + userId?: int64 @go(UserID) +} + +// DashboardACLUpdateItemRoleNone captures enum value "None" +#DashboardACLUpdateItemRoleNone: "None" + +// DashboardACLUpdateItemRoleViewer captures enum value "Viewer" +#DashboardACLUpdateItemRoleViewer: "Viewer" + +// DashboardACLUpdateItemRoleEditor captures enum value "Editor" +#DashboardACLUpdateItemRoleEditor: "Editor" + +// DashboardACLUpdateItemRoleAdmin captures enum value "Admin" +#DashboardACLUpdateItemRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_full_with_meta_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_full_with_meta_go_gen.cue new file mode 100644 index 000000000..ef914d140 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_full_with_meta_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardFullWithMeta dashboard full with meta +// +// swagger:model DashboardFullWithMeta +#DashboardFullWithMeta: { + // dashboard + dashboard?: #JSON @go(Dashboard) + + // meta + meta?: null | #DashboardMeta @go(Meta,*DashboardMeta) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_meta_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_meta_go_gen.cue new file mode 100644 index 000000000..16bc630b5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_meta_go_gen.cue @@ -0,0 +1,82 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardMeta dashboard meta +// +// swagger:model DashboardMeta +#DashboardMeta: { + // annotations permissions + annotationsPermissions?: null | #AnnotationPermission @go(AnnotationsPermissions,*AnnotationPermission) + + // can admin + canAdmin?: bool @go(CanAdmin) + + // can delete + canDelete?: bool @go(CanDelete) + + // can edit + canEdit?: bool @go(CanEdit) + + // can save + canSave?: bool @go(CanSave) + + // can star + canStar?: bool @go(CanStar) + + // created by + createdBy?: string @go(CreatedBy) + + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder title + folderTitle?: string @go(FolderTitle) + + // folder Uid + folderUid?: string @go(FolderUID) + + // folder Url + folderUrl?: string @go(FolderURL) + + // has Acl + hasAcl?: bool @go(HasACL) + + // is folder + isFolder?: bool @go(IsFolder) + + // is snapshot + isSnapshot?: bool @go(IsSnapshot) + + // is starred + isStarred?: bool @go(IsStarred) + + // provisioned + provisioned?: bool @go(Provisioned) + + // provisioned external Id + provisionedExternalId?: string @go(ProvisionedExternalID) + + // public dashboard enabled + publicDashboardEnabled?: bool @go(PublicDashboardEnabled) + + // public dashboard Uid + publicDashboardUid?: string @go(PublicDashboardUID) + + // slug + slug?: string @go(Slug) + + // type + type?: string @go(Type) + + // updated by + updatedBy?: string @go(UpdatedBy) + + // url + url?: string @go(URL) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_snapshot_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_snapshot_dto_go_gen.cue new file mode 100644 index 000000000..5fa20bd90 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_snapshot_dto_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardSnapshotDTO DashboardSnapshotDTO without dashboard map +// +// swagger:model DashboardSnapshotDTO +#DashboardSnapshotDTO: { + // external + external?: bool @go(External) + + // external Url + externalUrl?: string @go(ExternalURL) + + // key + key?: string @go(Key) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_tag_cloud_item_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_tag_cloud_item_go_gen.cue new file mode 100644 index 000000000..f315fa34d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_tag_cloud_item_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardTagCloudItem dashboard tag cloud item +// +// swagger:model DashboardTagCloudItem +#DashboardTagCloudItem: { + // count + count?: int64 @go(Count) + + // term + term?: string @go(Term) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_upgrade_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_upgrade_go_gen.cue new file mode 100644 index 000000000..b5eece622 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_upgrade_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardUpgrade dashboard upgrade +// +// swagger:model DashboardUpgrade +#DashboardUpgrade: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard name + dashboardName?: string @go(DashboardName) + + // dashboard Uid + dashboardUid?: string @go(DashboardUID) + + // error + error?: string @go(Error) + + // folder name + folderName?: string @go(FolderName) + + // folder Uid + folderUid?: string @go(FolderUID) + + // migrated alerts + migratedAlerts: [...null | #AlertPair] @go(MigratedAlerts,[]*AlertPair) + + // new folder name + newFolderName?: string @go(NewFolderName) + + // new folder Uid + newFolderUid?: string @go(NewFolderUID) + + // provisioned + provisioned?: bool @go(Provisioned) + + // warning + warning?: string @go(Warning) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_version_meta_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_version_meta_go_gen.cue new file mode 100644 index 000000000..913ff2d87 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/dashboard_version_meta_go_gen.cue @@ -0,0 +1,39 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DashboardVersionMeta DashboardVersionMeta extends the DashboardVersionDTO with the names +// associated with the UserIds, overriding the field with the same name from +// the DashboardVersionDTO model. +// +// swagger:model DashboardVersionMeta +#DashboardVersionMeta: { + // created by + createdBy?: string @go(CreatedBy) + + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // data + data?: #JSON @go(Data) + + // id + id?: int64 @go(ID) + + // message + message?: string @go(Message) + + // parent version + parentVersion?: int64 @go(ParentVersion) + + // restored from + restoredFrom?: int64 @go(RestoredFrom) + + // uid + uid?: string @go(UID) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_link_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_link_go_gen.cue new file mode 100644 index 000000000..84520fd58 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_link_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataLink DataLink define what +// +// swagger:model DataLink +#DataLink: { + // internal + internal?: null | #InternalDataLink @go(Internal,*InternalDataLink) + + // target blank + targetBlank?: bool @go(TargetBlank) + + // title + title?: string @go(Title) + + // url + url?: string @go(URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_response_go_gen.cue new file mode 100644 index 000000000..0e4f8ea6b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_response_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataResponse DataResponse contains the results from a DataQuery. +// +// A map of RefIDs (unique query identifiers) to this type makes up the Responses property of a QueryDataResponse. +// The Error property is used to allow for partial success responses from the containing QueryDataResponse. +// +// swagger:model DataResponse +#DataResponse: { + // Error is a property to be set if the corresponding DataQuery has an error. + Error?: string + + // error source + ErrorSource?: #ErrorSource + + // frames + Frames?: #Frames + + // status + Status?: #Status +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_go_gen.cue new file mode 100644 index 000000000..1a740afef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_go_gen.cue @@ -0,0 +1,67 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataSource data source +// +// swagger:model DataSource +#DataSource: { + // access + access?: #DsAccess @go(Access) + + // access control + accessControl?: #Metadata @go(AccessControl) + + // basic auth + basicAuth?: bool @go(BasicAuth) + + // basic auth user + basicAuthUser?: string @go(BasicAuthUser) + + // database + database?: string @go(Database) + + // id + id?: int64 @go(ID) + + // is default + isDefault?: bool @go(IsDefault) + + // json data + jsonData?: #JSON @go(JSONData) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // read only + readOnly?: bool @go(ReadOnly) + + // secure Json fields + secureJsonFields?: {[string]: bool} @go(SecureJSONFields,map[string]bool) + + // type + type?: string @go(Type) + + // type logo Url + typeLogoUrl?: string @go(TypeLogoURL) + + // uid + uid?: string @go(UID) + + // url + url?: string @go(URL) + + // user + user?: string @go(User) + + // version + version?: int64 @go(Version) + + // with credentials + withCredentials?: bool @go(WithCredentials) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_list_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_list_go_gen.cue new file mode 100644 index 000000000..afa139181 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_list_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataSourceList data source list +// +// swagger:model DataSourceList +#DataSourceList: [...null | #DataSourceListItemDTO] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_list_item_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_list_item_dto_go_gen.cue new file mode 100644 index 000000000..00c11f722 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_list_item_dto_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataSourceListItemDTO data source list item DTO +// +// swagger:model DataSourceListItemDTO +#DataSourceListItemDTO: { + // access + access?: #DsAccess @go(Access) + + // basic auth + basicAuth?: bool @go(BasicAuth) + + // database + database?: string @go(Database) + + // id + id?: int64 @go(ID) + + // is default + isDefault?: bool @go(IsDefault) + + // json data + jsonData?: #JSON @go(JSONData) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // read only + readOnly?: bool @go(ReadOnly) + + // type + type?: string @go(Type) + + // type logo Url + typeLogoUrl?: string @go(TypeLogoURL) + + // type name + typeName?: string @go(TypeName) + + // uid + uid?: string @go(UID) + + // url + url?: string @go(URL) + + // user + user?: string @go(User) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_ref_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_ref_go_gen.cue new file mode 100644 index 000000000..3834a5adf --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_source_ref_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataSourceRef Ref to a DataSource instance +// +// swagger:model DataSourceRef +#DataSourceRef: { + // The plugin type-id + type?: string @go(Type) + + // Specific datasource instance + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_topic_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_topic_go_gen.cue new file mode 100644 index 000000000..ecd8aba07 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/data_topic_go_gen.cue @@ -0,0 +1,12 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DataTopic DataTopic is used to identify which topic the frame should be assigned to. +// +// nolint:revive +// +// swagger:model DataTopic +#DataTopic: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_alert_notification_channel_by_uid_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_alert_notification_channel_by_uid_ok_body_go_gen.cue new file mode 100644 index 000000000..03ab808b1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_alert_notification_channel_by_uid_ok_body_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeleteAlertNotificationChannelByUIDOKBody delete alert notification channel by Uid Ok body +// +// swagger:model deleteAlertNotificationChannelByUidOkBody +#DeleteAlertNotificationChannelByUIDOKBody: { + // ID Identifier of the deleted notification channel. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted notificatiton channel. + // Required: true + message?: null | string @go(Message,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_correlation_response_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_correlation_response_body_go_gen.cue new file mode 100644 index 000000000..5b003193a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_correlation_response_body_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeleteCorrelationResponseBody delete correlation response body +// +// swagger:model DeleteCorrelationResponseBody +#DeleteCorrelationResponseBody: { + // message + // Example: Correlation deleted + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_dashboard_by_uid_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_dashboard_by_uid_ok_body_go_gen.cue new file mode 100644 index 000000000..370527049 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_dashboard_by_uid_ok_body_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeleteDashboardByUIDOKBody delete dashboard by Uid Ok body +// +// swagger:model deleteDashboardByUidOkBody +#DeleteDashboardByUIDOKBody: { + // ID Identifier of the deleted dashboard. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted dashboard. + // Example: Dashboard My Dashboard deleted + // Required: true + message?: null | string @go(Message,*string) + + // Title Title of the deleted dashboard. + // Example: My Dashboard + // Required: true + title?: null | string @go(Title,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_data_source_by_name_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_data_source_by_name_ok_body_go_gen.cue new file mode 100644 index 000000000..e48cff588 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_data_source_by_name_ok_body_go_gen.cue @@ -0,0 +1,20 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeleteDataSourceByNameOKBody delete data source by name Ok body +// +// swagger:model deleteDataSourceByNameOkBody +#DeleteDataSourceByNameOKBody: { + // ID Identifier of the deleted data source. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted dashboard. + // Example: Dashboard My Dashboard deleted + // Required: true + message?: null | string @go(Message,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_folder_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_folder_ok_body_go_gen.cue new file mode 100644 index 000000000..195698f64 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_folder_ok_body_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeleteFolderOKBody delete folder Ok body +// +// swagger:model deleteFolderOkBody +#DeleteFolderOKBody: { + // ID Identifier of the deleted folder. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted folder. + // Example: Folder My Folder deleted + // Required: true + message?: null | string @go(Message,*string) + + // Title of the deleted folder. + // Example: My Folder + // Required: true + title?: null | string @go(Title,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_token_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_token_command_go_gen.cue new file mode 100644 index 000000000..174241d7e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/delete_token_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeleteTokenCommand delete token command +// +// swagger:model DeleteTokenCommand +#DeleteTokenCommand: { + // instance + instance?: string @go(Instance) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/descendant_counts_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/descendant_counts_go_gen.cue new file mode 100644 index 000000000..162500804 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/descendant_counts_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DescendantCounts descendant counts +// +// swagger:model DescendantCounts +#DescendantCounts: {[string]: int64} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/description_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/description_go_gen.cue new file mode 100644 index 000000000..50e00fa37 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/description_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Description description +// +// swagger:model Description +#Description: { + // assignments + assignments?: null | #Assignments @go(Assignments,*Assignments) + + // permissions + permissions: [...string] @go(Permissions,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/device_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/device_dto_go_gen.cue new file mode 100644 index 000000000..45f3af795 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/device_dto_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeviceDTO device DTO +// +// swagger:model deviceDTO +#DeviceDTO: { + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // client Ip + clientIp?: string @go(ClientIP) + + // device Id + deviceId?: string @go(DeviceID) + + // last seen at + lastSeenAt?: string @go(LastSeenAt) + + // user agent + userAgent?: string @go(UserAgent) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/device_search_hit_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/device_search_hit_dto_go_gen.cue new file mode 100644 index 000000000..436ae8e28 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/device_search_hit_dto_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DeviceSearchHitDTO device search hit DTO +// +// swagger:model DeviceSearchHitDTO +#DeviceSearchHitDTO: { + // client Ip + clientIp?: string @go(ClientIP) + + // device Id + deviceId?: string @go(DeviceID) + + // user agent + userAgent?: string @go(UserAgent) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/discord_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/discord_config_go_gen.cue new file mode 100644 index 000000000..4c1cf6cf2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/discord_config_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DiscordConfig DiscordConfig configures notifications via Discord. +// +// swagger:model DiscordConfig +#DiscordConfig: { + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // title + title?: string @go(Title) + + // webhook url + webhook_url?: null | #SecretURL @go(WebhookURL,*SecretURL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ds_access_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ds_access_go_gen.cue new file mode 100644 index 000000000..b1cf13ac3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ds_access_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// DsAccess ds access +// +// swagger:model DsAccess +#DsAccess: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/duration_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/duration_go_gen.cue new file mode 100644 index 000000000..c2f4021af --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/duration_go_gen.cue @@ -0,0 +1,12 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Duration A Duration represents the elapsed time between two instants +// as an int64 nanosecond count. The representation limits the +// largest representable duration to approximately 290 years. +// +// swagger:model Duration +#Duration: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/email_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/email_config_go_gen.cue new file mode 100644 index 000000000..05c66b8ef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/email_config_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// EmailConfig EmailConfig configures notifications via mail. +// +// swagger:model EmailConfig +#EmailConfig: { + // auth identity + auth_identity?: string @go(AuthIdentity) + + // auth password + auth_password?: #Secret @go(AuthPassword) + + // auth password file + auth_password_file?: string @go(AuthPasswordFile) + + // auth secret + auth_secret?: #Secret @go(AuthSecret) + + // auth username + auth_username?: string @go(AuthUsername) + + // from + from?: string @go(From) + + // headers + headers?: {[string]: string} @go(Headers,map[string]string) + + // hello + hello?: string @go(Hello) + + // html + html?: string @go(HTML) + + // require tls + require_tls?: bool @go(RequireTLS) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // smarthost + smarthost?: null | #HostPort @go(Smarthost,*HostPort) + + // text + text?: string @go(Text) + + // tls config + tls_config?: null | #TLSConfig @go(TLSConfig,*TLSConfig) + + // Email address to notify. + to?: string @go(To) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/email_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/email_dto_go_gen.cue new file mode 100644 index 000000000..198832c7b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/email_dto_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// EmailDTO email DTO +// +// swagger:model EmailDTO +#EmailDTO: { + // recipient + recipient?: string @go(Recipient) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/embedded_contact_point_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/embedded_contact_point_go_gen.cue new file mode 100644 index 000000000..3b482bbf6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/embedded_contact_point_go_gen.cue @@ -0,0 +1,96 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// EmbeddedContactPoint EmbeddedContactPoint is the contact point type that is used +// by grafanas embedded alertmanager implementation. +// +// swagger:model EmbeddedContactPoint +#EmbeddedContactPoint: { + // disable resolve message + // Example: false + disableResolveMessage?: bool @go(DisableResolveMessage) + + // Name is used as grouping key in the UI. Contact points with the + // same name will be grouped in the UI. + // Example: webhook_1 + name?: string @go(Name) + + // provenance + // Read Only: true + provenance?: string @go(Provenance) + + // settings + // Required: true + settings: #JSON @go(Settings) + + // type + // Example: webhook + // Required: true + // Enum: [alertmanager dingding discord email googlechat kafka line opsgenie pagerduty pushover sensugo slack teams telegram threema victorops webhook wecom] + type?: null | string @go(Type,*string) + + // UID is the unique identifier of the contact point. The UID can be + // set by the user. + // Example: my_external_reference + // Max Length: 40 + // Min Length: 1 + // Pattern: ^[a-zA-Z0-9\-\_]+$ + uid?: string @go(UID) +} + +// EmbeddedContactPointTypeAlertmanager captures enum value "alertmanager" +#EmbeddedContactPointTypeAlertmanager: "alertmanager" + +// EmbeddedContactPointTypeDingding captures enum value " dingding" +#EmbeddedContactPointTypeDingding: " dingding" + +// EmbeddedContactPointTypeDiscord captures enum value " discord" +#EmbeddedContactPointTypeDiscord: " discord" + +// EmbeddedContactPointTypeEmail captures enum value " email" +#EmbeddedContactPointTypeEmail: " email" + +// EmbeddedContactPointTypeGooglechat captures enum value " googlechat" +#EmbeddedContactPointTypeGooglechat: " googlechat" + +// EmbeddedContactPointTypeKafka captures enum value " kafka" +#EmbeddedContactPointTypeKafka: " kafka" + +// EmbeddedContactPointTypeLine captures enum value " line" +#EmbeddedContactPointTypeLine: " line" + +// EmbeddedContactPointTypeOpsgenie captures enum value " opsgenie" +#EmbeddedContactPointTypeOpsgenie: " opsgenie" + +// EmbeddedContactPointTypePagerduty captures enum value " pagerduty" +#EmbeddedContactPointTypePagerduty: " pagerduty" + +// EmbeddedContactPointTypePushover captures enum value " pushover" +#EmbeddedContactPointTypePushover: " pushover" + +// EmbeddedContactPointTypeSensugo captures enum value " sensugo" +#EmbeddedContactPointTypeSensugo: " sensugo" + +// EmbeddedContactPointTypeSlack captures enum value " slack" +#EmbeddedContactPointTypeSlack: " slack" + +// EmbeddedContactPointTypeTeams captures enum value " teams" +#EmbeddedContactPointTypeTeams: " teams" + +// EmbeddedContactPointTypeTelegram captures enum value " telegram" +#EmbeddedContactPointTypeTelegram: " telegram" + +// EmbeddedContactPointTypeThreema captures enum value " threema" +#EmbeddedContactPointTypeThreema: " threema" + +// EmbeddedContactPointTypeVictorops captures enum value " victorops" +#EmbeddedContactPointTypeVictorops: " victorops" + +// EmbeddedContactPointTypeWebhook captures enum value " webhook" +#EmbeddedContactPointTypeWebhook: " webhook" + +// EmbeddedContactPointTypeWecom captures enum value " wecom" +#EmbeddedContactPointTypeWecom: " wecom" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/enum_field_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/enum_field_config_go_gen.cue new file mode 100644 index 000000000..4eba331a5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/enum_field_config_go_gen.cue @@ -0,0 +1,23 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// EnumFieldConfig Enum field config +// Vector values are used as lookup keys into the enum fields +// +// swagger:model EnumFieldConfig +#EnumFieldConfig: { + // Color is the color value for a given index (empty is undefined) + color: [...string] @go(Color,[]string) + + // Description of the enum state + description: [...string] @go(Description,[]string) + + // Icon supports setting an icon for a given index value + icon: [...string] @go(Icon,[]string) + + // Value is the string display value for a given index + text: [...string] @go(Text,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_response_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_response_body_go_gen.cue new file mode 100644 index 000000000..84f212d9d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_response_body_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ErrorResponseBody error response body +// +// swagger:model ErrorResponseBody +#ErrorResponseBody: { + // Error An optional detailed description of the actual error. Only included if running in developer mode. + error?: string @go(Error) + + // a human readable version of the error + // Required: true + message?: null | string @go(Message,*string) + + // Status An optional status to denote the cause of the error. + // + // For example, a 412 Precondition Failed error may include additional information of why that error happened. + status?: string @go(Status) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_source_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_source_go_gen.cue new file mode 100644 index 000000000..9a135a4d3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_source_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ErrorSource ErrorSource type defines the source of the error +// +// swagger:model ErrorSource +#ErrorSource: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_type_go_gen.cue new file mode 100644 index 000000000..f9cc9c259 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/error_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ErrorType ErrorType models the different API error types. +// +// swagger:model ErrorType +#ErrorType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/eval_alert_condition_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/eval_alert_condition_command_go_gen.cue new file mode 100644 index 000000000..992f4ae23 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/eval_alert_condition_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// EvalAlertConditionCommand EvalAlertConditionCommand is the command for evaluating a condition +// +// swagger:model EvalAlertConditionCommand +#EvalAlertConditionCommand: { + // condition + condition?: string @go(Condition) + + // data + data: [...null | #AlertQuery] @go(Data,[]*AlertQuery) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/eval_match_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/eval_match_go_gen.cue new file mode 100644 index 000000000..51ab2b1aa --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/eval_match_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// EvalMatch eval match +// +// swagger:model EvalMatch +#EvalMatch: { + // metric + metric?: string @go(Metric) + + // tags + tags?: {[string]: string} @go(Tags,map[string]string) + + // value + value?: string @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/explore_panels_state_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/explore_panels_state_go_gen.cue new file mode 100644 index 000000000..302e11c86 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/explore_panels_state_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ExplorePanelsState This is an object constructed with the keys as the values of the enum VisType and the value being a bag of properties +// +// swagger:model ExplorePanelsState +#ExplorePanelsState: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ext_key_usage_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ext_key_usage_go_gen.cue new file mode 100644 index 000000000..e5135d5bd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ext_key_usage_go_gen.cue @@ -0,0 +1,12 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ExtKeyUsage ExtKeyUsage represents an extended set of actions that are valid for a given key. +// +// Each of the ExtKeyUsage* constants define a unique action. +// +// swagger:model ExtKeyUsage +#ExtKeyUsage: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/extension_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/extension_go_gen.cue new file mode 100644 index 000000000..435ef87a0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/extension_go_gen.cue @@ -0,0 +1,20 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Extension Extension represents the ASN.1 structure of the same name. See RFC +// 5280, section 4.2. +// +// swagger:model Extension +#Extension: { + // critical + Critical?: bool + + // Id + Id?: #ObjectIdentifier @go(ID) + + // value + Value: [...uint8] @go(,[]uint8) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/failed_user_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/failed_user_go_gen.cue new file mode 100644 index 000000000..86f85d833 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/failed_user_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FailedUser FailedUser holds the information of an user that failed +// +// swagger:model FailedUser +#FailedUser: { + // error + Error?: string + + // login + Login?: string +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_config_go_gen.cue new file mode 100644 index 000000000..711dad114 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_config_go_gen.cue @@ -0,0 +1,72 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FieldConfig FieldConfig represents the display properties for a Field. +// +// swagger:model FieldConfig +#FieldConfig: { + // Map values to a display color + // NOTE: this interface is under development in the frontend... so simple map for now + color?: _ @go(Color,interface{}) + + // Panel Specific Values + custom?: _ @go(Custom,interface{}) + + // decimals + decimals?: uint16 @go(Decimals) + + // Description is human readable field metadata + description?: string @go(Description) + + // DisplayName overrides Grafana default naming, should not be used from a data source + displayName?: string @go(DisplayName) + + // DisplayNameFromDS overrides Grafana default naming strategy. + displayNameFromDS?: string @go(DisplayNameFromDS) + + // Filterable indicates if the Field's data can be filtered by additional calls. + filterable?: bool @go(Filterable) + + // Interval indicates the expected regular step between values in the series. + // When an interval exists, consumers can identify "missing" values when the expected value is not present. + // The grafana timeseries visualization will render disconnected values when missing values are found it the time field. + // The interval uses the same units as the values. For time.Time, this is defined in milliseconds. + interval?: float64 @go(Interval) + + // The behavior when clicking on a result + links: [...null | #DataLink] @go(Links,[]*DataLink) + + // mappings + mappings?: #ValueMappings @go(Mappings) + + // max + max?: #ConfFloat64 @go(Max) + + // min + min?: #ConfFloat64 @go(Min) + + // Alternative to empty string + noValue?: string @go(NoValue) + + // Path is an explicit path to the field in the datasource. When the frame meta includes a path, + // this will default to `${frame.meta.path}/${field.name} + // + // When defined, this value can be used as an identifier within the datasource scope, and + // may be used as an identifier to update values in a subsequent request + path?: string @go(Path) + + // thresholds + thresholds?: null | #ThresholdsConfig @go(Thresholds,*ThresholdsConfig) + + // type + type?: null | #FieldTypeConfig @go(Type,*FieldTypeConfig) + + // Numeric Options + unit?: string @go(Unit) + + // Writeable indicates that the datasource knows how to update this value + writeable?: bool @go(Writeable) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_go_gen.cue new file mode 100644 index 000000000..e1587562f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Field Field represents a typed column of data within a Frame. +// +// A Field is essentially a slice of various types with extra properties and methods. +// See NewField() for supported types. +// +// The slice data in the Field is a not exported, so methods on the Field are used to to manipulate its data. +// +// swagger:model Field +#Field: { + // config + config?: null | #FieldConfig @go(Config,*FieldConfig) + + // labels + labels?: #FrameLabels @go(Labels) + + // Name is default identifier of the field. The name does not have to be unique, but the combination + // of name and Labels should be unique for proper behavior in all situations. + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_type_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_type_config_go_gen.cue new file mode 100644 index 000000000..8c6982e81 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/field_type_config_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FieldTypeConfig FieldTypeConfig has type specific configs, only one should be active at a time +// +// swagger:model FieldTypeConfig +#FieldTypeConfig: { + // enum + enum?: null | #EnumFieldConfig @go(Enum,*EnumFieldConfig) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/find_tags_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/find_tags_result_go_gen.cue new file mode 100644 index 000000000..b6be4a016 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/find_tags_result_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FindTagsResult FindTagsResult is the result of a tags search. +// +// swagger:model FindTagsResult +#FindTagsResult: { + // tags + tags: [...null | #TagsDTO] @go(Tags,[]*TagsDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/float_histogram_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/float_histogram_go_gen.cue new file mode 100644 index 000000000..3d5dcdd68 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/float_histogram_go_gen.cue @@ -0,0 +1,46 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FloatHistogram FloatHistogram is similar to Histogram but uses float64 for all +// counts. Additionally, bucket counts are absolute and not deltas. +// +// A FloatHistogram is needed by PromQL to handle operations that might result +// in fractional counts. Since the counts in a histogram are unlikely to be too +// large to be represented precisely by a float64, a FloatHistogram can also be +// used to represent a histogram with integer counts and thus serves as a more +// generalized representation. +// +// swagger:model FloatHistogram +#FloatHistogram: { + // Total number of observations. Must be zero or positive. + Count?: float64 + + // counter reset hint + CounterResetHint?: #CounterResetHint + + // Observation counts in buckets. Each represents an absolute count and + // must be zero or positive. + PositiveBuckets: [...float64] @go(,[]float64) + + // Spans for positive and negative buckets (see Span below). + PositiveSpans: [...null | #Span] @go(,[]*Span) + + // Currently valid schema numbers are -4 <= n <= 8. They are all for + // base-2 bucket schemas, where 1 is a bucket boundary in each case, and + // then each power of two is divided into 2^n logarithmic buckets. Or + // in other words, each bucket boundary is the previous boundary times + // 2^(2^-n). + Schema?: int32 + + // Sum of observations. This is also used as the stale marker. + Sum?: float64 + + // Observations falling into the zero bucket. Must be zero or positive. + ZeroCount?: float64 + + // Width of the zero bucket. + ZeroThreshold?: float64 +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/folder_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/folder_go_gen.cue new file mode 100644 index 000000000..77aef80be --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/folder_go_gen.cue @@ -0,0 +1,58 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Folder folder +// +// swagger:model Folder +#Folder: { + // access control + accessControl?: #Metadata @go(AccessControl) + + // can admin + canAdmin?: bool @go(CanAdmin) + + // can delete + canDelete?: bool @go(CanDelete) + + // can edit + canEdit?: bool @go(CanEdit) + + // can save + canSave?: bool @go(CanSave) + + // created by + createdBy?: string @go(CreatedBy) + + // has Acl + hasAcl?: bool @go(HasACL) + + // Deprecated: use UID instead + id?: int64 @go(ID) + + // org Id + orgId?: int64 @go(OrgID) + + // only used if nested folders are enabled + parentUid?: string @go(ParentUID) + + // the parent folders starting from the root going down + parents: [...null | #Folder] @go(Parents,[]*Folder) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) + + // updated by + updatedBy?: string @go(UpdatedBy) + + // url + url?: string @go(URL) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/folder_search_hit_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/folder_search_hit_go_gen.cue new file mode 100644 index 000000000..4700bd6e9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/folder_search_hit_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FolderSearchHit folder search hit +// +// swagger:model FolderSearchHit +#FolderSearchHit: { + // id + id?: int64 @go(ID) + + // parent Uid + parentUid?: string @go(ParentUID) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_go_gen.cue new file mode 100644 index 000000000..65e3c2471 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Frame Frame is a columnar data structure where each column is a Field. +// +// Each Field is well typed by its FieldType and supports optional Labels. +// +// A Frame is a general data container for Grafana. A Frame can be table data +// or time series data depending on its content and field types. +// +// swagger:model Frame +#Frame: { + // Fields are the columns of a frame. + // All Fields must be of the same the length when marshalling the Frame for transmission. + // There should be no `nil` entries in the Fields slice (making them pointers was a mistake). + Fields: [...null | #Field] @go(,[]*Field) + + // meta + Meta?: null | #FrameMeta @go(,*FrameMeta) + + // Name is used in some Grafana visualizations. + Name?: string + + // RefID is a property that can be set to match a Frame to its originating query. + RefID?: string +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_labels_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_labels_go_gen.cue new file mode 100644 index 000000000..a8b499b88 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_labels_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FrameLabels Labels are used to add metadata to an object. The JSON will always be sorted keys +// +// swagger:model FrameLabels +#FrameLabels: {[string]: string} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_meta_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_meta_go_gen.cue new file mode 100644 index 000000000..22dc7d331 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_meta_go_gen.cue @@ -0,0 +1,59 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FrameMeta FrameMeta matches: +// +// https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L11 +// NOTE -- in javascript this can accept any `[key: string]: any;` however +// this interface only exposes the values we want to be exposed +// +// swagger:model FrameMeta +#FrameMeta: { + // Channel is the path to a stream in grafana live that has real-time updates for this data. + channel?: string @go(Channel) + + // Custom datasource specific values. + custom?: _ @go(Custom,interface{}) + + // data topic + dataTopic?: #DataTopic @go(DataTopic) + + // ExecutedQueryString is the raw query sent to the underlying system. All macros and templating + // have been applied. When metadata contains this value, it will be shown in the query inspector. + executedQueryString?: string @go(ExecutedQueryString) + + // Notices provide additional information about the data in the Frame that + // Grafana can display to the user in the user interface. + notices: [...null | #Notice] @go(Notices,[]*Notice) + + // Path is a browsable path on the datasource. + path?: string @go(Path) + + // PathSeparator defines the separator pattern to decode a hierarchy. The default separator is '/'. + pathSeparator?: string @go(PathSeparator) + + // PreferredVisualizationPluginId sets the panel plugin id to use to render the data when using Explore. If + // the plugin cannot be found will fall back to PreferredVisualization. + preferredVisualisationPluginId?: string @go(PreferredVisualisationPluginID) + + // preferred visualisation type + preferredVisualisationType?: #VisType @go(PreferredVisualisationType) + + // Stats is an array of query result statistics. + stats: [...null | #QueryStat] @go(Stats,[]*QueryStat) + + // type + type?: #FrameType @go(Type) + + // type version + typeVersion?: #FrameTypeVersion @go(TypeVersion) + + // Array of field indices which values create a unique id for each row. Ideally this should be globally unique ID + // but that isn't guarantied. Should help with keeping track and deduplicating rows in visualizations, especially + // with streaming data with frequent updates. + // Example: TraceID in Tempo, table name + primary key in SQL + uniqueRowIdFields: [...int64] @go(UniqueRowIDFields,[]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_type_go_gen.cue new file mode 100644 index 000000000..943422846 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_type_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FrameType A FrameType string, when present in a frame's metadata, asserts that the +// frame's structure conforms to the FrameType's specification. +// This property is currently optional, so FrameType may be FrameTypeUnknown even if the properties of +// the Frame correspond to a defined FrameType. +// +// swagger:model FrameType +#FrameType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_type_version_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_type_version_go_gen.cue new file mode 100644 index 000000000..3759b2e78 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frame_type_version_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// FrameTypeVersion FrameType is a 2 number version (Major / Minor). +// +// swagger:model FrameTypeVersion +#FrameTypeVersion: [...uint64] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frames_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frames_go_gen.cue new file mode 100644 index 000000000..741f0b310 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/frames_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Frames Frames is a slice of Frame pointers. +// +// It is the main data container within a backend.DataResponse. +// There should be no `nil` entries in the Frames slice (making them pointers was a mistake). +// +// swagger:model Frames +#Frames: [...null | #Frame] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/generic_public_error_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/generic_public_error_go_gen.cue new file mode 100644 index 000000000..3f02b536a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/generic_public_error_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GenericPublicError generic public error +// +// swagger:model GenericPublicError +#GenericPublicError: { + // body + body?: null | #PublicError @go(Body,*PublicError) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_annotation_tags_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_annotation_tags_response_go_gen.cue new file mode 100644 index 000000000..71ffda992 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_annotation_tags_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetAnnotationTagsResponse GetAnnotationTagsResponse is a response struct for FindTagsResult. +// +// swagger:model GetAnnotationTagsResponse +#GetAnnotationTagsResponse: { + // result + result?: null | #FindTagsResult @go(Result,*FindTagsResult) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_data_source_id_by_name_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_data_source_id_by_name_ok_body_go_gen.cue new file mode 100644 index 000000000..0115e1f76 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_data_source_id_by_name_ok_body_go_gen.cue @@ -0,0 +1,15 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetDataSourceIDByNameOKBody get data source Id by name Ok body +// +// swagger:model getDataSourceIdByNameOkBody +#GetDataSourceIDByNameOKBody: { + // ID Identifier of the data source. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_all_of0_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_all_of0_go_gen.cue new file mode 100644 index 000000000..0894a5057 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_all_of0_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetHomeDashboardResponseAllOf0 get home dashboard response all of0 +// +// swagger:model getHomeDashboardResponseAllOf0 +#GetHomeDashboardResponseAllOf0: { + // dashboard + dashboard?: #JSON @go(Dashboard) + + // meta + meta?: null | #DashboardMeta @go(Meta,*DashboardMeta) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_all_of1_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_all_of1_go_gen.cue new file mode 100644 index 000000000..06185722d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_all_of1_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetHomeDashboardResponseAllOf1 get home dashboard response all of1 +// +// swagger:model getHomeDashboardResponseAllOf1 +#GetHomeDashboardResponseAllOf1: { + // redirect Uri + redirectUri?: string @go(RedirectURI) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_go_gen.cue new file mode 100644 index 000000000..fff3d6edf --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_home_dashboard_response_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetHomeDashboardResponse Get home dashboard response. +// +// swagger:model GetHomeDashboardResponse +#GetHomeDashboardResponse: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_provider_settings_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_provider_settings_ok_body_go_gen.cue new file mode 100644 index 000000000..ad6181244 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_provider_settings_ok_body_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetProviderSettingsOKBody get provider settings Ok body +// +// swagger:model getProviderSettingsOkBody +#GetProviderSettingsOKBody: { + // id + id?: string @go(ID) + + // provider + provider?: string @go(Provider) + + // settings + settings?: _ @go(Settings,interface{}) + + // source + source?: string @go(Source) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_sharing_options_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_sharing_options_ok_body_go_gen.cue new file mode 100644 index 000000000..974f0d4a2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/get_sharing_options_ok_body_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GetSharingOptionsOKBody get sharing options Ok body +// +// swagger:model getSharingOptionsOkBody +#GetSharingOptionsOKBody: { + // external enabled + externalEnabled?: bool @go(ExternalEnabled) + + // external snapshot name + externalSnapshotName?: string @go(ExternalSnapshotName) + + // external snapshot URL + externalSnapshotURL?: string @go(ExternalSnapshotURL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_alert_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_alert_go_gen.cue new file mode 100644 index 000000000..e24621c79 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_alert_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +import "github.com/go-openapi/strfmt" + +// GettableAlert gettable alert +// +// swagger:model gettableAlert +#GettableAlert: { + // annotations + // Required: true + annotations: #LabelSet @go(Annotations) + + // fingerprint + // Required: true + fingerprint?: null | string @go(Fingerprint,*string) + + // generator URL + // Format: uri + // Format: uri + generatorURL?: strfmt.#URI @go(GeneratorURL) + + // labels + // Required: true + labels: #LabelSet @go(Labels) + + // receivers + // Required: true + receivers: [...null | #Receiver] @go(Receivers,[]*Receiver) + + // status + // Required: true + status?: null | #AlertStatus @go(Status,*AlertStatus) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_api_alerting_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_api_alerting_config_go_gen.cue new file mode 100644 index 000000000..fcd659fa3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_api_alerting_config_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableAPIAlertingConfig gettable Api alerting config +// +// swagger:model GettableApiAlertingConfig +#GettableAPIAlertingConfig: { + // global + global?: null | #GlobalConfig @go(Global,*GlobalConfig) + + // inhibit rules + inhibit_rules: [...null | #InhibitRule] @go(InhibitRules,[]*InhibitRule) + + // mute time provenances + muteTimeProvenances?: {[string]: #Provenance} @go(MuteTimeProvenances,map[string]Provenance) + + // mute time intervals + mute_time_intervals: [...null | #MuteTimeInterval] @go(MuteTimeIntervals,[]*MuteTimeInterval) + + // Override with our superset receiver type + receivers: [...null | #GettableAPIReceiver] @go(Receivers,[]*GettableAPIReceiver) + + // route + route?: null | #Route @go(Route,*Route) + + // templates + templates: [...string] @go(Templates,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_api_receiver_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_api_receiver_go_gen.cue new file mode 100644 index 000000000..ee47abc0a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_api_receiver_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableAPIReceiver gettable Api receiver +// +// swagger:model GettableApiReceiver +#GettableAPIReceiver: { + // discord configs + discord_configs: [...null | #DiscordConfig] @go(DiscordConfigs,[]*DiscordConfig) + + // email configs + email_configs: [...null | #EmailConfig] @go(EmailConfigs,[]*EmailConfig) + + // grafana managed receiver configs + grafana_managed_receiver_configs: [...null | #GettableGrafanaReceiver] @go(GrafanaManagedReceiverConfigs,[]*GettableGrafanaReceiver) + + // msteams configs + msteams_configs: [...null | #MSTeamsConfig] @go(MsteamsConfigs,[]*MSTeamsConfig) + + // A unique identifier for this receiver. + name?: string @go(Name) + + // opsgenie configs + opsgenie_configs: [...null | #OpsGenieConfig] @go(OpsgenieConfigs,[]*OpsGenieConfig) + + // pagerduty configs + pagerduty_configs: [...null | #PagerdutyConfig] @go(PagerdutyConfigs,[]*PagerdutyConfig) + + // pushover configs + pushover_configs: [...null | #PushoverConfig] @go(PushoverConfigs,[]*PushoverConfig) + + // slack configs + slack_configs: [...null | #SlackConfig] @go(SlackConfigs,[]*SlackConfig) + + // sns configs + sns_configs: [...null | #SNSConfig] @go(SNSConfigs,[]*SNSConfig) + + // telegram configs + telegram_configs: [...null | #TelegramConfig] @go(TelegramConfigs,[]*TelegramConfig) + + // victorops configs + victorops_configs: [...null | #VictorOpsConfig] @go(VictoropsConfigs,[]*VictorOpsConfig) + + // webex configs + webex_configs: [...null | #WebexConfig] @go(WebexConfigs,[]*WebexConfig) + + // webhook configs + webhook_configs: [...null | #WebhookConfig] @go(WebhookConfigs,[]*WebhookConfig) + + // wechat configs + wechat_configs: [...null | #WechatConfig] @go(WechatConfigs,[]*WechatConfig) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_extended_rule_node_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_extended_rule_node_go_gen.cue new file mode 100644 index 000000000..61661b906 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_extended_rule_node_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableExtendedRuleNode gettable extended rule node +// +// swagger:model GettableExtendedRuleNode +#GettableExtendedRuleNode: { + // alert + alert?: string @go(Alert) + + // annotations + annotations?: {[string]: string} @go(Annotations,map[string]string) + + // expr + expr?: string @go(Expr) + + // for + for?: string @go(For) + + // grafana alert + grafana_alert?: null | #GettableGrafanaRule @go(GrafanaAlert,*GettableGrafanaRule) + + // keep firing for + keep_firing_for?: string @go(KeepFiringFor) + + // labels + labels?: {[string]: string} @go(Labels,map[string]string) + + // record + record?: string @go(Record) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_grafana_receiver_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_grafana_receiver_go_gen.cue new file mode 100644 index 000000000..c41c64c48 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_grafana_receiver_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableGrafanaReceiver gettable grafana receiver +// +// swagger:model GettableGrafanaReceiver +#GettableGrafanaReceiver: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // name + name?: string @go(Name) + + // provenance + provenance?: #Provenance @go(Provenance) + + // secure fields + secureFields?: {[string]: bool} @go(SecureFields,map[string]bool) + + // settings + settings?: #RawMessage @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_grafana_rule_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_grafana_rule_go_gen.cue new file mode 100644 index 000000000..f4368b6c6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_grafana_rule_go_gen.cue @@ -0,0 +1,72 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableGrafanaRule gettable grafana rule +// +// swagger:model GettableGrafanaRule +#GettableGrafanaRule: { + // condition + condition?: string @go(Condition) + + // data + data: [...null | #AlertQuery] @go(Data,[]*AlertQuery) + + // exec err state + // Enum: [OK Alerting Error] + exec_err_state?: string @go(ExecErrState) + + // id + id?: int64 @go(ID) + + // interval seconds + intervalSeconds?: int64 @go(IntervalSeconds) + + // is paused + is_paused?: bool @go(IsPaused) + + // namespace uid + namespace_uid?: string @go(NamespaceUID) + + // no data state + // Enum: [Alerting NoData OK] + no_data_state?: string @go(NoDataState) + + // org Id + orgId?: int64 @go(OrgID) + + // provenance + provenance?: #Provenance @go(Provenance) + + // rule group + rule_group?: string @go(RuleGroup) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) + + // version + version?: int64 @go(Version) +} + +// GettableGrafanaRuleExecErrStateOK captures enum value "OK" +#GettableGrafanaRuleExecErrStateOK: "OK" + +// GettableGrafanaRuleExecErrStateAlerting captures enum value "Alerting" +#GettableGrafanaRuleExecErrStateAlerting: "Alerting" + +// GettableGrafanaRuleExecErrStateError captures enum value "Error" +#GettableGrafanaRuleExecErrStateError: "Error" + +// GettableGrafanaRuleNoDataStateAlerting captures enum value "Alerting" +#GettableGrafanaRuleNoDataStateAlerting: "Alerting" + +// GettableGrafanaRuleNoDataStateNoData captures enum value "NoData" +#GettableGrafanaRuleNoDataStateNoData: "NoData" + +// GettableGrafanaRuleNoDataStateOK captures enum value "OK" +#GettableGrafanaRuleNoDataStateOK: "OK" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_rule_group_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_rule_group_config_go_gen.cue new file mode 100644 index 000000000..06fd70963 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_rule_group_config_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableRuleGroupConfig gettable rule group config +// +// swagger:model GettableRuleGroupConfig +#GettableRuleGroupConfig: { + // interval + interval?: #Duration @go(Interval) + + // name + name?: string @go(Name) + + // rules + rules: [...null | #GettableExtendedRuleNode] @go(Rules,[]*GettableExtendedRuleNode) + + // source tenants + source_tenants: [...string] @go(SourceTenants,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_silence_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_silence_go_gen.cue new file mode 100644 index 000000000..fcffa17f7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/gettable_silence_go_gen.cue @@ -0,0 +1,30 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GettableSilence gettable silence +// +// swagger:model gettableSilence +#GettableSilence: { + // comment + // Required: true + comment?: null | string @go(Comment,*string) + + // created by + // Required: true + createdBy?: null | string @go(CreatedBy,*string) + + // id + // Required: true + id?: null | string @go(ID,*string) + + // matchers + // Required: true + matchers: #Matchers @go(Matchers) + + // status + // Required: true + status?: null | #SilenceStatus @go(Status,*SilenceStatus) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/global_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/global_config_go_gen.cue new file mode 100644 index 000000000..0ff23b905 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/global_config_go_gen.cue @@ -0,0 +1,86 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// GlobalConfig GlobalConfig defines configuration parameters that are valid globally +// unless overwritten. +// +// swagger:model GlobalConfig +#GlobalConfig: { + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // opsgenie api key + opsgenie_api_key?: #Secret @go(OpsgenieAPIKey) + + // opsgenie api key file + opsgenie_api_key_file?: string @go(OpsgenieAPIKeyFile) + + // opsgenie api url + opsgenie_api_url?: null | #URL @go(OpsgenieAPIURL,*URL) + + // pagerduty url + pagerduty_url?: null | #URL @go(PagerdutyURL,*URL) + + // resolve timeout + resolve_timeout?: #Duration @go(ResolveTimeout) + + // slack api url + slack_api_url?: null | #SecretURL @go(SlackAPIURL,*SecretURL) + + // slack api url file + slack_api_url_file?: string @go(SlackAPIURLFile) + + // smtp auth identity + smtp_auth_identity?: string @go(SMTPAuthIdentity) + + // smtp auth password + smtp_auth_password?: #Secret @go(SMTPAuthPassword) + + // smtp auth password file + smtp_auth_password_file?: string @go(SMTPAuthPasswordFile) + + // smtp auth secret + smtp_auth_secret?: #Secret @go(SMTPAuthSecret) + + // smtp auth username + smtp_auth_username?: string @go(SMTPAuthUsername) + + // smtp from + smtp_from?: string @go(SMTPFrom) + + // smtp hello + smtp_hello?: string @go(SMTPHello) + + // smtp require tls + smtp_require_tls?: bool @go(SMTPRequireTLS) + + // smtp smarthost + smtp_smarthost?: null | #HostPort @go(SMTPSmarthost,*HostPort) + + // telegram api url + telegram_api_url?: null | #URL @go(TelegramAPIURL,*URL) + + // victorops api key + victorops_api_key?: #Secret @go(VictoropsAPIKey) + + // victorops api key file + victorops_api_key_file?: string @go(VictoropsAPIKeyFile) + + // victorops api url + victorops_api_url?: null | #URL @go(VictoropsAPIURL,*URL) + + // webex api url + webex_api_url?: null | #URL @go(WebexAPIURL,*URL) + + // wechat api corp id + wechat_api_corp_id?: string @go(WechatAPICorpID) + + // wechat api secret + wechat_api_secret?: #Secret @go(WechatAPISecret) + + // wechat api url + wechat_api_url?: null | #URL @go(WechatAPIURL,*URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/header_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/header_go_gen.cue new file mode 100644 index 000000000..9f36ca0f9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/header_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Header header +// +// swagger:model Header +#Header: {[string]: [...#Secret]} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_go_gen.cue new file mode 100644 index 000000000..2e125052c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Hit hit +// +// swagger:model Hit +#Hit: { + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder title + folderTitle?: string @go(FolderTitle) + + // folder Uid + folderUid?: string @go(FolderUID) + + // folder Url + folderUrl?: string @go(FolderURL) + + // id + id?: int64 @go(ID) + + // is starred + isStarred?: bool @go(IsStarred) + + // slug + slug?: string @go(Slug) + + // sort meta + sortMeta?: int64 @go(SortMeta) + + // sort meta name + sortMetaName?: string @go(SortMetaName) + + // tags + tags: [...string] @go(Tags,[]string) + + // title + title?: string @go(Title) + + // type + type?: #HitType @go(Type) + + // uid + uid?: string @go(UID) + + // uri + uri?: string @go(URI) + + // url + url?: string @go(URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_list_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_list_go_gen.cue new file mode 100644 index 000000000..c0978159b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_list_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// HitList hit list +// +// swagger:model HitList +#HitList: [...null | #Hit] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_type_go_gen.cue new file mode 100644 index 000000000..49e62f736 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/hit_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// HitType hit type +// +// swagger:model HitType +#HitType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/host_port_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/host_port_go_gen.cue new file mode 100644 index 000000000..424732321 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/host_port_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// HostPort HostPort represents a "host:port" network address. +// +// swagger:model HostPort +#HostPort: { + // host + Host?: string + + // port + Port?: string +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/http_client_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/http_client_config_go_gen.cue new file mode 100644 index 000000000..45f2a607c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/http_client_config_go_gen.cue @@ -0,0 +1,52 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// HTTPClientConfig HTTPClientConfig configures an HTTP client. +// +// swagger:model HTTPClientConfig +#HTTPClientConfig: { + // authorization + authorization?: null | #Authorization @go(Authorization,*Authorization) + + // basic auth + basic_auth?: null | #BasicAuth @go(BasicAuth,*BasicAuth) + + // bearer token + bearer_token?: #Secret @go(BearerToken) + + // The bearer token file for the targets. Deprecated in favour of + // Authorization.CredentialsFile. + bearer_token_file?: string @go(BearerTokenFile) + + // EnableHTTP2 specifies whether the client should configure HTTP2. + // The omitempty flag is not set, because it would be hidden from the + // marshalled configuration when set to false. + enable_http2?: bool @go(EnableHttp2) + + // FollowRedirects specifies whether the client should follow HTTP 3xx redirects. + // The omitempty flag is not set, because it would be hidden from the + // marshalled configuration when set to false. + follow_redirects?: bool @go(FollowRedirects) + + // NoProxy contains addresses that should not use a proxy. + no_proxy?: string @go(NoProxy) + + // oauth2 + oauth2?: null | #OAuth2 @go(Oauth2,*OAuth2) + + // proxy connect header + proxy_connect_header?: #Header @go(ProxyConnectHeader) + + // ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function + // to determine proxies. + proxy_from_environment?: bool @go(ProxyFromEnvironment) + + // proxy url + proxy_url?: null | #URL @go(ProxyURL,*URL) + + // tls config + tls_config?: null | #TLSConfig @go(TLSConfig,*TLSConfig) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_input_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_input_go_gen.cue new file mode 100644 index 000000000..310b9c5ef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_input_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ImportDashboardInput ImportDashboardInput definition of input parameters when importing a dashboard. +// +// swagger:model ImportDashboardInput +#ImportDashboardInput: { + // name + name?: string @go(Name) + + // plugin Id + pluginId?: string @go(PluginID) + + // type + type?: string @go(Type) + + // value + value?: string @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_request_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_request_go_gen.cue new file mode 100644 index 000000000..87c96ec9c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_request_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ImportDashboardRequest ImportDashboardRequest request object for importing a dashboard. +// +// swagger:model ImportDashboardRequest +#ImportDashboardRequest: { + // dashboard + dashboard?: #JSON @go(Dashboard) + + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder Uid + folderUid?: string @go(FolderUID) + + // inputs + inputs: [...null | #ImportDashboardInput] @go(Inputs,[]*ImportDashboardInput) + + // overwrite + overwrite?: bool @go(Overwrite) + + // path + path?: string @go(Path) + + // plugin Id + pluginId?: string @go(PluginID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_response_go_gen.cue new file mode 100644 index 000000000..8d4d50f31 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/import_dashboard_response_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ImportDashboardResponse ImportDashboardResponse response object returned when importing a dashboard. +// +// swagger:model ImportDashboardResponse +#ImportDashboardResponse: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // description + description?: string @go(Description) + + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder Uid + folderUid?: string @go(FolderUID) + + // imported + imported?: bool @go(Imported) + + // imported revision + importedRevision?: int64 @go(ImportedRevision) + + // imported Uri + importedUri?: string @go(ImportedURI) + + // imported Url + importedUrl?: string @go(ImportedURL) + + // path + path?: string @go(Path) + + // plugin Id + pluginId?: string @go(PluginID) + + // removed + removed?: bool @go(Removed) + + // revision + revision?: int64 @go(Revision) + + // slug + slug?: string @go(Slug) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/inhibit_rule_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/inhibit_rule_go_gen.cue new file mode 100644 index 000000000..1d63d76e1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/inhibit_rule_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// InhibitRule InhibitRule defines an inhibition rule that mutes alerts that match the +// target labels if an alert matching the source labels exists. +// Both alerts have to have a set of labels being equal. +// +// swagger:model InhibitRule +#InhibitRule: { + // equal + equal?: #LabelNames @go(Equal) + + // SourceMatch defines a set of labels that have to equal the given + // value for source alerts. Deprecated. Remove before v1.0 release. + source_match?: {[string]: string} @go(SourceMatch,map[string]string) + + // source match re + source_match_re?: #MatchRegexps @go(SourceMatchRe) + + // source matchers + source_matchers?: #Matchers @go(SourceMatchers) + + // TargetMatch defines a set of labels that have to equal the given + // value for target alerts. Deprecated. Remove before v1.0 release. + target_match?: {[string]: string} @go(TargetMatch,map[string]string) + + // target match re + target_match_re?: #MatchRegexps @go(TargetMatchRe) + + // target matchers + target_matchers?: #Matchers @go(TargetMatchers) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/inspect_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/inspect_type_go_gen.cue new file mode 100644 index 000000000..24b66a44f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/inspect_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// InspectType InspectType is a type for the Inspect property of a Notice. +// +// swagger:model InspectType +#InspectType: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/integration_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/integration_go_gen.cue new file mode 100644 index 000000000..74bfc2e36 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/integration_go_gen.cue @@ -0,0 +1,24 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Integration integration +// +// swagger:model integration +#Integration: { + // Duration of the last attempt to deliver a notification in humanized format (`1s` or `15ms`, etc). + lastNotifyAttemptDuration?: string @go(LastNotifyAttemptDuration) + + // Error string for the last attempt to deliver a notification. Empty if the last attempt was successful. + lastNotifyAttemptError?: string @go(LastNotifyAttemptError) + + // name + // Required: true + name?: null | string @go(Name,*string) + + // send resolved + // Required: true + sendResolved?: null | bool @go(SendResolved,*bool) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/internal_data_link_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/internal_data_link_go_gen.cue new file mode 100644 index 000000000..c41357f18 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/internal_data_link_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// InternalDataLink InternalDataLink definition to allow Explore links to be constructed in the backend +// +// swagger:model InternalDataLink +#InternalDataLink: { + // datasource name + datasourceName?: string @go(DatasourceName) + + // datasource Uid + datasourceUid?: string @go(DatasourceUID) + + // panels state + panelsState?: #ExplorePanelsState @go(PanelsState) + + // query + query?: _ @go(Query,interface{}) + + // transformations + transformations: [...null | #LinkTransformationConfig] @go(Transformations,[]*LinkTransformationConfig) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ip_mask_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ip_mask_go_gen.cue new file mode 100644 index 000000000..8cde12484 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ip_mask_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// IPMask An IPMask is a bitmask that can be used to manipulate +// IP addresses for IP addressing and routing. +// +// See type IPNet and func ParseCIDR for details. +// +// swagger:model IPMask +#IPMask: [...uint8] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ip_net_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ip_net_go_gen.cue new file mode 100644 index 000000000..572fb8040 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ip_net_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// IPNet An IPNet represents an IP network. +// +// swagger:model IPNet +#IPNet: { + // IP + IP?: string + + // mask + Mask?: #IPMask +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/json_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/json_go_gen.cue new file mode 100644 index 000000000..c392666dc --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/json_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// JSON Json +// +// swagger:model Json +#JSON: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/json_web_key_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/json_web_key_go_gen.cue new file mode 100644 index 000000000..540ac807b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/json_web_key_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// JSONWebKey JSONWebKey represents a public or private key in JWK format. +// +// swagger:model JSONWebKey +#JSONWebKey: { + // Key algorithm, parsed from `alg` header. + Algorithm?: string + + // X.509 certificate thumbprint (SHA-1), parsed from `x5t` header. + CertificateThumbprintSHA1: [...uint8] @go(,[]uint8) + + // X.509 certificate thumbprint (SHA-256), parsed from `x5t#S256` header. + CertificateThumbprintSHA256: [...uint8] @go(,[]uint8) + + // X.509 certificate chain, parsed from `x5c` header. + Certificates: [...null | #Certificate] @go(,[]*Certificate) + + // certificates URL + CertificatesURL?: null | #URL @go(,*URL) + + // Cryptographic key, can be a symmetric or asymmetric key. + Key?: _ @go(,interface{}) + + // Key identifier, parsed from `kid` header. + KeyID?: string + + // Key use, parsed from `use` header. + Use?: string +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/key_usage_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/key_usage_go_gen.cue new file mode 100644 index 000000000..63e05163e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/key_usage_go_gen.cue @@ -0,0 +1,11 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// KeyUsage KeyUsage represents the set of actions that are valid for a given key. It's +// a bitmap of the KeyUsage* constants. +// +// swagger:model KeyUsage +#KeyUsage: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_go_gen.cue new file mode 100644 index 000000000..39f5b7df9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Label Label is a key/value pair of strings. +// +// swagger:model Label +#Label: { + // name + Name?: string +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_name_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_name_go_gen.cue new file mode 100644 index 000000000..6d9a1910e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_name_go_gen.cue @@ -0,0 +1,11 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LabelName A LabelName is a key for a LabelSet or Metric. It has a value associated +// therewith. +// +// swagger:model LabelName +#LabelName: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_names_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_names_go_gen.cue new file mode 100644 index 000000000..3332e4e87 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_names_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LabelNames LabelNames is a sortable LabelName slice. In implements sort.Interface. +// +// swagger:model LabelNames +#LabelNames: [...#LabelName] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_set_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_set_go_gen.cue new file mode 100644 index 000000000..0354b2dd1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_set_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LabelSet LabelSet label set +// +// swagger:model labelSet +#LabelSet: {[string]: string} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_value_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_value_go_gen.cue new file mode 100644 index 000000000..d67c9d649 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/label_value_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LabelValue A LabelValue is an associated value for a LabelName. +// +// swagger:model LabelValue +#LabelValue: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/labels_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/labels_go_gen.cue new file mode 100644 index 000000000..33bc10922 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/labels_go_gen.cue @@ -0,0 +1,11 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Labels Labels is a sorted set of labels. Order has to be guaranteed upon +// instantiation. +// +// swagger:model Labels +#Labels: [...null | #Label] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/legacy_alert_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/legacy_alert_go_gen.cue new file mode 100644 index 000000000..01470509c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/legacy_alert_go_gen.cue @@ -0,0 +1,61 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LegacyAlert legacy alert +// +// swagger:model LegacyAlert +#LegacyAlert: { + // dashboard ID + DashboardID?: int64 + + // eval data + EvalData?: #JSON + + // execution error + ExecutionError?: string + + // for + For?: #Duration + + // frequency + Frequency?: int64 + + // handler + Handler?: int64 + + // ID + ID?: int64 + + // message + Message?: string + + // name + Name?: string + + // org ID + OrgID?: int64 + + // panel ID + PanelID?: int64 + + // settings + Settings?: #JSON + + // severity + Severity?: string + + // silenced + Silenced?: bool + + // state + State?: #AlertStateType + + // state changes + StateChanges?: int64 + + // version + Version?: int64 +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/legacy_channel_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/legacy_channel_go_gen.cue new file mode 100644 index 000000000..b9e532fb0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/legacy_channel_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LegacyChannel legacy channel +// +// swagger:model LegacyChannel +#LegacyChannel: { + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) + + // type + type?: string @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_array_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_array_response_go_gen.cue new file mode 100644 index 000000000..25cd532de --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_array_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementArrayResponse LibraryElementArrayResponse is a response struct for an array of LibraryElementDTO. +// +// swagger:model LibraryElementArrayResponse +#LibraryElementArrayResponse: { + // result + result: [...null | #LibraryElementDTO] @go(Result,[]*LibraryElementDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_connection_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_connection_dto_go_gen.cue new file mode 100644 index 000000000..0218689e2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_connection_dto_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementConnectionDTO LibraryElementConnectionDTO is the frontend DTO for element connections. +// +// swagger:model LibraryElementConnectionDTO +#LibraryElementConnectionDTO: { + // connection Id + connectionId?: int64 @go(ConnectionID) + + // connection Uid + connectionUid?: string @go(ConnectionUID) + + // created by + createdBy?: null | #LibraryElementDTOMetaUser @go(CreatedBy,*LibraryElementDTOMetaUser) + + // element Id + elementId?: int64 @go(ElementID) + + // id + id?: int64 @go(ID) + + // kind + kind?: int64 @go(Kind) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_connections_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_connections_response_go_gen.cue new file mode 100644 index 000000000..e5881c2e4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_connections_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementConnectionsResponse LibraryElementConnectionsResponse is a response struct for an array of LibraryElementConnectionDTO. +// +// swagger:model LibraryElementConnectionsResponse +#LibraryElementConnectionsResponse: { + // result + result: [...null | #LibraryElementConnectionDTO] @go(Result,[]*LibraryElementConnectionDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_go_gen.cue new file mode 100644 index 000000000..d6fc3946f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_go_gen.cue @@ -0,0 +1,49 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementDTO LibraryElementDTO is the frontend DTO for entities. +// +// swagger:model LibraryElementDTO +#LibraryElementDTO: { + // description + description?: string @go(Description) + + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder Uid + folderUid?: string @go(FolderUID) + + // id + id?: int64 @go(ID) + + // kind + kind?: int64 @go(Kind) + + // meta + meta?: null | #LibraryElementDTOMeta @go(Meta,*LibraryElementDTOMeta) + + // model + model?: _ @go(Model,interface{}) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // schema version + schemaVersion?: int64 @go(SchemaVersion) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_meta_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_meta_go_gen.cue new file mode 100644 index 000000000..f4ed2a364 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_meta_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementDTOMeta LibraryElementDTOMeta is the meta information for LibraryElementDTO. +// +// swagger:model LibraryElementDTOMeta +#LibraryElementDTOMeta: { + // connected dashboards + connectedDashboards?: int64 @go(ConnectedDashboards) + + // created by + createdBy?: null | #LibraryElementDTOMetaUser @go(CreatedBy,*LibraryElementDTOMetaUser) + + // folder name + folderName?: string @go(FolderName) + + // folder Uid + folderUid?: string @go(FolderUID) + + // updated by + updatedBy?: null | #LibraryElementDTOMetaUser @go(UpdatedBy,*LibraryElementDTOMetaUser) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_meta_user_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_meta_user_go_gen.cue new file mode 100644 index 000000000..dea3ff4e9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_dto_meta_user_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementDTOMetaUser LibraryElementDTOMetaUser defines model for LibraryElementDTOMetaUser. +// +// swagger:model LibraryElementDTOMetaUser +#LibraryElementDTOMetaUser: { + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_response_go_gen.cue new file mode 100644 index 000000000..98a2d3128 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementResponse LibraryElementResponse is a response struct for LibraryElementDTO. +// +// swagger:model LibraryElementResponse +#LibraryElementResponse: { + // result + result?: null | #LibraryElementDTO @go(Result,*LibraryElementDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_search_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_search_response_go_gen.cue new file mode 100644 index 000000000..0f5ed0dfc --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_search_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementSearchResponse LibraryElementSearchResponse is a response struct for LibraryElementSearchResult. +// +// swagger:model LibraryElementSearchResponse +#LibraryElementSearchResponse: { + // result + result?: null | #LibraryElementSearchResult @go(Result,*LibraryElementSearchResult) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_search_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_search_result_go_gen.cue new file mode 100644 index 000000000..1cb3b4a18 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/library_element_search_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LibraryElementSearchResult LibraryElementSearchResult is the search result for entities. +// +// swagger:model LibraryElementSearchResult +#LibraryElementSearchResult: { + // elements + elements: [...null | #LibraryElementDTO] @go(Elements,[]*LibraryElementDTO) + + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // total count + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/link_transformation_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/link_transformation_config_go_gen.cue new file mode 100644 index 000000000..6aea6f238 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/link_transformation_config_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// LinkTransformationConfig link transformation config +// +// swagger:model LinkTransformationConfig +#LinkTransformationConfig: { + // expression + expression?: string @go(Expression) + + // field + field?: string @go(Field) + + // map value + mapValue?: string @go(MapValue) + + // type + type?: #SupportedTransformationTypes @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/list_all_providers_settings_ok_body_items_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/list_all_providers_settings_ok_body_items_go_gen.cue new file mode 100644 index 000000000..17302c40b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/list_all_providers_settings_ok_body_items_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ListAllProvidersSettingsOKBodyItems list all providers settings Ok body items +// +// swagger:model listAllProvidersSettingsOkBodyItems +#ListAllProvidersSettingsOKBodyItems: { + // id + id?: string @go(ID) + + // provider + provider?: string @go(Provider) + + // settings + settings?: _ @go(Settings,interface{}) + + // source + source?: string @go(Source) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/list_sort_options_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/list_sort_options_ok_body_go_gen.cue new file mode 100644 index 000000000..412f4a745 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/list_sort_options_ok_body_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ListSortOptionsOKBody list sort options Ok body +// +// swagger:model listSortOptionsOkBody +#ListSortOptionsOKBody: { + // description + description?: string @go(Description) + + // display name + displayName?: string @go(DisplayName) + + // meta + meta?: string @go(Meta) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/m_s_teams_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/m_s_teams_config_go_gen.cue new file mode 100644 index 000000000..2b224cf30 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/m_s_teams_config_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MSTeamsConfig m s teams config +// +// swagger:model MSTeamsConfig +#MSTeamsConfig: { + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // text + text?: string @go(Text) + + // title + title?: string @go(Title) + + // webhook url + webhook_url?: null | #SecretURL @go(WebhookURL,*SecretURL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mass_delete_annotations_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mass_delete_annotations_cmd_go_gen.cue new file mode 100644 index 000000000..284069808 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mass_delete_annotations_cmd_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MassDeleteAnnotationsCmd mass delete annotations cmd +// +// swagger:model MassDeleteAnnotationsCmd +#MassDeleteAnnotationsCmd: { + // annotation Id + annotationId?: int64 @go(AnnotationID) + + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard UID + dashboardUID?: string @go(DashboardUID) + + // panel Id + panelId?: int64 @go(PanelID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/match_regexps_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/match_regexps_go_gen.cue new file mode 100644 index 000000000..eb06e7bcd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/match_regexps_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MatchRegexps MatchRegexps represents a map of Regexp. +// +// swagger:model MatchRegexps +#MatchRegexps: {[string]: string} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/match_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/match_type_go_gen.cue new file mode 100644 index 000000000..82bf9a2ba --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/match_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MatchType MatchType is an enum for label matching types. +// +// swagger:model MatchType +#MatchType: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/matcher_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/matcher_go_gen.cue new file mode 100644 index 000000000..de15be5be --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/matcher_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Matcher Matcher matcher +// +// swagger:model matcher +#Matcher: { + // is equal + isEqual?: bool @go(IsEqual) + + // is regex + // Required: true + isRegex?: null | bool @go(IsRegex,*bool) + + // name + // Required: true + name?: null | string @go(Name,*string) + + // value + // Required: true + value?: null | string @go(Value,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/matchers_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/matchers_go_gen.cue new file mode 100644 index 000000000..867727df1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/matchers_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Matchers Matchers matchers +// +// swagger:model matchers +#Matchers: [...null | #Matcher] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/metadata_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/metadata_go_gen.cue new file mode 100644 index 000000000..6eef8ca76 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/metadata_go_gen.cue @@ -0,0 +1,11 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Metadata Metadata contains user accesses for a given resource +// Ex: map[string]bool{"create":true, "delete": true} +// +// swagger:model Metadata +#Metadata: {[string]: bool} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/metric_request_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/metric_request_go_gen.cue new file mode 100644 index 000000000..a706593cb --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/metric_request_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MetricRequest metric request +// +// swagger:model MetricRequest +#MetricRequest: { + // debug + debug?: bool @go(Debug) + + // From Start time in epoch timestamps in milliseconds or relative using Grafana time units. + // Example: now-1h + // Required: true + from?: null | string @go(From,*string) + + // queries.refId – Specifies an identifier of the query. Is optional and default to “A”. + // queries.datasourceId – Specifies the data source to be queried. Each query in the request must have an unique datasourceId. + // queries.maxDataPoints - Species maximum amount of data points that dashboard panel can render. Is optional and default to 100. + // queries.intervalMs - Specifies the time interval in milliseconds of time series. Is optional and defaults to 1000. + // Example: [{"datasource":{"uid":"PD8C576611E62080A"},"format":"table","intervalMs":86400000,"maxDataPoints":1092,"rawSql":"SELECT 1 as valueOne, 2 as valueTwo","refId":"A"}] + // Required: true + queries: [...#JSON] @go(Queries,[]JSON) + + // To End time in epoch timestamps in milliseconds or relative using Grafana time units. + // Example: now + // Required: true + to?: null | string @go(To,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/move_folder_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/move_folder_command_go_gen.cue new file mode 100644 index 000000000..ae0a635f5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/move_folder_command_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MoveFolderCommand MoveFolderCommand captures the information required by the folder service +// to move a folder. +// +// swagger:model MoveFolderCommand +#MoveFolderCommand: { + // parent Uid + parentUid?: string @go(ParentUID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_time_interval_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_time_interval_export_go_gen.cue new file mode 100644 index 000000000..ab0585f1e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_time_interval_export_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MuteTimeIntervalExport mute time interval export +// +// swagger:model MuteTimeIntervalExport +#MuteTimeIntervalExport: { + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // time intervals + time_intervals: [...null | #TimeInterval] @go(TimeIntervals,[]*TimeInterval) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_time_interval_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_time_interval_go_gen.cue new file mode 100644 index 000000000..c6d1eea7f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_time_interval_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MuteTimeInterval MuteTimeInterval represents a named set of time intervals for which a route should be muted. +// +// swagger:model MuteTimeInterval +#MuteTimeInterval: { + // name + name?: string @go(Name) + + // time intervals + time_intervals: [...null | #TimeInterval] @go(TimeIntervals,[]*TimeInterval) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_timings_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_timings_go_gen.cue new file mode 100644 index 000000000..8954342c6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/mute_timings_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// MuteTimings mute timings +// +// swagger:model MuteTimings +#MuteTimings: [...null | #MuteTimeInterval] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/name_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/name_go_gen.cue new file mode 100644 index 000000000..3e9223917 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/name_go_gen.cue @@ -0,0 +1,36 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Name Name represents an X.509 distinguished name. This only includes the common +// elements of a DN. Note that Name is only an approximation of the X.509 +// structure. If an accurate representation is needed, asn1.Unmarshal the raw +// subject or issuer as an RDNSequence. +// +// swagger:model Name +#Name: { + // country + Country: [...string] @go(,[]string) + + // ExtraNames contains attributes to be copied, raw, into any marshaled + // distinguished names. Values override any attributes with the same OID. + // The ExtraNames field is not populated when parsing, see Names. + ExtraNames: [...null | #AttributeTypeAndValue] @go(,[]*AttributeTypeAndValue) + + // locality + Locality: [...string] @go(,[]string) + + // Names contains all parsed attributes. When parsing distinguished names, + // this can be used to extract non-standard attributes that are not parsed + // by this package. When marshaling to RDNSequences, the Names field is + // ignored, see ExtraNames. + Names: [...null | #AttributeTypeAndValue] @go(,[]*AttributeTypeAndValue) + + // serial number + SerialNumber?: string + + // street address + StreetAddress: [...string] @go(,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/new_api_key_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/new_api_key_result_go_gen.cue new file mode 100644 index 000000000..eb8efc6ae --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/new_api_key_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NewAPIKeyResult new Api key result +// +// swagger:model NewApiKeyResult +#NewAPIKeyResult: { + // id + // Example: 1 + id?: int64 @go(ID) + + // key + // Example: glsa_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a + key?: string @go(Key) + + // name + // Example: grafana + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/not_found_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/not_found_go_gen.cue new file mode 100644 index 000000000..85285afef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/not_found_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NotFound not found +// +// swagger:model NotFound +#NotFound: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notice_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notice_go_gen.cue new file mode 100644 index 000000000..0e976db60 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notice_go_gen.cue @@ -0,0 +1,23 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Notice Notice provides a structure for presenting notifications in Grafana's user interface. +// +// swagger:model Notice +#Notice: { + // inspect + inspect?: #InspectType @go(Inspect) + + // Link is an optional link for display in the user interface and can be an + // absolute URL or a path relative to Grafana's root url. + link?: string @go(Link) + + // severity + severity?: #NoticeSeverity @go(Severity) + + // Text is freeform descriptive text for the notice. + text?: string @go(Text) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notice_severity_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notice_severity_go_gen.cue new file mode 100644 index 000000000..d3c663efa --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notice_severity_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NoticeSeverity NoticeSeverity is a type for the Severity property of a Notice. +// +// swagger:model NoticeSeverity +#NoticeSeverity: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_policy_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_policy_export_go_gen.cue new file mode 100644 index 000000000..211f4f611 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_policy_export_go_gen.cue @@ -0,0 +1,49 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NotificationPolicyExport NotificationPolicyExport is the provisioned file export of alerting.NotificiationPolicyV1. +// +// swagger:model NotificationPolicyExport +#NotificationPolicyExport: { + // continue + continue?: bool @go(Continue) + + // group by + group_by: [...string] @go(GroupBy,[]string) + + // group interval + group_interval?: string @go(GroupInterval) + + // group wait + group_wait?: string @go(GroupWait) + + // Deprecated. Remove before v1.0 release. + match?: {[string]: string} @go(Match,map[string]string) + + // match re + match_re?: #MatchRegexps @go(MatchRe) + + // matchers + matchers?: #Matchers @go(Matchers) + + // mute time intervals + mute_time_intervals: [...string] @go(MuteTimeIntervals,[]string) + + // object matchers + object_matchers?: #ObjectMatchers @go(ObjectMatchers) + + // org Id + orgId?: int64 @go(OrgID) + + // receiver + receiver?: string @go(Receiver) + + // repeat interval + repeat_interval?: string @go(RepeatInterval) + + // routes + routes: [...null | #RouteExport] @go(Routes,[]*RouteExport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_template_content_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_template_content_go_gen.cue new file mode 100644 index 000000000..82616b7ff --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_template_content_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NotificationTemplateContent notification template content +// +// swagger:model NotificationTemplateContent +#NotificationTemplateContent: { + // template + template?: string @go(Template) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_template_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_template_go_gen.cue new file mode 100644 index 000000000..4fc54aca9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_template_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NotificationTemplate notification template +// +// swagger:model NotificationTemplate +#NotificationTemplate: { + // name + name?: string @go(Name) + + // provenance + provenance?: #Provenance @go(Provenance) + + // template + template?: string @go(Template) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_templates_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_templates_go_gen.cue new file mode 100644 index 000000000..4cf23bf11 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_templates_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NotificationTemplates notification templates +// +// swagger:model NotificationTemplates +#NotificationTemplates: [...null | #NotificationTemplate] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_test_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_test_command_go_gen.cue new file mode 100644 index 000000000..1be05c320 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/notification_test_command_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// NotificationTestCommand notification test command +// +// swagger:model NotificationTestCommand +#NotificationTestCommand: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // frequency + frequency?: string @go(Frequency) + + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) + + // secure settings + secureSettings?: {[string]: string} @go(SecureSettings,map[string]string) + + // send reminder + sendReminder?: bool @go(SendReminder) + + // settings + settings?: #JSON @go(Settings) + + // type + type?: string @go(Type) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/o_auth2_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/o_auth2_go_gen.cue new file mode 100644 index 000000000..f972a00a6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/o_auth2_go_gen.cue @@ -0,0 +1,44 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OAuth2 OAuth2 is the oauth2 client configuration. +// +// swagger:model OAuth2 +#OAuth2: { + // TLS config + TLSConfig?: null | #TLSConfig @go(,*TLSConfig) + + // client id + client_id?: string @go(ClientID) + + // client secret + client_secret?: #Secret @go(ClientSecret) + + // client secret file + client_secret_file?: string @go(ClientSecretFile) + + // endpoint params + endpoint_params?: {[string]: string} @go(EndpointParams,map[string]string) + + // NoProxy contains addresses that should not use a proxy. + no_proxy?: string @go(NoProxy) + + // proxy connect header + proxy_connect_header?: #Header @go(ProxyConnectHeader) + + // ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function + // to determine proxies. + proxy_from_environment?: bool @go(ProxyFromEnvironment) + + // proxy url + proxy_url?: null | #URL @go(ProxyURL,*URL) + + // scopes + scopes: [...string] @go(Scopes,[]string) + + // token url + token_url?: string @go(TokenURL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_identifier_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_identifier_go_gen.cue new file mode 100644 index 000000000..975afe5b3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_identifier_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ObjectIdentifier An ObjectIdentifier represents an ASN.1 OBJECT IDENTIFIER. +// +// swagger:model ObjectIdentifier +#ObjectIdentifier: [...int64] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_matcher_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_matcher_go_gen.cue new file mode 100644 index 000000000..446d2f9a7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_matcher_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ObjectMatcher ObjectMatcher is a matcher that can be used to filter alerts. +// +// swagger:model ObjectMatcher +#ObjectMatcher: [...string] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_matchers_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_matchers_go_gen.cue new file mode 100644 index 000000000..b3911ddc1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/object_matchers_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ObjectMatchers object matchers +// +// swagger:model ObjectMatchers +#ObjectMatchers: [...#ObjectMatcher] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ops_genie_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ops_genie_config_go_gen.cue new file mode 100644 index 000000000..e8a787510 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ops_genie_config_go_gen.cue @@ -0,0 +1,58 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OpsGenieConfig OpsGenieConfig configures notifications via OpsGenie. +// +// swagger:model OpsGenieConfig +#OpsGenieConfig: { + // actions + actions?: string @go(Actions) + + // api key + api_key?: #Secret @go(APIKey) + + // api key file + api_key_file?: string @go(APIKeyFile) + + // api url + api_url?: null | #URL @go(APIURL,*URL) + + // description + description?: string @go(Description) + + // details + details?: {[string]: string} @go(Details,map[string]string) + + // entity + entity?: string @go(Entity) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // note + note?: string @go(Note) + + // priority + priority?: string @go(Priority) + + // responders + responders: [...null | #OpsGenieConfigResponder] @go(Responders,[]*OpsGenieConfigResponder) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // source + source?: string @go(Source) + + // tags + tags?: string @go(Tags) + + // update alerts + update_alerts?: bool @go(UpdateAlerts) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ops_genie_config_responder_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ops_genie_config_responder_go_gen.cue new file mode 100644 index 000000000..8aaa041ba --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/ops_genie_config_responder_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OpsGenieConfigResponder ops genie config responder +// +// swagger:model OpsGenieConfigResponder +#OpsGenieConfigResponder: { + // One of those 3 should be filled. + id?: string @go(ID) + + // name + name?: string @go(Name) + + // team, user, escalation, schedule etc. + type?: string @go(Type) + + // username + username?: string @go(Username) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_details_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_details_dto_go_gen.cue new file mode 100644 index 000000000..5e14ef21a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_details_dto_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OrgDetailsDTO org details DTO +// +// swagger:model OrgDetailsDTO +#OrgDetailsDTO: { + // address + address?: null | #Address @go(Address,*Address) + + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_dto_go_gen.cue new file mode 100644 index 000000000..c3e499773 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_dto_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OrgDTO org DTO +// +// swagger:model OrgDTO +#OrgDTO: { + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_user_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_user_dto_go_gen.cue new file mode 100644 index 000000000..a869e054a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/org_user_dto_go_gen.cue @@ -0,0 +1,46 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OrgUserDTO org user DTO +// +// swagger:model OrgUserDTO +#OrgUserDTO: { + // access control + accessControl?: {[string]: bool} @go(AccessControl,map[string]bool) + + // auth labels + authLabels: [...string] @go(AuthLabels,[]string) + + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // email + email?: string @go(Email) + + // is disabled + isDisabled?: bool @go(IsDisabled) + + // is externally synced + isExternallySynced?: bool @go(IsExternallySynced) + + // last seen at age + lastSeenAtAge?: string @go(LastSeenAtAge) + + // login + login?: string @go(Login) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // role + role?: string @go(Role) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/override_labels_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/override_labels_go_gen.cue new file mode 100644 index 000000000..9e6bebe38 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/override_labels_go_gen.cue @@ -0,0 +1,12 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// OverrideLabels override the labels type with a map for generation. +// +// The custom marshaling for labels.Labels ends up doing this anyways. +// +// swagger:model overrideLabels +#OverrideLabels: {[string]: string} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_config_go_gen.cue new file mode 100644 index 000000000..f72cc0b43 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_config_go_gen.cue @@ -0,0 +1,64 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PagerdutyConfig PagerdutyConfig configures notifications via PagerDuty. +// +// swagger:model PagerdutyConfig +#PagerdutyConfig: { + // class + class?: string @go(Class) + + // client + client?: string @go(Client) + + // client url + client_url?: string @go(ClientURL) + + // component + component?: string @go(Component) + + // description + description?: string @go(Description) + + // details + details?: {[string]: string} @go(Details,map[string]string) + + // group + group?: string @go(Group) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // images + images: [...null | #PagerdutyImage] @go(Images,[]*PagerdutyImage) + + // links + links: [...null | #PagerdutyLink] @go(Links,[]*PagerdutyLink) + + // routing key + routing_key?: #Secret @go(RoutingKey) + + // routing key file + routing_key_file?: string @go(RoutingKeyFile) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // service key + service_key?: #Secret @go(ServiceKey) + + // service key file + service_key_file?: string @go(ServiceKeyFile) + + // severity + severity?: string @go(Severity) + + // source + source?: string @go(Source) + + // url + url?: null | #URL @go(URL,*URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_image_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_image_go_gen.cue new file mode 100644 index 000000000..76f82c180 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_image_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PagerdutyImage PagerdutyImage is an image +// +// swagger:model PagerdutyImage +#PagerdutyImage: { + // alt + alt?: string @go(Alt) + + // href + href?: string @go(Href) + + // src + src?: string @go(Src) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_link_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_link_go_gen.cue new file mode 100644 index 000000000..a30616f94 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pagerduty_link_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PagerdutyLink PagerdutyLink is a link +// +// swagger:model PagerdutyLink +#PagerdutyLink: { + // href + href?: string @go(Href) + + // text + text?: string @go(Text) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_annotations_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_annotations_cmd_go_gen.cue new file mode 100644 index 000000000..c2a5e5042 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_annotations_cmd_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PatchAnnotationsCmd patch annotations cmd +// +// swagger:model PatchAnnotationsCmd +#PatchAnnotationsCmd: { + // data + data?: #JSON @go(Data) + + // id + id?: int64 @go(ID) + + // tags + tags: [...string] @go(Tags,[]string) + + // text + text?: string @go(Text) + + // time + time?: int64 @go(Time) + + // time end + timeEnd?: int64 @go(TimeEnd) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_library_element_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_library_element_command_go_gen.cue new file mode 100644 index 000000000..c16ec65ff --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_library_element_command_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PatchLibraryElementCommand PatchLibraryElementCommand is the command for patching a LibraryElement +// +// swagger:model PatchLibraryElementCommand +#PatchLibraryElementCommand: { + // ID of the folder where the library element is stored. + // + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // UID of the folder where the library element is stored. + folderUid?: string @go(FolderUID) + + // Kind of element to create, Use 1 for library panels or 2 for c. + // Description: + // 1 - library panels + // 2 - library variables + // Enum: [1 2] + kind?: int64 @go(Kind) + + // The JSON model for the library element. + model?: _ @go(Model,interface{}) + + // Name of the library element. + name?: string @go(Name) + + // uid + uid?: string @go(UID) + + // Version of the library element you are updating. + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_prefs_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_prefs_cmd_go_gen.cue new file mode 100644 index 000000000..cbbfb21a9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_prefs_cmd_go_gen.cue @@ -0,0 +1,48 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PatchPrefsCmd patch prefs cmd +// +// swagger:model PatchPrefsCmd +#PatchPrefsCmd: { + // cookies + cookies: [...#CookieType] @go(Cookies,[]CookieType) + + // The numerical :id of a favorited dashboard + homeDashboardId?: int64 @go(HomeDashboardID) + + // home dashboard UID + homeDashboardUID?: string @go(HomeDashboardUID) + + // language + language?: string @go(Language) + + // query history + queryHistory?: null | #QueryHistoryPreference @go(QueryHistory,*QueryHistoryPreference) + + // theme + // Enum: [light dark] + theme?: string @go(Theme) + + // timezone + // Enum: [utc browser] + timezone?: string @go(Timezone) + + // week start + weekStart?: string @go(WeekStart) +} + +// PatchPrefsCmdThemeLight captures enum value "light" +#PatchPrefsCmdThemeLight: "light" + +// PatchPrefsCmdThemeDark captures enum value "dark" +#PatchPrefsCmdThemeDark: "dark" + +// PatchPrefsCmdTimezoneUtc captures enum value "utc" +#PatchPrefsCmdTimezoneUtc: "utc" + +// PatchPrefsCmdTimezoneBrowser captures enum value "browser" +#PatchPrefsCmdTimezoneBrowser: "browser" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_query_comment_in_query_history_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_query_comment_in_query_history_command_go_gen.cue new file mode 100644 index 000000000..e822802f1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/patch_query_comment_in_query_history_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PatchQueryCommentInQueryHistoryCommand PatchQueryCommentInQueryHistoryCommand is the command for updating comment for query in query history +// +// swagger:model PatchQueryCommentInQueryHistoryCommand +#PatchQueryCommentInQueryHistoryCommand: { + // Updated comment + comment?: string @go(Comment) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_alert_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_alert_command_go_gen.cue new file mode 100644 index 000000000..44bdb73f0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_alert_command_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PauseAlertCommand pause alert command +// +// swagger:model PauseAlertCommand +#PauseAlertCommand: { + // alert Id + alertId?: int64 @go(AlertID) + + // paused + paused?: bool @go(Paused) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_alert_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_alert_ok_body_go_gen.cue new file mode 100644 index 000000000..05ef16735 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_alert_ok_body_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PauseAlertOKBody pause alert Ok body +// +// swagger:model pauseAlertOkBody +#PauseAlertOKBody: { + // alert Id + // Required: true + alertId?: null | int64 @go(AlertID,*int64) + + // message + // Required: true + message?: null | string @go(Message,*string) + + // Alert result state + // required true + state?: string @go(State) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_all_alerts_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_all_alerts_command_go_gen.cue new file mode 100644 index 000000000..32d3f3031 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_all_alerts_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PauseAllAlertsCommand pause all alerts command +// +// swagger:model PauseAllAlertsCommand +#PauseAllAlertsCommand: { + // paused + paused?: bool @go(Paused) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_all_alerts_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_all_alerts_ok_body_go_gen.cue new file mode 100644 index 000000000..6ca5a850d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pause_all_alerts_ok_body_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PauseAllAlertsOKBody pause all alerts Ok body +// +// swagger:model pauseAllAlertsOkBody +#PauseAllAlertsOKBody: { + // AlertsAffected is the number of the affected alerts. + // Required: true + alertsAffected?: null | int64 @go(AlertsAffected,*int64) + + // message + // Required: true + message?: null | string @go(Message,*string) + + // Alert result state + // required true + state?: string @go(State) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/peer_status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/peer_status_go_gen.cue new file mode 100644 index 000000000..34119c21a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/peer_status_go_gen.cue @@ -0,0 +1,18 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PeerStatus PeerStatus peer status +// +// swagger:model peerStatus +#PeerStatus: { + // address + // Required: true + address?: null | string @go(Address,*string) + + // name + // Required: true + name?: null | string @go(Name,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_denied_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_denied_go_gen.cue new file mode 100644 index 000000000..6aa28d4ef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_denied_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PermissionDenied permission denied +// +// swagger:model PermissionDenied +#PermissionDenied: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_go_gen.cue new file mode 100644 index 000000000..5b4a2e20f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Permission Permission is the model for access control permissions. +// +// swagger:model Permission +#Permission: { + // action + action?: string @go(Action) + + // scope + scope?: string @go(Scope) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_type_go_gen.cue new file mode 100644 index 000000000..4ee0567d6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/permission_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PermissionType permission type +// +// swagger:model PermissionType +#PermissionType: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_dashboard_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_dashboard_go_gen.cue new file mode 100644 index 000000000..76299f00e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_dashboard_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PlaylistDashboard playlist dashboard +// +// swagger:model PlaylistDashboard +#PlaylistDashboard: { + // id + id?: int64 @go(ID) + + // order + order?: int64 @go(Order) + + // slug + slug?: string @go(Slug) + + // title + title?: string @go(Title) + + // uri + uri?: string @go(URI) + + // url + url?: string @go(URL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_go_gen.cue new file mode 100644 index 000000000..bd8b04125 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Playlist Playlist model +// +// swagger:model Playlist +#Playlist: { + // id + id?: int64 @go(ID) + + // interval + interval?: string @go(Interval) + + // name + name?: string @go(Name) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_item_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_item_dto_go_gen.cue new file mode 100644 index 000000000..c40daea3b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_item_dto_go_gen.cue @@ -0,0 +1,26 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PlaylistItemDTO playlist item DTO +// +// swagger:model PlaylistItemDTO +#PlaylistItemDTO: { + // Title is an unused property -- it will be removed in the future + title?: string @go(Title) + + // Type of the item. + type?: string @go(Type) + + // Value depends on type and describes the playlist item. + // + // dashboard_by_id: The value is an internal numerical identifier set by Grafana. This + // is not portable as the numerical identifier is non-deterministic between different instances. + // Will be replaced by dashboard_by_uid in the future. (deprecated) + // dashboard_by_tag: The value is a tag which is set on any number of dashboards. All + // dashboards behind the tag will be added to the playlist. + // dashboard_by_uid: The value is the dashboard UID + value?: string @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_item_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_item_go_gen.cue new file mode 100644 index 000000000..e28d97c13 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlist_item_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PlaylistItem playlist item +// +// swagger:model PlaylistItem +#PlaylistItem: { + // Id + Id?: int64 @go(ID) + + // playlist Id + PlaylistId?: int64 @go(PlaylistID) + + // order + order?: int64 @go(Order) + + // title + title?: string @go(Title) + + // type + type?: string @go(Type) + + // value + value?: string @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlists_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlists_go_gen.cue new file mode 100644 index 000000000..2af1a2e9a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/playlists_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Playlists playlists +// +// swagger:model Playlists +#Playlists: [...null | #Playlist] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_annotation_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_annotation_ok_body_go_gen.cue new file mode 100644 index 000000000..3621fd4cb --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_annotation_ok_body_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostAnnotationOKBody post annotation Ok body +// +// swagger:model postAnnotationOkBody +#PostAnnotationOKBody: { + // ID Identifier of the created annotation. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the created annotation. + // Required: true + message?: null | string @go(Message,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_annotations_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_annotations_cmd_go_gen.cue new file mode 100644 index 000000000..1825270a7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_annotations_cmd_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostAnnotationsCmd post annotations cmd +// +// swagger:model PostAnnotationsCmd +#PostAnnotationsCmd: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard UID + dashboardUID?: string @go(DashboardUID) + + // data + data?: #JSON @go(Data) + + // panel Id + panelId?: int64 @go(PanelID) + + // tags + tags: [...string] @go(Tags,[]string) + + // text + // Required: true + text?: null | string @go(Text,*string) + + // time + time?: int64 @go(Time) + + // time end + timeEnd?: int64 @go(TimeEnd) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_dashboard_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_dashboard_ok_body_go_gen.cue new file mode 100644 index 000000000..209761406 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_dashboard_ok_body_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostDashboardOKBody post dashboard Ok body +// +// swagger:model postDashboardOkBody +#PostDashboardOKBody: { + // FolderUID The unique identifier (uid) of the folder the dashboard belongs to. + folderUid?: string @go(FolderUID) + + // ID The unique identifier (id) of the created/updated dashboard. + // Example: 1 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Status status of the response. + // Example: success + // Required: true + status?: null | string @go(Status,*string) + + // Slug The slug of the dashboard. + // Example: my-dashboard + // Required: true + title?: null | string @go(Title,*string) + + // UID The unique identifier (uid) of the created/updated dashboard. + // Example: nHz3SXiiz + // Required: true + uid?: null | string @go(UID,*string) + + // URL The relative URL for accessing the created/updated dashboard. + // Example: /d/nHz3SXiiz/my-dashboard + // Required: true + url?: null | string @go(URL,*string) + + // Version The version of the dashboard. + // Example: 2 + // Required: true + version?: null | int64 @go(Version,*int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_graphite_annotation_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_graphite_annotation_ok_body_go_gen.cue new file mode 100644 index 000000000..f675303cc --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_graphite_annotation_ok_body_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostGraphiteAnnotationOKBody post graphite annotation Ok body +// +// swagger:model postGraphiteAnnotationOkBody +#PostGraphiteAnnotationOKBody: { + // ID Identifier of the created annotation. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the created annotation. + // Required: true + message?: null | string @go(Message,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_graphite_annotations_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_graphite_annotations_cmd_go_gen.cue new file mode 100644 index 000000000..766e3401c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/post_graphite_annotations_cmd_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostGraphiteAnnotationsCmd post graphite annotations cmd +// +// swagger:model PostGraphiteAnnotationsCmd +#PostGraphiteAnnotationsCmd: { + // data + data?: string @go(Data) + + // tags + tags?: _ @go(Tags,interface{}) + + // what + what?: string @go(What) + + // when + when?: int64 @go(When) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_alert_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_alert_go_gen.cue new file mode 100644 index 000000000..3f0ead0da --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_alert_go_gen.cue @@ -0,0 +1,24 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +import "github.com/go-openapi/strfmt" + +// PostableAlert PostableAlert postable alert +// +// swagger:model postableAlert +#PostableAlert: { + // annotations + annotations?: #LabelSet @go(Annotations) + + // generator URL + // Format: uri + // Format: uri + generatorURL?: strfmt.#URI @go(GeneratorURL) + + // labels + // Required: true + labels: #LabelSet @go(Labels) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_api_alerting_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_api_alerting_config_go_gen.cue new file mode 100644 index 000000000..a231cee11 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_api_alerting_config_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostableAPIAlertingConfig postable Api alerting config +// +// swagger:model PostableApiAlertingConfig +#PostableAPIAlertingConfig: { + // global + global?: null | #GlobalConfig @go(Global,*GlobalConfig) + + // inhibit rules + inhibit_rules: [...null | #InhibitRule] @go(InhibitRules,[]*InhibitRule) + + // mute time intervals + mute_time_intervals: [...null | #MuteTimeInterval] @go(MuteTimeIntervals,[]*MuteTimeInterval) + + // Override with our superset receiver type + receivers: [...null | #PostableAPIReceiver] @go(Receivers,[]*PostableAPIReceiver) + + // route + route?: null | #Route @go(Route,*Route) + + // templates + templates: [...string] @go(Templates,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_api_receiver_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_api_receiver_go_gen.cue new file mode 100644 index 000000000..6a1e477c1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_api_receiver_go_gen.cue @@ -0,0 +1,55 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostableAPIReceiver postable Api receiver +// +// swagger:model PostableApiReceiver +#PostableAPIReceiver: { + // discord configs + discord_configs: [...null | #DiscordConfig] @go(DiscordConfigs,[]*DiscordConfig) + + // email configs + email_configs: [...null | #EmailConfig] @go(EmailConfigs,[]*EmailConfig) + + // grafana managed receiver configs + grafana_managed_receiver_configs: [...null | #PostableGrafanaReceiver] @go(GrafanaManagedReceiverConfigs,[]*PostableGrafanaReceiver) + + // msteams configs + msteams_configs: [...null | #MSTeamsConfig] @go(MsteamsConfigs,[]*MSTeamsConfig) + + // A unique identifier for this receiver. + name?: string @go(Name) + + // opsgenie configs + opsgenie_configs: [...null | #OpsGenieConfig] @go(OpsgenieConfigs,[]*OpsGenieConfig) + + // pagerduty configs + pagerduty_configs: [...null | #PagerdutyConfig] @go(PagerdutyConfigs,[]*PagerdutyConfig) + + // pushover configs + pushover_configs: [...null | #PushoverConfig] @go(PushoverConfigs,[]*PushoverConfig) + + // slack configs + slack_configs: [...null | #SlackConfig] @go(SlackConfigs,[]*SlackConfig) + + // sns configs + sns_configs: [...null | #SNSConfig] @go(SNSConfigs,[]*SNSConfig) + + // telegram configs + telegram_configs: [...null | #TelegramConfig] @go(TelegramConfigs,[]*TelegramConfig) + + // victorops configs + victorops_configs: [...null | #VictorOpsConfig] @go(VictoropsConfigs,[]*VictorOpsConfig) + + // webex configs + webex_configs: [...null | #WebexConfig] @go(WebexConfigs,[]*WebexConfig) + + // webhook configs + webhook_configs: [...null | #WebhookConfig] @go(WebhookConfigs,[]*WebhookConfig) + + // wechat configs + wechat_configs: [...null | #WechatConfig] @go(WechatConfigs,[]*WechatConfig) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_extended_rule_node_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_extended_rule_node_go_gen.cue new file mode 100644 index 000000000..3af4725dd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_extended_rule_node_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostableExtendedRuleNode postable extended rule node +// +// swagger:model PostableExtendedRuleNode +#PostableExtendedRuleNode: { + // alert + alert?: string @go(Alert) + + // annotations + annotations?: {[string]: string} @go(Annotations,map[string]string) + + // expr + expr?: string @go(Expr) + + // for + for?: string @go(For) + + // grafana alert + grafana_alert?: null | #PostableGrafanaRule @go(GrafanaAlert,*PostableGrafanaRule) + + // keep firing for + keep_firing_for?: string @go(KeepFiringFor) + + // labels + labels?: {[string]: string} @go(Labels,map[string]string) + + // record + record?: string @go(Record) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_grafana_receiver_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_grafana_receiver_go_gen.cue new file mode 100644 index 000000000..3d012e3dd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_grafana_receiver_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostableGrafanaReceiver postable grafana receiver +// +// swagger:model PostableGrafanaReceiver +#PostableGrafanaReceiver: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // name + name?: string @go(Name) + + // secure settings + secureSettings?: {[string]: string} @go(SecureSettings,map[string]string) + + // settings + settings?: #RawMessage @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_grafana_rule_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_grafana_rule_go_gen.cue new file mode 100644 index 000000000..7cfeac3a6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/postable_grafana_rule_go_gen.cue @@ -0,0 +1,51 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PostableGrafanaRule postable grafana rule +// +// swagger:model PostableGrafanaRule +#PostableGrafanaRule: { + // condition + condition?: string @go(Condition) + + // data + data: [...null | #AlertQuery] @go(Data,[]*AlertQuery) + + // exec err state + // Enum: [OK Alerting Error] + exec_err_state?: string @go(ExecErrState) + + // is paused + is_paused?: bool @go(IsPaused) + + // no data state + // Enum: [Alerting NoData OK] + no_data_state?: string @go(NoDataState) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} + +// PostableGrafanaRuleExecErrStateOK captures enum value "OK" +#PostableGrafanaRuleExecErrStateOK: "OK" + +// PostableGrafanaRuleExecErrStateAlerting captures enum value "Alerting" +#PostableGrafanaRuleExecErrStateAlerting: "Alerting" + +// PostableGrafanaRuleExecErrStateError captures enum value "Error" +#PostableGrafanaRuleExecErrStateError: "Error" + +// PostableGrafanaRuleNoDataStateAlerting captures enum value "Alerting" +#PostableGrafanaRuleNoDataStateAlerting: "Alerting" + +// PostableGrafanaRuleNoDataStateNoData captures enum value "NoData" +#PostableGrafanaRuleNoDataStateNoData: "NoData" + +// PostableGrafanaRuleNoDataStateOK captures enum value "OK" +#PostableGrafanaRuleNoDataStateOK: "OK" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/preferences_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/preferences_go_gen.cue new file mode 100644 index 000000000..33b42f162 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/preferences_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Preferences Spec defines user, team or org Grafana preferences +// +// swagger:model Preferences +#Preferences: { + // cookie preferences + cookiePreferences?: null | #CookiePreferences @go(CookiePreferences,*CookiePreferences) + + // ID for the home dashboard. This is deprecated and will be removed in a future version. Use homeDashboardUid instead. + homeDashboardId?: int64 @go(HomeDashboardID) + + // UID for the home dashboard + homeDashboardUID?: string @go(HomeDashboardUID) + + // Selected language (beta) + language?: string @go(Language) + + // query history + queryHistory?: null | #QueryHistoryPreference @go(QueryHistory,*QueryHistoryPreference) + + // Theme light, dark, empty is default + theme?: string @go(Theme) + + // The timezone selection + // TODO: this should use the timezone defined in common + timezone?: string @go(Timezone) + + // WeekStart day of the week (sunday, monday, etc) + weekStart?: string @go(WeekStart) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/prometheus_remote_write_target_json_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/prometheus_remote_write_target_json_go_gen.cue new file mode 100644 index 000000000..d8d22a0ed --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/prometheus_remote_write_target_json_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PrometheusRemoteWriteTargetJSON prometheus remote write target JSON +// +// swagger:model PrometheusRemoteWriteTargetJSON +#PrometheusRemoteWriteTargetJSON: { + // data source uid + data_source_uid?: string @go(DataSourceUID) + + // id + id?: string @go(ID) + + // remote write path + remote_write_path?: string @go(RemoteWritePath) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provenance_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provenance_go_gen.cue new file mode 100644 index 000000000..fece6158a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provenance_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Provenance provenance +// +// swagger:model Provenance +#Provenance: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provisioned_alert_rule_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provisioned_alert_rule_go_gen.cue new file mode 100644 index 000000000..6b420bcc9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provisioned_alert_rule_go_gen.cue @@ -0,0 +1,102 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +import "github.com/go-openapi/strfmt" + +// ProvisionedAlertRule provisioned alert rule +// +// swagger:model ProvisionedAlertRule +#ProvisionedAlertRule: { + // annotations + // Example: {"runbook_url":"https://supercoolrunbook.com/page/13"} + annotations?: {[string]: string} @go(Annotations,map[string]string) + + // condition + // Example: A + // Required: true + condition?: null | string @go(Condition,*string) + + // data + // Example: [{"datasourceUid":"__expr__","model":{"conditions":[{"evaluator":{"params":[0,0],"type":"gt"},"operator":{"type":"and"},"query":{"params":[]},"reducer":{"params":[],"type":"avg"},"type":"query"}],"datasource":{"type":"__expr__","uid":"__expr__"},"expression":"1 == 1","hide":false,"intervalMs":1000,"maxDataPoints":43200,"refId":"A","type":"math"},"queryType":"","refId":"A","relativeTimeRange":{"from":0,"to":0}}] + // Required: true + data: [...null | #AlertQuery] @go(Data,[]*AlertQuery) + + // exec err state + // Required: true + // Enum: [OK Alerting Error] + execErrState?: null | string @go(ExecErrState,*string) + + // folder UID + // Example: project_x + // Required: true + folderUID?: null | string @go(FolderUID,*string) + + // for + // Required: true + // Format: duration + for?: null | strfmt.#Duration @go(For,*strfmt.Duration) + + // id + id?: int64 @go(ID) + + // is paused + // Example: false + isPaused?: bool @go(IsPaused) + + // labels + // Example: {"team":"sre-team-1"} + labels?: {[string]: string} @go(Labels,map[string]string) + + // no data state + // Required: true + // Enum: [Alerting NoData OK] + noDataState?: null | string @go(NoDataState,*string) + + // org ID + // Required: true + orgID?: null | int64 @go(OrgID,*int64) + + // provenance + provenance?: #Provenance @go(Provenance) + + // rule group + // Example: eval_group_1 + // Required: true + // Max Length: 190 + // Min Length: 1 + ruleGroup?: null | string @go(RuleGroup,*string) + + // title + // Example: Always firing + // Required: true + // Max Length: 190 + // Min Length: 1 + title?: null | string @go(Title,*string) + + // uid + // Max Length: 40 + // Min Length: 1 + // Pattern: ^[a-zA-Z0-9-_]+$ + uid?: string @go(UID) +} + +// ProvisionedAlertRuleExecErrStateOK captures enum value "OK" +#ProvisionedAlertRuleExecErrStateOK: "OK" + +// ProvisionedAlertRuleExecErrStateAlerting captures enum value "Alerting" +#ProvisionedAlertRuleExecErrStateAlerting: "Alerting" + +// ProvisionedAlertRuleExecErrStateError captures enum value "Error" +#ProvisionedAlertRuleExecErrStateError: "Error" + +// ProvisionedAlertRuleNoDataStateAlerting captures enum value "Alerting" +#ProvisionedAlertRuleNoDataStateAlerting: "Alerting" + +// ProvisionedAlertRuleNoDataStateNoData captures enum value "NoData" +#ProvisionedAlertRuleNoDataStateNoData: "NoData" + +// ProvisionedAlertRuleNoDataStateOK captures enum value "OK" +#ProvisionedAlertRuleNoDataStateOK: "OK" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provisioned_alert_rules_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provisioned_alert_rules_go_gen.cue new file mode 100644 index 000000000..3bf17a6a4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/provisioned_alert_rules_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ProvisionedAlertRules provisioned alert rules +// +// swagger:model ProvisionedAlertRules +#ProvisionedAlertRules: [...null | #ProvisionedAlertRule] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_dto_go_gen.cue new file mode 100644 index 000000000..fa42e9cef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_dto_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PublicDashboardDTO public dashboard DTO +// +// swagger:model PublicDashboardDTO +#PublicDashboardDTO: { + // access token + accessToken?: string @go(AccessToken) + + // annotations enabled + annotationsEnabled?: bool @go(AnnotationsEnabled) + + // is enabled + isEnabled?: bool @go(IsEnabled) + + // share + share?: #ShareType @go(Share) + + // time selection enabled + timeSelectionEnabled?: bool @go(TimeSelectionEnabled) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_go_gen.cue new file mode 100644 index 000000000..e22d6a7c5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PublicDashboard public dashboard +// +// swagger:model PublicDashboard +#PublicDashboard: { + // access token + accessToken?: string @go(AccessToken) + + // annotations enabled + annotationsEnabled?: bool @go(AnnotationsEnabled) + + // created by + createdBy?: int64 @go(CreatedBy) + + // dashboard Uid + dashboardUid?: string @go(DashboardUID) + + // is enabled + isEnabled?: bool @go(IsEnabled) + + // recipients + recipients: [...null | #EmailDTO] @go(Recipients,[]*EmailDTO) + + // share + share?: #ShareType @go(Share) + + // time selection enabled + timeSelectionEnabled?: bool @go(TimeSelectionEnabled) + + // uid + uid?: string @go(UID) + + // updated by + updatedBy?: int64 @go(UpdatedBy) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_list_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_list_response_go_gen.cue new file mode 100644 index 000000000..e78f50e4f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_list_response_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PublicDashboardListResponse public dashboard list response +// +// swagger:model PublicDashboardListResponse +#PublicDashboardListResponse: { + // access token + accessToken?: string @go(AccessToken) + + // dashboard Uid + dashboardUid?: string @go(DashboardUID) + + // is enabled + isEnabled?: bool @go(IsEnabled) + + // slug + slug?: string @go(Slug) + + // title + title?: string @go(Title) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_list_response_with_pagination_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_list_response_with_pagination_go_gen.cue new file mode 100644 index 000000000..09b2de002 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_dashboard_list_response_with_pagination_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PublicDashboardListResponseWithPagination public dashboard list response with pagination +// +// swagger:model PublicDashboardListResponseWithPagination +#PublicDashboardListResponseWithPagination: { + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // public dashboards + publicDashboards: [...null | #PublicDashboardListResponse] @go(PublicDashboards,[]*PublicDashboardListResponse) + + // total count + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_error_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_error_go_gen.cue new file mode 100644 index 000000000..2bddd5c78 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_error_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PublicError PublicError is derived from Error and only contains information +// available to the end user. +// +// swagger:model publicError +#PublicError: { + // Extra Additional information about the error + extra?: _ @go(Extra,interface{}) + + // Message A human readable message + message?: string @go(Message) + + // MessageID A unique identifier for the error + // Required: true + messageId?: null | string @go(MessageID,*string) + + // StatusCode The HTTP status code returned + // Required: true + statusCode?: null | int64 @go(StatusCode,*int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_key_algorithm_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_key_algorithm_go_gen.cue new file mode 100644 index 000000000..38b4c2e26 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/public_key_algorithm_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PublicKeyAlgorithm public key algorithm +// +// swagger:model PublicKeyAlgorithm +#PublicKeyAlgorithm: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pushover_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pushover_config_go_gen.cue new file mode 100644 index 000000000..6c548a84f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/pushover_config_go_gen.cue @@ -0,0 +1,61 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// PushoverConfig pushover config +// +// swagger:model PushoverConfig +#PushoverConfig: { + // device + device?: string @go(Device) + + // expire + expire?: string @go(Expire) + + // html + html?: bool @go(HTML) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // priority + priority?: string @go(Priority) + + // retry + retry?: string @go(Retry) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // sound + sound?: string @go(Sound) + + // title + title?: string @go(Title) + + // token + token?: #Secret @go(Token) + + // token file + token_file?: string @go(TokenFile) + + // ttl + ttl?: string @go(TTL) + + // url + url?: string @go(URL) + + // url title + url_title?: string @go(URLTitle) + + // user key + user_key?: #Secret @go(UserKey) + + // user key file + user_key_file?: string @go(UserKeyFile) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_data_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_data_response_go_gen.cue new file mode 100644 index 000000000..8a0e9f6dd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_data_response_go_gen.cue @@ -0,0 +1,15 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryDataResponse QueryDataResponse contains the results from a QueryDataRequest. +// +// It is the return type of a QueryData call. +// +// swagger:model QueryDataResponse +#QueryDataResponse: { + // responses + Responses?: #Responses +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_delete_query_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_delete_query_response_go_gen.cue new file mode 100644 index 000000000..591f2a792 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_delete_query_response_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryHistoryDeleteQueryResponse QueryHistoryDeleteQueryResponse is the response struct for deleting a query from query history +// +// swagger:model QueryHistoryDeleteQueryResponse +#QueryHistoryDeleteQueryResponse: { + // id + id?: int64 @go(ID) + + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_dto_go_gen.cue new file mode 100644 index 000000000..dc86366e4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_dto_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryHistoryDTO query history DTO +// +// swagger:model QueryHistoryDTO +#QueryHistoryDTO: { + // comment + comment?: string @go(Comment) + + // created at + createdAt?: int64 @go(CreatedAt) + + // created by + createdBy?: int64 @go(CreatedBy) + + // datasource Uid + datasourceUid?: string @go(DatasourceUID) + + // queries + queries?: #JSON @go(Queries) + + // starred + starred?: bool @go(Starred) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_preference_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_preference_go_gen.cue new file mode 100644 index 000000000..ebcc1c0cd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_preference_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryHistoryPreference QueryHistoryPreference defines model for QueryHistoryPreference. +// +// swagger:model QueryHistoryPreference +#QueryHistoryPreference: { + // HomeTab one of: '' | 'query' | 'starred'; + homeTab?: string @go(HomeTab) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_response_go_gen.cue new file mode 100644 index 000000000..7c5bb1093 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryHistoryResponse QueryHistoryResponse is a response struct for QueryHistoryDTO +// +// swagger:model QueryHistoryResponse +#QueryHistoryResponse: { + // result + result?: null | #QueryHistoryDTO @go(Result,*QueryHistoryDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_search_response_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_search_response_go_gen.cue new file mode 100644 index 000000000..e3b102259 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_search_response_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryHistorySearchResponse query history search response +// +// swagger:model QueryHistorySearchResponse +#QueryHistorySearchResponse: { + // result + result?: null | #QueryHistorySearchResult @go(Result,*QueryHistorySearchResult) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_search_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_search_result_go_gen.cue new file mode 100644 index 000000000..b1e4661d2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_history_search_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryHistorySearchResult query history search result +// +// swagger:model QueryHistorySearchResult +#QueryHistorySearchResult: { + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // query history + queryHistory: [...null | #QueryHistoryDTO] @go(QueryHistory,[]*QueryHistoryDTO) + + // total count + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_stat_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_stat_go_gen.cue new file mode 100644 index 000000000..13a403ac0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/query_stat_go_gen.cue @@ -0,0 +1,78 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QueryStat QueryStat is used for storing arbitrary statistics metadata related to a query and its result, e.g. total request time, data processing time. +// +// The embedded FieldConfig's display name must be set. +// It corresponds to the QueryResultMetaStat on the frontend (https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L53). +// +// swagger:model QueryStat +#QueryStat: { + // Map values to a display color + // NOTE: this interface is under development in the frontend... so simple map for now + color?: _ @go(Color,interface{}) + + // Panel Specific Values + custom?: _ @go(Custom,interface{}) + + // decimals + decimals?: uint16 @go(Decimals) + + // Description is human readable field metadata + description?: string @go(Description) + + // DisplayName overrides Grafana default naming, should not be used from a data source + displayName?: string @go(DisplayName) + + // DisplayNameFromDS overrides Grafana default naming strategy. + displayNameFromDS?: string @go(DisplayNameFromDS) + + // Filterable indicates if the Field's data can be filtered by additional calls. + filterable?: bool @go(Filterable) + + // Interval indicates the expected regular step between values in the series. + // When an interval exists, consumers can identify "missing" values when the expected value is not present. + // The grafana timeseries visualization will render disconnected values when missing values are found it the time field. + // The interval uses the same units as the values. For time.Time, this is defined in milliseconds. + interval?: float64 @go(Interval) + + // The behavior when clicking on a result + links: [...null | #DataLink] @go(Links,[]*DataLink) + + // mappings + mappings?: #ValueMappings @go(Mappings) + + // max + max?: #ConfFloat64 @go(Max) + + // min + min?: #ConfFloat64 @go(Min) + + // Alternative to empty string + noValue?: string @go(NoValue) + + // Path is an explicit path to the field in the datasource. When the frame meta includes a path, + // this will default to `${frame.meta.path}/${field.name} + // + // When defined, this value can be used as an identifier within the datasource scope, and + // may be used as an identifier to update values in a subsequent request + path?: string @go(Path) + + // thresholds + thresholds?: null | #ThresholdsConfig @go(Thresholds,*ThresholdsConfig) + + // type + type?: null | #FieldTypeConfig @go(Type,*FieldTypeConfig) + + // Numeric Options + unit?: string @go(Unit) + + // value + value?: float64 @go(Value) + + // Writeable indicates that the datasource knows how to update this value + writeable?: bool @go(Writeable) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/quota_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/quota_dto_go_gen.cue new file mode 100644 index 000000000..1db49c68a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/quota_dto_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// QuotaDTO quota DTO +// +// swagger:model QuotaDTO +#QuotaDTO: { + // limit + limit?: int64 @go(Limit) + + // org id + org_id?: int64 @go(OrgID) + + // target + target?: string @go(Target) + + // used + used?: int64 @go(Used) + + // user id + user_id?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/raw_message_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/raw_message_go_gen.cue new file mode 100644 index 000000000..d1c77e6ce --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/raw_message_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RawMessage raw message +// +// swagger:model RawMessage +#RawMessage: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/receiver_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/receiver_export_go_gen.cue new file mode 100644 index 000000000..aa5da75a5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/receiver_export_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReceiverExport ReceiverExport is the provisioned file export of alerting.ReceiverV1. +// +// swagger:model ReceiverExport +#ReceiverExport: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // settings + settings?: #RawMessage @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/receiver_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/receiver_go_gen.cue new file mode 100644 index 000000000..77bc9f2a1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/receiver_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Receiver Receiver receiver +// +// swagger:model receiver +#Receiver: { + // active + // Required: true + active?: null | bool @go(Active,*bool) + + // integrations + // Required: true + integrations: [...null | #Integration] @go(Integrations,[]*Integration) + + // name + // Required: true + name?: null | string @go(Name,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/recording_rule_json_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/recording_rule_json_go_gen.cue new file mode 100644 index 000000000..51ed75b95 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/recording_rule_json_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RecordingRuleJSON RecordingRuleJSON is the external representation of a recording rule +// +// swagger:model RecordingRuleJSON +#RecordingRuleJSON: { + // active + active?: bool @go(Active) + + // count + count?: bool @go(Count) + + // description + description?: string @go(Description) + + // dest data source uid + dest_data_source_uid?: string @go(DestDataSourceUID) + + // id + id?: string @go(ID) + + // interval + interval?: int64 @go(Interval) + + // name + name?: string @go(Name) + + // prom name + prom_name?: string @go(PromName) + + // queries + queries: [...] @go(Queries,[]interface{}) + + // range + range?: int64 @go(Range) + + // target ref id + target_ref_id?: string @go(TargetRefID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/relative_time_range_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/relative_time_range_export_go_gen.cue new file mode 100644 index 000000000..b331f1f4d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/relative_time_range_export_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RelativeTimeRangeExport relative time range export +// +// swagger:model RelativeTimeRangeExport +#RelativeTimeRangeExport: { + // from + from?: int64 @go(From) + + // to + to?: int64 @go(To) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/relative_time_range_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/relative_time_range_go_gen.cue new file mode 100644 index 000000000..20b1cf719 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/relative_time_range_go_gen.cue @@ -0,0 +1,17 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RelativeTimeRange RelativeTimeRange is the per query start and end time +// for requests. +// +// swagger:model RelativeTimeRange +#RelativeTimeRange: { + // from + from?: #Duration @go(From) + + // to + to?: #Duration @go(To) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_branding_options_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_branding_options_go_gen.cue new file mode 100644 index 000000000..c63a3338d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_branding_options_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportBrandingOptions report branding options +// +// swagger:model ReportBrandingOptions +#ReportBrandingOptions: { + // email footer link + emailFooterLink?: string @go(EmailFooterLink) + + // email footer mode + emailFooterMode?: string @go(EmailFooterMode) + + // email footer text + emailFooterText?: string @go(EmailFooterText) + + // email logo Url + emailLogoUrl?: string @go(EmailLogoURL) + + // report logo Url + reportLogoUrl?: string @go(ReportLogoURL) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_dashboard_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_dashboard_go_gen.cue new file mode 100644 index 000000000..95ea379bb --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_dashboard_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportDashboard report dashboard +// +// swagger:model ReportDashboard +#ReportDashboard: { + // dashboard + dashboard?: null | #ReportDashboardID @go(Dashboard,*ReportDashboardID) + + // report variables + reportVariables?: _ @go(ReportVariables,interface{}) + + // time range + timeRange?: null | #ReportTimeRange @go(TimeRange,*ReportTimeRange) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_dashboard_id_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_dashboard_id_go_gen.cue new file mode 100644 index 000000000..090025208 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_dashboard_id_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportDashboardID report dashboard ID +// +// swagger:model ReportDashboardID +#ReportDashboardID: { + // id + id?: int64 @go(ID) + + // name + name?: string @go(Name) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_email_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_email_go_gen.cue new file mode 100644 index 000000000..88fe0be7a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_email_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportEmail report email +// +// swagger:model ReportEmail +#ReportEmail: { + // email + email?: string @go(Email) + + // Comma-separated list of emails to which to send the report to. + emails?: string @go(Emails) + + // Send the report to the emails specified in the report. Required if emails is not present. + id?: string @go(ID) + + // Send the report to the emails specified in the report. Required if emails is not present. + useEmailsFromReport?: bool @go(UseEmailsFromReport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_go_gen.cue new file mode 100644 index 000000000..0db1c1e59 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_go_gen.cue @@ -0,0 +1,67 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Report ConfigDTO is model representation in transfer +// +// swagger:model Report +#Report: { + // dashboard Id + dashboardId?: int64 @go(DashboardID) + + // dashboard name + dashboardName?: string @go(DashboardName) + + // dashboard Uid + dashboardUid?: string @go(DashboardUID) + + // dashboards + dashboards: [...null | #ReportDashboard] @go(Dashboards,[]*ReportDashboard) + + // enable Csv + enableCsv?: bool @go(EnableCSV) + + // enable dashboard Url + enableDashboardUrl?: bool @go(EnableDashboardURL) + + // formats + formats: [...#Type] @go(Formats,[]Type) + + // id + id?: int64 @go(ID) + + // message + message?: string @go(Message) + + // name + name?: string @go(Name) + + // options + options?: null | #ReportOptions @go(Options,*ReportOptions) + + // org Id + orgId?: int64 @go(OrgID) + + // recipients + recipients?: string @go(Recipients) + + // reply to + replyTo?: string @go(ReplyTo) + + // scale factor + scaleFactor?: int64 @go(ScaleFactor) + + // schedule + schedule?: null | #ReportSchedule @go(Schedule,*ReportSchedule) + + // state + state?: #State @go(State) + + // template vars + templateVars?: _ @go(TemplateVars,interface{}) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_options_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_options_go_gen.cue new file mode 100644 index 000000000..2ca3e14dd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_options_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportOptions report options +// +// swagger:model ReportOptions +#ReportOptions: { + // layout + layout?: string @go(Layout) + + // orientation + orientation?: string @go(Orientation) + + // time range + timeRange?: null | #ReportTimeRange @go(TimeRange,*ReportTimeRange) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_schedule_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_schedule_go_gen.cue new file mode 100644 index 000000000..c81b340ab --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_schedule_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportSchedule report schedule +// +// swagger:model ReportSchedule +#ReportSchedule: { + // day + day?: string @go(Day) + + // day of month + dayOfMonth?: string @go(DayOfMonth) + + // frequency + frequency?: string @go(Frequency) + + // hour + hour?: int64 @go(Hour) + + // interval amount + intervalAmount?: int64 @go(IntervalAmount) + + // interval frequency + intervalFrequency?: string @go(IntervalFrequency) + + // minute + minute?: int64 @go(Minute) + + // time zone + timeZone?: string @go(TimeZone) + + // workdays only + workdaysOnly?: bool @go(WorkdaysOnly) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_settings_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_settings_go_gen.cue new file mode 100644 index 000000000..fc1fa2f19 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_settings_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportSettings report settings +// +// swagger:model ReportSettings +#ReportSettings: { + // branding + branding?: null | #ReportBrandingOptions @go(Branding,*ReportBrandingOptions) + + // id + id?: int64 @go(ID) + + // org Id + orgId?: int64 @go(OrgID) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_time_range_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_time_range_go_gen.cue new file mode 100644 index 000000000..b87be9733 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/report_time_range_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ReportTimeRange report time range +// +// swagger:model ReportTimeRange +#ReportTimeRange: { + // from + from?: string @go(From) + + // to + to?: string @go(To) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/resource_permission_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/resource_permission_dto_go_gen.cue new file mode 100644 index 000000000..4146d5ab6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/resource_permission_dto_go_gen.cue @@ -0,0 +1,52 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ResourcePermissionDTO resource permission DTO +// +// swagger:model resourcePermissionDTO +#ResourcePermissionDTO: { + // actions + actions: [...string] @go(Actions,[]string) + + // built in role + builtInRole?: string @go(BuiltInRole) + + // id + id?: int64 @go(ID) + + // is inherited + isInherited?: bool @go(IsInherited) + + // is managed + isManaged?: bool @go(IsManaged) + + // is service account + isServiceAccount?: bool @go(IsServiceAccount) + + // permission + permission?: string @go(Permission) + + // role name + roleName?: string @go(RoleName) + + // team + team?: string @go(Team) + + // team avatar Url + teamAvatarUrl?: string @go(TeamAvatarURL) + + // team Id + teamId?: int64 @go(TeamID) + + // user avatar Url + userAvatarUrl?: string @go(UserAvatarURL) + + // user Id + userId?: int64 @go(UserID) + + // user login + userLogin?: string @go(UserLogin) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/response_details_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/response_details_go_gen.cue new file mode 100644 index 000000000..48302daee --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/response_details_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ResponseDetails response details +// +// swagger:model ResponseDetails +#ResponseDetails: { + // msg + msg?: string @go(Msg) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/responses_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/responses_go_gen.cue new file mode 100644 index 000000000..ff5807849 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/responses_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Responses Responses is a map of RefIDs (Unique Query ID) to DataResponses. +// +// The QueryData method the QueryDataHandler method will set the RefId +// property on the DataResponses' frames based on these RefIDs. +// +// swagger:model Responses +#Responses: {[string]: #DataResponse} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_by_id_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_by_id_ok_body_go_gen.cue new file mode 100644 index 000000000..364d8b41d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_by_id_ok_body_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RestoreDashboardVersionByIDOKBody restore dashboard version by Id Ok body +// +// swagger:model restoreDashboardVersionByIdOkBody +#RestoreDashboardVersionByIDOKBody: { + // FolderUID The unique identifier (uid) of the folder the dashboard belongs to. + folderUid?: string @go(FolderUID) + + // ID The unique identifier (id) of the created/updated dashboard. + // Example: 1 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Status status of the response. + // Example: success + // Required: true + status?: null | string @go(Status,*string) + + // Slug The slug of the dashboard. + // Example: my-dashboard + // Required: true + title?: null | string @go(Title,*string) + + // UID The unique identifier (uid) of the created/updated dashboard. + // Example: nHz3SXiiz + // Required: true + uid?: null | string @go(UID,*string) + + // URL The relative URL for accessing the created/updated dashboard. + // Example: /d/nHz3SXiiz/my-dashboard + // Required: true + url?: null | string @go(URL,*string) + + // Version The version of the dashboard. + // Example: 2 + // Required: true + version?: null | int64 @go(Version,*int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_by_uid_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_by_uid_ok_body_go_gen.cue new file mode 100644 index 000000000..41e3c7526 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_by_uid_ok_body_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RestoreDashboardVersionByUIDOKBody restore dashboard version by Uid Ok body +// +// swagger:model restoreDashboardVersionByUidOkBody +#RestoreDashboardVersionByUIDOKBody: { + // FolderUID The unique identifier (uid) of the folder the dashboard belongs to. + folderUid?: string @go(FolderUID) + + // ID The unique identifier (id) of the created/updated dashboard. + // Example: 1 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Status status of the response. + // Example: success + // Required: true + status?: null | string @go(Status,*string) + + // Slug The slug of the dashboard. + // Example: my-dashboard + // Required: true + title?: null | string @go(Title,*string) + + // UID The unique identifier (uid) of the created/updated dashboard. + // Example: nHz3SXiiz + // Required: true + uid?: null | string @go(UID,*string) + + // URL The relative URL for accessing the created/updated dashboard. + // Example: /d/nHz3SXiiz/my-dashboard + // Required: true + url?: null | string @go(URL,*string) + + // Version The version of the dashboard. + // Example: 2 + // Required: true + version?: null | int64 @go(Version,*int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_command_go_gen.cue new file mode 100644 index 000000000..6d5c48d57 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/restore_dashboard_version_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RestoreDashboardVersionCommand restore dashboard version command +// +// swagger:model RestoreDashboardVersionCommand +#RestoreDashboardVersionCommand: { + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/retrieve_j_w_k_s_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/retrieve_j_w_k_s_ok_body_go_gen.cue new file mode 100644 index 000000000..f439842ce --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/retrieve_j_w_k_s_ok_body_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RetrieveJWKSOKBody retrieve j w k s Ok body +// +// swagger:model retrieveJWKSOkBody +#RetrieveJWKSOKBody: { + // keys + keys: [...null | #JSONWebKey] @go(Keys,[]*JSONWebKey) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/revoke_auth_token_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/revoke_auth_token_cmd_go_gen.cue new file mode 100644 index 000000000..925eab732 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/revoke_auth_token_cmd_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RevokeAuthTokenCmd revoke auth token cmd +// +// swagger:model RevokeAuthTokenCmd +#RevokeAuthTokenCmd: { + // auth token Id + authTokenId?: int64 @go(AuthTokenID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/role_assignments_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/role_assignments_dto_go_gen.cue new file mode 100644 index 000000000..587362a85 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/role_assignments_dto_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RoleAssignmentsDTO role assignments DTO +// +// swagger:model RoleAssignmentsDTO +#RoleAssignmentsDTO: { + // role uid + role_uid?: string @go(RoleUID) + + // service accounts + service_accounts: [...int64] @go(ServiceAccounts,[]int64) + + // teams + teams: [...int64] @go(Teams,[]int64) + + // users + users: [...int64] @go(Users,[]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/role_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/role_dto_go_gen.cue new file mode 100644 index 000000000..36cd225c7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/role_dto_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RoleDTO role DTO +// +// swagger:model RoleDTO +#RoleDTO: { + // delegatable + delegatable?: bool @go(Delegatable) + + // description + description?: string @go(Description) + + // display name + displayName?: string @go(DisplayName) + + // global + global?: bool @go(Global) + + // group + group?: string @go(Group) + + // hidden + hidden?: bool @go(Hidden) + + // name + name?: string @go(Name) + + // permissions + permissions: [...null | #Permission] @go(Permissions,[]*Permission) + + // uid + uid?: string @go(UID) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/roles_search_query_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/roles_search_query_go_gen.cue new file mode 100644 index 000000000..6d5dc1e39 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/roles_search_query_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RolesSearchQuery roles search query +// +// swagger:model RolesSearchQuery +#RolesSearchQuery: { + // include hidden + includeHidden?: bool @go(IncludeHidden) + + // org Id + orgId?: int64 @go(OrgID) + + // team ids + teamIds: [...int64] @go(TeamIds,[]int64) + + // user ids + userIds: [...int64] @go(UserIds,[]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/route_export_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/route_export_go_gen.cue new file mode 100644 index 000000000..5a51f1c47 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/route_export_go_gen.cue @@ -0,0 +1,47 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RouteExport RouteExport is the provisioned file export of definitions.Route. This is needed to hide fields that aren't useable in +// provisioning file format. An alternative would be to define a custom MarshalJSON and MarshalYAML that excludes them. +// +// swagger:model RouteExport +#RouteExport: { + // continue + continue?: bool @go(Continue) + + // group by + group_by: [...string] @go(GroupBy,[]string) + + // group interval + group_interval?: string @go(GroupInterval) + + // group wait + group_wait?: string @go(GroupWait) + + // Deprecated. Remove before v1.0 release. + match?: {[string]: string} @go(Match,map[string]string) + + // match re + match_re?: #MatchRegexps @go(MatchRe) + + // matchers + matchers?: #Matchers @go(Matchers) + + // mute time intervals + mute_time_intervals: [...string] @go(MuteTimeIntervals,[]string) + + // object matchers + object_matchers?: #ObjectMatchers @go(ObjectMatchers) + + // receiver + receiver?: string @go(Receiver) + + // repeat interval + repeat_interval?: string @go(RepeatInterval) + + // routes + routes: [...null | #RouteExport] @go(Routes,[]*RouteExport) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/route_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/route_go_gen.cue new file mode 100644 index 000000000..9160a2465 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/route_go_gen.cue @@ -0,0 +1,50 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Route A Route is a node that contains definitions of how to handle alerts. This is modified +// from the upstream alertmanager in that it adds the ObjectMatchers property. +// +// swagger:model Route +#Route: { + // continue + continue?: bool @go(Continue) + + // group by + group_by: [...string] @go(GroupBy,[]string) + + // group interval + group_interval?: string @go(GroupInterval) + + // group wait + group_wait?: string @go(GroupWait) + + // Deprecated. Remove before v1.0 release. + match?: {[string]: string} @go(Match,map[string]string) + + // match re + match_re?: #MatchRegexps @go(MatchRe) + + // matchers + matchers?: #Matchers @go(Matchers) + + // mute time intervals + mute_time_intervals: [...string] @go(MuteTimeIntervals,[]string) + + // object matchers + object_matchers?: #ObjectMatchers @go(ObjectMatchers) + + // provenance + provenance?: #Provenance @go(Provenance) + + // receiver + receiver?: string @go(Receiver) + + // repeat interval + repeat_interval?: string @go(RepeatInterval) + + // routes + routes: [...null | #Route] @go(Routes,[]*Route) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_discovery_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_discovery_go_gen.cue new file mode 100644 index 000000000..84932720e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_discovery_go_gen.cue @@ -0,0 +1,17 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RuleDiscovery rule discovery +// +// swagger:model RuleDiscovery +#RuleDiscovery: { + // groups + // Required: true + groups: [...null | #RuleGroup] @go(Groups,[]*RuleGroup) + + // totals + totals?: {[string]: int64} @go(Totals,map[string]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_group_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_group_go_gen.cue new file mode 100644 index 000000000..b0f847f7b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_group_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RuleGroup rule group +// +// swagger:model RuleGroup +#RuleGroup: { + // evaluation time + evaluationTime?: float64 @go(EvaluationTime) + + // file + // Required: true + file?: null | string @go(File,*string) + + // interval + // Required: true + interval?: null | float64 @go(Interval,*float64) + + // name + // Required: true + name?: null | string @go(Name,*string) + + // In order to preserve rule ordering, while exposing type (alerting or recording) + // specific properties, both alerting and recording rules are exposed in the + // same array. + // Required: true + rules: [...null | #AlertingRule] @go(Rules,[]*AlertingRule) + + // totals + totals?: {[string]: int64} @go(Totals,map[string]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_type_go_gen.cue new file mode 100644 index 000000000..24ce2aaaa --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/rule_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// RuleType RuleType models the type of a rule. +// +// swagger:model RuleType +#RuleType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sample_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sample_go_gen.cue new file mode 100644 index 000000000..a2a653055 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sample_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Sample Sample is a single sample belonging to a metric. +// +// swagger:model Sample +#Sample: { + // h + H?: null | #FloatHistogram @go(,*FloatHistogram) + + // metric + Metric?: #Labels + + // t + T?: int64 + + // v + V?: float64 +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/save_dashboard_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/save_dashboard_command_go_gen.cue new file mode 100644 index 000000000..5a59be35d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/save_dashboard_command_go_gen.cue @@ -0,0 +1,31 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SaveDashboardCommand save dashboard command +// +// swagger:model SaveDashboardCommand +#SaveDashboardCommand: { + // dashboard + dashboard?: #JSON @go(Dashboard) + + // Deprecated: use FolderUID instead + folderId?: int64 @go(FolderID) + + // folder Uid + folderUid?: string @go(FolderUID) + + // is folder + isFolder?: bool @go(IsFolder) + + // message + message?: string @go(Message) + + // overwrite + overwrite?: bool @go(Overwrite) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_device_query_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_device_query_result_go_gen.cue new file mode 100644 index 000000000..ff2e97f68 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_device_query_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchDeviceQueryResult search device query result +// +// swagger:model SearchDeviceQueryResult +#SearchDeviceQueryResult: { + // devices + devices: [...null | #DeviceSearchHitDTO] @go(Devices,[]*DeviceSearchHitDTO) + + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // total count + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_org_service_accounts_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_org_service_accounts_result_go_gen.cue new file mode 100644 index 000000000..bbe11c1ff --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_org_service_accounts_result_go_gen.cue @@ -0,0 +1,24 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchOrgServiceAccountsResult swagger: model +// +// swagger:model SearchOrgServiceAccountsResult +#SearchOrgServiceAccountsResult: { + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // service accounts + serviceAccounts: [...null | #ServiceAccountDTO] @go(ServiceAccounts,[]*ServiceAccountDTO) + + // It can be used for pagination of the user list + // E.g. if totalCount is equal to 100 users and + // the perpage parameter is set to 10 then there are 10 pages of users. + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_org_users_query_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_org_users_query_result_go_gen.cue new file mode 100644 index 000000000..5ce868288 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_org_users_query_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchOrgUsersQueryResult search org users query result +// +// swagger:model SearchOrgUsersQueryResult +#SearchOrgUsersQueryResult: { + // org users + orgUsers: [...null | #OrgUserDTO] @go(OrgUsers,[]*OrgUserDTO) + + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // total count + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_result_go_gen.cue new file mode 100644 index 000000000..88fd6e871 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_result_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchResult search result +// +// swagger:model SearchResult +#SearchResult: { + // result + result: [...null | #SearchResultItem] @go(Result,[]*SearchResultItem) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_result_item_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_result_item_go_gen.cue new file mode 100644 index 000000000..b35460237 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_result_item_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchResultItem search result item +// +// swagger:model SearchResultItem +#SearchResultItem: { + // action + action?: string @go(Action) + + // basic role + basicRole?: string @go(BasicRole) + + // org Id + orgId?: int64 @go(OrgID) + + // role name + roleName?: string @go(RoleName) + + // scope + scope?: string @go(Scope) + + // team Id + teamId?: int64 @go(TeamID) + + // user Id + userId?: int64 @go(UserID) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_team_query_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_team_query_result_go_gen.cue new file mode 100644 index 000000000..c599755ef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_team_query_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchTeamQueryResult search team query result +// +// swagger:model SearchTeamQueryResult +#SearchTeamQueryResult: { + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // teams + teams: [...null | #TeamDTO] @go(Teams,[]*TeamDTO) + + // total count + totalCount?: int64 @go(TotalCount) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_user_query_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_user_query_result_go_gen.cue new file mode 100644 index 000000000..5e95c5e0a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/search_user_query_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SearchUserQueryResult search user query result +// +// swagger:model SearchUserQueryResult +#SearchUserQueryResult: { + // page + page?: int64 @go(Page) + + // per page + perPage?: int64 @go(PerPage) + + // total count + totalCount?: int64 @go(TotalCount) + + // users + users: [...null | #UserSearchHitDTO] @go(Users,[]*UserSearchHitDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/secret_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/secret_go_gen.cue new file mode 100644 index 000000000..88019a265 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/secret_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Secret Secret special type for storing secrets. +// +// swagger:model Secret +#Secret: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/secret_url_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/secret_url_go_gen.cue new file mode 100644 index 000000000..5bab091d0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/secret_url_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SecretURL SecretURL is a URL that must not be revealed on marshaling. +// +// swagger:model SecretURL +#SecretURL: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/service_account_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/service_account_dto_go_gen.cue new file mode 100644 index 000000000..131275da1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/service_account_dto_go_gen.cue @@ -0,0 +1,49 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ServiceAccountDTO swagger: model +// +// swagger:model ServiceAccountDTO +#ServiceAccountDTO: { + // access control + // Example: {"serviceaccounts:delete":true,"serviceaccounts:read":true,"serviceaccounts:write":true} + accessControl?: {[string]: bool} @go(AccessControl,map[string]bool) + + // avatar Url + // Example: /avatar/85ec38023d90823d3e5b43ef35646af9 + avatarUrl?: string @go(AvatarURL) + + // id + id?: int64 @go(ID) + + // is disabled + // Example: false + isDisabled?: bool @go(IsDisabled) + + // is external + // Example: false + isExternal?: bool @go(IsExternal) + + // login + // Example: sa-grafana + login?: string @go(Login) + + // name + // Example: grafana + name?: string @go(Name) + + // org Id + // Example: 1 + orgId?: int64 @go(OrgID) + + // role + // Example: Viewer + role?: string @go(Role) + + // tokens + // Example: 0 + tokens?: int64 @go(Tokens) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/service_account_profile_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/service_account_profile_dto_go_gen.cue new file mode 100644 index 000000000..9f796dd72 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/service_account_profile_dto_go_gen.cue @@ -0,0 +1,56 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ServiceAccountProfileDTO service account profile DTO +// +// swagger:model ServiceAccountProfileDTO +#ServiceAccountProfileDTO: { + // access control + accessControl?: {[string]: bool} @go(AccessControl,map[string]bool) + + // avatar Url + // Example: /avatar/8ea890a677d6a223c591a1beea6ea9d2 + avatarUrl?: string @go(AvatarURL) + + // id + // Example: 2 + id?: int64 @go(ID) + + // is disabled + // Example: false + isDisabled?: bool @go(IsDisabled) + + // is external + // Example: false + isExternal?: bool @go(IsExternal) + + // login + // Example: sa-grafana + login?: string @go(Login) + + // name + // Example: test + name?: string @go(Name) + + // org Id + // Example: 1 + orgId?: int64 @go(OrgID) + + // required by + // Example: grafana-app + requiredBy?: string @go(RequiredBy) + + // role + // Example: Editor + role?: string @go(Role) + + // teams + // Example: [] + teams: [...string] @go(Teams,[]string) + + // tokens + tokens?: int64 @go(Tokens) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_help_flag_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_help_flag_ok_body_go_gen.cue new file mode 100644 index 000000000..e8559a1ef --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_help_flag_ok_body_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SetHelpFlagOKBody set help flag Ok body +// +// swagger:model setHelpFlagOkBody +#SetHelpFlagOKBody: { + // help flags1 + helpFlags1?: int64 @go(HelpFlags1) + + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_permission_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_permission_command_go_gen.cue new file mode 100644 index 000000000..a6fc57ce9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_permission_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SetPermissionCommand set permission command +// +// swagger:model setPermissionCommand +#SetPermissionCommand: { + // permission + permission?: string @go(Permission) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_permissions_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_permissions_command_go_gen.cue new file mode 100644 index 000000000..f5c503434 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_permissions_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SetPermissionsCommand set permissions command +// +// swagger:model setPermissionsCommand +#SetPermissionsCommand: { + // permissions + permissions: [...null | #SetResourcePermissionCommand] @go(Permissions,[]*SetResourcePermissionCommand) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_resource_permission_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_resource_permission_command_go_gen.cue new file mode 100644 index 000000000..72badfc61 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_resource_permission_command_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SetResourcePermissionCommand set resource permission command +// +// swagger:model SetResourcePermissionCommand +#SetResourcePermissionCommand: { + // built in role + builtInRole?: string @go(BuiltInRole) + + // permission + permission?: string @go(Permission) + + // team Id + teamId?: int64 @go(TeamID) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_role_assignments_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_role_assignments_command_go_gen.cue new file mode 100644 index 000000000..0c3f2afa2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_role_assignments_command_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SetRoleAssignmentsCommand set role assignments command +// +// swagger:model SetRoleAssignmentsCommand +#SetRoleAssignmentsCommand: { + // service accounts + service_accounts: [...int64] @go(ServiceAccounts,[]int64) + + // teams + teams: [...int64] @go(Teams,[]int64) + + // users + users: [...int64] @go(Users,[]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_user_roles_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_user_roles_command_go_gen.cue new file mode 100644 index 000000000..fac907528 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/set_user_roles_command_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SetUserRolesCommand set user roles command +// +// swagger:model SetUserRolesCommand +#SetUserRolesCommand: { + // global + global?: bool @go(Global) + + // include hidden + includeHidden?: bool @go(IncludeHidden) + + // role uids + roleUids: [...string] @go(RoleUids,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/settings_bag_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/settings_bag_go_gen.cue new file mode 100644 index 000000000..3fb4461cd --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/settings_bag_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SettingsBag settings bag +// +// swagger:model SettingsBag +#SettingsBag: {[string]: [string]: string} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/settings_source_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/settings_source_go_gen.cue new file mode 100644 index 000000000..67033fdd8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/settings_source_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SettingsSource settings source +// +// swagger:model SettingsSource +#SettingsSource: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/share_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/share_type_go_gen.cue new file mode 100644 index 000000000..64f565c6d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/share_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ShareType share type +// +// swagger:model ShareType +#ShareType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sig_v4_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sig_v4_config_go_gen.cue new file mode 100644 index 000000000..1c3cf944e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sig_v4_config_go_gen.cue @@ -0,0 +1,27 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SigV4Config SigV4Config is the configuration for signing remote write requests with +// AWS's SigV4 verification process. Empty values will be retrieved using the +// AWS default credentials chain. +// +// swagger:model SigV4Config +#SigV4Config: { + // access key + AccessKey?: string + + // profile + Profile?: string + + // region + Region?: string + + // role a r n + RoleARN?: string + + // secret key + SecretKey?: #Secret +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/signature_algorithm_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/signature_algorithm_go_gen.cue new file mode 100644 index 000000000..668baa5dc --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/signature_algorithm_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SignatureAlgorithm signature algorithm +// +// swagger:model SignatureAlgorithm +#SignatureAlgorithm: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/silence_status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/silence_status_go_gen.cue new file mode 100644 index 000000000..e2205f390 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/silence_status_go_gen.cue @@ -0,0 +1,18 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SilenceStatus SilenceStatus silence status +// +// swagger:model silenceStatus +#SilenceStatus: { + // state + // Required: true + // Enum: [[expired active pending]] + state?: null | string @go(State,*string) +} + +// SilenceStatusStateExpiredActivePending captures enum value "[expired active pending]" +#SilenceStatusStateExpiredActivePending: "[expired active pending]" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_action_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_action_go_gen.cue new file mode 100644 index 000000000..314ab9709 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_action_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SlackAction SlackAction configures a single Slack action that is sent with each notification. +// +// See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons +// for more information. +// +// swagger:model SlackAction +#SlackAction: { + // confirm + confirm?: null | #SlackConfirmationField @go(Confirm,*SlackConfirmationField) + + // name + name?: string @go(Name) + + // style + style?: string @go(Style) + + // text + text?: string @go(Text) + + // type + type?: string @go(Type) + + // url + url?: string @go(URL) + + // value + value?: string @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_config_go_gen.cue new file mode 100644 index 000000000..181066399 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_config_go_gen.cue @@ -0,0 +1,79 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SlackConfig SlackConfig configures notifications via Slack. +// +// swagger:model SlackConfig +#SlackConfig: { + // actions + actions: [...null | #SlackAction] @go(Actions,[]*SlackAction) + + // api url + api_url?: null | #SecretURL @go(APIURL,*SecretURL) + + // api url file + api_url_file?: string @go(APIURLFile) + + // callback id + callback_id?: string @go(CallbackID) + + // Slack channel override, (like #other-channel or @username). + channel?: string @go(Channel) + + // color + color?: string @go(Color) + + // fallback + fallback?: string @go(Fallback) + + // fields + fields: [...null | #SlackField] @go(Fields,[]*SlackField) + + // footer + footer?: string @go(Footer) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // icon emoji + icon_emoji?: string @go(IconEmoji) + + // icon url + icon_url?: string @go(IconURL) + + // image url + image_url?: string @go(ImageURL) + + // link names + link_names?: bool @go(LinkNames) + + // mrkdwn in + mrkdwn_in: [...string] @go(MrkdwnIn,[]string) + + // pretext + pretext?: string @go(Pretext) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // short fields + short_fields?: bool @go(ShortFields) + + // text + text?: string @go(Text) + + // thumb url + thumb_url?: string @go(ThumbURL) + + // title + title?: string @go(Title) + + // title link + title_link?: string @go(TitleLink) + + // username + username?: string @go(Username) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_confirmation_field_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_confirmation_field_go_gen.cue new file mode 100644 index 000000000..58f5fe5bc --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_confirmation_field_go_gen.cue @@ -0,0 +1,24 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SlackConfirmationField SlackConfirmationField protect users from destructive actions or particularly distinguished decisions +// by asking them to confirm their button click one more time. +// See https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields for more information. +// +// swagger:model SlackConfirmationField +#SlackConfirmationField: { + // dismiss text + dismiss_text?: string @go(DismissText) + + // ok text + ok_text?: string @go(OKText) + + // text + text?: string @go(Text) + + // title + title?: string @go(Title) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_field_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_field_go_gen.cue new file mode 100644 index 000000000..494dc4716 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/slack_field_go_gen.cue @@ -0,0 +1,23 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SlackField SlackField configures a single Slack field that is sent with each notification. +// +// Each field must contain a title, value, and optionally, a boolean value to indicate if the field +// is short enough to be displayed next to other fields designated as short. +// See https://api.slack.com/docs/message-attachments#fields for more information. +// +// swagger:model SlackField +#SlackField: { + // short + short?: bool @go(Short) + + // title + title?: string @go(Title) + + // value + value?: string @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sns_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sns_config_go_gen.cue new file mode 100644 index 000000000..397622543 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sns_config_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SNSConfig SNS config +// +// swagger:model SNSConfig +#SNSConfig: { + // api url + api_url?: string @go(APIURL) + + // attributes + attributes?: {[string]: string} @go(Attributes,map[string]string) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // phone number + phone_number?: string @go(PhoneNumber) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // sigv4 + sigv4?: null | #SigV4Config @go(Sigv4,*SigV4Config) + + // subject + subject?: string @go(Subject) + + // target arn + target_arn?: string @go(TargetArn) + + // topic arn + topic_arn?: string @go(TopicArn) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/span_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/span_go_gen.cue new file mode 100644 index 000000000..2492009ce --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/span_go_gen.cue @@ -0,0 +1,17 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Span A Span defines a continuous sequence of buckets. +// +// swagger:model Span +#Span: { + // Length of the span. + Length?: uint32 + + // Gap to previous span (always positive), or starting index for the 1st + // span (which can be negative). + Offset?: int32 +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/state_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/state_go_gen.cue new file mode 100644 index 000000000..d120837a7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/state_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// State state +// +// swagger:model State +#State: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/status_go_gen.cue new file mode 100644 index 000000000..f6c873498 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/status_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Status status +// +// swagger:model Status +#Status: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/success_response_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/success_response_body_go_gen.cue new file mode 100644 index 000000000..be0ac6769 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/success_response_body_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SuccessResponseBody success response body +// +// swagger:model SuccessResponseBody +#SuccessResponseBody: { + // message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/supported_transformation_types_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/supported_transformation_types_go_gen.cue new file mode 100644 index 000000000..09c214854 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/supported_transformation_types_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SupportedTransformationTypes supported transformation types +// +// swagger:model SupportedTransformationTypes +#SupportedTransformationTypes: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sync_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sync_result_go_gen.cue new file mode 100644 index 000000000..c8d8f1783 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/sync_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// SyncResult SyncResult holds the result of a sync with LDAP. This gives us information on which users were updated and how. +// +// swagger:model SyncResult +#SyncResult: { + // elapsed + Elapsed?: #Duration + + // failed users + FailedUsers: [...null | #FailedUser] @go(,[]*FailedUser) + + // missing user ids + MissingUserIds: [...int64] @go(,[]int64) + + // updated user ids + UpdatedUserIds: [...int64] @go(,[]int64) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tags_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tags_dto_go_gen.cue new file mode 100644 index 000000000..df14b578e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tags_dto_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TagsDTO TagsDTO is the frontend DTO for Tag. +// +// swagger:model TagsDTO +#TagsDTO: { + // count + count?: int64 @go(Count) + + // tag + tag?: string @go(Tag) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_dto_go_gen.cue new file mode 100644 index 000000000..82e2971d3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_dto_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TeamDTO team DTO +// +// swagger:model TeamDTO +#TeamDTO: { + // access control + accessControl?: {[string]: bool} @go(AccessControl,map[string]bool) + + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // email + email?: string @go(Email) + + // id + id?: int64 @go(ID) + + // member count + memberCount?: int64 @go(MemberCount) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // permission + permission?: #PermissionType @go(Permission) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_group_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_group_dto_go_gen.cue new file mode 100644 index 000000000..7cbd2566c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_group_dto_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TeamGroupDTO team group DTO +// +// swagger:model TeamGroupDTO +#TeamGroupDTO: { + // group Id + groupId?: string @go(GroupID) + + // org Id + orgId?: int64 @go(OrgID) + + // team Id + teamId?: int64 @go(TeamID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_group_mapping_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_group_mapping_go_gen.cue new file mode 100644 index 000000000..3f8dc92ed --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_group_mapping_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TeamGroupMapping team group mapping +// +// swagger:model TeamGroupMapping +#TeamGroupMapping: { + // group Id + groupId?: string @go(GroupID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_member_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_member_dto_go_gen.cue new file mode 100644 index 000000000..c11611589 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/team_member_dto_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TeamMemberDTO team member DTO +// +// swagger:model TeamMemberDTO +#TeamMemberDTO: { + // auth module + auth_module?: string @go(AuthModule) + + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // email + email?: string @go(Email) + + // labels + labels: [...string] @go(Labels,[]string) + + // login + login?: string @go(Login) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // permission + permission?: #PermissionType @go(Permission) + + // team Id + teamId?: int64 @go(TeamID) + + // team UID + teamUID?: string @go(TeamUID) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/telegram_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/telegram_config_go_gen.cue new file mode 100644 index 000000000..0888745ce --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/telegram_config_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TelegramConfig TelegramConfig configures notifications via Telegram. +// +// swagger:model TelegramConfig +#TelegramConfig: { + // api url + api_url?: null | #URL @go(APIURL,*URL) + + // chat + chat?: int64 @go(Chat) + + // disable notifications + disable_notifications?: bool @go(DisableNotifications) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // parse mode + parse_mode?: string @go(ParseMode) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // token + token?: #Secret @go(Token) + + // token file + token_file?: string @go(TokenFile) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/temp_user_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/temp_user_dto_go_gen.cue new file mode 100644 index 000000000..439f7223e --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/temp_user_dto_go_gen.cue @@ -0,0 +1,59 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TempUserDTO temp user DTO +// +// swagger:model TempUserDTO +#TempUserDTO: { + // code + code?: string @go(Code) + + // email + email?: string @go(Email) + + // email sent + emailSent?: bool @go(EmailSent) + + // id + id?: int64 @go(ID) + + // invited by email + invitedByEmail?: string @go(InvitedByEmail) + + // invited by login + invitedByLogin?: string @go(InvitedByLogin) + + // invited by name + invitedByName?: string @go(InvitedByName) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) + + // status + status?: #TempUserStatus @go(Status) + + // url + url?: string @go(URL) +} + +// TempUserDTORoleNone captures enum value "None" +#TempUserDTORoleNone: "None" + +// TempUserDTORoleViewer captures enum value "Viewer" +#TempUserDTORoleViewer: "Viewer" + +// TempUserDTORoleEditor captures enum value "Editor" +#TempUserDTORoleEditor: "Editor" + +// TempUserDTORoleAdmin captures enum value "Admin" +#TempUserDTORoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/temp_user_status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/temp_user_status_go_gen.cue new file mode 100644 index 000000000..3fafd6ca5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/temp_user_status_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TempUserStatus temp user status +// +// swagger:model TempUserStatus +#TempUserStatus: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receiver_config_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receiver_config_result_go_gen.cue new file mode 100644 index 000000000..bc74afaf8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receiver_config_result_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TestReceiverConfigResult test receiver config result +// +// swagger:model TestReceiverConfigResult +#TestReceiverConfigResult: { + // error + error?: string @go(Error) + + // name + name?: string @go(Name) + + // status + status?: string @go(Status) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receiver_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receiver_result_go_gen.cue new file mode 100644 index 000000000..d55fe2b13 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receiver_result_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TestReceiverResult test receiver result +// +// swagger:model TestReceiverResult +#TestReceiverResult: { + // grafana managed receiver configs + grafana_managed_receiver_configs: [...null | #TestReceiverConfigResult] @go(GrafanaManagedReceiverConfigs,[]*TestReceiverConfigResult) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receivers_config_alert_params_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receivers_config_alert_params_go_gen.cue new file mode 100644 index 000000000..f45ca17dc --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_receivers_config_alert_params_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TestReceiversConfigAlertParams test receivers config alert params +// +// swagger:model TestReceiversConfigAlertParams +#TestReceiversConfigAlertParams: { + // annotations + annotations?: #LabelSet @go(Annotations) + + // labels + labels?: #LabelSet @go(Labels) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_templates_error_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_templates_error_result_go_gen.cue new file mode 100644 index 000000000..c3ec3854c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_templates_error_result_go_gen.cue @@ -0,0 +1,26 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TestTemplatesErrorResult test templates error result +// +// swagger:model TestTemplatesErrorResult +#TestTemplatesErrorResult: { + // Kind of template error that occurred. + // Enum: [invalid_template execution_error] + kind?: string @go(Kind) + + // Error message. + message?: string @go(Message) + + // Name of the associated template for this error. Will be empty if the Kind is "invalid_template". + name?: string @go(Name) +} + +// TestTemplatesErrorResultKindInvalidTemplate captures enum value "invalid_template" +#TestTemplatesErrorResultKindInvalidTemplate: "invalid_template" + +// TestTemplatesErrorResultKindExecutionError captures enum value "execution_error" +#TestTemplatesErrorResultKindExecutionError: "execution_error" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_templates_result_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_templates_result_go_gen.cue new file mode 100644 index 000000000..881989b23 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/test_templates_result_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TestTemplatesResult test templates result +// +// swagger:model TestTemplatesResult +#TestTemplatesResult: { + // Name of the associated template definition for this result. + name?: string @go(Name) + + // Interpolated value of the template. + text?: string @go(Text) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/threshold_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/threshold_go_gen.cue new file mode 100644 index 000000000..4dc58762f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/threshold_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Threshold Threshold a single step on the threshold list +// +// swagger:model Threshold +#Threshold: { + // color + color?: string @go(Color) + + // state + state?: string @go(State) + + // value + value?: #ConfFloat64 @go(Value) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/thresholds_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/thresholds_config_go_gen.cue new file mode 100644 index 000000000..97b39dbb2 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/thresholds_config_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ThresholdsConfig ThresholdsConfig setup thresholds +// +// swagger:model ThresholdsConfig +#ThresholdsConfig: { + // mode + mode?: #ThresholdsMode @go(Mode) + + // Must be sorted by 'value', first value is always -Infinity + steps: [...null | #Threshold] @go(Steps,[]*Threshold) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/thresholds_mode_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/thresholds_mode_go_gen.cue new file mode 100644 index 000000000..f64b4ae21 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/thresholds_mode_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ThresholdsMode ThresholdsMode absolute or percentage +// +// swagger:model ThresholdsMode +#ThresholdsMode: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/time_interval_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/time_interval_go_gen.cue new file mode 100644 index 000000000..a0d2733d7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/time_interval_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TimeInterval TimeInterval describes intervals of time. ContainsTime will tell you if a golang time is contained +// within the interval. +// +// swagger:model TimeInterval +#TimeInterval: { + // days of month + days_of_month: [...string] @go(DaysOfMonth,[]string) + + // location + location?: string @go(Location) + + // months + months: [...string] @go(Months,[]string) + + // times + times: [...null | #TimeIntervalRange] @go(Times,[]*TimeIntervalRange) + + // weekdays + weekdays: [...string] @go(Weekdays,[]string) + + // years + years: [...string] @go(Years,[]string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/time_interval_range_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/time_interval_range_go_gen.cue new file mode 100644 index 000000000..a20befec1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/time_interval_range_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TimeIntervalRange time interval range +// +// swagger:model TimeIntervalRange +#TimeIntervalRange: { + // end time + end_time?: string @go(EndTime) + + // start time + start_time?: string @go(StartTime) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tls_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tls_config_go_gen.cue new file mode 100644 index 000000000..3c4b864c1 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tls_config_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TLSConfig TLSConfig configures the options for TLS connections. +// +// swagger:model TLSConfig +#TLSConfig: { + // Text of the CA cert to use for the targets. + ca?: string @go(Ca) + + // The CA cert to use for the targets. + ca_file?: string @go(CaFile) + + // Text of the client cert file for the targets. + cert?: string @go(Cert) + + // The client cert file for the targets. + cert_file?: string @go(CertFile) + + // Disable target certificate validation. + insecure_skip_verify?: bool @go(InsecureSkipVerify) + + // key + key?: #Secret @go(Key) + + // The client key file for the targets. + key_file?: string @go(KeyFile) + + // max version + max_version?: #TLSVersion @go(MaxVersion) + + // min version + min_version?: #TLSVersion @go(MinVersion) + + // Used to verify the hostname for the targets. + server_name?: string @go(ServerName) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tls_version_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tls_version_go_gen.cue new file mode 100644 index 000000000..9bcef78e8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/tls_version_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TLSVersion TLS version +// +// swagger:model TLSVersion +#TLSVersion: uint16 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_dto_go_gen.cue new file mode 100644 index 000000000..adfb15c0b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_dto_go_gen.cue @@ -0,0 +1,30 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TokenDTO token DTO +// +// swagger:model TokenDTO +#TokenDTO: { + // has expired + // Example: false + hasExpired?: bool @go(HasExpired) + + // id + // Example: 1 + id?: int64 @go(ID) + + // is revoked + // Example: false + isRevoked?: bool @go(IsRevoked) + + // name + // Example: grafana + name?: string @go(Name) + + // seconds until expiration + // Example: 0 + secondsUntilExpiration?: float64 @go(SecondsUntilExpiration) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_go_gen.cue new file mode 100644 index 000000000..501655860 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_go_gen.cue @@ -0,0 +1,82 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Token token +// +// swagger:model Token +#Token: { + // account + account?: string @go(Account) + + // anonymous ratio + anonymousRatio?: int64 @go(AnonymousRatio) + + // company + company?: string @go(Company) + + // details url + details_url?: string @go(DetailsURL) + + // exp + exp?: int64 @go(Exp) + + // iat + iat?: int64 @go(Iat) + + // included users + included_users?: int64 @go(IncludedUsers) + + // iss + iss?: string @go(Iss) + + // jti + jti?: string @go(Jti) + + // lexp + lexp?: int64 @go(Lexp) + + // lic exp warn days + lic_exp_warn_days?: int64 @go(LicExpWarnDays) + + // lid + lid?: string @go(Lid) + + // limit by + limit_by?: string @go(LimitBy) + + // max concurrent user sessions + max_concurrent_user_sessions?: int64 @go(MaxConcurrentUserSessions) + + // nbf + nbf?: int64 @go(Nbf) + + // prod + prod: [...string] @go(Prod,[]string) + + // slug + slug?: string @go(Slug) + + // status + status?: #TokenStatus @go(Status) + + // sub + sub?: string @go(Sub) + + // tok exp warn days + tok_exp_warn_days?: int64 @go(TokExpWarnDays) + + // trial + trial?: bool @go(Trial) + + // trial exp + trial_exp?: int64 @go(TrialExp) + + // update days + update_days?: int64 @go(UpdateDays) + + // usage billing + usage_billing?: bool @go(UsageBilling) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_status_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_status_go_gen.cue new file mode 100644 index 000000000..a612000f8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/token_status_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// TokenStatus token status +// +// swagger:model TokenStatus +#TokenStatus: int64 diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/transformation_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/transformation_go_gen.cue new file mode 100644 index 000000000..3e987baf5 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/transformation_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Transformation transformation +// +// swagger:model Transformation +#Transformation: { + // expression + expression?: string @go(Expression) + + // field + field?: string @go(Field) + + // map value + mapValue?: string @go(MapValue) + + // type + // Enum: [regex logfmt] + type?: string @go(Type) +} + +// TransformationTypeRegex captures enum value "regex" +#TransformationTypeRegex: "regex" + +// TransformationTypeLogfmt captures enum value "logfmt" +#TransformationTypeLogfmt: "logfmt" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/transformations_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/transformations_go_gen.cue new file mode 100644 index 000000000..a6b8d8059 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/transformations_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Transformations transformations +// +// swagger:model Transformations +#Transformations: [...null | #Transformation] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/type_go_gen.cue new file mode 100644 index 000000000..ce9b79b96 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Type type +// +// swagger:model Type +#Type: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_alert_notification_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_alert_notification_command_go_gen.cue new file mode 100644 index 000000000..5adeae42b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_alert_notification_command_go_gen.cue @@ -0,0 +1,40 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateAlertNotificationCommand update alert notification command +// +// swagger:model UpdateAlertNotificationCommand +#UpdateAlertNotificationCommand: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // frequency + frequency?: string @go(Frequency) + + // id + id?: int64 @go(ID) + + // is default + isDefault?: bool @go(IsDefault) + + // name + name?: string @go(Name) + + // secure settings + secureSettings?: {[string]: string} @go(SecureSettings,map[string]string) + + // send reminder + sendReminder?: bool @go(SendReminder) + + // settings + settings?: #JSON @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_alert_notification_with_uid_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_alert_notification_with_uid_command_go_gen.cue new file mode 100644 index 000000000..a2061a1ad --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_alert_notification_with_uid_command_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateAlertNotificationWithUIDCommand update alert notification with Uid command +// +// swagger:model UpdateAlertNotificationWithUidCommand +#UpdateAlertNotificationWithUIDCommand: { + // disable resolve message + disableResolveMessage?: bool @go(DisableResolveMessage) + + // frequency + frequency?: string @go(Frequency) + + // is default + isDefault?: bool @go(IsDefault) + + // name + name?: string @go(Name) + + // secure settings + secureSettings?: {[string]: string} @go(SecureSettings,map[string]string) + + // send reminder + sendReminder?: bool @go(SendReminder) + + // settings + settings?: #JSON @go(Settings) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_annotations_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_annotations_cmd_go_gen.cue new file mode 100644 index 000000000..12793fb2c --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_annotations_cmd_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateAnnotationsCmd update annotations cmd +// +// swagger:model UpdateAnnotationsCmd +#UpdateAnnotationsCmd: { + // data + data?: #JSON @go(Data) + + // id + id?: int64 @go(ID) + + // tags + tags: [...string] @go(Tags,[]string) + + // text + text?: string @go(Text) + + // time + time?: int64 @go(Time) + + // time end + timeEnd?: int64 @go(TimeEnd) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_correlation_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_correlation_command_go_gen.cue new file mode 100644 index 000000000..5107d4f39 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_correlation_command_go_gen.cue @@ -0,0 +1,21 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateCorrelationCommand UpdateCorrelationCommand is the command for updating a correlation +// +// swagger:model UpdateCorrelationCommand +#UpdateCorrelationCommand: { + // config + config?: null | #CorrelationConfigUpdateDTO @go(Config,*CorrelationConfigUpdateDTO) + + // Optional description of the correlation + // Example: Logs to Traces + description?: string @go(Description) + + // Optional label identifying the correlation + // Example: My label + label?: string @go(Label) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_correlation_response_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_correlation_response_body_go_gen.cue new file mode 100644 index 000000000..1a7d6423b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_correlation_response_body_go_gen.cue @@ -0,0 +1,17 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateCorrelationResponseBody update correlation response body +// +// swagger:model UpdateCorrelationResponseBody +#UpdateCorrelationResponseBody: { + // message + // Example: Correlation updated + message?: string @go(Message) + + // result + result?: null | #Correlation @go(Result,*Correlation) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_dashboard_acl_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_dashboard_acl_command_go_gen.cue new file mode 100644 index 000000000..65c5d5561 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_dashboard_acl_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateDashboardACLCommand update dashboard ACL command +// +// swagger:model UpdateDashboardACLCommand +#UpdateDashboardACLCommand: { + // items + items: [...null | #DashboardACLUpdateItem] @go(Items,[]*DashboardACLUpdateItem) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_by_id_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_by_id_ok_body_go_gen.cue new file mode 100644 index 000000000..cd83369e6 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_by_id_ok_body_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateDataSourceByIDOKBody update data source by Id Ok body +// +// swagger:model updateDataSourceByIdOkBody +#UpdateDataSourceByIDOKBody: { + // datasource + // Required: true + datasource?: null | #DataSource @go(Datasource,*DataSource) + + // ID Identifier of the new data source. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted dashboard. + // Example: Data source added + // Required: true + message?: null | string @go(Message,*string) + + // Name of the new data source. + // Example: My Data source + // Required: true + name?: null | string @go(Name,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_by_uid_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_by_uid_ok_body_go_gen.cue new file mode 100644 index 000000000..59bc088f7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_by_uid_ok_body_go_gen.cue @@ -0,0 +1,29 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateDataSourceByUIDOKBody update data source by Uid Ok body +// +// swagger:model updateDataSourceByUidOkBody +#UpdateDataSourceByUIDOKBody: { + // datasource + // Required: true + datasource?: null | #DataSource @go(Datasource,*DataSource) + + // ID Identifier of the new data source. + // Example: 65 + // Required: true + id?: null | int64 @go(ID,*int64) + + // Message Message of the deleted dashboard. + // Example: Data source added + // Required: true + message?: null | string @go(Message,*string) + + // Name of the new data source. + // Example: My Data source + // Required: true + name?: null | string @go(Name,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_command_go_gen.cue new file mode 100644 index 000000000..be1c4bd64 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_data_source_command_go_gen.cue @@ -0,0 +1,52 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateDataSourceCommand Also acts as api DTO +// +// swagger:model UpdateDataSourceCommand +#UpdateDataSourceCommand: { + // access + access?: #DsAccess @go(Access) + + // basic auth + basicAuth?: bool @go(BasicAuth) + + // basic auth user + basicAuthUser?: string @go(BasicAuthUser) + + // database + database?: string @go(Database) + + // is default + isDefault?: bool @go(IsDefault) + + // json data + jsonData?: #JSON @go(JSONData) + + // name + name?: string @go(Name) + + // secure Json data + secureJsonData?: {[string]: string} @go(SecureJSONData,map[string]string) + + // type + type?: string @go(Type) + + // uid + uid?: string @go(UID) + + // url + url?: string @go(URL) + + // user + user?: string @go(User) + + // version + version?: int64 @go(Version) + + // with credentials + withCredentials?: bool @go(WithCredentials) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_folder_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_folder_command_go_gen.cue new file mode 100644 index 000000000..5d8c0b75b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_folder_command_go_gen.cue @@ -0,0 +1,23 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateFolderCommand UpdateFolderCommand captures the information required by the folder service +// to update a folder. Use Move to update a folder's parent folder. +// +// swagger:model UpdateFolderCommand +#UpdateFolderCommand: { + // NewDescription it's an optional parameter used for overriding the existing folder description + description?: string @go(Description) + + // Overwrite only used by the legacy folder implementation + overwrite?: bool @go(Overwrite) + + // NewTitle it's an optional parameter used for overriding the existing folder title + title?: string @go(Title) + + // Version only used by the legacy folder implementation + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_address_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_address_form_go_gen.cue new file mode 100644 index 000000000..33eb1d8b0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_address_form_go_gen.cue @@ -0,0 +1,28 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateOrgAddressForm update org address form +// +// swagger:model UpdateOrgAddressForm +#UpdateOrgAddressForm: { + // address1 + address1?: string @go(Address1) + + // address2 + address2?: string @go(Address2) + + // city + city?: string @go(City) + + // country + country?: string @go(Country) + + // state + state?: string @go(State) + + // zipcode + zipcode?: string @go(Zipcode) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_form_go_gen.cue new file mode 100644 index 000000000..81dc96ff7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_form_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateOrgForm update org form +// +// swagger:model UpdateOrgForm +#UpdateOrgForm: { + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_user_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_user_command_go_gen.cue new file mode 100644 index 000000000..7cbdc9373 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_org_user_command_go_gen.cue @@ -0,0 +1,26 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateOrgUserCommand update org user command +// +// swagger:model UpdateOrgUserCommand +#UpdateOrgUserCommand: { + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) +} + +// UpdateOrgUserCommandRoleNone captures enum value "None" +#UpdateOrgUserCommandRoleNone: "None" + +// UpdateOrgUserCommandRoleViewer captures enum value "Viewer" +#UpdateOrgUserCommandRoleViewer: "Viewer" + +// UpdateOrgUserCommandRoleEditor captures enum value "Editor" +#UpdateOrgUserCommandRoleEditor: "Editor" + +// UpdateOrgUserCommandRoleAdmin captures enum value "Admin" +#UpdateOrgUserCommandRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_playlist_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_playlist_command_go_gen.cue new file mode 100644 index 000000000..f04cc6dbe --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_playlist_command_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdatePlaylistCommand update playlist command +// +// swagger:model UpdatePlaylistCommand +#UpdatePlaylistCommand: { + // interval + interval?: string @go(Interval) + + // items + items: [...null | #PlaylistItem] @go(Items,[]*PlaylistItem) + + // name + name?: string @go(Name) + + // uid + uid?: string @go(UID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_prefs_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_prefs_cmd_go_gen.cue new file mode 100644 index 000000000..48f1a2ee3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_prefs_cmd_go_gen.cue @@ -0,0 +1,51 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdatePrefsCmd update prefs cmd +// +// swagger:model UpdatePrefsCmd +#UpdatePrefsCmd: { + // cookies + cookies: [...#CookieType] @go(Cookies,[]CookieType) + + // The numerical :id of a favorited dashboard + homeDashboardId?: int64 @go(HomeDashboardID) + + // home dashboard UID + homeDashboardUID?: string @go(HomeDashboardUID) + + // language + language?: string @go(Language) + + // query history + queryHistory?: null | #QueryHistoryPreference @go(QueryHistory,*QueryHistoryPreference) + + // theme + // Enum: [light dark system] + theme?: string @go(Theme) + + // timezone + // Enum: [utc browser] + timezone?: string @go(Timezone) + + // week start + weekStart?: string @go(WeekStart) +} + +// UpdatePrefsCmdThemeLight captures enum value "light" +#UpdatePrefsCmdThemeLight: "light" + +// UpdatePrefsCmdThemeDark captures enum value "dark" +#UpdatePrefsCmdThemeDark: "dark" + +// UpdatePrefsCmdThemeSystem captures enum value "system" +#UpdatePrefsCmdThemeSystem: "system" + +// UpdatePrefsCmdTimezoneUtc captures enum value "utc" +#UpdatePrefsCmdTimezoneUtc: "utc" + +// UpdatePrefsCmdTimezoneBrowser captures enum value "browser" +#UpdatePrefsCmdTimezoneBrowser: "browser" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_provider_settings_params_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_provider_settings_params_body_go_gen.cue new file mode 100644 index 000000000..8fcdc51aa --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_provider_settings_params_body_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateProviderSettingsParamsBody update provider settings params body +// +// swagger:model updateProviderSettingsParamsBody +#UpdateProviderSettingsParamsBody: { + // id + id?: string @go(ID) + + // provider + provider?: string @go(Provider) + + // settings + settings?: _ @go(Settings,interface{}) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_quota_cmd_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_quota_cmd_go_gen.cue new file mode 100644 index 000000000..c407bf036 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_quota_cmd_go_gen.cue @@ -0,0 +1,16 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateQuotaCmd update quota cmd +// +// swagger:model UpdateQuotaCmd +#UpdateQuotaCmd: { + // limit + limit?: int64 @go(Limit) + + // target + target?: string @go(Target) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_role_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_role_command_go_gen.cue new file mode 100644 index 000000000..b005957ed --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_role_command_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateRoleCommand update role command +// +// swagger:model UpdateRoleCommand +#UpdateRoleCommand: { + // description + description?: string @go(Description) + + // display name + displayName?: string @go(DisplayName) + + // global + global?: bool @go(Global) + + // group + group?: string @go(Group) + + // hidden + hidden?: bool @go(Hidden) + + // name + name?: string @go(Name) + + // permissions + permissions: [...null | #Permission] @go(Permissions,[]*Permission) + + // version + version?: int64 @go(Version) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_service_account_form_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_service_account_form_go_gen.cue new file mode 100644 index 000000000..d71511ff8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_service_account_form_go_gen.cue @@ -0,0 +1,35 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateServiceAccountForm update service account form +// +// swagger:model UpdateServiceAccountForm +#UpdateServiceAccountForm: { + // is disabled + isDisabled?: bool @go(IsDisabled) + + // name + name?: string @go(Name) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) + + // service account Id + serviceAccountId?: int64 @go(ServiceAccountID) +} + +// UpdateServiceAccountFormRoleNone captures enum value "None" +#UpdateServiceAccountFormRoleNone: "None" + +// UpdateServiceAccountFormRoleViewer captures enum value "Viewer" +#UpdateServiceAccountFormRoleViewer: "Viewer" + +// UpdateServiceAccountFormRoleEditor captures enum value "Editor" +#UpdateServiceAccountFormRoleEditor: "Editor" + +// UpdateServiceAccountFormRoleAdmin captures enum value "Admin" +#UpdateServiceAccountFormRoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_service_account_ok_body_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_service_account_ok_body_go_gen.cue new file mode 100644 index 000000000..8c238f5cf --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_service_account_ok_body_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateServiceAccountOKBody update service account Ok body +// +// swagger:model updateServiceAccountOkBody +#UpdateServiceAccountOKBody: { + // id + id?: int64 @go(ID) + + // message + message?: string @go(Message) + + // name + name?: string @go(Name) + + // serviceaccount + serviceaccount?: null | #ServiceAccountProfileDTO @go(Serviceaccount,*ServiceAccountProfileDTO) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_team_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_team_command_go_gen.cue new file mode 100644 index 000000000..900c68d5d --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_team_command_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateTeamCommand update team command +// +// swagger:model UpdateTeamCommand +#UpdateTeamCommand: { + // email + Email?: string + + // ID + ID?: int64 + + // name + Name?: string +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_team_member_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_team_member_command_go_gen.cue new file mode 100644 index 000000000..9d3cff81a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_team_member_command_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateTeamMemberCommand update team member command +// +// swagger:model UpdateTeamMemberCommand +#UpdateTeamMemberCommand: { + // permission + permission?: #PermissionType @go(Permission) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_user_command_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_user_command_go_gen.cue new file mode 100644 index 000000000..8cca96b56 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/update_user_command_go_gen.cue @@ -0,0 +1,22 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UpdateUserCommand update user command +// +// swagger:model UpdateUserCommand +#UpdateUserCommand: { + // email + email?: string @go(Email) + + // login + login?: string @go(Login) + + // name + name?: string @go(Name) + + // theme + theme?: string @go(Theme) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/url_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/url_go_gen.cue new file mode 100644 index 000000000..55156fff0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/url_go_gen.cue @@ -0,0 +1,63 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// URL A URL represents a parsed URL (technically, a URI reference). +// +// The general form represented is: +// +// [scheme:][//[userinfo@]host][/]path[?query][#fragment] +// +// URLs that do not start with a slash after the scheme are interpreted as: +// +// scheme:opaque[?query][#fragment] +// +// Note that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/. +// A consequence is that it is impossible to tell which slashes in the Path were +// slashes in the raw URL and which were %2f. This distinction is rarely important, +// but when it is, the code should use the EscapedPath method, which preserves +// the original encoding of Path. +// +// The RawPath field is an optional field which is only set when the default +// encoding of Path is different from the escaped path. See the EscapedPath method +// for more details. +// +// URL's String method uses the EscapedPath method to obtain the path. +// +// swagger:model URL +#URL: { + // force query + ForceQuery?: bool + + // fragment + Fragment?: string + + // host + Host?: string + + // omit host + OmitHost?: bool + + // opaque + Opaque?: string + + // path + Path?: string + + // raw fragment + RawFragment?: string + + // raw path + RawPath?: string + + // raw query + RawQuery?: string + + // scheme + Scheme?: string + + // user + User?: #Userinfo +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_lookup_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_lookup_dto_go_gen.cue new file mode 100644 index 000000000..a5f5d2289 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_lookup_dto_go_gen.cue @@ -0,0 +1,19 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UserLookupDTO user lookup DTO +// +// swagger:model UserLookupDTO +#UserLookupDTO: { + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // login + login?: string @go(Login) + + // user Id + userId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_org_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_org_dto_go_gen.cue new file mode 100644 index 000000000..3ae7c4337 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_org_dto_go_gen.cue @@ -0,0 +1,32 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UserOrgDTO user org DTO +// +// swagger:model UserOrgDTO +#UserOrgDTO: { + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // role + // Enum: [None Viewer Editor Admin] + role?: string @go(Role) +} + +// UserOrgDTORoleNone captures enum value "None" +#UserOrgDTORoleNone: "None" + +// UserOrgDTORoleViewer captures enum value "Viewer" +#UserOrgDTORoleViewer: "Viewer" + +// UserOrgDTORoleEditor captures enum value "Editor" +#UserOrgDTORoleEditor: "Editor" + +// UserOrgDTORoleAdmin captures enum value "Admin" +#UserOrgDTORoleAdmin: "Admin" diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_profile_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_profile_dto_go_gen.cue new file mode 100644 index 000000000..5363ed7b7 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_profile_dto_go_gen.cue @@ -0,0 +1,52 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UserProfileDTO user profile DTO +// +// swagger:model UserProfileDTO +#UserProfileDTO: { + // access control + accessControl?: {[string]: bool} @go(AccessControl,map[string]bool) + + // auth labels + authLabels: [...string] @go(AuthLabels,[]string) + + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // email + email?: string @go(Email) + + // id + id?: int64 @go(ID) + + // is disabled + isDisabled?: bool @go(IsDisabled) + + // is external + isExternal?: bool @go(IsExternal) + + // is externally synced + isExternallySynced?: bool @go(IsExternallySynced) + + // is grafana admin + isGrafanaAdmin?: bool @go(IsGrafanaAdmin) + + // is grafana admin externally synced + isGrafanaAdminExternallySynced?: bool @go(IsGrafanaAdminExternallySynced) + + // login + login?: string @go(Login) + + // name + name?: string @go(Name) + + // org Id + orgId?: int64 @go(OrgID) + + // theme + theme?: string @go(Theme) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_search_hit_dto_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_search_hit_dto_go_gen.cue new file mode 100644 index 000000000..0e98be246 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_search_hit_dto_go_gen.cue @@ -0,0 +1,37 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UserSearchHitDTO user search hit DTO +// +// swagger:model UserSearchHitDTO +#UserSearchHitDTO: { + // auth labels + authLabels: [...string] @go(AuthLabels,[]string) + + // avatar Url + avatarUrl?: string @go(AvatarURL) + + // email + email?: string @go(Email) + + // id + id?: int64 @go(ID) + + // is admin + isAdmin?: bool @go(IsAdmin) + + // is disabled + isDisabled?: bool @go(IsDisabled) + + // last seen at age + lastSeenAtAge?: string @go(LastSeenAtAge) + + // login + login?: string @go(Login) + + // name + name?: string @go(Name) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_token_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_token_go_gen.cue new file mode 100644 index 000000000..16a63f455 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/user_token_go_gen.cue @@ -0,0 +1,49 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// UserToken UserToken represents a user token +// +// swagger:model UserToken +#UserToken: { + // auth token + AuthToken?: string + + // auth token seen + AuthTokenSeen?: bool + + // client Ip + ClientIp?: string @go(ClientIP) + + // created at + CreatedAt?: int64 + + // Id + Id?: int64 @go(ID) + + // prev auth token + PrevAuthToken?: string + + // revoked at + RevokedAt?: int64 + + // rotated at + RotatedAt?: int64 + + // seen at + SeenAt?: int64 + + // unhashed token + UnhashedToken?: string + + // updated at + UpdatedAt?: int64 + + // user agent + UserAgent?: string + + // user Id + UserId?: int64 @go(UserID) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/userinfo_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/userinfo_go_gen.cue new file mode 100644 index 000000000..f99730976 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/userinfo_go_gen.cue @@ -0,0 +1,13 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Userinfo The Userinfo type is an immutable encapsulation of username and +// password details for a URL. An existing Userinfo value is guaranteed +// to have a username set (potentially empty, as allowed by RFC 2396), +// and optionally a password. +// +// swagger:model Userinfo +#Userinfo: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/validation_error_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/validation_error_go_gen.cue new file mode 100644 index 000000000..d4e03a7c3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/validation_error_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ValidationError validation error +// +// swagger:model ValidationError +#ValidationError: { + // message + // Example: error message + message?: string @go(Message) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/value_mapping_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/value_mapping_go_gen.cue new file mode 100644 index 000000000..f348f8b42 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/value_mapping_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ValueMapping ValueMapping allows mapping input values to text and color +// +// swagger:model ValueMapping +#ValueMapping: _ diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/value_mappings_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/value_mappings_go_gen.cue new file mode 100644 index 000000000..e03e906c0 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/value_mappings_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// ValueMappings value mappings +// +// swagger:model ValueMappings +#ValueMappings: [...#ValueMapping] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/vector_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/vector_go_gen.cue new file mode 100644 index 000000000..b576d3ca8 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/vector_go_gen.cue @@ -0,0 +1,11 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// Vector Vector is basically only an alias for model.Samples, but the +// contract is that in a Vector, all Samples have the same timestamp. +// +// swagger:model Vector +#Vector: [...null | #Sample] diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/version_info_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/version_info_go_gen.cue new file mode 100644 index 000000000..622d75ed9 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/version_info_go_gen.cue @@ -0,0 +1,34 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// VersionInfo VersionInfo version info +// +// swagger:model versionInfo +#VersionInfo: { + // branch + // Required: true + branch?: null | string @go(Branch,*string) + + // build date + // Required: true + buildDate?: null | string @go(BuildDate,*string) + + // build user + // Required: true + buildUser?: null | string @go(BuildUser,*string) + + // go version + // Required: true + goVersion?: null | string @go(GoVersion,*string) + + // revision + // Required: true + revision?: null | string @go(Revision,*string) + + // version + // Required: true + version?: null | string @go(Version,*string) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/victor_ops_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/victor_ops_config_go_gen.cue new file mode 100644 index 000000000..e985c4f91 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/victor_ops_config_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// VictorOpsConfig VictorOpsConfig configures notifications via VictorOps. +// +// swagger:model VictorOpsConfig +#VictorOpsConfig: { + // api key + api_key?: #Secret @go(APIKey) + + // api key file + api_key_file?: string @go(APIKeyFile) + + // api url + api_url?: null | #URL @go(APIURL,*URL) + + // custom fields + custom_fields?: {[string]: string} @go(CustomFields,map[string]string) + + // entity display name + entity_display_name?: string @go(EntityDisplayName) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message type + message_type?: string @go(MessageType) + + // monitoring tool + monitoring_tool?: string @go(MonitoringTool) + + // routing key + routing_key?: string @go(RoutingKey) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // state message + state_message?: string @go(StateMessage) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/vis_type_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/vis_type_go_gen.cue new file mode 100644 index 000000000..9bfcd4515 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/vis_type_go_gen.cue @@ -0,0 +1,10 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// VisType VisType is used to indicate how the data should be visualized in explore. +// +// swagger:model VisType +#VisType: string diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/webex_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/webex_config_go_gen.cue new file mode 100644 index 000000000..b100c4e3f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/webex_config_go_gen.cue @@ -0,0 +1,25 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// WebexConfig WebexConfig configures notifications via Webex. +// +// swagger:model WebexConfig +#WebexConfig: { + // api url + api_url?: null | #URL @go(APIURL,*URL) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // room id + room_id?: string @go(RoomID) + + // send resolved + send_resolved?: bool @go(SendResolved) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/webhook_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/webhook_config_go_gen.cue new file mode 100644 index 000000000..b5899b516 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/webhook_config_go_gen.cue @@ -0,0 +1,27 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// WebhookConfig WebhookConfig configures notifications via a generic webhook. +// +// swagger:model WebhookConfig +#WebhookConfig: { + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // MaxAlerts is the maximum number of alerts to be sent per webhook message. + // Alerts exceeding this threshold will be truncated. Setting this to 0 + // allows an unlimited number of alerts. + max_alerts?: uint64 @go(MaxAlerts) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // url + url?: null | #SecretURL @go(URL,*SecretURL) + + // url file + url_file?: string @go(URLFile) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/wechat_config_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/wechat_config_go_gen.cue new file mode 100644 index 000000000..b6788f427 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models/wechat_config_go_gen.cue @@ -0,0 +1,43 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-openapi-client-go/models + +package models + +// WechatConfig WechatConfig configures notifications via Wechat. +// +// swagger:model WechatConfig +#WechatConfig: { + // agent id + agent_id?: string @go(AgentID) + + // api secret + api_secret?: #Secret @go(APISecret) + + // api url + api_url?: null | #URL @go(APIURL,*URL) + + // corp id + corp_id?: string @go(CorpID) + + // http config + http_config?: null | #HTTPClientConfig @go(HTTPConfig,*HTTPClientConfig) + + // message + message?: string @go(Message) + + // message type + message_type?: string @go(MessageType) + + // send resolved + send_resolved?: bool @go(SendResolved) + + // to party + to_party?: string @go(ToParty) + + // to tag + to_tag?: string @go(ToTag) + + // to user + to_user?: string @go(ToUser) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/BUILD.bazel b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/BUILD.bazel new file mode 100644 index 000000000..873017d9f --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/BUILD.bazel @@ -0,0 +1,27 @@ +load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_library") + +cue_library( + name = "cue_v1beta1_library", + srcs = [ + "grafana_types_go_gen.cue", + "grafanaalertrulegroup_types_go_gen.cue", + "grafanadashboard_types_go_gen.cue", + "grafanadatasource_types_go_gen.cue", + "grafanafolder_types_go_gen.cue", + "groupversion_info_go_gen.cue", + "namespaced_resource_go_gen.cue", + "plugin_list_go_gen.cue", + "typeoverrides_go_gen.cue", + ], + importpath = "github.com/grafana/grafana-operator/v5/api/v1beta1", + visibility = ["//visibility:public"], + deps = [ + "//cue.mod/gen/github.com/grafana/grafana-openapi-client-go/models:cue_models_library", + "//cue.mod/gen/github.com/openshift/api/route/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/api/networking/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1:cue_v1_library", + ], +) diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafana_types_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafana_types_go_gen.cue new file mode 100644 index 000000000..f160e04db --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafana_types_go_gen.cue @@ -0,0 +1,150 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +import ( + "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +#OperatorStageName: string // #enumOperatorStageName + +#enumOperatorStageName: + #OperatorStageGrafanaConfig | + #OperatorStageAdminUser | + #OperatorStagePvc | + #OperatorStageServiceAccount | + #OperatorStageService | + #OperatorStageIngress | + #OperatorStagePlugins | + #OperatorStageDeployment | + #OperatorStageComplete + +#OperatorStageStatus: string // #enumOperatorStageStatus + +#enumOperatorStageStatus: + #OperatorStageResultSuccess | + #OperatorStageResultFailed | + #OperatorStageResultInProgress + +#OperatorStageGrafanaConfig: #OperatorStageName & "config" +#OperatorStageAdminUser: #OperatorStageName & "admin user" +#OperatorStagePvc: #OperatorStageName & "pvc" +#OperatorStageServiceAccount: #OperatorStageName & "service account" +#OperatorStageService: #OperatorStageName & "service" +#OperatorStageIngress: #OperatorStageName & "ingress" +#OperatorStagePlugins: #OperatorStageName & "plugins" +#OperatorStageDeployment: #OperatorStageName & "deployment" +#OperatorStageComplete: #OperatorStageName & "complete" + +#OperatorStageResultSuccess: #OperatorStageStatus & "success" +#OperatorStageResultFailed: #OperatorStageStatus & "failed" +#OperatorStageResultInProgress: #OperatorStageStatus & "in progress" + +// temporary values passed between reconciler stages +#OperatorReconcileVars: { + // used to restart the Grafana container when the config changes + ConfigHash: string + + // env var value for installed plugins + Plugins: string +} + +// GrafanaSpec defines the desired state of Grafana +#GrafanaSpec: { + // +kubebuilder:pruning:PreserveUnknownFields + // Config defines how your grafana ini file should looks like. + config?: {[string]: [string]: string} @go(Config,map[string]map[string]string) + + // Ingress sets how the ingress object should look like with your grafana instance. + ingress?: null | #IngressNetworkingV1 @go(Ingress,*IngressNetworkingV1) + + // Route sets how the ingress object should look like with your grafana instance, this only works in Openshift. + route?: null | #RouteOpenshiftV1 @go(Route,*RouteOpenshiftV1) + + // Service sets how the service object should look like with your grafana instance, contains a number of defaults. + service?: null | #ServiceV1 @go(Service,*ServiceV1) + + // Deployment sets how the deployment object should look like with your grafana instance, contains a number of defaults. + deployment?: null | #DeploymentV1 @go(Deployment,*DeploymentV1) + + // PersistentVolumeClaim creates a PVC if you need to attach one to your grafana instance. + persistentVolumeClaim?: null | #PersistentVolumeClaimV1 @go(PersistentVolumeClaim,*PersistentVolumeClaimV1) + + // ServiceAccount sets how the ServiceAccount object should look like with your grafana instance, contains a number of defaults. + serviceAccount?: null | #ServiceAccountV1 @go(ServiceAccount,*ServiceAccountV1) + + // Client defines how the grafana-operator talks to the grafana instance. + client?: null | #GrafanaClient @go(Client,*GrafanaClient) + jsonnet?: null | #JsonnetConfig @go(Jsonnet,*JsonnetConfig) + + // External enables you to configure external grafana instances that is not managed by the operator. + external?: null | #External @go(External,*External) + + // Preferences holds the Grafana Preferences settings + preferences?: null | #GrafanaPreferences @go(Preferences,*GrafanaPreferences) +} + +#External: { + // URL of the external grafana instance you want to manage. + url: string @go(URL) + + // The API key to talk to the external grafana instance, you need to define ether apiKey or adminUser/adminPassword. + apiKey?: null | v1.#SecretKeySelector @go(ApiKey,*v1.SecretKeySelector) + + // AdminUser key to talk to the external grafana instance. + adminUser?: null | v1.#SecretKeySelector @go(AdminUser,*v1.SecretKeySelector) + + // AdminPassword key to talk to the external grafana instance. + adminPassword?: null | v1.#SecretKeySelector @go(AdminPassword,*v1.SecretKeySelector) +} + +#JsonnetConfig: { + libraryLabelSelector?: null | metav1.#LabelSelector @go(LibraryLabelSelector,*metav1.LabelSelector) +} + +// GrafanaClient contains the Grafana API client settings +#GrafanaClient: { + // +nullable + timeout?: null | int @go(TimeoutSeconds,*int) + + // +nullable + // If the operator should send it's request through the grafana instances ingress object instead of through the service. + preferIngress?: null | bool @go(PreferIngress,*bool) +} + +// GrafanaPreferences holds Grafana preferences API settings +#GrafanaPreferences: { + homeDashboardUid?: string @go(HomeDashboardUID) +} + +// GrafanaStatus defines the observed state of Grafana +#GrafanaStatus: { + stage?: #OperatorStageName @go(Stage) + stageStatus?: #OperatorStageStatus @go(StageStatus) + lastMessage?: string @go(LastMessage) + adminUrl?: string @go(AdminUrl) + dashboards?: #NamespacedResourceList @go(Dashboards) + datasources?: #NamespacedResourceList @go(Datasources) + folders?: #NamespacedResourceList @go(Folders) +} + +// Grafana is the Schema for the grafanas API +// +kubebuilder:printcolumn:name="Stage",type="string",JSONPath=".status.stage",description="" +// +kubebuilder:printcolumn:name="Stage status",type="string",JSONPath=".status.stageStatus",description="" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +#Grafana: { + metav1.#TypeMeta + metadata?: metav1.#ObjectMeta @go(ObjectMeta) + spec?: #GrafanaSpec @go(Spec) + status?: #GrafanaStatus @go(Status) +} + +// GrafanaList contains a list of Grafana +#GrafanaList: { + metav1.#TypeMeta + metadata?: metav1.#ListMeta @go(ListMeta) + items: [...#Grafana] @go(Items,[]Grafana) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanaalertrulegroup_types_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanaalertrulegroup_types_go_gen.cue new file mode 100644 index 000000000..0f5ace283 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanaalertrulegroup_types_go_gen.cue @@ -0,0 +1,111 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" + "github.com/grafana/grafana-openapi-client-go/models" +) + +// GrafanaAlertRuleGroupSpec defines the desired state of GrafanaAlertRuleGroup +// +kubebuilder:validation:XValidation:rule="(has(self.folderUID) && !(has(self.folderRef))) || (has(self.folderRef) && !(has(self.folderUID)))", message="Only one of FolderUID or FolderRef can be set" +#GrafanaAlertRuleGroupSpec: { + // +optional + // +kubebuilder:validation:Type=string + // +kubebuilder:validation:Format=duration + // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$" + // +kubebuilder:default="10m" + resyncPeriod?: metav1.#Duration @go(ResyncPeriod) + + // selects Grafanas for import + instanceSelector?: null | metav1.#LabelSelector @go(InstanceSelector,*metav1.LabelSelector) + + // UID of the folder containing this rule group + // Overrides the FolderSelector + folderUID?: string @go(FolderUID) + + // Match GrafanaFolders CRs to infer the uid + folderRef?: string @go(FolderRef) + rules: [...#AlertRule] @go(Rules,[]AlertRule) + + // +kubebuilder:validation:Type=string + // +kubebuilder:validation:Format=duration + // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$" + // +kubebuilder:validation:Required + interval: metav1.#Duration @go(Interval) + + // +optional + allowCrossNamespaceImport?: null | bool @go(AllowCrossNamespaceImport,*bool) +} + +// AlertRule defines a specific rule to be evaluated. It is based on the upstream model with some k8s specific type mappings +#AlertRule: { + annotations?: {[string]: string} @go(Annotations,map[string]string) + condition: string @go(Condition) + + // +kubebuilder:validation:Required + data: [...null | #AlertQuery] @go(Data,[]*AlertQuery) + + // +kubebuilder:validation:Enum=OK;Alerting;Error + execErrState: string @go(ExecErrState) + + // +kubebuilder:validation:Type=string + // +kubebuilder:validation:Format=duration + // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$" + // +kubebuilder:validation:Required + for?: null | metav1.#Duration @go(For,*metav1.Duration) + isPaused?: bool @go(IsPaused) + labels?: {[string]: string} @go(Labels,map[string]string) + + // +kubebuilder:validation:Enum=Alerting;NoData;OK + noDataState?: null | string @go(NoDataState,*string) + + // +kubebuilder:validation:MinLength=1 + // +kubebuilder:validation:MaxLength=190 + // +kubebuilder:example="Always firing" + title: string @go(Title) + + // +kubebuilder:validation:Pattern="^[a-zA-Z0-9-_]+$" + uid: string @go(UID) +} + +#AlertQuery: { + // Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation. + datasourceUid?: string @go(DatasourceUID) + + // JSON is the raw JSON query and includes the above properties as well as custom properties. + model?: null | apiextensions.#JSON @go(Model,*apiextensions.JSON) + + // QueryType is an optional identifier for the type of query. + // It can be used to distinguish different types of queries. + queryType?: string @go(QueryType) + + // RefID is the unique identifier of the query, set by the frontend call. + refId?: string @go(RefID) + + // relative time range + relativeTimeRange?: null | models.#RelativeTimeRange @go(RelativeTimeRange,*models.RelativeTimeRange) +} + +// GrafanaAlertRuleGroupStatus defines the observed state of GrafanaAlertRuleGroup +#GrafanaAlertRuleGroupStatus: { + conditions: [...metav1.#Condition] @go(Conditions,[]metav1.Condition) +} + +// GrafanaAlertRuleGroup is the Schema for the grafanaalertrulegroups API +#GrafanaAlertRuleGroup: { + metav1.#TypeMeta + metadata?: metav1.#ObjectMeta @go(ObjectMeta) + spec?: #GrafanaAlertRuleGroupSpec @go(Spec) + status?: #GrafanaAlertRuleGroupStatus @go(Status) +} + +// GrafanaAlertRuleGroupList contains a list of GrafanaAlertRuleGroup +#GrafanaAlertRuleGroupList: { + metav1.#TypeMeta + metadata?: metav1.#ListMeta @go(ListMeta) + items: [...#GrafanaAlertRuleGroup] @go(Items,[]GrafanaAlertRuleGroup) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanadashboard_types_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanadashboard_types_go_gen.cue new file mode 100644 index 000000000..d2168d80a --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanadashboard_types_go_gen.cue @@ -0,0 +1,167 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +import ( + "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +#DashboardSourceType: string // #enumDashboardSourceType + +#enumDashboardSourceType: + #DashboardSourceTypeRawJson | + #DashboardSourceTypeGzipJson | + #DashboardSourceJsonnetProject | + #DashboardSourceTypeUrl | + #DashboardSourceTypeJsonnet | + #DashboardSourceTypeGrafanaCom | + #DashboardSourceConfigMap + +#DashboardSourceTypeRawJson: #DashboardSourceType & "json" +#DashboardSourceTypeGzipJson: #DashboardSourceType & "gzipJson" +#DashboardSourceJsonnetProject: #DashboardSourceType & "jsonnetProjectWithRuntimeRaw" +#DashboardSourceTypeUrl: #DashboardSourceType & "url" +#DashboardSourceTypeJsonnet: #DashboardSourceType & "jsonnet" +#DashboardSourceTypeGrafanaCom: #DashboardSourceType & "grafana" +#DashboardSourceConfigMap: #DashboardSourceType & "configmap" +#DefaultResyncPeriod: "5m" + +#GrafanaDashboardDatasource: { + inputName: string @go(InputName) + datasourceName: string @go(DatasourceName) +} + +// GrafanaDashboardSpec defines the desired state of GrafanaDashboard +#GrafanaDashboardSpec: { + // dashboard json + // +optional + json?: string @go(Json) + + // GzipJson the dashboard's JSON compressed with Gzip. Base64-encoded when in YAML. + // +optional + gzipJson?: bytes @go(GzipJson,[]byte) + + // dashboard url + // +optional + url?: string @go(Url) + + // Jsonnet + // +optional + jsonnet?: string @go(Jsonnet) + + // Jsonnet project build + jsonnetLib?: null | #JsonnetProjectBuild @go(JsonnetProjectBuild,*JsonnetProjectBuild) + + // grafana.com/dashboards + // +optional + grafanaCom?: null | #GrafanaComDashboardReference @go(GrafanaCom,*GrafanaComDashboardReference) + + // dashboard from configmap + // +optional + configMapRef?: null | v1.#ConfigMapKeySelector @go(ConfigMapRef,*v1.ConfigMapKeySelector) + + // selects Grafanas for import + instanceSelector?: null | metav1.#LabelSelector @go(InstanceSelector,*metav1.LabelSelector) + + // folder assignment for dashboard + // +optional + folder?: string @go(FolderTitle) + + // plugins + // +optional + plugins?: #PluginList @go(Plugins) + + // Cache duration for dashboards fetched from URLs + // +optional + contentCacheDuration?: metav1.#Duration @go(ContentCacheDuration) + + // how often the dashboard is refreshed, defaults to 5m if not set + // +optional + resyncPeriod?: string @go(ResyncPeriod) + + // maps required data sources to existing ones + // +optional + datasources?: [...#GrafanaDashboardDatasource] @go(Datasources,[]GrafanaDashboardDatasource) + + // allow to import this resources from an operator in a different namespace + // +optional + allowCrossNamespaceImport?: null | bool @go(AllowCrossNamespaceImport,*bool) + + // environments variables as a map + // +optional + envs?: [...#GrafanaDashboardEnv] @go(Envs,[]GrafanaDashboardEnv) + + // environments variables from secrets or config maps + // +optional + envFrom?: [...#GrafanaDashboardEnvFromSource] @go(EnvsFrom,[]GrafanaDashboardEnvFromSource) +} + +#GrafanaDashboardEnv: { + name: string @go(Name) + + // Inline evn value + // +optional + value?: string @go(Value) + + // Reference on value source, might be the reference on a secret or config map + // +optional + valueFrom?: #GrafanaDashboardEnvFromSource @go(ValueFrom) +} + +#GrafanaDashboardEnvFromSource: { + // Selects a key of a ConfigMap. + // +optional + configMapKeyRef?: null | v1.#ConfigMapKeySelector @go(ConfigMapKeyRef,*v1.ConfigMapKeySelector) + + // Selects a key of a Secret. + // +optional + secretKeyRef?: null | v1.#SecretKeySelector @go(SecretKeyRef,*v1.SecretKeySelector) +} + +#JsonnetProjectBuild: { + jPath?: [...string] @go(JPath,[]string) + fileName: string @go(FileName) + gzipJsonnetProject: bytes @go(GzipJsonnetProject,[]byte) +} + +// GrafanaComDashbooardReference is a reference to a dashboard on grafana.com/dashboards +#GrafanaComDashboardReference: { + id: int @go(Id) + revision?: null | int @go(Revision,*int) +} + +// GrafanaDashboardStatus defines the observed state of GrafanaDashboard +#GrafanaDashboardStatus: { + contentCache?: bytes @go(ContentCache,[]byte) + contentTimestamp?: metav1.#Time @go(ContentTimestamp) + contentUrl?: string @go(ContentUrl) + hash?: string @go(Hash) + + // The dashboard instanceSelector can't find matching grafana instances + NoMatchingInstances?: bool + + // Last time the dashboard was resynced + lastResync?: metav1.#Time @go(LastResync) + uid?: string @go(UID) +} + +// GrafanaDashboard is the Schema for the grafanadashboards API +// +kubebuilder:printcolumn:name="No matching instances",type="boolean",JSONPath=".status.NoMatchingInstances",description="" +// +kubebuilder:printcolumn:name="Last resync",type="date",format="date-time",JSONPath=".status.lastResync",description="" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +#GrafanaDashboard: { + metav1.#TypeMeta + metadata?: metav1.#ObjectMeta @go(ObjectMeta) + spec?: #GrafanaDashboardSpec @go(Spec) + status?: #GrafanaDashboardStatus @go(Status) +} + +// GrafanaDashboardList contains a list of GrafanaDashboard +#GrafanaDashboardList: { + metav1.#TypeMeta + metadata?: metav1.#ListMeta @go(ListMeta) + items: [...#GrafanaDashboard] @go(Items,[]GrafanaDashboard) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanadatasource_types_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanadatasource_types_go_gen.cue new file mode 100644 index 000000000..c4b229748 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanadatasource_types_go_gen.cue @@ -0,0 +1,107 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/api/core/v1" +) + +#GrafanaDatasourceInternal: { + uid?: string @go(UID) + name?: string @go(Name) + type?: string @go(Type) + url?: string @go(URL) + access?: string @go(Access) + database?: string @go(Database) + user?: string @go(User) + orgId?: null | int64 @go(OrgID,*int64) + isDefault?: null | bool @go(IsDefault,*bool) + basicAuth?: null | bool @go(BasicAuth,*bool) + basicAuthUser?: string @go(BasicAuthUser) + editable?: null | bool @go(Editable,*bool) + + // +kubebuilder:validation:Schemaless + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Type=object + // +optional + jsonData?: _ @go(JSONData,json.RawMessage) + + // +kubebuilder:validation:Schemaless + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Type=object + // +optional + secureJsonData?: _ @go(SecureJSONData,json.RawMessage) +} + +// GrafanaDatasourceSpec defines the desired state of GrafanaDatasource +#GrafanaDatasourceSpec: { + datasource?: null | #GrafanaDatasourceInternal @go(Datasource,*GrafanaDatasourceInternal) + + // selects Grafana instances for import + instanceSelector?: null | metav1.#LabelSelector @go(InstanceSelector,*metav1.LabelSelector) + + // plugins + // +optional + plugins?: #PluginList @go(Plugins) + + // environments variables from secrets or config maps + // +optional + valuesFrom?: [...#GrafanaDatasourceValueFrom] @go(ValuesFrom,[]GrafanaDatasourceValueFrom) + + // how often the datasource is refreshed, defaults to 5m if not set + // +optional + resyncPeriod?: string @go(ResyncPeriod) + + // allow to import this resources from an operator in a different namespace + // +optional + allowCrossNamespaceImport?: null | bool @go(AllowCrossNamespaceImport,*bool) +} + +#GrafanaDatasourceValueFrom: { + targetPath: string @go(TargetPath) + valueFrom: #GrafanaDatasourceValueFromSource @go(ValueFrom) +} + +#GrafanaDatasourceValueFromSource: { + // Selects a key of a ConfigMap. + // +optional + configMapKeyRef?: null | v1.#ConfigMapKeySelector @go(ConfigMapKeyRef,*v1.ConfigMapKeySelector) + + // Selects a key of a Secret. + // +optional + secretKeyRef?: null | v1.#SecretKeySelector @go(SecretKeyRef,*v1.SecretKeySelector) +} + +// GrafanaDatasourceStatus defines the observed state of GrafanaDatasource +#GrafanaDatasourceStatus: { + hash?: string @go(Hash) + lastMessage?: string @go(LastMessage) + + // The datasource instanceSelector can't find matching grafana instances + NoMatchingInstances?: bool + + // Last time the datasource was resynced + lastResync?: metav1.#Time @go(LastResync) + uid?: string @go(UID) +} + +// GrafanaDatasource is the Schema for the grafanadatasources API +// +kubebuilder:printcolumn:name="No matching instances",type="boolean",JSONPath=".status.NoMatchingInstances",description="" +// +kubebuilder:printcolumn:name="Last resync",type="date",format="date-time",JSONPath=".status.lastResync",description="" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +#GrafanaDatasource: { + metav1.#TypeMeta + metadata?: metav1.#ObjectMeta @go(ObjectMeta) + spec?: #GrafanaDatasourceSpec @go(Spec) + status?: #GrafanaDatasourceStatus @go(Status) +} + +// GrafanaDatasourceList contains a list of GrafanaDatasource +#GrafanaDatasourceList: { + metav1.#TypeMeta + metadata?: metav1.#ListMeta @go(ListMeta) + items: [...#GrafanaDatasource] @go(Items,[]GrafanaDatasource) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanafolder_types_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanafolder_types_go_gen.cue new file mode 100644 index 000000000..60aa35465 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/grafanafolder_types_go_gen.cue @@ -0,0 +1,58 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// GrafanaFolderSpec defines the desired state of GrafanaFolder +#GrafanaFolderSpec: { + // +optional + title?: string @go(Title) + + // raw json with folder permissions + // +optional + permissions?: string @go(Permissions) + + // selects Grafanas for import + instanceSelector?: null | metav1.#LabelSelector @go(InstanceSelector,*metav1.LabelSelector) + + // allow to import this resources from an operator in a different namespace + // +optional + allowCrossNamespaceImport?: null | bool @go(AllowCrossNamespaceImport,*bool) + + // how often the folder is synced, defaults to 5m if not set + // +optional + resyncPeriod?: string @go(ResyncPeriod) +} + +// GrafanaFolderStatus defines the observed state of GrafanaFolder +#GrafanaFolderStatus: { + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster + // Important: Run "make" to regenerate code after modifying this file + hash?: string @go(Hash) + + // The folder instanceSelector can't find matching grafana instances + NoMatchingInstances?: bool + + // Last time the folder was resynced + lastResync?: metav1.#Time @go(LastResync) +} + +// GrafanaFolder is the Schema for the grafanafolders API +// +kubebuilder:printcolumn:name="No matching instances",type="boolean",JSONPath=".status.NoMatchingInstances",description="" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +#GrafanaFolder: { + metav1.#TypeMeta + metadata?: metav1.#ObjectMeta @go(ObjectMeta) + spec?: #GrafanaFolderSpec @go(Spec) + status?: #GrafanaFolderStatus @go(Status) +} + +// GrafanaFolderList contains a list of GrafanaFolder +#GrafanaFolderList: { + metav1.#TypeMeta + metadata?: metav1.#ListMeta @go(ListMeta) + items: [...#GrafanaFolder] @go(Items,[]GrafanaFolder) +} diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/groupversion_info_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/groupversion_info_go_gen.cue new file mode 100644 index 000000000..5b4fa9d54 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/groupversion_info_go_gen.cue @@ -0,0 +1,8 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +// Package v1beta1 contains API Schema definitions for the grafana v1beta1 API group +// +kubebuilder:object:generate=true +// +groupName=grafana.integreatly.org +package v1beta1 diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/namespaced_resource_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/namespaced_resource_go_gen.cue new file mode 100644 index 000000000..5f0a003f3 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/namespaced_resource_go_gen.cue @@ -0,0 +1,9 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +#NamespacedResource: string + +#NamespacedResourceList: [...#NamespacedResource] diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/plugin_list_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/plugin_list_go_gen.cue new file mode 100644 index 000000000..13a689a8b --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/plugin_list_go_gen.cue @@ -0,0 +1,14 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +#GrafanaPlugin: { + name: string @go(Name) + version: string @go(Version) +} + +#PluginList: [...#GrafanaPlugin] + +#PluginMap: [string]: #PluginList diff --git a/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/typeoverrides_go_gen.cue b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/typeoverrides_go_gen.cue new file mode 100644 index 000000000..3ea2a77d4 --- /dev/null +++ b/cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1/typeoverrides_go_gen.cue @@ -0,0 +1,381 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/grafana/grafana-operator/v5/api/v1beta1 + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v13 "k8s.io/api/apps/v1" + v14 "k8s.io/api/core/v1" + "k8s.io/api/networking/v1" + v12 "github.com/openshift/api/route/v1" +) + +// ObjectMeta contains only a [subset of the fields included in k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta). +#ObjectMeta: { + annotations?: {[string]: string} @go(Annotations,map[string]string) + labels?: {[string]: string} @go(Labels,map[string]string) +} + +#DeploymentV1: { + metadata?: #ObjectMeta @go(ObjectMeta) + spec?: #DeploymentV1Spec @go(Spec) +} + +#DeploymentV1Spec: { + // +optional + replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) + selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) + template?: null | #DeploymentV1PodTemplateSpec @go(Template,*DeploymentV1PodTemplateSpec) @protobuf(3,bytes,opt) + + // +optional + // +patchStrategy=retainKeys + strategy?: null | v13.#DeploymentStrategy @go(Strategy,*v13.DeploymentStrategy) @protobuf(4,bytes,opt) + + // +optional + minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(5,varint,opt) + + // +optional + revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) + + // +optional + paused?: bool @go(Paused) @protobuf(7,varint,opt) + progressDeadlineSeconds?: null | int32 @go(ProgressDeadlineSeconds,*int32) @protobuf(9,varint,opt) +} + +#DeploymentV1PodTemplateSpec: { + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metadata?: #ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) + + // Specification of the desired behavior of the pod. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + // +optional + spec?: null | #DeploymentV1PodSpec @go(Spec,*DeploymentV1PodSpec) @protobuf(2,bytes,opt) +} + +#DeploymentV1PodSpec: { + // +optional + // +patchMergeKey=name + // +patchStrategy=merge,retainKeys + volumes?: [...v14.#Volume] @go(Volumes,[]v14.Volume) @protobuf(1,bytes,rep) + + // +patchMergeKey=name + // +patchStrategy=merge + // +optional + initContainers?: [...v14.#Container] @go(InitContainers,[]v14.Container) @protobuf(20,bytes,rep) + + // +patchMergeKey=name + // +patchStrategy=merge + // +optional + containers?: [...v14.#Container] @go(Containers,[]v14.Container) @protobuf(2,bytes,rep) + + // +optional + // +patchMergeKey=name + // +patchStrategy=merge + ephemeralContainers?: [...v14.#EphemeralContainer] @go(EphemeralContainers,[]v14.EphemeralContainer) @protobuf(34,bytes,rep) + + // +optional + restartPolicy?: v14.#RestartPolicy @go(RestartPolicy) @protobuf(3,bytes,opt,casttype=RestartPolicy) + + // +optional + terminationGracePeriodSeconds?: null | int64 @go(TerminationGracePeriodSeconds,*int64) @protobuf(4,varint,opt) + + // +optional + activeDeadlineSeconds?: null | int64 @go(ActiveDeadlineSeconds,*int64) @protobuf(5,varint,opt) + + // +optional + dnsPolicy?: v14.#DNSPolicy @go(DNSPolicy) @protobuf(6,bytes,opt,casttype=DNSPolicy) + + // NodeSelector is a selector which must be true for the pod to fit on a node. + // Selector which must match a node's labels for the pod to be scheduled on that node. + // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + // +optional + // +mapType=atomic + nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) @protobuf(7,bytes,rep) + + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + // +optional + serviceAccountName?: string @go(ServiceAccountName) @protobuf(8,bytes,opt) + + // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. + // Deprecated: Use serviceAccountName instead. + // +k8s:conversion-gen=false + // +optional + serviceAccount?: string @go(DeprecatedServiceAccount) @protobuf(9,bytes,opt) + + // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + // +optional + automountServiceAccountToken?: null | bool @go(AutomountServiceAccountToken,*bool) @protobuf(21,varint,opt) + + // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + // the scheduler simply schedules this pod onto that node, assuming that it fits resource + // requirements. + // +optional + nodeName?: string @go(NodeName) @protobuf(10,bytes,opt) + + // Host networking requested for this pod. Use the host's network namespace. + // If this option is set, the ports that will be used must be specified. + // Default to false. + // +k8s:conversion-gen=false + // +optional + hostNetwork?: bool @go(HostNetwork) @protobuf(11,varint,opt) + + // Use the host's pid namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + // +optional + hostPID?: bool @go(HostPID) @protobuf(12,varint,opt) + + // Use the host's ipc namespace. + // Optional: Default to false. + // +k8s:conversion-gen=false + // +optional + hostIPC?: bool @go(HostIPC) @protobuf(13,varint,opt) + + // Share a single process namespace between all of the containers in a pod. + // When this is set containers will be able to view and signal processes from other containers + // in the same pod, and the first process in each container will not be assigned PID 1. + // HostPID and ShareProcessNamespace cannot both be set. + // Optional: Default to false. + // +k8s:conversion-gen=false + // +optional + shareProcessNamespace?: null | bool @go(ShareProcessNamespace,*bool) @protobuf(27,varint,opt) + + // SecurityContext holds pod-level security attributes and common container settings. + // Optional: Defaults to empty. See type description for default values of each field. + // +optional + securityContext?: null | v14.#PodSecurityContext @go(SecurityContext,*v14.PodSecurityContext) @protobuf(14,bytes,opt) + + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // If specified, these secrets will be passed to individual puller implementations for them to use. + // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + // +optional + // +patchMergeKey=name + // +patchStrategy=merge + imagePullSecrets?: [...v14.#LocalObjectReference] @go(ImagePullSecrets,[]v14.LocalObjectReference) @protobuf(15,bytes,rep) + + // Specifies the hostname of the Pod + // If not specified, the pod's hostname will be set to a system-defined value. + // +optional + hostname?: string @go(Hostname) @protobuf(16,bytes,opt) + + // If specified, the fully qualified Pod hostname will be "...svc.". + // If not specified, the pod will not have a domainname at all. + // +optional + subdomain?: string @go(Subdomain) @protobuf(17,bytes,opt) + + // If specified, the pod's scheduling constraints + // +optional + affinity?: null | v14.#Affinity @go(Affinity,*v14.Affinity) @protobuf(18,bytes,opt) + + // If specified, the pod will be dispatched by specified scheduler. + // If not specified, the pod will be dispatched by default scheduler. + // +optional + schedulerName?: string @go(SchedulerName) @protobuf(19,bytes,opt) + + // If specified, the pod's tolerations. + // +optional + tolerations?: [...v14.#Toleration] @go(Tolerations,[]v14.Toleration) @protobuf(22,bytes,opt) + + // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts + // file if specified. This is only valid for non-hostNetwork pods. + // +optional + // +patchMergeKey=ip + // +patchStrategy=merge + hostAliases?: [...v14.#HostAlias] @go(HostAliases,[]v14.HostAlias) @protobuf(23,bytes,rep) + + // If specified, indicates the pod's priority. "system-node-critical" and + // "system-cluster-critical" are two special keywords which indicate the + // highest priorities with the former being the highest priority. Any other + // name must be defined by creating a PriorityClass object with that name. + // If not specified, the pod priority will be default or zero if there is no + // default. + // +optional + priorityClassName?: string @go(PriorityClassName) @protobuf(24,bytes,opt) + + // The priority value. Various system components use this field to find the + // priority of the pod. When Priority Admission Controller is enabled, it + // prevents users from setting this field. The admission controller populates + // this field from PriorityClassName. + // The higher the value, the higher the priority. + // +optional + priority?: null | int32 @go(Priority,*int32) @protobuf(25,bytes,opt) + + // Specifies the DNS parameters of a pod. + // Parameters specified here will be merged to the generated DNS + // configuration based on DNSPolicy. + // +optional + dnsConfig?: null | v14.#PodDNSConfig @go(DNSConfig,*v14.PodDNSConfig) @protobuf(26,bytes,opt) + + // If specified, all readiness gates will be evaluated for pod readiness. + // A pod is ready when all its containers are ready AND + // all conditions specified in the readiness gates have status equal to "True" + // More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates + // +optional + readinessGates?: [...v14.#PodReadinessGate] @go(ReadinessGates,[]v14.PodReadinessGate) @protobuf(28,bytes,opt) + + // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used + // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. + // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an + // empty definition that uses the default runtime handler. + // More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class + // +optional + runtimeClassName?: null | string @go(RuntimeClassName,*string) @protobuf(29,bytes,opt) + + // EnableServiceLinks indicates whether information about services should be injected into pod's + // environment variables, matching the syntax of Docker links. + // Optional: Defaults to true. + // +optional + enableServiceLinks?: null | bool @go(EnableServiceLinks,*bool) @protobuf(30,varint,opt) + + // PreemptionPolicy is the Policy for preempting pods with lower priority. + // One of Never, PreemptLowerPriority. + // Defaults to PreemptLowerPriority if unset. + // +optional + preemptionPolicy?: null | v14.#PreemptionPolicy @go(PreemptionPolicy,*v14.PreemptionPolicy) @protobuf(31,bytes,opt) + + // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. + // This field will be autopopulated at admission time by the RuntimeClass admission controller. If + // the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. + // The RuntimeClass admission controller will reject Pod create requests which have the overhead already + // set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value + // defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. + // More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md + // +optional + overhead?: v14.#ResourceList @go(Overhead) @protobuf(32,bytes,opt) + + // TopologySpreadConstraints describes how a group of pods ought to spread across topology + // domains. Scheduler will schedule pods in a way which abides by the constraints. + // All topologySpreadConstraints are ANDed. + // +optional + // +patchMergeKey=topologyKey + // +patchStrategy=merge + // +listType=map + // +listMapKey=topologyKey + // +listMapKey=whenUnsatisfiable + topologySpreadConstraints?: [...v14.#TopologySpreadConstraint] @go(TopologySpreadConstraints,[]v14.TopologySpreadConstraint) @protobuf(33,bytes,opt) + + // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). + // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). + // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. + // If a pod does not have FQDN, this has no effect. + // Default to false. + // +optional + setHostnameAsFQDN?: null | bool @go(SetHostnameAsFQDN,*bool) @protobuf(35,varint,opt) + + // Specifies the OS of the containers in the pod. + // Some pod and container fields are restricted if this is set. + // + // If the OS field is set to linux, the following fields must be unset: + // -securityContext.windowsOptions + // + // If the OS field is set to windows, following fields must be unset: + // - spec.hostPID + // - spec.hostIPC + // - spec.hostUsers + // - spec.securityContext.seLinuxOptions + // - spec.securityContext.seccompProfile + // - spec.securityContext.fsGroup + // - spec.securityContext.fsGroupChangePolicy + // - spec.securityContext.sysctls + // - spec.shareProcessNamespace + // - spec.securityContext.runAsUser + // - spec.securityContext.runAsGroup + // - spec.securityContext.supplementalGroups + // - spec.containers[*].securityContext.seLinuxOptions + // - spec.containers[*].securityContext.seccompProfile + // - spec.containers[*].securityContext.capabilities + // - spec.containers[*].securityContext.readOnlyRootFilesystem + // - spec.containers[*].securityContext.privileged + // - spec.containers[*].securityContext.allowPrivilegeEscalation + // - spec.containers[*].securityContext.procMount + // - spec.containers[*].securityContext.runAsUser + // - spec.containers[*].securityContext.runAsGroup + // +optional + os?: null | v14.#PodOS @go(OS,*v14.PodOS) @protobuf(36,bytes,opt) + + // Use the host's user namespace. + // Optional: Default to true. + // If set to true or not present, the pod will be run in the host user namespace, useful + // for when the pod needs a feature only available to the host user namespace, such as + // loading a kernel module with CAP_SYS_MODULE. + // When set to false, a new userns is created for the pod. Setting false is useful for + // mitigating container breakout vulnerabilities even allowing users to run their + // containers as root without actually having root privileges on the host. + // This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + // +k8s:conversion-gen=false + // +optional + hostUsers?: null | bool @go(HostUsers,*bool) @protobuf(37,bytes,opt) +} + +#IngressNetworkingV1: { + metadata?: #ObjectMeta @go(ObjectMeta) + spec?: null | v1.#IngressSpec @go(Spec,*v1.IngressSpec) +} + +#RouteOpenshiftV1: { + metadata?: #ObjectMeta @go(ObjectMeta) + spec?: null | #RouteOpenShiftV1Spec @go(Spec,*RouteOpenShiftV1Spec) +} + +#RouteOpenShiftV1Spec: { + host?: string @go(Host) @protobuf(1,bytes,opt) + path?: string @go(Path) @protobuf(2,bytes,opt) + to?: null | v12.#RouteTargetReference @go(To,*v12.RouteTargetReference) @protobuf(3,bytes,opt) + alternateBackends?: [...v12.#RouteTargetReference] @go(AlternateBackends,[]v12.RouteTargetReference) @protobuf(4,bytes,rep) + port?: null | v12.#RoutePort @go(Port,*v12.RoutePort) @protobuf(5,bytes,opt) + tls?: null | v12.#TLSConfig @go(TLS,*v12.TLSConfig) @protobuf(6,bytes,opt) + wildcardPolicy?: v12.#WildcardPolicyType @go(WildcardPolicy) @protobuf(7,bytes,opt) +} + +#ServiceV1: { + metadata?: #ObjectMeta @go(ObjectMeta) + spec?: null | v14.#ServiceSpec @go(Spec,*v14.ServiceSpec) +} + +#PersistentVolumeClaimV1: { + metadata?: #ObjectMeta @go(ObjectMeta) + spec?: null | #PersistentVolumeClaimV1Spec @go(Spec,*PersistentVolumeClaimV1Spec) +} + +#PersistentVolumeClaimV1Spec: { + // +optional + accessModes?: [...v14.#PersistentVolumeAccessMode] @go(AccessModes,[]v14.PersistentVolumeAccessMode) @protobuf(1,bytes,rep,casttype=PersistentVolumeAccessMode) + + // +optional + selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes,opt) + + // +optional + resources?: null | v14.#ResourceRequirements @go(Resources,*v14.ResourceRequirements) @protobuf(2,bytes,opt) + + // VolumeName is the binding reference to the PersistentVolume backing this claim. + // +optional + volumeName?: string @go(VolumeName) @protobuf(3,bytes,opt) + + // +optional + storageClassName?: null | string @go(StorageClassName,*string) @protobuf(5,bytes,opt) + + // +optional + volumeMode?: null | v14.#PersistentVolumeMode @go(VolumeMode,*v14.PersistentVolumeMode) @protobuf(6,bytes,opt,casttype=PersistentVolumeMode) + + // +optional + dataSource?: null | v14.#TypedLocalObjectReference @go(DataSource,*v14.TypedLocalObjectReference) @protobuf(7,bytes,opt) + + // +optional + dataSourceRef?: null | v14.#TypedLocalObjectReference @go(DataSourceRef,*v14.TypedLocalObjectReference) @protobuf(8,bytes,opt) +} + +#ServiceAccountV1: { + metadata?: #ObjectMeta @go(ObjectMeta) + secrets?: [...v14.#ObjectReference] @go(Secrets,[]v14.ObjectReference) @protobuf(2,bytes,rep) + + // +optional + imagePullSecrets?: [...v14.#LocalObjectReference] @go(ImagePullSecrets,[]v14.LocalObjectReference) @protobuf(3,bytes,rep) + + // +optional + automountServiceAccountToken?: null | bool @go(AutomountServiceAccountToken,*bool) @protobuf(4,varint,opt) +} diff --git a/cue.mod/gen/github.com/openshift/api/route/v1/BUILD.bazel b/cue.mod/gen/github.com/openshift/api/route/v1/BUILD.bazel new file mode 100644 index 000000000..960667805 --- /dev/null +++ b/cue.mod/gen/github.com/openshift/api/route/v1/BUILD.bazel @@ -0,0 +1,16 @@ +load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_library") + +cue_library( + name = "cue_v1_library", + srcs = [ + "doc_go_gen.cue", + "types_go_gen.cue", + ], + importpath = "github.com/openshift/api/route/v1", + visibility = ["//visibility:public"], + deps = [ + "//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1:cue_v1_library", + "//cue.mod/gen/k8s.io/apimachinery/pkg/util/intstr:cue_intstr_library", + ], +) diff --git a/cue.mod/gen/github.com/openshift/api/route/v1/doc_go_gen.cue b/cue.mod/gen/github.com/openshift/api/route/v1/doc_go_gen.cue new file mode 100644 index 000000000..12df0bb08 --- /dev/null +++ b/cue.mod/gen/github.com/openshift/api/route/v1/doc_go_gen.cue @@ -0,0 +1,7 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/openshift/api/route/v1 + +// +groupName=route.openshift.io +// Package v1 is the v1 version of the API. +package v1 diff --git a/cue.mod/gen/github.com/openshift/api/route/v1/types_go_gen.cue b/cue.mod/gen/github.com/openshift/api/route/v1/types_go_gen.cue new file mode 100644 index 000000000..10745796e --- /dev/null +++ b/cue.mod/gen/github.com/openshift/api/route/v1/types_go_gen.cue @@ -0,0 +1,560 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go github.com/openshift/api/route/v1 + +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/util/intstr" + corev1 "k8s.io/api/core/v1" +) + +// A route allows developers to expose services through an HTTP(S) aware load balancing and proxy +// layer via a public DNS entry. The route may further specify TLS options and a certificate, or +// specify a public CNAME that the router should also accept for HTTP and HTTPS traffic. An +// administrator typically configures their router to be visible outside the cluster firewall, and +// may also add additional security, caching, or traffic controls on the service content. Routers +// usually talk directly to the service endpoints. +// +// Once a route is created, the `host` field may not be changed. Generally, routers use the oldest +// route with a given host when resolving conflicts. +// +// Routers are subject to additional customization and may support additional controls via the +// annotations field. +// +// Because administrators may configure multiple routers, the route status field is used to +// return information to clients about the names and states of the route under each router. +// If a client chooses a duplicate name, for instance, the route status conditions are used +// to indicate the route cannot be chosen. +// +// To enable HTTP/2 ALPN on a route it requires a custom +// (non-wildcard) certificate. This prevents connection coalescing by +// clients, notably web browsers. We do not support HTTP/2 ALPN on +// routes that use the default certificate because of the risk of +// connection re-use/coalescing. Routes that do not have their own +// custom certificate will not be HTTP/2 ALPN-enabled on either the +// frontend or the backend. +// +// Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer). +// +openshift:compatibility-gen:level=1 +#Route: { + metav1.#TypeMeta + + // metadata is the standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) + + // spec is the desired state of the route + // +kubebuilder:validation:XValidation:rule="!has(self.tls) || self.tls.termination != 'passthrough' || !has(self.httpHeaders)",message="header actions are not permitted when tls termination is passthrough." + spec: #RouteSpec @go(Spec) @protobuf(2,bytes,opt) + + // status is the current state of the route + // +optional + status?: #RouteStatus @go(Status) @protobuf(3,bytes,opt) +} + +// RouteList is a collection of Routes. +// +// Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer). +// +openshift:compatibility-gen:level=1 +#RouteList: { + metav1.#TypeMeta + + // metadata is the standard list's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) + + // items is a list of routes + items: [...#Route] @go(Items,[]Route) @protobuf(2,bytes,rep) +} + +// RouteSpec describes the hostname or path the route exposes, any security information, +// and one to four backends (services) the route points to. Requests are distributed +// among the backends depending on the weights assigned to each backend. When using +// roundrobin scheduling the portion of requests that go to each backend is the backend +// weight divided by the sum of all of the backend weights. When the backend has more than +// one endpoint the requests that end up on the backend are roundrobin distributed among +// the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests +// to the backend. If all weights are zero the route will be considered to have no backends +// and return a standard 503 response. +// +// The `tls` field is optional and allows specific certificates or behavior for the +// route. Routers typically configure a default certificate on a wildcard domain to +// terminate routes without explicit certificates, but custom hostnames usually must +// choose passthrough (send traffic directly to the backend via the TLS Server-Name- +// Indication field) or provide a certificate. +#RouteSpec: { + // host is an alias/DNS that points to the service. Optional. + // If not specified a route name will typically be automatically + // chosen. + // Must follow DNS952 subdomain conventions. + // + // +optional + // +kubebuilder:validation:MaxLength=253 + // +kubebuilder:validation:Pattern=`^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$` + host?: string @go(Host) @protobuf(1,bytes,opt) + + // subdomain is a DNS subdomain that is requested within the ingress controller's + // domain (as a subdomain). If host is set this field is ignored. An ingress + // controller may choose to ignore this suggested name, in which case the controller + // will report the assigned name in the status.ingress array or refuse to admit the + // route. If this value is set and the server does not support this field host will + // be populated automatically. Otherwise host is left empty. The field may have + // multiple parts separated by a dot, but not all ingress controllers may honor + // the request. This field may not be changed after creation except by a user with + // the update routes/custom-host permission. + // + // Example: subdomain `frontend` automatically receives the router subdomain + // `apps.mycluster.com` to have a full hostname `frontend.apps.mycluster.com`. + // + // +optional + // +kubebuilder:validation:MaxLength=253 + // +kubebuilder:validation:Pattern=`^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$` + subdomain?: string @go(Subdomain) @protobuf(8,bytes,opt) + + // path that the router watches for, to route traffic for to the service. Optional + // + // +optional + // +kubebuilder:validation:Pattern=`^/` + path?: string @go(Path) @protobuf(2,bytes,opt) + + // to is an object the route should use as the primary backend. Only the Service kind + // is allowed, and it will be defaulted to Service. If the weight field (0-256 default 100) + // is set to zero, no traffic will be sent to this backend. + to: #RouteTargetReference @go(To) @protobuf(3,bytes,opt) + + // alternateBackends allows up to 3 additional backends to be assigned to the route. + // Only the Service kind is allowed, and it will be defaulted to Service. + // Use the weight field in RouteTargetReference object to specify relative preference. + // + // +kubebuilder:validation:MaxItems=3 + alternateBackends?: [...#RouteTargetReference] @go(AlternateBackends,[]RouteTargetReference) @protobuf(4,bytes,rep) + + // If specified, the port to be used by the router. Most routers will use all + // endpoints exposed by the service by default - set this value to instruct routers + // which port to use. + port?: null | #RoutePort @go(Port,*RoutePort) @protobuf(5,bytes,opt) + + // The tls field provides the ability to configure certificates and termination for the route. + tls?: null | #TLSConfig @go(TLS,*TLSConfig) @protobuf(6,bytes,opt) + + // Wildcard policy if any for the route. + // Currently only 'Subdomain' or 'None' is allowed. + // + // +kubebuilder:validation:Enum=None;Subdomain;"" + // +kubebuilder:default=None + wildcardPolicy?: #WildcardPolicyType @go(WildcardPolicy) @protobuf(7,bytes,opt) + + // httpHeaders defines policy for HTTP headers. + // + // +optional + httpHeaders?: null | #RouteHTTPHeaders @go(HTTPHeaders,*RouteHTTPHeaders) @protobuf(9,bytes,opt) +} + +// RouteHTTPHeaders defines policy for HTTP headers. +#RouteHTTPHeaders: { + // actions specifies options for modifying headers and their values. + // Note that this option only applies to cleartext HTTP connections + // and to secure HTTP connections for which the ingress controller + // terminates encryption (that is, edge-terminated or reencrypt + // connections). Headers cannot be modified for TLS passthrough + // connections. + // Setting the HSTS (`Strict-Transport-Security`) header is not supported via actions. + // `Strict-Transport-Security` may only be configured using the "haproxy.router.openshift.io/hsts_header" + // route annotation, and only in accordance with the policy specified in Ingress.Spec.RequiredHSTSPolicies. + // In case of HTTP request headers, the actions specified in spec.httpHeaders.actions on the Route will be executed after + // the actions specified in the IngressController's spec.httpHeaders.actions field. + // In case of HTTP response headers, the actions specified in spec.httpHeaders.actions on the IngressController will be + // executed after the actions specified in the Route's spec.httpHeaders.actions field. + // The headers set via this API will not appear in access logs. + // Any actions defined here are applied after any actions related to the following other fields: + // cache-control, spec.clientTLS, + // spec.httpHeaders.forwardedHeaderPolicy, spec.httpHeaders.uniqueId, + // and spec.httpHeaders.headerNameCaseAdjustments. + // The following header names are reserved and may not be modified via this API: + // Strict-Transport-Security, Proxy, Cookie, Set-Cookie. + // Note that the total size of all net added headers *after* interpolating dynamic values + // must not exceed the value of spec.tuningOptions.headerBufferMaxRewriteBytes on the + // IngressController. Please refer to the documentation + // for that API field for more details. + // +optional + actions?: #RouteHTTPHeaderActions @go(Actions) @protobuf(1,bytes,opt) +} + +// RouteHTTPHeaderActions defines configuration for actions on HTTP request and response headers. +#RouteHTTPHeaderActions: { + // response is a list of HTTP response headers to modify. + // Currently, actions may define to either `Set` or `Delete` headers values. + // Actions defined here will modify the response headers of all requests made through a route. + // These actions are applied to a specific Route defined within a cluster i.e. connections made through a route. + // Route actions will be executed before IngressController actions for response headers. + // Actions are applied in sequence as defined in this list. + // A maximum of 20 response header actions may be configured. + // You can use this field to specify HTTP response headers that should be set or deleted + // when forwarding responses from your application to the client. + // Sample fetchers allowed are "res.hdr" and "ssl_c_der". + // Converters allowed are "lower" and "base64". + // Example header values: "%[res.hdr(X-target),lower]", "%{+Q}[ssl_c_der,base64]". + // Note: This field cannot be used if your route uses TLS passthrough. + // + --- + // + Note: Any change to regex mentioned below must be reflected in the CRD validation of route in https://github.com/openshift/library-go/blob/master/pkg/route/validation/validation.go and vice-versa. + // +listType=map + // +listMapKey=name + // +optional + // +kubebuilder:validation:MaxItems=20 + // +kubebuilder:validation:XValidation:rule=`self.all(key, key.action.type == "Delete" || (has(key.action.set) && key.action.set.value.matches('^(?:%(?:%|(?:\\{[-+]?[QXE](?:,[-+]?[QXE])*\\})?\\[(?:res\\.hdr\\([0-9A-Za-z-]+\\)|ssl_c_der)(?:,(?:lower|base64))*\\])|[^%[:cntrl:]])+$')))`,message="Either the header value provided is not in correct format or the sample fetcher/converter specified is not allowed. The dynamic header value will be interpreted as an HAProxy format string as defined in http://cbonte.github.io/haproxy-dconv/2.6/configuration.html#8.2.6 and may use HAProxy's %[] syntax and otherwise must be a valid HTTP header value as defined in https://datatracker.ietf.org/doc/html/rfc7230#section-3.2. Sample fetchers allowed are res.hdr, ssl_c_der. Converters allowed are lower, base64." + response?: [...#RouteHTTPHeader] @go(Response,[]RouteHTTPHeader) @protobuf(1,bytes,rep) + + // request is a list of HTTP request headers to modify. + // Currently, actions may define to either `Set` or `Delete` headers values. + // Actions defined here will modify the request headers of all requests made through a route. + // These actions are applied to a specific Route defined within a cluster i.e. connections made through a route. + // Currently, actions may define to either `Set` or `Delete` headers values. + // Route actions will be executed after IngressController actions for request headers. + // Actions are applied in sequence as defined in this list. + // A maximum of 20 request header actions may be configured. + // You can use this field to specify HTTP request headers that should be set or deleted + // when forwarding connections from the client to your application. + // Sample fetchers allowed are "req.hdr" and "ssl_c_der". + // Converters allowed are "lower" and "base64". + // Example header values: "%[req.hdr(X-target),lower]", "%{+Q}[ssl_c_der,base64]". + // Any request header configuration applied directly via a Route resource using this API + // will override header configuration for a header of the same name applied via + // spec.httpHeaders.actions on the IngressController or route annotation. + // Note: This field cannot be used if your route uses TLS passthrough. + // + --- + // + Note: Any change to regex mentioned below must be reflected in the CRD validation of route in https://github.com/openshift/library-go/blob/master/pkg/route/validation/validation.go and vice-versa. + // +listType=map + // +listMapKey=name + // +optional + // +kubebuilder:validation:MaxItems=20 + // +kubebuilder:validation:XValidation:rule=`self.all(key, key.action.type == "Delete" || (has(key.action.set) && key.action.set.value.matches('^(?:%(?:%|(?:\\{[-+]?[QXE](?:,[-+]?[QXE])*\\})?\\[(?:req\\.hdr\\([0-9A-Za-z-]+\\)|ssl_c_der)(?:,(?:lower|base64))*\\])|[^%[:cntrl:]])+$')))`,message="Either the header value provided is not in correct format or the sample fetcher/converter specified is not allowed. The dynamic header value will be interpreted as an HAProxy format string as defined in http://cbonte.github.io/haproxy-dconv/2.6/configuration.html#8.2.6 and may use HAProxy's %[] syntax and otherwise must be a valid HTTP header value as defined in https://datatracker.ietf.org/doc/html/rfc7230#section-3.2. Sample fetchers allowed are req.hdr, ssl_c_der. Converters allowed are lower, base64." + request?: [...#RouteHTTPHeader] @go(Request,[]RouteHTTPHeader) @protobuf(2,bytes,rep) +} + +// RouteHTTPHeader specifies configuration for setting or deleting an HTTP header. +#RouteHTTPHeader: { + // name specifies the name of a header on which to perform an action. Its value must be a valid HTTP header + // name as defined in RFC 2616 section 4.2. + // The name must consist only of alphanumeric and the following special characters, "-!#$%&'*+.^_`". + // The following header names are reserved and may not be modified via this API: + // Strict-Transport-Security, Proxy, Cookie, Set-Cookie. + // It must be no more than 255 characters in length. + // Header name must be unique. + // +kubebuilder:validation:Required + // +kubebuilder:validation:MinLength=1 + // +kubebuilder:validation:MaxLength=255 + // +kubebuilder:validation:Pattern="^[-!#$%&'*+.0-9A-Z^_`a-z|~]+$" + // +kubebuilder:validation:XValidation:rule="self.lowerAscii() != 'strict-transport-security'",message="strict-transport-security header may not be modified via header actions" + // +kubebuilder:validation:XValidation:rule="self.lowerAscii() != 'proxy'",message="proxy header may not be modified via header actions" + // +kubebuilder:validation:XValidation:rule="self.lowerAscii() != 'cookie'",message="cookie header may not be modified via header actions" + // +kubebuilder:validation:XValidation:rule="self.lowerAscii() != 'set-cookie'",message="set-cookie header may not be modified via header actions" + name: string @go(Name) @protobuf(1,bytes,opt) + + // action specifies actions to perform on headers, such as setting or deleting headers. + // +kubebuilder:validation:Required + action: #RouteHTTPHeaderActionUnion @go(Action) @protobuf(2,bytes,opt) +} + +// RouteHTTPHeaderActionUnion specifies an action to take on an HTTP header. +// +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'Set' ? has(self.set) : !has(self.set)",message="set is required when type is Set, and forbidden otherwise" +// +union +#RouteHTTPHeaderActionUnion: { + // type defines the type of the action to be applied on the header. + // Possible values are Set or Delete. + // Set allows you to set HTTP request and response headers. + // Delete allows you to delete HTTP request and response headers. + // +unionDiscriminator + // +kubebuilder:validation:Enum:=Set;Delete + // +kubebuilder:validation:Required + type: #RouteHTTPHeaderActionType @go(Type) @protobuf(1,bytes,opt,casttype=RouteHTTPHeaderActionType) + + // set defines the HTTP header that should be set: added if it doesn't exist or replaced if it does. + // This field is required when type is Set and forbidden otherwise. + // +optional + // +unionMember + set?: null | #RouteSetHTTPHeader @go(Set,*RouteSetHTTPHeader) @protobuf(2,bytes,opt) +} + +// RouteSetHTTPHeader specifies what value needs to be set on an HTTP header. +#RouteSetHTTPHeader: { + // value specifies a header value. + // Dynamic values can be added. The value will be interpreted as an HAProxy format string as defined in + // http://cbonte.github.io/haproxy-dconv/2.6/configuration.html#8.2.6 and may use HAProxy's %[] syntax and + // otherwise must be a valid HTTP header value as defined in https://datatracker.ietf.org/doc/html/rfc7230#section-3.2. + // The value of this field must be no more than 16384 characters in length. + // Note that the total size of all net added headers *after* interpolating dynamic values + // must not exceed the value of spec.tuningOptions.headerBufferMaxRewriteBytes on the + // IngressController. + // + --- + // + Note: This limit was selected as most common web servers have a limit of 16384 characters or some lower limit. + // + See . + // +kubebuilder:validation:Required + // +kubebuilder:validation:MinLength=1 + // +kubebuilder:validation:MaxLength=16384 + value: string @go(Value) @protobuf(1,bytes,opt) +} + +// RouteHTTPHeaderActionType defines actions that can be performed on HTTP headers. +#RouteHTTPHeaderActionType: string // #enumRouteHTTPHeaderActionType + +#enumRouteHTTPHeaderActionType: + #Set | + #Delete + +// Set specifies that an HTTP header should be set. +#Set: #RouteHTTPHeaderActionType & "Set" + +// Delete specifies that an HTTP header should be deleted. +#Delete: #RouteHTTPHeaderActionType & "Delete" + +// RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' +// kind is allowed. Use 'weight' field to emphasize one over others. +#RouteTargetReference: { + // The kind of target that the route is referring to. Currently, only 'Service' is allowed + // + // +kubebuilder:validation:Enum=Service;"" + // +kubebuilder:default=Service + kind: string @go(Kind) @protobuf(1,bytes,opt) + + // name of the service/target that is being referred to. e.g. name of the service + // + // +kubebuilder:validation:MinLength=1 + name: string @go(Name) @protobuf(2,bytes,opt) + + // weight as an integer between 0 and 256, default 100, that specifies the target's relative weight + // against other target reference objects. 0 suppresses requests to this backend. + // + // +optional + // +kubebuilder:validation:Minimum=0 + // +kubebuilder:validation:Maximum=256 + // +kubebuilder:default=100 + weight?: null | int32 @go(Weight,*int32) @protobuf(3,varint,opt) +} + +// RoutePort defines a port mapping from a router to an endpoint in the service endpoints. +#RoutePort: { + // The target port on pods selected by the service this route points to. + // If this is a string, it will be looked up as a named port in the target + // endpoints port list. Required + targetPort: intstr.#IntOrString @go(TargetPort) @protobuf(1,bytes,opt) +} + +// RouteStatus provides relevant info about the status of a route, including which routers +// acknowledge it. +#RouteStatus: { + // ingress describes the places where the route may be exposed. The list of + // ingress points may contain duplicate Host or RouterName values. Routes + // are considered live once they are `Ready` + ingress?: [...#RouteIngress] @go(Ingress,[]RouteIngress) @protobuf(1,bytes,rep) +} + +// RouteIngress holds information about the places where a route is exposed. +#RouteIngress: { + // Host is the host string under which the route is exposed; this value is required + host?: string @go(Host) @protobuf(1,bytes,opt) + + // Name is a name chosen by the router to identify itself; this value is required + routerName?: string @go(RouterName) @protobuf(2,bytes,opt) + + // Conditions is the state of the route, may be empty. + conditions?: [...#RouteIngressCondition] @go(Conditions,[]RouteIngressCondition) @protobuf(3,bytes,rep) + + // Wildcard policy is the wildcard policy that was allowed where this route is exposed. + wildcardPolicy?: #WildcardPolicyType @go(WildcardPolicy) @protobuf(4,bytes,opt) + + // CanonicalHostname is the external host name for the router that can be used as a CNAME + // for the host requested for this route. This value is optional and may not be set in all cases. + routerCanonicalHostname?: string @go(RouterCanonicalHostname) @protobuf(5,bytes,opt) +} + +// RouteIngressConditionType is a valid value for RouteCondition +#RouteIngressConditionType: string // #enumRouteIngressConditionType + +#enumRouteIngressConditionType: + #RouteAdmitted | + #RouteUnservableInFutureVersions + +// RouteAdmitted means the route is able to service requests for the provided Host +#RouteAdmitted: #RouteIngressConditionType & "Admitted" + +// RouteUnservableInFutureVersions indicates that the route is using an unsupported +// configuration that may be incompatible with a future version of OpenShift. +#RouteUnservableInFutureVersions: #RouteIngressConditionType & "UnservableInFutureVersions" + +// RouteIngressCondition contains details for the current condition of this route on a particular +// router. +#RouteIngressCondition: { + // Type is the type of the condition. + // Currently only Admitted or UnservableInFutureVersions. + type: #RouteIngressConditionType @go(Type) @protobuf(1,bytes,opt,casttype=RouteIngressConditionType) + + // Status is the status of the condition. + // Can be True, False, Unknown. + status: corev1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) + + // (brief) reason for the condition's last transition, and is usually a machine and human + // readable constant + reason?: string @go(Reason) @protobuf(3,bytes,opt) + + // Human readable message indicating details about last transition. + message?: string @go(Message) @protobuf(4,bytes,opt) + + // RFC 3339 date and time when this condition last transitioned + lastTransitionTime?: null | metav1.#Time @go(LastTransitionTime,*metav1.Time) @protobuf(5,bytes,opt) +} + +// RouterShard has information of a routing shard and is used to +// generate host names and routing table entries when a routing shard is +// allocated for a specific route. +// Caveat: This is WIP and will likely undergo modifications when sharding +// support is added. +#RouterShard: { + // shardName uniquely identifies a router shard in the "set" of + // routers used for routing traffic to the services. + shardName: string @go(ShardName) @protobuf(1,bytes,opt) + + // dnsSuffix for the shard ala: shard-1.v3.openshift.com + dnsSuffix: string @go(DNSSuffix) @protobuf(2,bytes,opt) +} + +// TLSConfig defines config used to secure a route and provide termination +// +// +kubebuilder:validation:XValidation:rule="has(self.termination) && has(self.insecureEdgeTerminationPolicy) ? !((self.termination=='passthrough') && (self.insecureEdgeTerminationPolicy=='Allow')) : true", message="cannot have both spec.tls.termination: passthrough and spec.tls.insecureEdgeTerminationPolicy: Allow" +// +openshift:validation:FeatureGateAwareXValidation:featureGate=ExternalRouteCertificate,rule="!(has(self.certificate) && has(self.externalCertificate))", message="cannot have both spec.tls.certificate and spec.tls.externalCertificate" +#TLSConfig: { + // termination indicates termination type. + // + // * edge - TLS termination is done by the router and http is used to communicate with the backend (default) + // * passthrough - Traffic is sent straight to the destination without the router providing TLS termination + // * reencrypt - TLS termination is done by the router and https is used to communicate with the backend + // + // Note: passthrough termination is incompatible with httpHeader actions + // +kubebuilder:validation:Enum=edge;reencrypt;passthrough + termination: #TLSTerminationType @go(Termination) @protobuf(1,bytes,opt,casttype=TLSTerminationType) + + // certificate provides certificate contents. This should be a single serving certificate, not a certificate + // chain. Do not include a CA certificate. + certificate?: string @go(Certificate) @protobuf(2,bytes,opt) + + // key provides key file contents + key?: string @go(Key) @protobuf(3,bytes,opt) + + // caCertificate provides the cert authority certificate contents + caCertificate?: string @go(CACertificate) @protobuf(4,bytes,opt) + + // destinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt + // termination this file should be provided in order to have routers use it for health checks on the secure connection. + // If this field is not specified, the router may provide its own destination CA and perform hostname validation using + // the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically + // verify. + destinationCACertificate?: string @go(DestinationCACertificate) @protobuf(5,bytes,opt) + + // insecureEdgeTerminationPolicy indicates the desired behavior for insecure connections to a route. While + // each router may make its own decisions on which ports to expose, this is normally port 80. + // + // * Allow - traffic is sent to the server on the insecure port (edge/reencrypt terminations only) (default). + // * None - no traffic is allowed on the insecure port. + // * Redirect - clients are redirected to the secure port. + // + // +kubebuilder:validation:Enum=Allow;None;Redirect;"" + insecureEdgeTerminationPolicy?: #InsecureEdgeTerminationPolicyType @go(InsecureEdgeTerminationPolicy) @protobuf(6,bytes,opt,casttype=InsecureEdgeTerminationPolicyType) + + // externalCertificate provides certificate contents as a secret reference. + // This should be a single serving certificate, not a certificate + // chain. Do not include a CA certificate. The secret referenced should + // be present in the same namespace as that of the Route. + // Forbidden when `certificate` is set. + // + // +openshift:enable:FeatureGate=ExternalRouteCertificate + // +optional + externalCertificate?: null | #LocalObjectReference @go(ExternalCertificate,*LocalObjectReference) @protobuf(7,bytes,opt) +} + +// LocalObjectReference contains enough information to let you locate the +// referenced object inside the same namespace. +// +structType=atomic +#LocalObjectReference: { + // name of the referent. + // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + // +optional + name?: string @go(Name) @protobuf(1,bytes,opt) +} + +// TLSTerminationType dictates where the secure communication will stop +// TODO: Reconsider this type in v2 +#TLSTerminationType: string // #enumTLSTerminationType + +#enumTLSTerminationType: + #TLSTerminationEdge | + #TLSTerminationPassthrough | + #TLSTerminationReencrypt + +// InsecureEdgeTerminationPolicyType dictates the behavior of insecure +// connections to an edge-terminated route. +#InsecureEdgeTerminationPolicyType: string // #enumInsecureEdgeTerminationPolicyType + +#enumInsecureEdgeTerminationPolicyType: + #InsecureEdgeTerminationPolicyNone | + #InsecureEdgeTerminationPolicyAllow | + #InsecureEdgeTerminationPolicyRedirect + +// TLSTerminationEdge terminate encryption at the edge router. +#TLSTerminationEdge: #TLSTerminationType & "edge" + +// TLSTerminationPassthrough terminate encryption at the destination, the destination is responsible for decrypting traffic +#TLSTerminationPassthrough: #TLSTerminationType & "passthrough" + +// TLSTerminationReencrypt terminate encryption at the edge router and re-encrypt it with a new certificate supplied by the destination +#TLSTerminationReencrypt: #TLSTerminationType & "reencrypt" + +// InsecureEdgeTerminationPolicyNone disables insecure connections for an edge-terminated route. +#InsecureEdgeTerminationPolicyNone: #InsecureEdgeTerminationPolicyType & "None" + +// InsecureEdgeTerminationPolicyAllow allows insecure connections for an edge-terminated route. +#InsecureEdgeTerminationPolicyAllow: #InsecureEdgeTerminationPolicyType & "Allow" + +// InsecureEdgeTerminationPolicyRedirect redirects insecure connections for an edge-terminated route. +// As an example, for routers that support HTTP and HTTPS, the +// insecure HTTP connections will be redirected to use HTTPS. +#InsecureEdgeTerminationPolicyRedirect: #InsecureEdgeTerminationPolicyType & "Redirect" + +// WildcardPolicyType indicates the type of wildcard support needed by routes. +#WildcardPolicyType: string // #enumWildcardPolicyType + +#enumWildcardPolicyType: + #WildcardPolicyNone | + #WildcardPolicySubdomain + +// WildcardPolicyNone indicates no wildcard support is needed. +#WildcardPolicyNone: #WildcardPolicyType & "None" + +// WildcardPolicySubdomain indicates the host needs wildcard support for the subdomain. +// Example: For host = "www.acme.test", indicates that the router +// should support requests for *.acme.test +// Note that this will not match acme.test only *.acme.test +#WildcardPolicySubdomain: #WildcardPolicyType & "Subdomain" + +// AllowNonDNSCompliantHostAnnotation indicates that the host name in a route +// configuration is not required to follow strict DNS compliance. +// Unless the annotation is set to true, the route host name must have at least one label. +// Labels must have no more than 63 characters from the set of +// alphanumeric characters, '-' or '.', and must start and end with an alphanumeric +// character. A trailing dot is not allowed. The total host name length must be no more +// than 253 characters. +// +// When the annotation is set to true, the host name must pass a smaller set of +// requirements, i.e.: character set as described above, and total host name +// length must be no more than 253 characters. +// +// NOTE: use of this annotation may validate routes that cannot be admitted and will +// not function. The annotation is provided to allow a custom scenario, e.g. a custom +// ingress controller that relies on the route API, but for some customized purpose +// needs to use routes with invalid hosts. +#AllowNonDNSCompliantHostAnnotation: "route.openshift.io/allow-non-dns-compliant-host" + +// IngressToRouteIngressClassControllerName is the name of the +// controller that translates ingresses into routes. This value is +// intended to be used for the spec.controller field of ingressclasses. +#IngressToRouteIngressClassControllerName: "openshift.io/ingress-to-route" diff --git a/cue.mod/gen/internal/abi/BUILD.bazel b/cue.mod/gen/internal/abi/BUILD.bazel index c75549d64..2d9eb25aa 100644 --- a/cue.mod/gen/internal/abi/BUILD.bazel +++ b/cue.mod/gen/internal/abi/BUILD.bazel @@ -7,6 +7,7 @@ cue_library( "abi_go_gen.cue", "map_go_gen.cue", "stack_go_gen.cue", + "switch_go_gen.cue", "symtab_go_gen.cue", "type_go_gen.cue", ], diff --git a/cue.mod/gen/internal/abi/map_go_gen.cue b/cue.mod/gen/internal/abi/map_go_gen.cue index 1cdd934f5..f940dbffd 100644 --- a/cue.mod/gen/internal/abi/map_go_gen.cue +++ b/cue.mod/gen/internal/abi/map_go_gen.cue @@ -8,3 +8,5 @@ package abi #MapBucketCount: 8 #MapMaxKeyBytes: 128 #MapMaxElemBytes: 128 + +#ZeroValSize: 1024 diff --git a/cue.mod/gen/internal/abi/switch_go_gen.cue b/cue.mod/gen/internal/abi/switch_go_gen.cue new file mode 100644 index 000000000..d27c8b9df --- /dev/null +++ b/cue.mod/gen/internal/abi/switch_go_gen.cue @@ -0,0 +1,52 @@ +// Code generated by cue get go. DO NOT EDIT. + +//cue:generate cue get go internal/abi + +package abi + +#InterfaceSwitch: { + Cache?: null | #InterfaceSwitchCache @go(,*InterfaceSwitchCache) + NCases: int + + // Array of NCases elements. + // Each case must be a non-empty interface type. + Cases: 1 * [null | #InterfaceType] @go(,[1]*InterfaceType) +} + +#InterfaceSwitchCache: { + Mask: uint64 @go(,uintptr) + Entries: 1 * [#InterfaceSwitchCacheEntry] @go(,[1]InterfaceSwitchCacheEntry) +} + +#InterfaceSwitchCacheEntry: { + // type of source value (a *Type) + Typ: uint64 @go(,uintptr) + + // case # to dispatch to + Case: int + + // itab to use for resulting case variable (a *runtime.itab) + Itab: uint64 @go(,uintptr) +} + +_#go122InterfaceSwitchCache: true + +#TypeAssert: { + Cache?: null | #TypeAssertCache @go(,*TypeAssertCache) + Inter?: null | #InterfaceType @go(,*InterfaceType) + CanFail: bool +} + +#TypeAssertCache: { + Mask: uint64 @go(,uintptr) + Entries: 1 * [#TypeAssertCacheEntry] @go(,[1]TypeAssertCacheEntry) +} + +#TypeAssertCacheEntry: { + // type of source value (a *runtime._type) + Typ: uint64 @go(,uintptr) + + // itab to use for result (a *runtime.itab) + // nil if CanFail is set and conversion would fail. + Itab: uint64 @go(,uintptr) +} diff --git a/cue.mod/gen/internal/abi/symtab_go_gen.cue b/cue.mod/gen/internal/abi/symtab_go_gen.cue index 223029971..f18814f1d 100644 --- a/cue.mod/gen/internal/abi/symtab_go_gen.cue +++ b/cue.mod/gen/internal/abi/symtab_go_gen.cue @@ -50,6 +50,7 @@ package abi #FuncID_asmcgocall | #FuncID_asyncPreempt | #FuncID_cgocallback | + #FuncID_corostart | #FuncID_debugCallV2 | #FuncID_gcBgMarkWorker | #FuncID_goexit | @@ -74,6 +75,7 @@ package abi FuncID_asmcgocall: #FuncID_asmcgocall FuncID_asyncPreempt: #FuncID_asyncPreempt FuncID_cgocallback: #FuncID_cgocallback + FuncID_corostart: #FuncID_corostart FuncID_debugCallV2: #FuncID_debugCallV2 FuncID_gcBgMarkWorker: #FuncID_gcBgMarkWorker FuncID_goexit: #FuncID_goexit @@ -98,23 +100,24 @@ package abi #FuncID_asmcgocall: #FuncID & 2 #FuncID_asyncPreempt: #FuncID & 3 #FuncID_cgocallback: #FuncID & 4 -#FuncID_debugCallV2: #FuncID & 5 -#FuncID_gcBgMarkWorker: #FuncID & 6 -#FuncID_goexit: #FuncID & 7 -#FuncID_gogo: #FuncID & 8 -#FuncID_gopanic: #FuncID & 9 -#FuncID_handleAsyncEvent: #FuncID & 10 -#FuncID_mcall: #FuncID & 11 -#FuncID_morestack: #FuncID & 12 -#FuncID_mstart: #FuncID & 13 -#FuncID_panicwrap: #FuncID & 14 -#FuncID_rt0_go: #FuncID & 15 -#FuncID_runfinq: #FuncID & 16 -#FuncID_runtime_main: #FuncID & 17 -#FuncID_sigpanic: #FuncID & 18 -#FuncID_systemstack: #FuncID & 19 -#FuncID_systemstack_switch: #FuncID & 20 -#FuncIDWrapper: #FuncID & 21 +#FuncID_corostart: #FuncID & 5 +#FuncID_debugCallV2: #FuncID & 6 +#FuncID_gcBgMarkWorker: #FuncID & 7 +#FuncID_goexit: #FuncID & 8 +#FuncID_gogo: #FuncID & 9 +#FuncID_gopanic: #FuncID & 10 +#FuncID_handleAsyncEvent: #FuncID & 11 +#FuncID_mcall: #FuncID & 12 +#FuncID_morestack: #FuncID & 13 +#FuncID_mstart: #FuncID & 14 +#FuncID_panicwrap: #FuncID & 15 +#FuncID_rt0_go: #FuncID & 16 +#FuncID_runfinq: #FuncID & 17 +#FuncID_runtime_main: #FuncID & 18 +#FuncID_sigpanic: #FuncID & 19 +#FuncID_systemstack: #FuncID & 20 +#FuncID_systemstack_switch: #FuncID & 21 +#FuncIDWrapper: #FuncID & 22 #ArgsSizeUnknown: -2147483648 diff --git a/cue.mod/gen/internal/abi/type_go_gen.cue b/cue.mod/gen/internal/abi/type_go_gen.cue index b5263715f..6b8dabd70 100644 --- a/cue.mod/gen/internal/abi/type_go_gen.cue +++ b/cue.mod/gen/internal/abi/type_go_gen.cue @@ -6,13 +6,13 @@ package abi // Type is the runtime representation of a Go type. // -// Type is also referenced implicitly -// (in the form of expressions involving constants and arch.PtrSize) -// in cmd/compile/internal/reflectdata/reflect.go -// and cmd/link/internal/ld/decodesym.go -// (e.g. data[2*arch.PtrSize+4] references the TFlag field) -// unsafe.OffsetOf(Type{}.TFlag) cannot be used directly in those -// places because it varies with cross compilation and experiments. +// Be careful about accessing this type at build time, as the version +// of this type in the compiler/linker may not have the same layout +// as the version in the target binary, due to pointer width +// differences and any experiments. Use cmd/compile/internal/rttype +// or the functions in compiletype.go to access this type instead. +// (TODO: this admonition applies to every type in this package. +// Put it in some shared location?) #Type: { Size_: uint64 @go(,uintptr) PtrBytes: uint64 @go(,uintptr) @@ -134,13 +134,15 @@ package abi #TFlagUncommon | #TFlagExtraStar | #TFlagNamed | - #TFlagRegularMemory + #TFlagRegularMemory | + #TFlagUnrolledBitmap #values_TFlag: { - TFlagUncommon: #TFlagUncommon - TFlagExtraStar: #TFlagExtraStar - TFlagNamed: #TFlagNamed - TFlagRegularMemory: #TFlagRegularMemory + TFlagUncommon: #TFlagUncommon + TFlagExtraStar: #TFlagExtraStar + TFlagNamed: #TFlagNamed + TFlagRegularMemory: #TFlagRegularMemory + TFlagUnrolledBitmap: #TFlagUnrolledBitmap } // TFlagUncommon means that there is a data with a type, UncommonType, @@ -173,6 +175,12 @@ package abi // this type as a single region of t.size bytes. #TFlagRegularMemory: #TFlag & 8 +// TFlagUnrolledBitmap marks special types that are unrolled-bitmap +// versions of types with GC programs. +// These types need to be deallocated when the underlying object +// is freed. +#TFlagUnrolledBitmap: #TFlag & 16 + // NameOff is the offset to a name from moduledata.types. See resolveNameOff in runtime. #NameOff: int32 diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue index b938c8ba0..023aa40a1 100644 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue +++ b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue @@ -357,12 +357,12 @@ import ( // +optional // +listType=map // +listMapKey=type - conditions: [...#CustomResourceDefinitionCondition] @go(Conditions,[]CustomResourceDefinitionCondition) @protobuf(1,bytes,opt) + conditions?: [...#CustomResourceDefinitionCondition] @go(Conditions,[]CustomResourceDefinitionCondition) @protobuf(1,bytes,opt) // acceptedNames are the names that are actually being used to serve discovery. // They may be different than the names in spec. // +optional - acceptedNames: #CustomResourceDefinitionNames @go(AcceptedNames) @protobuf(2,bytes,opt) + acceptedNames?: #CustomResourceDefinitionNames @go(AcceptedNames) @protobuf(2,bytes,opt) // storedVersions lists all versions of CustomResources that were ever persisted. Tracking these // versions allows a migration path for stored versions in etcd. The field is mutable @@ -371,7 +371,7 @@ import ( // versions from this list. // Versions may not be removed from `spec.versions` while they exist in this list. // +optional - storedVersions: [...string] @go(StoredVersions,[]string) @protobuf(3,bytes,rep) + storedVersions?: [...string] @go(StoredVersions,[]string) @protobuf(3,bytes,rep) } #CustomResourceCleanupFinalizer: "customresourcecleanup.apiextensions.k8s.io" diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue index 19f42c1ff..8c7a74ad1 100644 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue +++ b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue @@ -244,6 +244,19 @@ package v1 // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with // non-intersecting keys are appended, retaining their partial order. + // + // If `rule` makes use of the `oldSelf` variable it is implicitly a + // `transition rule`. + // + // By default, the `oldSelf` variable is the same type as `self`. + // When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional + // variable whose value() is the same type as `self`. + // See the documentation for the `optionalOldSelf` field for details. + // + // Transition rules by default are applied only on UPDATE requests and are + // skipped if an old value could not be found. You can opt a transition + // rule into unconditional evaluation by setting `optionalOldSelf` to true. + // rule: string @go(Rule) @protobuf(1,bytes,opt) // Message represents the message displayed when validation fails. The message is required if the Rule contains @@ -284,6 +297,24 @@ package v1 // e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']` // +optional fieldPath?: string @go(FieldPath) @protobuf(5,bytes,opt) + + // optionalOldSelf is used to opt a transition rule into evaluation + // even when the object is first created, or if the old object is + // missing the value. + // + // When enabled `oldSelf` will be a CEL optional whose value will be + // `None` if there is no old value, or when the object is initially created. + // + // You may check for presence of oldSelf using `oldSelf.hasValue()` and + // unwrap it after checking using `oldSelf.value()`. Check the CEL + // documentation for Optional types for more information: + // https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes + // + // May not be set unless `oldSelf` is used in `rule`. + // + // +featureGate=CRDValidationRatcheting + // +optional + optionalOldSelf?: null | bool @go(OptionalOldSelf,*bool) @protobuf(6,bytes,opt) } // JSON represents any valid JSON value. diff --git a/go.mod b/go.mod index e45568b1d..993bbb23b 100644 --- a/go.mod +++ b/go.mod @@ -12,10 +12,11 @@ require ( github.com/cilium/cilium v1.14.6 github.com/crunchydata/postgres-operator v0.0.0-00010101000000-000000000000 github.com/external-secrets/external-secrets v0.9.11 + github.com/grafana/grafana-operator/v5 v5.8.0 github.com/prometheus/prometheus v0.49.1 github.com/rook/rook/pkg/apis v0.0.0-20240118185538-f46c0845eea7 - k8s.io/api v0.29.1 - k8s.io/apiextensions-apiserver v0.29.1 + k8s.io/api v0.29.3 + k8s.io/apiextensions-apiserver v0.29.3 k8s.io/client-go v12.0.0+incompatible k8s.io/kube-aggregator v0.29.1 k8s.io/kubernetes v1.29.1 @@ -39,6 +40,8 @@ require ( github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/aws/aws-sdk-go v1.49.9 // indirect github.com/beorn7/perks v1.0.1 // indirect + github.com/bitly/go-simplejson v0.5.1 // indirect + github.com/blang/semver v3.5.1+incompatible // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect github.com/cenkalti/backoff/v3 v3.2.2 // indirect @@ -59,7 +62,7 @@ require ( github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/emicklei/proto v1.11.2 // indirect github.com/evanphx/json-patch v5.7.0+incompatible // indirect - github.com/evanphx/json-patch/v5 v5.7.0 // indirect + github.com/evanphx/json-patch/v5 v5.8.0 // indirect github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect github.com/fatih/camelcase v1.0.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect @@ -73,30 +76,33 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/go-logr/zapr v1.3.0 // indirect github.com/go-ole/go-ole v1.3.0 // indirect - github.com/go-openapi/analysis v0.21.4 // indirect - github.com/go-openapi/errors v0.21.0 // indirect + github.com/go-openapi/analysis v0.22.2 // indirect + github.com/go-openapi/errors v0.22.0 // indirect github.com/go-openapi/jsonpointer v0.20.2 // indirect github.com/go-openapi/jsonreference v0.20.4 // indirect - github.com/go-openapi/loads v0.21.2 // indirect - github.com/go-openapi/runtime v0.26.0 // indirect - github.com/go-openapi/spec v0.20.9 // indirect - github.com/go-openapi/strfmt v0.21.10 // indirect - github.com/go-openapi/swag v0.22.6 // indirect - github.com/go-openapi/validate v0.22.1 // indirect + github.com/go-openapi/loads v0.21.5 // indirect + github.com/go-openapi/runtime v0.27.1 // indirect + github.com/go-openapi/spec v0.20.14 // indirect + github.com/go-openapi/strfmt v0.23.0 // indirect + github.com/go-openapi/swag v0.22.9 // indirect + github.com/go-openapi/validate v0.23.0 // indirect github.com/go-test/deep v1.1.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect github.com/google/cel-go v0.17.7 // indirect github.com/google/gnostic-models v0.6.8 // indirect github.com/google/go-cmp v0.6.0 // indirect + github.com/google/go-jsonnet v0.20.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect + github.com/grafana/grafana-api-golang-client v0.27.0 // indirect + github.com/grafana/grafana-openapi-client-go v0.0.0-20240215164046-eb0e60d27cb7 // indirect github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd // indirect github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect @@ -134,7 +140,6 @@ require ( github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect - github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/hashstructure v1.1.0 // indirect @@ -151,7 +156,7 @@ require ( github.com/oklog/ulid v1.3.1 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc4 // indirect - github.com/openshift/api v0.0.0-20231204192004-bfea29e5e6c4 // indirect + github.com/openshift/api v3.9.0+incompatible // indirect github.com/openshift/client-go v0.0.0-20230607134213-3cd0021bbee3 // indirect github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect github.com/pelletier/go-toml/v2 v2.0.8 // indirect @@ -162,9 +167,9 @@ require ( github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.65.2 // indirect - github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect - github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/common v0.48.0 // indirect github.com/prometheus/common/sigv4 v0.1.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/protocolbuffers/txtpbfmt v0.0.0-20230412060525-fa9f017c0ded // indirect @@ -181,7 +186,7 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.16.0 // indirect github.com/stoewer/go-strcase v1.3.0 // indirect - github.com/stretchr/testify v1.8.4 // indirect + github.com/stretchr/testify v1.9.0 // indirect github.com/subosito/gotenv v1.4.2 // indirect github.com/tetratelabs/wazero v1.0.2 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect @@ -199,7 +204,7 @@ require ( go.etcd.io/etcd/api/v3 v3.5.10 // indirect go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect go.etcd.io/etcd/client/v3 v3.5.10 // indirect - go.mongodb.org/mongo-driver v1.13.1 // indirect + go.mongodb.org/mongo-driver v1.14.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect go.opentelemetry.io/otel v1.21.0 // indirect @@ -215,14 +220,14 @@ require ( go.uber.org/goleak v1.3.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.26.0 // indirect - golang.org/x/crypto v0.17.0 // indirect + golang.org/x/crypto v0.18.0 // indirect golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 // indirect golang.org/x/mod v0.14.0 // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/oauth2 v0.15.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.5.0 // indirect - golang.org/x/sys v0.15.0 // indirect - golang.org/x/term v0.15.0 // indirect + golang.org/x/sys v0.16.0 // indirect + golang.org/x/term v0.16.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.16.1 // indirect @@ -232,16 +237,16 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect google.golang.org/grpc v1.60.1 // indirect - google.golang.org/protobuf v1.32.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apimachinery v0.29.1 // indirect + k8s.io/apimachinery v0.29.3 // indirect k8s.io/apiserver v0.29.1 // indirect k8s.io/cli-runtime v0.29.1 // indirect - k8s.io/component-base v0.29.1 // indirect + k8s.io/component-base v0.29.3 // indirect k8s.io/component-helpers v0.29.1 // indirect k8s.io/klog/v2 v2.110.1 // indirect k8s.io/kms v0.29.1 // indirect @@ -250,7 +255,7 @@ require ( k8s.io/metrics v0.29.1 // indirect k8s.io/utils v0.0.0-20231127182322-b307cd553661 // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 // indirect - sigs.k8s.io/controller-runtime v0.16.3 // indirect + sigs.k8s.io/controller-runtime v0.17.2 // indirect sigs.k8s.io/gateway-api v0.8.0 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect @@ -301,3 +306,5 @@ replace ( exclude github.com/kubernetes-incubator/external-storage v0.20.4-openstorage-rc2 replace github.com/crunchydata/postgres-operator => github.com/crunchydata/postgres-operator v1.3.3-0.20230629151007-94ebcf2df74d + +replace github.com/openshift/api => github.com/openshift/api v0.0.0-20240401200911-ab1b479a063f diff --git a/go.sum b/go.sum index c268ce13b..9af2c5e00 100644 --- a/go.sum +++ b/go.sum @@ -856,7 +856,6 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= @@ -871,7 +870,11 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bitly/go-simplejson v0.5.1 h1:xgwPbetQScXt1gh9BmoJ6j9JMr3TElvuIyjR8pgdoow= +github.com/bitly/go-simplejson v0.5.1/go.mod h1:YOPVLzCfwK14b4Sff3oP1AmGhI9T9Vsg84etUnlyp+Q= github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= +github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc= @@ -1018,8 +1021,8 @@ github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLi github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v5.7.0+incompatible h1:vgGkfT/9f8zE6tvSCe74nfpAVDQ2tG6yudJd8LBksgI= github.com/evanphx/json-patch v5.7.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch/v5 v5.7.0 h1:nJqP7uwL84RJInrohHfW0Fx3awjbm8qZeFv0nW9SYGc= -github.com/evanphx/json-patch/v5 v5.7.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= +github.com/evanphx/json-patch/v5 v5.8.0 h1:lRj6N9Nci7MvzrXuX6HFzU8XjmhPiXPlsKEy1u0KQro= +github.com/evanphx/json-patch/v5 v5.8.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f h1:Wl78ApPPB2Wvf/TIe2xdyJxTlb6obmF18d8QdkxNDu4= github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f/go.mod h1:OSYXu++VVOHnXeitef/D8n/6y4QV8uLHSFXX4NeXMGc= github.com/external-secrets/external-secrets v0.9.11 h1:057RJSRxqZQSz9MUhyvcTL/jnwjnhCe2oNVcE36OOf0= @@ -1088,48 +1091,35 @@ github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= -github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= -github.com/go-openapi/analysis v0.21.4 h1:ZDFLvSNxpDaomuCueM0BlSXxpANBlFYiBvr+GXrvIHc= -github.com/go-openapi/analysis v0.21.4/go.mod h1:4zQ35W4neeZTqh3ol0rv/O8JBbka9QyAgQRPp9y3pfo= -github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.21.0 h1:FhChC/duCnfoLj1gZ0BgaBmzhJC2SL/sJr8a2vAobSY= -github.com/go-openapi/errors v0.21.0/go.mod h1:jxNTMUxRCKj65yb/okJGEtahVd7uvWnuWfj53bse4ho= +github.com/go-openapi/analysis v0.22.2 h1:ZBmNoP2h5omLKr/srIC9bfqrUGzT6g6gNv03HE9Vpj0= +github.com/go-openapi/analysis v0.22.2/go.mod h1:pDF4UbZsQTo/oNuRfAWWd4dAh4yuYf//LYorPTjrpvo= +github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w= +github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q= github.com/go-openapi/jsonpointer v0.20.2/go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= github.com/go-openapi/jsonreference v0.20.1/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/jsonreference v0.20.4 h1:bKlDxQxQJgwpUSgOENiMPzCTBVuc7vTdXSSgNeAhojU= github.com/go-openapi/jsonreference v0.20.4/go.mod h1:5pZJyJP2MnYCpoeoMAql78cCHauHj0V9Lhc506VOpw4= -github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= -github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro= -github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw= -github.com/go-openapi/runtime v0.26.0 h1:HYOFtG00FM1UvqrcxbEJg/SwvDRvYLQKGhw2zaQjTcc= -github.com/go-openapi/runtime v0.26.0/go.mod h1:QgRGeZwrUcSHdeh4Ka9Glvo0ug1LC5WyE+EV88plZrQ= -github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= -github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= -github.com/go-openapi/spec v0.20.9 h1:xnlYNQAwKd2VQRRfwTEI0DcK+2cbuvI/0c7jx3gA8/8= -github.com/go-openapi/spec v0.20.9/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= -github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= -github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= -github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= -github.com/go-openapi/strfmt v0.21.10 h1:JIsly3KXZB/Qf4UzvzJpg4OELH/0ASDQsyk//TTBDDk= -github.com/go-openapi/strfmt v0.21.10/go.mod h1:vNDMwbilnl7xKiO/Ve/8H8Bb2JIInBnH+lqiw6QWgis= +github.com/go-openapi/loads v0.21.5 h1:jDzF4dSoHw6ZFADCGltDb2lE4F6De7aWSpe+IcsRzT0= +github.com/go-openapi/loads v0.21.5/go.mod h1:PxTsnFBoBe+z89riT+wYt3prmSBP6GDAQh2l9H1Flz8= +github.com/go-openapi/runtime v0.27.1 h1:ae53yaOoh+fx/X5Eaq8cRmavHgDma65XPZuvBqvJYto= +github.com/go-openapi/runtime v0.27.1/go.mod h1:fijeJEiEclyS8BRurYE1DE5TLb9/KZl6eAdbzjsrlLU= +github.com/go-openapi/spec v0.20.14 h1:7CBlRnw+mtjFGlPDRZmAMnq35cRzI91xj03HVyUi/Do= +github.com/go-openapi/spec v0.20.14/go.mod h1:8EOhTpBoFiask8rrgwbLC3zmJfz4zsCUueRuPM6GNkw= +github.com/go-openapi/strfmt v0.23.0 h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c= +github.com/go-openapi/strfmt v0.23.0/go.mod h1:NrtIpfKtWIygRkKVsxh7XQMDQW5HKQl6S5ik2elW+K4= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-openapi/swag v0.22.6 h1:dnqg1XfHXL9aBxSbktBqFR5CxVyVI+7fYWhAf1JOeTw= -github.com/go-openapi/swag v0.22.6/go.mod h1:Gl91UqO+btAM0plGGxHqJcQZ1ZTy6jbmridBTsDy8A0= -github.com/go-openapi/validate v0.22.1 h1:G+c2ub6q47kfX1sOBLwIQwzBVt8qmOAARyo/9Fqs9NU= -github.com/go-openapi/validate v0.22.1/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= +github.com/go-openapi/swag v0.22.9 h1:XX2DssF+mQKM2DHsbgZK74y/zj4mo9I99+89xUmuZCE= +github.com/go-openapi/swag v0.22.9/go.mod h1:3/OXnFfnMAwBD099SwYRk7GD3xOrr1iL7d/XNLXVVwE= +github.com/go-openapi/validate v0.23.0 h1:2l7PJLzCis4YUGEoW6eoQw3WhyM65WSIcjX6SQnlfDw= +github.com/go-openapi/validate v0.23.0/go.mod h1:EeiAZ5bmpSIOJV1WLfyYF9qp/B1ZgSaEpHTJHtN5cbE= github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= @@ -1146,35 +1136,12 @@ github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/go-zookeeper/zk v1.0.3 h1:7M2kwOsc//9VeeFiPtf+uSJlVpU66x9Ba5+8XK7/TDg= github.com/go-zookeeper/zk v1.0.3/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= -github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0= -github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3/go.mod h1:3STtPUQYuzV0gBVOY3vy6CfMm/ljR4pABfrTeHNLHUY= -github.com/gobuffalo/depgen v0.1.0/go.mod h1:+ifsuy7fhi15RWncXQQKjWS9JPkdah5sZvtHc2RXGlg= -github.com/gobuffalo/envy v1.6.15/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI= -github.com/gobuffalo/envy v1.7.0/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI= -github.com/gobuffalo/flect v0.1.0/go.mod h1:d2ehjJqGOH/Kjqcoz+F7jHTBbmDb38yXA598Hb50EGs= -github.com/gobuffalo/flect v0.1.1/go.mod h1:8JCgGVbRjJhVgD6399mQr4fx5rRfGKVzFjbj6RE/9UI= -github.com/gobuffalo/flect v0.1.3/go.mod h1:8JCgGVbRjJhVgD6399mQr4fx5rRfGKVzFjbj6RE/9UI= -github.com/gobuffalo/genny v0.0.0-20190329151137-27723ad26ef9/go.mod h1:rWs4Z12d1Zbf19rlsn0nurr75KqhYp52EAGGxTbBhNk= -github.com/gobuffalo/genny v0.0.0-20190403191548-3ca520ef0d9e/go.mod h1:80lIj3kVJWwOrXWWMRzzdhW3DsrdjILVil/SFKBzF28= -github.com/gobuffalo/genny v0.1.0/go.mod h1:XidbUqzak3lHdS//TPu2OgiFB+51Ur5f7CSnXZ/JDvo= -github.com/gobuffalo/genny v0.1.1/go.mod h1:5TExbEyY48pfunL4QSXxlDOmdsD44RRq4mVZ0Ex28Xk= -github.com/gobuffalo/gitgen v0.0.0-20190315122116-cc086187d211/go.mod h1:vEHJk/E9DmhejeLeNt7UVvlSGv3ziL+djtTr3yyzcOw= -github.com/gobuffalo/gogen v0.0.0-20190315121717-8f38393713f5/go.mod h1:V9QVDIxsgKNZs6L2IYiGR8datgMhB577vzTDqypH360= -github.com/gobuffalo/gogen v0.1.0/go.mod h1:8NTelM5qd8RZ15VjQTFkAW6qOMx5wBbW4dSCS3BY8gg= -github.com/gobuffalo/gogen v0.1.1/go.mod h1:y8iBtmHmGc4qa3urIyo1shvOD8JftTtfcKi+71xfDNE= -github.com/gobuffalo/logger v0.0.0-20190315122211-86e12af44bc2/go.mod h1:QdxcLw541hSGtBnhUc4gaNIXRjiDppFGaDqzbrBd3v8= -github.com/gobuffalo/mapi v1.0.1/go.mod h1:4VAGh89y6rVOvm5A8fKFxYG+wIW6LO1FMTG9hnKStFc= -github.com/gobuffalo/mapi v1.0.2/go.mod h1:4VAGh89y6rVOvm5A8fKFxYG+wIW6LO1FMTG9hnKStFc= -github.com/gobuffalo/packd v0.0.0-20190315124812-a385830c7fc0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWeG2RIxq4= -github.com/gobuffalo/packd v0.1.0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWeG2RIxq4= -github.com/gobuffalo/packr/v2 v2.0.9/go.mod h1:emmyGweYTm6Kdper+iywB6YK5YzuKchGtJQZ0Odn4pQ= -github.com/gobuffalo/packr/v2 v2.2.0/go.mod h1:CaAwI0GPIAv+5wKLtv8Afwl+Cm78K/I/VCm/3ptBN+0= -github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754/go.mod h1:HhnNqWY95UYwwW3uSASeV7vtgYkT2t16hJgV3AEPUpw= +github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b h1:/vQ+oYKu+JoyaMPDsv5FzwuL2wwWBgBbtj/YLCi4LuA= +github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b/go.mod h1:Xo4aNUOrJnVruqWQJBtW6+bTBDTniY8yZum5rF3b5jw= github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= @@ -1224,9 +1191,9 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= @@ -1263,6 +1230,8 @@ github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= +github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= @@ -1303,8 +1272,8 @@ github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= @@ -1333,6 +1302,12 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORR github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grafana/grafana-api-golang-client v0.27.0 h1:zIwMXcbCB4n588i3O2N6HfNcQogCNTd/vPkEXTr7zX8= +github.com/grafana/grafana-api-golang-client v0.27.0/go.mod h1:uNLZEmgKtTjHBtCQMwNn3qsx2mpMb8zU+7T4Xv3NR9Y= +github.com/grafana/grafana-openapi-client-go v0.0.0-20240215164046-eb0e60d27cb7 h1:3ckIV9HQ+g7ZF0EuFktYNxQP7h0p8ATwxOus0CfINGA= +github.com/grafana/grafana-openapi-client-go v0.0.0-20240215164046-eb0e60d27cb7/go.mod h1:J+/va7PHxPwcbwvoXlK6ZpocYuolEb0kht3IfALng9s= +github.com/grafana/grafana-operator/v5 v5.8.0 h1:VbLnxjYcDW4tRXQz2VwUttyazv5ddDK3+VWBkVRtA4E= +github.com/grafana/grafana-operator/v5 v5.8.0/go.mod h1:ITjdXEVlXHmMUKxzrO+eMzQZaFlR0JiHtRRm1fiIJh4= github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd h1:PpuIBO5P3e9hpqBD0O/HjhShYuM6XE0i/lbE6J94kww= github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd/go.mod h1:M5qHK+eWfAv8VR/265dIuEpL3fNfeC21tXXp9itM24A= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= @@ -1441,7 +1416,6 @@ github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24 h1:liMMTbpW github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4= @@ -1465,17 +1439,13 @@ github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+ github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.4.0 h1:VzM3TYHDgqPkettiP6I6q2jOeQFL4nrJM+UcAc4f6Fs= github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.4.0/go.mod h1:nqCI7aelBJU61wiBeeZWJ6oi4bJy5nrjkM6lWIMA4j0= -github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= -github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= @@ -1483,7 +1453,6 @@ github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa02 github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b h1:udzkj9S/zlT5X367kqJis0QP7YMxobob6zhzq6Yre00= github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b/go.mod h1:pcaDhQK0/NJZEvtCO0qQPPropqV0sJOJ6YW7X+9kRwM= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= @@ -1527,11 +1496,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= -github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -1549,8 +1515,6 @@ github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4 github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= -github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM= github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk= @@ -1570,7 +1534,6 @@ github.com/mitchellh/hashstructure v1.1.0/go.mod h1:xUDAozZz0Wmdiufv0uyhnHkUTN6/ github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -1589,7 +1552,6 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= -github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de h1:D5x39vF5KCwKQaw+OC9ZPiLVHXz3UFw2+psEX+gYcto= github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de/go.mod h1:kJun4WP5gFuHZgRjZUWWuH1DTxCtxbHDOIJsudS8jzY= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= @@ -1628,8 +1590,8 @@ github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3Ro github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0= github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM= github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= -github.com/onsi/ginkgo/v2 v2.13.2 h1:Bi2gGVkfn6gQcjNjZJVO8Gf0FHzMPf2phUei9tejVMs= -github.com/onsi/ginkgo/v2 v2.13.2/go.mod h1:XStQ8QcGwLyF4HdfcZB8SFOS/MWCgDuXMSBe6zrvLgM= +github.com/onsi/ginkgo/v2 v2.14.0 h1:vSmGj2Z5YPb9JwCWT6z6ihcUvDhuXLc3sJiqd3jMKAY= +github.com/onsi/ginkgo/v2 v2.14.0/go.mod h1:JkUdW7JkN0V6rFvsHcJ478egV3XH9NxpD27Hal/PhZw= github.com/onsi/gomega v1.4.2/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= @@ -1649,16 +1611,14 @@ github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRah github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= -github.com/onsi/gomega v1.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8= -github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= +github.com/onsi/gomega v1.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo= +github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0-rc4 h1:oOxKUJWnFC4YGHCCMNql1x4YaDfYBTS5Y4x/Cgeo1E0= github.com/opencontainers/image-spec v1.1.0-rc4/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8= -github.com/openshift/api v0.0.0-20210105115604-44119421ec6b/go.mod h1:aqU5Cq+kqKKPbDMqxo9FojgDeSpNJI7iuskjXjtojDg= -github.com/openshift/api v0.0.0-20231204192004-bfea29e5e6c4 h1:5RyeLvTSZEn/fDQA6e6+qIvFPssWjreY8pbwfg4/EEQ= -github.com/openshift/api v0.0.0-20231204192004-bfea29e5e6c4/go.mod h1:qNtV0315F+f8ld52TLtPvrfivZpdimOzTi3kn9IVbtU= -github.com/openshift/build-machinery-go v0.0.0-20200917070002-f171684f77ab/go.mod h1:b1BuldmJlbA/xYtdZvKi+7j5YGB44qJUJDZ9zwiNCfE= +github.com/openshift/api v0.0.0-20240401200911-ab1b479a063f h1:ElTUuyX7Dp9baHGQRwR6QoA6j2MZt8ntNuivlhyG3RM= +github.com/openshift/api v0.0.0-20240401200911-ab1b479a063f/go.mod h1:CxgbWAlvu2iQB0UmKTtRu1YfepRg1/vJ64n2DlIEVz4= github.com/openshift/client-go v0.0.0-20210112165513-ebc401615f47/go.mod h1:u7NRAjtYVAKokiI9LouzTv4mhds8P4S1TwdVAfbjKSk= github.com/openshift/client-go v0.0.0-20230607134213-3cd0021bbee3 h1:uVCq/Sx2y4UZh+qCsCL1BBUJpc3DULHkN4j7XHHgHtw= github.com/openshift/client-go v0.0.0-20230607134213-3cd0021bbee3/go.mod h1:M+VUIcqx5IvgzejcbgmQnxETPrXRYlcufHpw2bAgz9Y= @@ -1672,7 +1632,6 @@ github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7ir github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= @@ -1722,8 +1681,8 @@ github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrb github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= github.com/prometheus/client_golang v1.15.1/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc= -github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= -github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= +github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -1743,8 +1702,8 @@ github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+ github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= -github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= -github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE= +github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= github.com/prometheus/common/sigv4 v0.1.0 h1:qoVebwtwwEhS85Czm2dSROY5fTo2PAPEVdDeppTwGX4= github.com/prometheus/common/sigv4 v0.1.0/go.mod h1:2Jkxxk9yYvCkE5G1sQT7GuEXm57JrvHu9k5YwTjsNtI= github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= @@ -1769,8 +1728,6 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qq github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= -github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= @@ -1802,8 +1759,6 @@ github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg github.com/shoenig/test v0.6.4/go.mod h1:byHiCGXqrVaflBLAMq/srcZIHynQPQgeyvkvXnjqq0k= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= @@ -1827,7 +1782,6 @@ github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/ github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= @@ -1848,8 +1802,9 @@ github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8w github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -1861,14 +1816,14 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/tetratelabs/wazero v1.0.2 h1:lpwL5zczFHk2mxKur98035Gig+Z3vd9JURk6lUdZxXY= github.com/tetratelabs/wazero v1.0.2/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ= -github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= @@ -1898,20 +1853,12 @@ github.com/vishvananda/netns v0.0.4 h1:Oeaw1EM2JMxD51g9uhtC0D7erkIjgmj8+JZc26m1Y github.com/vishvananda/netns v0.0.4/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM= github.com/vultr/govultr/v2 v2.17.2 h1:gej/rwr91Puc/tgh+j33p/BLR16UrIPnSr+AIwYWZQs= github.com/vultr/govultr/v2 v2.17.2/go.mod h1:ZFOKGWmgjytfyjeyAdhQlSWwTjh2ig+X49cAp50dzXI= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= -github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= -github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= -github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= -github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= -github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= github.com/xhit/go-str2duration v1.2.0/go.mod h1:3cPSlfZlUHVlneIVfePFWcJZsuwf+P1v2SRTV4cUmp4= github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= -github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -1941,11 +1888,8 @@ go.etcd.io/etcd/raft/v3 v3.5.10/go.mod h1:odD6kr8XQXTy9oQnyMPBOr0TVe+gT0neQhElQ6 go.etcd.io/etcd/server/v3 v3.5.10 h1:4NOGyOwD5sUZ22PiWYKmfxqoeh72z6EhYjNosKGLmZg= go.etcd.io/etcd/server/v3 v3.5.10/go.mod h1:gBplPHfs6YI0L+RpGkTQO7buDbHv5HJGG/Bst0/zIPo= go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= -go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= -go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= -go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= -go.mongodb.org/mongo-driver v1.13.1 h1:YIc7HTYsKndGK4RFzJ3covLz1byri52x0IoMB0Pt/vk= -go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo= +go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80= +go.mongodb.org/mongo-driver v1.14.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= @@ -2025,13 +1969,11 @@ golang.org/x/crypto v0.0.0-20180820150726-614d502a4dac/go.mod h1:6SG95UA2DQfeDnf golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= @@ -2040,7 +1982,6 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= @@ -2052,8 +1993,8 @@ golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98y golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2165,7 +2106,6 @@ golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -2201,8 +2141,9 @@ golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -2235,13 +2176,12 @@ golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= -golang.org/x/oauth2 v0.15.0 h1:s8pnnxNVzjWyrvYdFUQq5llS1PX2zhPXmccZv99h7uQ= -golang.org/x/oauth2 v0.15.0/go.mod h1:q48ptWNTY5XWf+JNten23lcvHpLJ0ZSxF5ttTHKVCAM= +golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -2268,13 +2208,10 @@ golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2322,7 +2259,6 @@ golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -2375,8 +2311,9 @@ golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2394,8 +2331,9 @@ golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= -golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2433,7 +2371,6 @@ golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -2441,13 +2378,9 @@ golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190329151228-23e29df326fe/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190416151739-9c9e1878f421/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190420181800-aa740d480789/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= @@ -2479,7 +2412,6 @@ golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200616133436-c1934b75d054/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -2843,8 +2775,8 @@ google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -2879,7 +2811,6 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= @@ -2917,7 +2848,6 @@ k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAE k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= k8s.io/klog/v2 v2.60.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= k8s.io/klog/v2 v2.80.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= k8s.io/klog/v2 v2.110.1 h1:U/Af64HJf7FcwMcXyKm2RPM22WZzyR7OSpYj5tg3cL0= @@ -3001,8 +2931,8 @@ rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 h1:TgtAeesdhpm2SGwkQasmbeqDo8th5wOBA5h/AjTKA4I= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0/go.mod h1:VHVDI/KrK4fjnV61bE2g3sA7tiETLn8sooImelsCx3Y= sigs.k8s.io/controller-runtime v0.2.2/go.mod h1:9dyohw3ZtoXQuV1e766PHUn+cmrRCIcBh6XIMFNMZ+I= -sigs.k8s.io/controller-runtime v0.16.3 h1:2TuvuokmfXvDUamSx1SuAOO3eTyye+47mJCigwG62c4= -sigs.k8s.io/controller-runtime v0.16.3/go.mod h1:j7bialYoSn142nv9sCOJmQgDXQXxnroFU4VnX/brVJ0= +sigs.k8s.io/controller-runtime v0.17.2 h1:FwHwD1CTUemg0pW2otk7/U5/i5m2ymzvOXdbeGOUvw0= +sigs.k8s.io/controller-runtime v0.17.2/go.mod h1:+MngTvIQQQhfXtwfdGw/UOQ/aIaqsYywfCINOtwMO/s= sigs.k8s.io/gateway-api v0.8.0 h1:isQQ3Jx2qFP7vaA3ls0846F0Amp9Eq14P08xbSwVbQg= sigs.k8s.io/gateway-api v0.8.0/go.mod h1:okOnjPNBFbIS/Rw9kAhuIUaIkLhTKEu+ARIuXk2dgaM= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= diff --git a/k8s/amour/grafana/BUILD.bazel b/k8s/amour/grafana/BUILD.bazel index 121c5640f..404de95bd 100644 --- a/k8s/amour/grafana/BUILD.bazel +++ b/k8s/amour/grafana/BUILD.bazel @@ -5,6 +5,8 @@ cue_library( srcs = [ "config_map_list.cue", "external_secret_list.cue", + "grafana_dashboard_list.cue", + "grafana_list.cue", "ingress_list.cue", "list.cue", "namespace_list.cue", @@ -18,6 +20,7 @@ cue_library( deps = [ "//cue.mod/gen/github.com/VictoriaMetrics/operator/api/victoriametrics/v1beta1:cue_v1beta1_library", "//cue.mod/gen/github.com/external-secrets/external-secrets/apis/externalsecrets/v1beta1:cue_v1beta1_library", + "//cue.mod/gen/github.com/grafana/grafana-operator/v5/api/v1beta1:cue_v1beta1_library", "//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library", "//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library", "//cue.mod/gen/k8s.io/api/networking/v1:cue_v1_library", diff --git a/k8s/amour/grafana/grafana_dashboard_list.cue b/k8s/amour/grafana/grafana_dashboard_list.cue new file mode 100644 index 000000000..16811013e --- /dev/null +++ b/k8s/amour/grafana/grafana_dashboard_list.cue @@ -0,0 +1,97 @@ +package grafana + +import ( + "crypto/sha256" + "encoding/hex" + + grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1" +) + +#GrafanaDashboardList: grafanav1beta1.#GrafanaDashboardList & { + apiVersion: "grafana.integreatly.org/v1beta1" + kind: "GrafanaDashboardList" + items: [...{ + apiVersion: "grafana.integreatly.org/v1beta1" + kind: "GrafanaDashboard" + }] +} + +let dashboards = { + "General": [ + // Node Exporter Full + // https://grafana.com/grafana/dashboards/1860 + 1860, + ] + "Ceph": [ + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/ceph-cluster-advanced.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/ceph-cluster.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/cephfs-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/host-details.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/hosts-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/multi-cluster-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/osd-device-details.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/osds-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/pool-detail.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/pool-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/radosgw-detail.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/radosgw-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/radosgw-sync-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/rbd-details.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/rbd-overview.json", + "https://github.com/ceph/ceph/blob/278d89538d248b92584c49442aef613cf0540c8a/monitoring/ceph-mixin/dashboards_out/rgw-s3-analytics.json", + ] + "Kubernetes": [ + // Kubernetes / System / API Server + // https://grafana.com/grafana/dashboards/15761 + 15761, + // Kubernetes / System / CoreDNS + // https://grafana.com/grafana/dashboards/15762 + 15762, + // Kubernetes / Views / Global + // https://grafana.com/grafana/dashboards/15757 + 15757, + // Kubernetes / Views / Namespaces + // https://grafana.com/grafana/dashboards/15758 + 15758, + // Kubernetes / Views / Nodes + // https://grafana.com/grafana/dashboards/15759 + 15759, + // Kubernetes / Views / Pods + // https://grafana.com/grafana/dashboards/15760 + 15760, + // Trivy Operator - Vulnerabilities + // https://grafana.com/grafana/dashboards/16337 + 16337, + // Prometheus + // https://grafana.com/grafana/dashboards/19105 + 19105, + ] + "VictoriaMetrics": [ + // VictoriaMetrics - single-node + // https://grafana.com/grafana/dashboards/10229 + 10229, + // VictoriaMetrics - vmagent + // https://grafana.com/grafana/dashboards/12683 + 12683, + // VictoriaMetrics - vmalert + // https://grafana.com/grafana/dashboards/14950 + 14950, + // VictoriaMetrics - operator + // https://grafana.com/grafana/dashboards/17869 + 17869, + ] +} + +#GrafanaDashboardList: items: [for folderName, dashboardRefs in dashboards for dashboardRef in dashboardRefs { + metadata: name: "\(#Name)-\(hex.Encode(sha256.Sum256('\(folderName)-\(dashboardRef)')))" + spec: { + if (dashboardRef & string) != _|_ { + url: dashboardRef + } + if (dashboardRef & int) != _|_ { + grafanaCom: id: dashboardRef + } + instanceSelector: matchLabels: "app.kubernetes.io/name": #Name + folder: folderName + } +}] diff --git a/k8s/amour/grafana/grafana_list.cue b/k8s/amour/grafana/grafana_list.cue new file mode 100644 index 000000000..b560021c6 --- /dev/null +++ b/k8s/amour/grafana/grafana_list.cue @@ -0,0 +1,26 @@ +package grafana + +import grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1" + +#GrafanaList: grafanav1beta1.#GrafanaList & { + apiVersion: "grafana.integreatly.org/v1beta1" + kind: "GrafanaList" + items: [...{ + apiVersion: "grafana.integreatly.org/v1beta1" + kind: "Grafana" + }] +} + +#GrafanaList: items: [{ + spec: external: { + url: "http://\(#Name).\(#Namespace)" + adminUser: { + name: "grafana" + key: "username" + } + adminPassword: { + name: "grafana" + key: "password" + } + } +}] diff --git a/k8s/amour/grafana/list.cue b/k8s/amour/grafana/list.cue index 737838917..edfbb1734 100644 --- a/k8s/amour/grafana/list.cue +++ b/k8s/amour/grafana/list.cue @@ -17,7 +17,7 @@ import ( kind: "List" items: [...{ metadata: { - name: #Name + name: string | *#Name namespace: #Namespace labels: { "app.kubernetes.io/name": #Name @@ -32,6 +32,8 @@ import ( _items: [ #ConfigMapList.items, #ExternalSecretList.items, + #GrafanaDashboardList.items, + #GrafanaList.items, #IngressList.items, #NamespaceList.items, #ServiceList.items, diff --git a/tools/tools.go b/tools/tools.go index 4a51d6ced..6b08785e3 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -14,6 +14,7 @@ import ( _ "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" _ "github.com/crunchydata/postgres-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1" _ "github.com/external-secrets/external-secrets/apis/externalsecrets/v1beta1" + _ "github.com/grafana/grafana-operator/v5" _ "github.com/prometheus/prometheus/model/rulefmt" _ "github.com/rook/rook/pkg/apis/ceph.rook.io/v1" _ "k8s.io/api"