2023-04-07 18:00:15 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package issued_certificates
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
2023-05-13 16:46:48 +00:00
"io"
2023-04-07 18:00:15 +00:00
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
2023-05-13 16:46:48 +00:00
"code.tnxs.net/vernonkeenan/lib/api/members/members_models"
2023-04-07 18:00:15 +00:00
)
// GetIssuedCertificatesReader is a Reader for the GetIssuedCertificates structure.
type GetIssuedCertificatesReader struct {
formats strfmt . Registry
}
// ReadResponse reads a server response into the received o.
func ( o * GetIssuedCertificatesReader ) ReadResponse ( response runtime . ClientResponse , consumer runtime . Consumer ) ( interface { } , error ) {
switch response . Code ( ) {
case 200 :
result := NewGetIssuedCertificatesOK ( )
if err := result . readResponse ( response , consumer , o . formats ) ; err != nil {
return nil , err
}
return result , nil
2023-05-13 16:46:48 +00:00
case 401 :
result := NewGetIssuedCertificatesUnauthorized ( )
if err := result . readResponse ( response , consumer , o . formats ) ; err != nil {
return nil , err
}
return nil , result
case 403 :
result := NewGetIssuedCertificatesForbidden ( )
if err := result . readResponse ( response , consumer , o . formats ) ; err != nil {
return nil , err
}
return nil , result
case 404 :
result := NewGetIssuedCertificatesNotFound ( )
if err := result . readResponse ( response , consumer , o . formats ) ; err != nil {
return nil , err
}
return nil , result
case 422 :
result := NewGetIssuedCertificatesUnprocessableEntity ( )
if err := result . readResponse ( response , consumer , o . formats ) ; err != nil {
return nil , err
}
return nil , result
case 500 :
result := NewGetIssuedCertificatesInternalServerError ( )
if err := result . readResponse ( response , consumer , o . formats ) ; err != nil {
return nil , err
}
return nil , result
2023-04-07 18:00:15 +00:00
default :
return nil , runtime . NewAPIError ( "response status code does not match any response statuses defined for this endpoint in the swagger spec" , response , response . Code ( ) )
}
}
// NewGetIssuedCertificatesOK creates a GetIssuedCertificatesOK with default headers values
func NewGetIssuedCertificatesOK ( ) * GetIssuedCertificatesOK {
return & GetIssuedCertificatesOK { }
}
/ *
GetIssuedCertificatesOK describes a response with status code 200 , with default header values .
2023-05-13 16:46:48 +00:00
IssuedCertificate Response Object
2023-04-07 18:00:15 +00:00
* /
type GetIssuedCertificatesOK struct {
2023-05-13 16:46:48 +00:00
Payload * members_models . IssuedCertificateResponse
2023-04-07 18:00:15 +00:00
}
// IsSuccess returns true when this get issued certificates o k response has a 2xx status code
func ( o * GetIssuedCertificatesOK ) IsSuccess ( ) bool {
return true
}
// IsRedirect returns true when this get issued certificates o k response has a 3xx status code
func ( o * GetIssuedCertificatesOK ) IsRedirect ( ) bool {
return false
}
// IsClientError returns true when this get issued certificates o k response has a 4xx status code
func ( o * GetIssuedCertificatesOK ) IsClientError ( ) bool {
return false
}
// IsServerError returns true when this get issued certificates o k response has a 5xx status code
func ( o * GetIssuedCertificatesOK ) IsServerError ( ) bool {
return false
}
// IsCode returns true when this get issued certificates o k response a status code equal to that given
func ( o * GetIssuedCertificatesOK ) IsCode ( code int ) bool {
return code == 200
}
// Code gets the status code for the get issued certificates o k response
func ( o * GetIssuedCertificatesOK ) Code ( ) int {
return 200
}
func ( o * GetIssuedCertificatesOK ) Error ( ) string {
2023-05-13 16:46:48 +00:00
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesOK %+v" , 200 , o . Payload )
2023-04-07 18:00:15 +00:00
}
func ( o * GetIssuedCertificatesOK ) String ( ) string {
2023-05-13 16:46:48 +00:00
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesOK %+v" , 200 , o . Payload )
}
func ( o * GetIssuedCertificatesOK ) GetPayload ( ) * members_models . IssuedCertificateResponse {
return o . Payload
2023-04-07 18:00:15 +00:00
}
func ( o * GetIssuedCertificatesOK ) readResponse ( response runtime . ClientResponse , consumer runtime . Consumer , formats strfmt . Registry ) error {
2023-05-13 16:46:48 +00:00
o . Payload = new ( members_models . IssuedCertificateResponse )
// response payload
if err := consumer . Consume ( response . Body ( ) , o . Payload ) ; err != nil && err != io . EOF {
return err
}
return nil
}
// NewGetIssuedCertificatesUnauthorized creates a GetIssuedCertificatesUnauthorized with default headers values
func NewGetIssuedCertificatesUnauthorized ( ) * GetIssuedCertificatesUnauthorized {
return & GetIssuedCertificatesUnauthorized { }
}
/ *
GetIssuedCertificatesUnauthorized describes a response with status code 401 , with default header values .
Access Unauthorized , invalid API - KEY was used
* /
type GetIssuedCertificatesUnauthorized struct {
Payload * members_models . Error
}
// IsSuccess returns true when this get issued certificates unauthorized response has a 2xx status code
func ( o * GetIssuedCertificatesUnauthorized ) IsSuccess ( ) bool {
return false
}
// IsRedirect returns true when this get issued certificates unauthorized response has a 3xx status code
func ( o * GetIssuedCertificatesUnauthorized ) IsRedirect ( ) bool {
return false
}
// IsClientError returns true when this get issued certificates unauthorized response has a 4xx status code
func ( o * GetIssuedCertificatesUnauthorized ) IsClientError ( ) bool {
return true
}
// IsServerError returns true when this get issued certificates unauthorized response has a 5xx status code
func ( o * GetIssuedCertificatesUnauthorized ) IsServerError ( ) bool {
return false
}
// IsCode returns true when this get issued certificates unauthorized response a status code equal to that given
func ( o * GetIssuedCertificatesUnauthorized ) IsCode ( code int ) bool {
return code == 401
}
// Code gets the status code for the get issued certificates unauthorized response
func ( o * GetIssuedCertificatesUnauthorized ) Code ( ) int {
return 401
}
func ( o * GetIssuedCertificatesUnauthorized ) Error ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesUnauthorized %+v" , 401 , o . Payload )
}
func ( o * GetIssuedCertificatesUnauthorized ) String ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesUnauthorized %+v" , 401 , o . Payload )
}
func ( o * GetIssuedCertificatesUnauthorized ) GetPayload ( ) * members_models . Error {
return o . Payload
}
func ( o * GetIssuedCertificatesUnauthorized ) readResponse ( response runtime . ClientResponse , consumer runtime . Consumer , formats strfmt . Registry ) error {
o . Payload = new ( members_models . Error )
// response payload
if err := consumer . Consume ( response . Body ( ) , o . Payload ) ; err != nil && err != io . EOF {
return err
}
return nil
}
// NewGetIssuedCertificatesForbidden creates a GetIssuedCertificatesForbidden with default headers values
func NewGetIssuedCertificatesForbidden ( ) * GetIssuedCertificatesForbidden {
return & GetIssuedCertificatesForbidden { }
}
/ *
GetIssuedCertificatesForbidden describes a response with status code 403 , with default header values .
Access forbidden , account lacks access
* /
type GetIssuedCertificatesForbidden struct {
AccessControlAllowOrigin string
Payload * members_models . Error
}
// IsSuccess returns true when this get issued certificates forbidden response has a 2xx status code
func ( o * GetIssuedCertificatesForbidden ) IsSuccess ( ) bool {
return false
}
// IsRedirect returns true when this get issued certificates forbidden response has a 3xx status code
func ( o * GetIssuedCertificatesForbidden ) IsRedirect ( ) bool {
return false
}
// IsClientError returns true when this get issued certificates forbidden response has a 4xx status code
func ( o * GetIssuedCertificatesForbidden ) IsClientError ( ) bool {
return true
}
// IsServerError returns true when this get issued certificates forbidden response has a 5xx status code
func ( o * GetIssuedCertificatesForbidden ) IsServerError ( ) bool {
return false
}
// IsCode returns true when this get issued certificates forbidden response a status code equal to that given
func ( o * GetIssuedCertificatesForbidden ) IsCode ( code int ) bool {
return code == 403
}
// Code gets the status code for the get issued certificates forbidden response
func ( o * GetIssuedCertificatesForbidden ) Code ( ) int {
return 403
}
func ( o * GetIssuedCertificatesForbidden ) Error ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesForbidden %+v" , 403 , o . Payload )
}
func ( o * GetIssuedCertificatesForbidden ) String ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesForbidden %+v" , 403 , o . Payload )
}
func ( o * GetIssuedCertificatesForbidden ) GetPayload ( ) * members_models . Error {
return o . Payload
}
func ( o * GetIssuedCertificatesForbidden ) readResponse ( response runtime . ClientResponse , consumer runtime . Consumer , formats strfmt . Registry ) error {
// hydrates response header Access-Control-Allow-Origin
hdrAccessControlAllowOrigin := response . GetHeader ( "Access-Control-Allow-Origin" )
if hdrAccessControlAllowOrigin != "" {
o . AccessControlAllowOrigin = hdrAccessControlAllowOrigin
}
o . Payload = new ( members_models . Error )
// response payload
if err := consumer . Consume ( response . Body ( ) , o . Payload ) ; err != nil && err != io . EOF {
return err
}
return nil
}
// NewGetIssuedCertificatesNotFound creates a GetIssuedCertificatesNotFound with default headers values
func NewGetIssuedCertificatesNotFound ( ) * GetIssuedCertificatesNotFound {
return & GetIssuedCertificatesNotFound { }
}
/ *
GetIssuedCertificatesNotFound describes a response with status code 404 , with default header values .
Resource was not found
* /
type GetIssuedCertificatesNotFound struct {
Payload * members_models . Error
}
// IsSuccess returns true when this get issued certificates not found response has a 2xx status code
func ( o * GetIssuedCertificatesNotFound ) IsSuccess ( ) bool {
return false
}
// IsRedirect returns true when this get issued certificates not found response has a 3xx status code
func ( o * GetIssuedCertificatesNotFound ) IsRedirect ( ) bool {
return false
}
// IsClientError returns true when this get issued certificates not found response has a 4xx status code
func ( o * GetIssuedCertificatesNotFound ) IsClientError ( ) bool {
return true
}
// IsServerError returns true when this get issued certificates not found response has a 5xx status code
func ( o * GetIssuedCertificatesNotFound ) IsServerError ( ) bool {
return false
}
// IsCode returns true when this get issued certificates not found response a status code equal to that given
func ( o * GetIssuedCertificatesNotFound ) IsCode ( code int ) bool {
return code == 404
}
// Code gets the status code for the get issued certificates not found response
func ( o * GetIssuedCertificatesNotFound ) Code ( ) int {
return 404
}
func ( o * GetIssuedCertificatesNotFound ) Error ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesNotFound %+v" , 404 , o . Payload )
}
func ( o * GetIssuedCertificatesNotFound ) String ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesNotFound %+v" , 404 , o . Payload )
}
func ( o * GetIssuedCertificatesNotFound ) GetPayload ( ) * members_models . Error {
return o . Payload
}
func ( o * GetIssuedCertificatesNotFound ) readResponse ( response runtime . ClientResponse , consumer runtime . Consumer , formats strfmt . Registry ) error {
o . Payload = new ( members_models . Error )
// response payload
if err := consumer . Consume ( response . Body ( ) , o . Payload ) ; err != nil && err != io . EOF {
return err
}
return nil
}
// NewGetIssuedCertificatesUnprocessableEntity creates a GetIssuedCertificatesUnprocessableEntity with default headers values
func NewGetIssuedCertificatesUnprocessableEntity ( ) * GetIssuedCertificatesUnprocessableEntity {
return & GetIssuedCertificatesUnprocessableEntity { }
}
/ *
GetIssuedCertificatesUnprocessableEntity describes a response with status code 422 , with default header values .
Unprocessable Entity , likely a bad parameter
* /
type GetIssuedCertificatesUnprocessableEntity struct {
Payload * members_models . Error
}
// IsSuccess returns true when this get issued certificates unprocessable entity response has a 2xx status code
func ( o * GetIssuedCertificatesUnprocessableEntity ) IsSuccess ( ) bool {
return false
}
// IsRedirect returns true when this get issued certificates unprocessable entity response has a 3xx status code
func ( o * GetIssuedCertificatesUnprocessableEntity ) IsRedirect ( ) bool {
return false
}
// IsClientError returns true when this get issued certificates unprocessable entity response has a 4xx status code
func ( o * GetIssuedCertificatesUnprocessableEntity ) IsClientError ( ) bool {
return true
}
// IsServerError returns true when this get issued certificates unprocessable entity response has a 5xx status code
func ( o * GetIssuedCertificatesUnprocessableEntity ) IsServerError ( ) bool {
return false
}
// IsCode returns true when this get issued certificates unprocessable entity response a status code equal to that given
func ( o * GetIssuedCertificatesUnprocessableEntity ) IsCode ( code int ) bool {
return code == 422
}
// Code gets the status code for the get issued certificates unprocessable entity response
func ( o * GetIssuedCertificatesUnprocessableEntity ) Code ( ) int {
return 422
}
func ( o * GetIssuedCertificatesUnprocessableEntity ) Error ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesUnprocessableEntity %+v" , 422 , o . Payload )
}
func ( o * GetIssuedCertificatesUnprocessableEntity ) String ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesUnprocessableEntity %+v" , 422 , o . Payload )
}
func ( o * GetIssuedCertificatesUnprocessableEntity ) GetPayload ( ) * members_models . Error {
return o . Payload
}
func ( o * GetIssuedCertificatesUnprocessableEntity ) readResponse ( response runtime . ClientResponse , consumer runtime . Consumer , formats strfmt . Registry ) error {
o . Payload = new ( members_models . Error )
// response payload
if err := consumer . Consume ( response . Body ( ) , o . Payload ) ; err != nil && err != io . EOF {
return err
}
return nil
}
// NewGetIssuedCertificatesInternalServerError creates a GetIssuedCertificatesInternalServerError with default headers values
func NewGetIssuedCertificatesInternalServerError ( ) * GetIssuedCertificatesInternalServerError {
return & GetIssuedCertificatesInternalServerError { }
}
/ *
GetIssuedCertificatesInternalServerError describes a response with status code 500 , with default header values .
Server Internal Error
* /
type GetIssuedCertificatesInternalServerError struct {
Payload * members_models . Error
}
// IsSuccess returns true when this get issued certificates internal server error response has a 2xx status code
func ( o * GetIssuedCertificatesInternalServerError ) IsSuccess ( ) bool {
return false
}
// IsRedirect returns true when this get issued certificates internal server error response has a 3xx status code
func ( o * GetIssuedCertificatesInternalServerError ) IsRedirect ( ) bool {
return false
}
// IsClientError returns true when this get issued certificates internal server error response has a 4xx status code
func ( o * GetIssuedCertificatesInternalServerError ) IsClientError ( ) bool {
return false
}
// IsServerError returns true when this get issued certificates internal server error response has a 5xx status code
func ( o * GetIssuedCertificatesInternalServerError ) IsServerError ( ) bool {
return true
}
// IsCode returns true when this get issued certificates internal server error response a status code equal to that given
func ( o * GetIssuedCertificatesInternalServerError ) IsCode ( code int ) bool {
return code == 500
}
// Code gets the status code for the get issued certificates internal server error response
func ( o * GetIssuedCertificatesInternalServerError ) Code ( ) int {
return 500
}
func ( o * GetIssuedCertificatesInternalServerError ) Error ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesInternalServerError %+v" , 500 , o . Payload )
}
func ( o * GetIssuedCertificatesInternalServerError ) String ( ) string {
return fmt . Sprintf ( "[GET /issuedcertificates][%d] getIssuedCertificatesInternalServerError %+v" , 500 , o . Payload )
}
func ( o * GetIssuedCertificatesInternalServerError ) GetPayload ( ) * members_models . Error {
return o . Payload
}
func ( o * GetIssuedCertificatesInternalServerError ) readResponse ( response runtime . ClientResponse , consumer runtime . Consumer , formats strfmt . Registry ) error {
o . Payload = new ( members_models . Error )
// response payload
if err := consumer . Consume ( response . Body ( ) , o . Payload ) ; err != nil && err != io . EOF {
return err
}
2023-04-07 18:00:15 +00:00
return nil
}