// Code generated by swaggo/swag. DO NOT EDIT
package openapi

import "github.com/swaggo/swag"

const docTemplate = `{
    "schemes": {{ marshal .Schemes }},
    "swagger": "2.0",
    "info": {
        "description": "{{escape .Description}}",
        "title": "{{.Title}}",
        "contact": {},
        "version": "{{.Version}}"
    },
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/auditLogs": {
            "get": {
                "description": "Lists all console audit logs from current organization.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "AuditLog"
                ],
                "summary": "List Audit Logs",
                "parameters": [
                    {
                        "type": "string",
                        "description": "The pagination token received from a previous List Audit Logs request. Use this token to retrieve the next page of results.",
                        "name": "pageToken",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "The maximum number of audit logs to return. If not specified, at most 100 audit logs will be returned.",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "The start timestamp to list audit logs, in the ISO 8601 format.",
                        "name": "startTime",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "The end timestamp to list audit logs, in the ISO 8601 format.",
                        "name": "endTime",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "The auditing event types to include in the audit log list. Refer Console audit event types for more information.",
                        "name": "auditEventTypes",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "The search keyword to include in the audit log list.",
                        "name": "keyword",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/controller.queryAuditLogRsp"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/controller.openApiError"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/controller.openApiError"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "controller.openApiError": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "string"
                },
                "error": {},
                "msgPrefix": {
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                }
            }
        },
        "controller.orgAuditLog": {
            "type": "object",
            "properties": {
                "clusterId": {
                    "description": "The cluster ID.",
                    "type": "string",
                    "example": ""
                },
                "clusterName": {
                    "description": "The cluster name.",
                    "type": "string"
                },
                "clusterType": {
                    "description": "The cluster type.",
                    "type": "string"
                },
                "details": {
                    "description": "The detail information of the event.",
                    "type": "string"
                },
                "endTime": {
                    "description": "The audit event end time, in the ISO 8601 format.",
                    "type": "string"
                },
                "eventType": {
                    "description": "The audit event type",
                    "type": "string"
                },
                "id": {
                    "description": "The audit event id",
                    "type": "string"
                },
                "operationEmail": {
                    "description": "The operation email.",
                    "type": "string"
                },
                "operationId": {
                    "description": "The operation id.",
                    "type": "string",
                    "example": ""
                },
                "operationIp": {
                    "description": "The operation IP.",
                    "type": "string"
                },
                "operationLoginMethod": {
                    "description": "The operation login method.",
                    "type": "string"
                },
                "operationType": {
                    "description": "The operation type, indicating the operator is user or api.",
                    "type": "string"
                },
                "organizationId": {
                    "description": "The organization id.",
                    "type": "string",
                    "example": ""
                },
                "organizationName": {
                    "description": "The organization name.",
                    "type": "string"
                },
                "projectId": {
                    "description": "The project id.",
                    "type": "string",
                    "example": ""
                },
                "projectName": {
                    "description": "The project name.",
                    "type": "string"
                },
                "result": {
                    "description": "The restult of the event, indicating Success or Failure.",
                    "type": "string"
                },
                "tranceId": {
                    "description": "The audit trace ID.",
                    "type": "string"
                }
            }
        },
        "controller.queryAuditLogRsp": {
            "type": "object",
            "properties": {
                "auditLogs": {
                    "description": "A list of console audit logs that match the query.",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/controller.orgAuditLog"
                    }
                },
                "nextPageToken": {
                    "description": "The token to retrieve the next page of results. Use this value as the pageToken parameter in the next request. This field is empty when there are no more pages.",
                    "type": "string"
                },
                "totalSize": {
                    "description": "The total number of console audit logs that match the query.",
                    "type": "integer"
                }
            }
        }
    }
}`

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
	Version:          "v1beta1",
	Host:             "iam.tidbapi.com",
	BasePath:         "/v1beta1",
	Schemes:          []string{},
	Title:            "Account System OPENAPI",
	Description:      "This is an account system server.",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
}

func init() {
	swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
