package api

func init() {
	Swagger.Add("license_license", `{
  "swagger": "2.0",
  "info": {
    "title": "automate-gateway/api/license/license.proto",
    "version": "version not set"
  },
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/api/v0/license/apply": {
      "post": {
        "operationId": "License_ApplyLicense",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/chef.automate.api.license.ApplyLicenseResp"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/grpc.gateway.runtime.Error"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/chef.automate.api.license.ApplyLicenseReq"
            }
          }
        ],
        "tags": [
          "License"
        ]
      }
    },
    "/api/v0/license/request": {
      "post": {
        "operationId": "License_RequestLicense",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/chef.automate.api.license.RequestLicenseResp"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/grpc.gateway.runtime.Error"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/chef.automate.api.license.RequestLicenseReq"
            }
          }
        ],
        "tags": [
          "License"
        ]
      }
    },
    "/api/v0/license/status": {
      "get": {
        "operationId": "License_GetStatus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/chef.automate.api.license.GetStatusResp"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/grpc.gateway.runtime.Error"
            }
          }
        },
        "tags": [
          "License"
        ]
      }
    }
  },
  "definitions": {
    "chef.automate.api.license.ApplyLicenseReq": {
      "type": "object",
      "properties": {
        "license": {
          "type": "string"
        }
      }
    },
    "chef.automate.api.license.ApplyLicenseResp": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/definitions/chef.automate.api.license.GetStatusResp"
        }
      }
    },
    "chef.automate.api.license.GetStatusResp": {
      "type": "object",
      "properties": {
        "license_id": {
          "type": "string"
        },
        "configured_at": {
          "type": "string",
          "format": "date-time"
        },
        "licensed_period": {
          "$ref": "#/definitions/chef.automate.api.license.GetStatusResp.DateRange"
        },
        "customer_name": {
          "type": "string"
        },
        "grace_period": {
          "type": "boolean"
        },
        "license_type": {
          "type": "string"
        }
      }
    },
    "chef.automate.api.license.GetStatusResp.DateRange": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "chef.automate.api.license.RequestLicenseReq": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "gdpr_agree": {
          "type": "boolean"
        }
      }
    },
    "chef.automate.api.license.RequestLicenseResp": {
      "type": "object",
      "properties": {
        "license": {
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/chef.automate.api.license.GetStatusResp"
        }
      }
    },
    "google.protobuf.Any": {
      "type": "object",
      "properties": {
        "type_url": {
          "type": "string"
        },
        "value": {
          "type": "string",
          "format": "byte"
        }
      }
    },
    "grpc.gateway.runtime.Error": {
      "type": "object",
      "properties": {
        "error": {
          "type": "string"
        },
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/google.protobuf.Any"
          }
        }
      }
    }
  }
}
`)
}
