// Code generated by go-swagger; DO NOT EDIT.

package restapi

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"encoding/json"
)

var (
	// SwaggerJSON embedded version of the swagger document used at generation time
	SwaggerJSON json.RawMessage
	// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
	FlatSwaggerJSON json.RawMessage
)

func init() {
	SwaggerJSON = json.RawMessage([]byte(`{
  "schemes": [
    "http",
    "https"
  ],
  "swagger": "2.0",
  "info": {
    "description": "An API which supports creation, deletion, listing etc of CDR",
    "title": "CDR Management API",
    "contact": {
      "email": "diego@cyclops-labs.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.0"
  },
  "host": "localhost:8000",
  "basePath": "/api/v1.0",
  "paths": {
    "/status": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "statusManagement"
        ],
        "summary": "Basic status of the system",
        "operationId": "showStatus",
        "responses": {
          "200": {
            "description": "Status information of the system",
            "schema": {
              "$ref": "#/definitions/Status"
            }
          }
        }
      }
    },
    "/status/{id}": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "statusManagement"
        ],
        "summary": "Basic status of the system",
        "operationId": "getStatus",
        "parameters": [
          {
            "enum": [
              "kafka-receiver",
              "kafka-sender",
              "status",
              "trigger",
              "usage"
            ],
            "type": "string",
            "description": "Id of the endpoint to be checked",
            "name": "id",
            "in": "path",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Status information of the system",
            "schema": {
              "$ref": "#/definitions/Status"
            }
          },
          "404": {
            "description": "The endpoint provided doesn't exist",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/trigger/transform": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "triggerManagement"
        ],
        "summary": "Transformation of UDR to CDR task trigger",
        "operationId": "execTransformation",
        "parameters": [
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          },
          {
            "type": "boolean",
            "description": "Switch for using 15m boundaries instead of 8h",
            "name": "fast_mode",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Transformation task executed successfully."
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "usageManagement"
        ],
        "summary": "Detailed report covering all accounts within the specified time window",
        "operationId": "getSystemUsage",
        "parameters": [
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          },
          {
            "type": "string",
            "description": "Metric(s) to get the usage report",
            "name": "metric",
            "in": "query"
          },
          {
            "type": "string",
            "description": "List of ids to be queried",
            "name": "idlist",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Description of a successfully operation",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/CReport"
              }
            }
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/usage/summary/{id}": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "usageManagement"
        ],
        "summary": "Summary report meant for the UI for the resources linked to the ResellerID provided within the specified time window",
        "operationId": "getUsageSummary",
        "parameters": [
          {
            "type": "string",
            "description": "Id of the reseller to be checked",
            "name": "id",
            "in": "path",
            "required": true
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Description of a successfully operation",
            "schema": {
              "$ref": "#/definitions/UISummary"
            }
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/usage/{id}": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "usageManagement"
        ],
        "summary": "Detailed report covering of the account associated with the id within the specified time window",
        "operationId": "getUsage",
        "parameters": [
          {
            "type": "string",
            "description": "Id of the account to be checked",
            "name": "id",
            "in": "path",
            "required": true
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          },
          {
            "type": "string",
            "description": "Metric(s) to get the usage report",
            "name": "metric",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Description of a successfully operation",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/CReport"
              }
            }
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    }
  },
  "definitions": {
    "CDRRecord": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "x-go-custom-tag": "gorm:\"index\""
        },
        "Cost": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "Metadata": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "ResourceId": {
          "type": "string"
        },
        "ResourceName": {
          "type": "string"
        },
        "ResourceType": {
          "type": "string"
        },
        "TimeFrom": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "TimeTo": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "Unit": {
          "type": "string"
        },
        "UsageBreakup": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        }
      }
    },
    "CDRReport": {
      "type": "object",
      "properties": {
        "Cost": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "Metadata": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "ResourceId": {
          "type": "string"
        },
        "ResourceName": {
          "type": "string"
        },
        "ResourceType": {
          "type": "string"
        },
        "Unit": {
          "type": "string"
        },
        "UsageBreakup": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        }
      }
    },
    "CReport": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "x-go-custom-tag": "gorm:\"index\""
        },
        "TimeFrom": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "TimeTo": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "Usage": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/CDRReport"
          },
          "x-go-custom-tag": "gorm:\"-\""
        }
      }
    },
    "ErrorResponse": {
      "type": "object",
      "required": [
        "errorString"
      ],
      "properties": {
        "errorString": {
          "type": "string"
        }
      }
    },
    "ItemCreatedResponse": {
      "properties": {
        "ApiLink": {
          "type": "string"
        },
        "Message": {
          "type": "string"
        }
      }
    },
    "Metadata": {
      "type": "object",
      "x-go-type": {
        "import": {
          "package": "gitlab.com/cyclops-utilities/datamodels"
        },
        "type": "JSONdb"
      }
    },
    "Status": {
      "type": "object",
      "required": [
        "SystemState"
      ],
      "properties": {
        "AverageResponseTime": {
          "type": "number",
          "format": "double"
        },
        "DBState": {
          "type": "string"
        },
        "LastRequest": {
          "type": "string"
        },
        "RequestsBoT": {
          "type": "integer"
        },
        "RequestsLastHour": {
          "type": "integer"
        },
        "RequestsToday": {
          "type": "integer"
        },
        "SystemState": {
          "type": "string"
        }
      }
    },
    "UISummary": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string"
        },
        "TimeFrom": {
          "type": "string",
          "format": "datetime"
        },
        "TimeTo": {
          "type": "string",
          "format": "datetime"
        },
        "UsageBreakup": {
          "$ref": "#/definitions/Metadata"
        }
      }
    }
  },
  "securityDefinitions": {
    "APIKeyHeader": {
      "type": "apiKey",
      "name": "X-API-KEY",
      "in": "header"
    },
    "APIKeyParam": {
      "type": "apiKey",
      "name": "api_key",
      "in": "query"
    },
    "Keycloak": {
      "type": "oauth2",
      "flow": "accessCode",
      "authorizationUrl": "http://localhost:8080/auth/realms/Dev/protocol/openid-connect/auth",
      "tokenUrl": "http://localhost:8080/auth/realms/Dev/protocol/openid-connect/token",
      "scopes": {
        "admin": "Admin scope",
        "user": "User scope"
      }
    }
  },
  "security": [
    {
      "Keycloak": [
        "user",
        "admin"
      ]
    },
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyParam": []
    }
  ],
  "tags": [
    {
      "description": "Actions relating to the reporting of the state of the service",
      "name": "statusManagement"
    },
    {
      "description": "Actions relating to the periodics actions to be triggered in the system",
      "name": "triggerManagement"
    },
    {
      "description": "Actions relating to the usage reporting of the accounts of the system",
      "name": "usageManagement"
    }
  ]
}`))
	FlatSwaggerJSON = json.RawMessage([]byte(`{
  "schemes": [
    "http",
    "https"
  ],
  "swagger": "2.0",
  "info": {
    "description": "An API which supports creation, deletion, listing etc of CDR",
    "title": "CDR Management API",
    "contact": {
      "email": "diego@cyclops-labs.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.0"
  },
  "host": "localhost:8000",
  "basePath": "/api/v1.0",
  "paths": {
    "/status": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "statusManagement"
        ],
        "summary": "Basic status of the system",
        "operationId": "showStatus",
        "responses": {
          "200": {
            "description": "Status information of the system",
            "schema": {
              "$ref": "#/definitions/Status"
            }
          }
        }
      }
    },
    "/status/{id}": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "statusManagement"
        ],
        "summary": "Basic status of the system",
        "operationId": "getStatus",
        "parameters": [
          {
            "enum": [
              "kafka-receiver",
              "kafka-sender",
              "status",
              "trigger",
              "usage"
            ],
            "type": "string",
            "description": "Id of the endpoint to be checked",
            "name": "id",
            "in": "path",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Status information of the system",
            "schema": {
              "$ref": "#/definitions/Status"
            }
          },
          "404": {
            "description": "The endpoint provided doesn't exist",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/trigger/transform": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "triggerManagement"
        ],
        "summary": "Transformation of UDR to CDR task trigger",
        "operationId": "execTransformation",
        "parameters": [
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          },
          {
            "type": "boolean",
            "description": "Switch for using 15m boundaries instead of 8h",
            "name": "fast_mode",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Transformation task executed successfully."
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "usageManagement"
        ],
        "summary": "Detailed report covering all accounts within the specified time window",
        "operationId": "getSystemUsage",
        "parameters": [
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          },
          {
            "type": "string",
            "description": "Metric(s) to get the usage report",
            "name": "metric",
            "in": "query"
          },
          {
            "type": "string",
            "description": "List of ids to be queried",
            "name": "idlist",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Description of a successfully operation",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/CReport"
              }
            }
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/usage/summary/{id}": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "usageManagement"
        ],
        "summary": "Summary report meant for the UI for the resources linked to the ResellerID provided within the specified time window",
        "operationId": "getUsageSummary",
        "parameters": [
          {
            "type": "string",
            "description": "Id of the reseller to be checked",
            "name": "id",
            "in": "path",
            "required": true
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Description of a successfully operation",
            "schema": {
              "$ref": "#/definitions/UISummary"
            }
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    },
    "/usage/{id}": {
      "get": {
        "security": [
          {
            "Keycloak": [
              "user"
            ]
          },
          {
            "APIKeyHeader": []
          },
          {
            "APIKeyParam": []
          }
        ],
        "produces": [
          "application/json"
        ],
        "tags": [
          "usageManagement"
        ],
        "summary": "Detailed report covering of the account associated with the id within the specified time window",
        "operationId": "getUsage",
        "parameters": [
          {
            "type": "string",
            "description": "Id of the account to be checked",
            "name": "id",
            "in": "path",
            "required": true
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime from which to get the usage report",
            "name": "from",
            "in": "query"
          },
          {
            "type": "string",
            "format": "datetime",
            "description": "Datetime until which to get the usage report",
            "name": "to",
            "in": "query"
          },
          {
            "type": "string",
            "description": "Metric(s) to get the usage report",
            "name": "metric",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Description of a successfully operation",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/CReport"
              }
            }
          },
          "500": {
            "description": "Something unexpected happend, error raised",
            "schema": {
              "$ref": "#/definitions/ErrorResponse"
            }
          }
        }
      }
    }
  },
  "definitions": {
    "CDRRecord": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "x-go-custom-tag": "gorm:\"index\""
        },
        "Cost": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "Metadata": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "ResourceId": {
          "type": "string"
        },
        "ResourceName": {
          "type": "string"
        },
        "ResourceType": {
          "type": "string"
        },
        "TimeFrom": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "TimeTo": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "Unit": {
          "type": "string"
        },
        "UsageBreakup": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        }
      }
    },
    "CDRReport": {
      "type": "object",
      "properties": {
        "Cost": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "Metadata": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        },
        "ResourceId": {
          "type": "string"
        },
        "ResourceName": {
          "type": "string"
        },
        "ResourceType": {
          "type": "string"
        },
        "Unit": {
          "type": "string"
        },
        "UsageBreakup": {
          "x-go-custom-tag": "gorm:\"type:jsonb\"",
          "$ref": "#/definitions/Metadata"
        }
      }
    },
    "CReport": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "x-go-custom-tag": "gorm:\"index\""
        },
        "TimeFrom": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "TimeTo": {
          "type": "string",
          "format": "datetime",
          "x-go-custom-tag": "gorm:\"index;type:timestamptz\""
        },
        "Usage": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/CDRReport"
          },
          "x-go-custom-tag": "gorm:\"-\""
        }
      }
    },
    "ErrorResponse": {
      "type": "object",
      "required": [
        "errorString"
      ],
      "properties": {
        "errorString": {
          "type": "string"
        }
      }
    },
    "ItemCreatedResponse": {
      "properties": {
        "ApiLink": {
          "type": "string"
        },
        "Message": {
          "type": "string"
        }
      }
    },
    "Metadata": {
      "type": "object",
      "x-go-type": {
        "import": {
          "package": "gitlab.com/cyclops-utilities/datamodels"
        },
        "type": "JSONdb"
      }
    },
    "Status": {
      "type": "object",
      "required": [
        "SystemState"
      ],
      "properties": {
        "AverageResponseTime": {
          "type": "number",
          "format": "double"
        },
        "DBState": {
          "type": "string"
        },
        "LastRequest": {
          "type": "string"
        },
        "RequestsBoT": {
          "type": "integer"
        },
        "RequestsLastHour": {
          "type": "integer"
        },
        "RequestsToday": {
          "type": "integer"
        },
        "SystemState": {
          "type": "string"
        }
      }
    },
    "UISummary": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string"
        },
        "TimeFrom": {
          "type": "string",
          "format": "datetime"
        },
        "TimeTo": {
          "type": "string",
          "format": "datetime"
        },
        "UsageBreakup": {
          "$ref": "#/definitions/Metadata"
        }
      }
    }
  },
  "securityDefinitions": {
    "APIKeyHeader": {
      "type": "apiKey",
      "name": "X-API-KEY",
      "in": "header"
    },
    "APIKeyParam": {
      "type": "apiKey",
      "name": "api_key",
      "in": "query"
    },
    "Keycloak": {
      "type": "oauth2",
      "flow": "accessCode",
      "authorizationUrl": "http://localhost:8080/auth/realms/Dev/protocol/openid-connect/auth",
      "tokenUrl": "http://localhost:8080/auth/realms/Dev/protocol/openid-connect/token",
      "scopes": {
        "admin": "Admin scope",
        "user": "User scope"
      }
    }
  },
  "security": [
    {
      "Keycloak": [
        "user",
        "admin"
      ]
    },
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyParam": []
    }
  ],
  "tags": [
    {
      "description": "Actions relating to the reporting of the state of the service",
      "name": "statusManagement"
    },
    {
      "description": "Actions relating to the periodics actions to be triggered in the system",
      "name": "triggerManagement"
    },
    {
      "description": "Actions relating to the usage reporting of the accounts of the system",
      "name": "usageManagement"
    }
  ]
}`))
}