google

package
v0.2.92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for google API

func (*Client) GetGoogleCallback

func (a *Client) GetGoogleCallback(params *GetGoogleCallbackParams, opts ...ClientOption) error

GetGoogleCallback googles callback logs in a user with google

GoogleCallback logs in a user with Google

func (*Client) GetGoogleLogin

func (a *Client) GetGoogleLogin(params *GetGoogleLoginParams, opts ...ClientOption) error

GetGoogleLogin googles login logs in a user with google

GoogleLogin logs in a user with Google

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetGoogleCallback(params *GetGoogleCallbackParams, opts ...ClientOption) error

	GetGoogleLogin(params *GetGoogleLoginParams, opts ...ClientOption) error

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new google API client.

type GetGoogleCallbackForbidden

type GetGoogleCallbackForbidden struct {
	Payload string
}

GetGoogleCallbackForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetGoogleCallbackForbidden

func NewGetGoogleCallbackForbidden() *GetGoogleCallbackForbidden

NewGetGoogleCallbackForbidden creates a GetGoogleCallbackForbidden with default headers values

func (*GetGoogleCallbackForbidden) Code

func (o *GetGoogleCallbackForbidden) Code() int

Code gets the status code for the get google callback forbidden response

func (*GetGoogleCallbackForbidden) Error

func (*GetGoogleCallbackForbidden) GetPayload

func (o *GetGoogleCallbackForbidden) GetPayload() string

func (*GetGoogleCallbackForbidden) IsClientError

func (o *GetGoogleCallbackForbidden) IsClientError() bool

IsClientError returns true when this get google callback forbidden response has a 4xx status code

func (*GetGoogleCallbackForbidden) IsCode

func (o *GetGoogleCallbackForbidden) IsCode(code int) bool

IsCode returns true when this get google callback forbidden response a status code equal to that given

func (*GetGoogleCallbackForbidden) IsRedirect

func (o *GetGoogleCallbackForbidden) IsRedirect() bool

IsRedirect returns true when this get google callback forbidden response has a 3xx status code

func (*GetGoogleCallbackForbidden) IsServerError

func (o *GetGoogleCallbackForbidden) IsServerError() bool

IsServerError returns true when this get google callback forbidden response has a 5xx status code

func (*GetGoogleCallbackForbidden) IsSuccess

func (o *GetGoogleCallbackForbidden) IsSuccess() bool

IsSuccess returns true when this get google callback forbidden response has a 2xx status code

func (*GetGoogleCallbackForbidden) String

func (o *GetGoogleCallbackForbidden) String() string

type GetGoogleCallbackInternalServerError

type GetGoogleCallbackInternalServerError struct {
	Payload string
}

GetGoogleCallbackInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetGoogleCallbackInternalServerError

func NewGetGoogleCallbackInternalServerError() *GetGoogleCallbackInternalServerError

NewGetGoogleCallbackInternalServerError creates a GetGoogleCallbackInternalServerError with default headers values

func (*GetGoogleCallbackInternalServerError) Code

Code gets the status code for the get google callback internal server error response

func (*GetGoogleCallbackInternalServerError) Error

func (*GetGoogleCallbackInternalServerError) GetPayload

func (*GetGoogleCallbackInternalServerError) IsClientError

func (o *GetGoogleCallbackInternalServerError) IsClientError() bool

IsClientError returns true when this get google callback internal server error response has a 4xx status code

func (*GetGoogleCallbackInternalServerError) IsCode

IsCode returns true when this get google callback internal server error response a status code equal to that given

func (*GetGoogleCallbackInternalServerError) IsRedirect

IsRedirect returns true when this get google callback internal server error response has a 3xx status code

func (*GetGoogleCallbackInternalServerError) IsServerError

func (o *GetGoogleCallbackInternalServerError) IsServerError() bool

IsServerError returns true when this get google callback internal server error response has a 5xx status code

func (*GetGoogleCallbackInternalServerError) IsSuccess

IsSuccess returns true when this get google callback internal server error response has a 2xx status code

func (*GetGoogleCallbackInternalServerError) String

type GetGoogleCallbackNotFound

type GetGoogleCallbackNotFound struct {
	Payload string
}

GetGoogleCallbackNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetGoogleCallbackNotFound

func NewGetGoogleCallbackNotFound() *GetGoogleCallbackNotFound

NewGetGoogleCallbackNotFound creates a GetGoogleCallbackNotFound with default headers values

func (*GetGoogleCallbackNotFound) Code

func (o *GetGoogleCallbackNotFound) Code() int

Code gets the status code for the get google callback not found response

func (*GetGoogleCallbackNotFound) Error

func (o *GetGoogleCallbackNotFound) Error() string

func (*GetGoogleCallbackNotFound) GetPayload

func (o *GetGoogleCallbackNotFound) GetPayload() string

func (*GetGoogleCallbackNotFound) IsClientError

func (o *GetGoogleCallbackNotFound) IsClientError() bool

IsClientError returns true when this get google callback not found response has a 4xx status code

func (*GetGoogleCallbackNotFound) IsCode

func (o *GetGoogleCallbackNotFound) IsCode(code int) bool

IsCode returns true when this get google callback not found response a status code equal to that given

func (*GetGoogleCallbackNotFound) IsRedirect

func (o *GetGoogleCallbackNotFound) IsRedirect() bool

IsRedirect returns true when this get google callback not found response has a 3xx status code

func (*GetGoogleCallbackNotFound) IsServerError

func (o *GetGoogleCallbackNotFound) IsServerError() bool

IsServerError returns true when this get google callback not found response has a 5xx status code

func (*GetGoogleCallbackNotFound) IsSuccess

func (o *GetGoogleCallbackNotFound) IsSuccess() bool

IsSuccess returns true when this get google callback not found response has a 2xx status code

func (*GetGoogleCallbackNotFound) String

func (o *GetGoogleCallbackNotFound) String() string

type GetGoogleCallbackParams

type GetGoogleCallbackParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGoogleCallbackParams contains all the parameters to send to the API endpoint

for the get google callback operation.

Typically these are written to a http.Request.

func NewGetGoogleCallbackParams

func NewGetGoogleCallbackParams() *GetGoogleCallbackParams

NewGetGoogleCallbackParams creates a new GetGoogleCallbackParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGoogleCallbackParamsWithContext

func NewGetGoogleCallbackParamsWithContext(ctx context.Context) *GetGoogleCallbackParams

NewGetGoogleCallbackParamsWithContext creates a new GetGoogleCallbackParams object with the ability to set a context for a request.

func NewGetGoogleCallbackParamsWithHTTPClient

func NewGetGoogleCallbackParamsWithHTTPClient(client *http.Client) *GetGoogleCallbackParams

NewGetGoogleCallbackParamsWithHTTPClient creates a new GetGoogleCallbackParams object with the ability to set a custom HTTPClient for a request.

func NewGetGoogleCallbackParamsWithTimeout

func NewGetGoogleCallbackParamsWithTimeout(timeout time.Duration) *GetGoogleCallbackParams

NewGetGoogleCallbackParamsWithTimeout creates a new GetGoogleCallbackParams object with the ability to set a timeout on a request.

func (*GetGoogleCallbackParams) SetContext

func (o *GetGoogleCallbackParams) SetContext(ctx context.Context)

SetContext adds the context to the get google callback params

func (*GetGoogleCallbackParams) SetDefaults

func (o *GetGoogleCallbackParams) SetDefaults()

SetDefaults hydrates default values in the get google callback params (not the query body).

All values with no default are reset to their zero value.

func (*GetGoogleCallbackParams) SetHTTPClient

func (o *GetGoogleCallbackParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get google callback params

func (*GetGoogleCallbackParams) SetTimeout

func (o *GetGoogleCallbackParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get google callback params

func (*GetGoogleCallbackParams) WithContext

WithContext adds the context to the get google callback params

func (*GetGoogleCallbackParams) WithDefaults

WithDefaults hydrates default values in the get google callback params (not the query body).

All values with no default are reset to their zero value.

func (*GetGoogleCallbackParams) WithHTTPClient

func (o *GetGoogleCallbackParams) WithHTTPClient(client *http.Client) *GetGoogleCallbackParams

WithHTTPClient adds the HTTPClient to the get google callback params

func (*GetGoogleCallbackParams) WithTimeout

WithTimeout adds the timeout to the get google callback params

func (*GetGoogleCallbackParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGoogleCallbackReader

type GetGoogleCallbackReader struct {
	// contains filtered or unexported fields
}

GetGoogleCallbackReader is a Reader for the GetGoogleCallback structure.

func (*GetGoogleCallbackReader) ReadResponse

func (o *GetGoogleCallbackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetGoogleCallbackTemporaryRedirect

type GetGoogleCallbackTemporaryRedirect struct {

	/* Redirects to Next URL
	 */
	Location string
}

GetGoogleCallbackTemporaryRedirect describes a response with status code 307, with default header values.

Temporary Redirect

func NewGetGoogleCallbackTemporaryRedirect

func NewGetGoogleCallbackTemporaryRedirect() *GetGoogleCallbackTemporaryRedirect

NewGetGoogleCallbackTemporaryRedirect creates a GetGoogleCallbackTemporaryRedirect with default headers values

func (*GetGoogleCallbackTemporaryRedirect) Code

Code gets the status code for the get google callback temporary redirect response

func (*GetGoogleCallbackTemporaryRedirect) Error

func (*GetGoogleCallbackTemporaryRedirect) IsClientError

func (o *GetGoogleCallbackTemporaryRedirect) IsClientError() bool

IsClientError returns true when this get google callback temporary redirect response has a 4xx status code

func (*GetGoogleCallbackTemporaryRedirect) IsCode

IsCode returns true when this get google callback temporary redirect response a status code equal to that given

func (*GetGoogleCallbackTemporaryRedirect) IsRedirect

func (o *GetGoogleCallbackTemporaryRedirect) IsRedirect() bool

IsRedirect returns true when this get google callback temporary redirect response has a 3xx status code

func (*GetGoogleCallbackTemporaryRedirect) IsServerError

func (o *GetGoogleCallbackTemporaryRedirect) IsServerError() bool

IsServerError returns true when this get google callback temporary redirect response has a 5xx status code

func (*GetGoogleCallbackTemporaryRedirect) IsSuccess

IsSuccess returns true when this get google callback temporary redirect response has a 2xx status code

func (*GetGoogleCallbackTemporaryRedirect) String

type GetGoogleCallbackUnauthorized

type GetGoogleCallbackUnauthorized struct {
	Payload string
}

GetGoogleCallbackUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetGoogleCallbackUnauthorized

func NewGetGoogleCallbackUnauthorized() *GetGoogleCallbackUnauthorized

NewGetGoogleCallbackUnauthorized creates a GetGoogleCallbackUnauthorized with default headers values

func (*GetGoogleCallbackUnauthorized) Code

Code gets the status code for the get google callback unauthorized response

func (*GetGoogleCallbackUnauthorized) Error

func (*GetGoogleCallbackUnauthorized) GetPayload

func (o *GetGoogleCallbackUnauthorized) GetPayload() string

func (*GetGoogleCallbackUnauthorized) IsClientError

func (o *GetGoogleCallbackUnauthorized) IsClientError() bool

IsClientError returns true when this get google callback unauthorized response has a 4xx status code

func (*GetGoogleCallbackUnauthorized) IsCode

func (o *GetGoogleCallbackUnauthorized) IsCode(code int) bool

IsCode returns true when this get google callback unauthorized response a status code equal to that given

func (*GetGoogleCallbackUnauthorized) IsRedirect

func (o *GetGoogleCallbackUnauthorized) IsRedirect() bool

IsRedirect returns true when this get google callback unauthorized response has a 3xx status code

func (*GetGoogleCallbackUnauthorized) IsServerError

func (o *GetGoogleCallbackUnauthorized) IsServerError() bool

IsServerError returns true when this get google callback unauthorized response has a 5xx status code

func (*GetGoogleCallbackUnauthorized) IsSuccess

func (o *GetGoogleCallbackUnauthorized) IsSuccess() bool

IsSuccess returns true when this get google callback unauthorized response has a 2xx status code

func (*GetGoogleCallbackUnauthorized) String

type GetGoogleLoginInternalServerError

type GetGoogleLoginInternalServerError struct {
	Payload string
}

GetGoogleLoginInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetGoogleLoginInternalServerError

func NewGetGoogleLoginInternalServerError() *GetGoogleLoginInternalServerError

NewGetGoogleLoginInternalServerError creates a GetGoogleLoginInternalServerError with default headers values

func (*GetGoogleLoginInternalServerError) Code

Code gets the status code for the get google login internal server error response

func (*GetGoogleLoginInternalServerError) Error

func (*GetGoogleLoginInternalServerError) GetPayload

func (o *GetGoogleLoginInternalServerError) GetPayload() string

func (*GetGoogleLoginInternalServerError) IsClientError

func (o *GetGoogleLoginInternalServerError) IsClientError() bool

IsClientError returns true when this get google login internal server error response has a 4xx status code

func (*GetGoogleLoginInternalServerError) IsCode

func (o *GetGoogleLoginInternalServerError) IsCode(code int) bool

IsCode returns true when this get google login internal server error response a status code equal to that given

func (*GetGoogleLoginInternalServerError) IsRedirect

func (o *GetGoogleLoginInternalServerError) IsRedirect() bool

IsRedirect returns true when this get google login internal server error response has a 3xx status code

func (*GetGoogleLoginInternalServerError) IsServerError

func (o *GetGoogleLoginInternalServerError) IsServerError() bool

IsServerError returns true when this get google login internal server error response has a 5xx status code

func (*GetGoogleLoginInternalServerError) IsSuccess

func (o *GetGoogleLoginInternalServerError) IsSuccess() bool

IsSuccess returns true when this get google login internal server error response has a 2xx status code

func (*GetGoogleLoginInternalServerError) String

type GetGoogleLoginParams

type GetGoogleLoginParams struct {

	/* Identifier.

	   Device Flow Identifier
	*/
	Identifier *string

	/* Next.

	   Next Redirect URL
	*/
	Next *string

	/* Organization.

	   Organization
	*/
	Organization *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGoogleLoginParams contains all the parameters to send to the API endpoint

for the get google login operation.

Typically these are written to a http.Request.

func NewGetGoogleLoginParams

func NewGetGoogleLoginParams() *GetGoogleLoginParams

NewGetGoogleLoginParams creates a new GetGoogleLoginParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGoogleLoginParamsWithContext

func NewGetGoogleLoginParamsWithContext(ctx context.Context) *GetGoogleLoginParams

NewGetGoogleLoginParamsWithContext creates a new GetGoogleLoginParams object with the ability to set a context for a request.

func NewGetGoogleLoginParamsWithHTTPClient

func NewGetGoogleLoginParamsWithHTTPClient(client *http.Client) *GetGoogleLoginParams

NewGetGoogleLoginParamsWithHTTPClient creates a new GetGoogleLoginParams object with the ability to set a custom HTTPClient for a request.

func NewGetGoogleLoginParamsWithTimeout

func NewGetGoogleLoginParamsWithTimeout(timeout time.Duration) *GetGoogleLoginParams

NewGetGoogleLoginParamsWithTimeout creates a new GetGoogleLoginParams object with the ability to set a timeout on a request.

func (*GetGoogleLoginParams) SetContext

func (o *GetGoogleLoginParams) SetContext(ctx context.Context)

SetContext adds the context to the get google login params

func (*GetGoogleLoginParams) SetDefaults

func (o *GetGoogleLoginParams) SetDefaults()

SetDefaults hydrates default values in the get google login params (not the query body).

All values with no default are reset to their zero value.

func (*GetGoogleLoginParams) SetHTTPClient

func (o *GetGoogleLoginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get google login params

func (*GetGoogleLoginParams) SetIdentifier

func (o *GetGoogleLoginParams) SetIdentifier(identifier *string)

SetIdentifier adds the identifier to the get google login params

func (*GetGoogleLoginParams) SetNext

func (o *GetGoogleLoginParams) SetNext(next *string)

SetNext adds the next to the get google login params

func (*GetGoogleLoginParams) SetOrganization

func (o *GetGoogleLoginParams) SetOrganization(organization *string)

SetOrganization adds the organization to the get google login params

func (*GetGoogleLoginParams) SetTimeout

func (o *GetGoogleLoginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get google login params

func (*GetGoogleLoginParams) WithContext

WithContext adds the context to the get google login params

func (*GetGoogleLoginParams) WithDefaults

func (o *GetGoogleLoginParams) WithDefaults() *GetGoogleLoginParams

WithDefaults hydrates default values in the get google login params (not the query body).

All values with no default are reset to their zero value.

func (*GetGoogleLoginParams) WithHTTPClient

func (o *GetGoogleLoginParams) WithHTTPClient(client *http.Client) *GetGoogleLoginParams

WithHTTPClient adds the HTTPClient to the get google login params

func (*GetGoogleLoginParams) WithIdentifier

func (o *GetGoogleLoginParams) WithIdentifier(identifier *string) *GetGoogleLoginParams

WithIdentifier adds the identifier to the get google login params

func (*GetGoogleLoginParams) WithNext

func (o *GetGoogleLoginParams) WithNext(next *string) *GetGoogleLoginParams

WithNext adds the next to the get google login params

func (*GetGoogleLoginParams) WithOrganization

func (o *GetGoogleLoginParams) WithOrganization(organization *string) *GetGoogleLoginParams

WithOrganization adds the organization to the get google login params

func (*GetGoogleLoginParams) WithTimeout

func (o *GetGoogleLoginParams) WithTimeout(timeout time.Duration) *GetGoogleLoginParams

WithTimeout adds the timeout to the get google login params

func (*GetGoogleLoginParams) WriteToRequest

func (o *GetGoogleLoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetGoogleLoginReader

type GetGoogleLoginReader struct {
	// contains filtered or unexported fields
}

GetGoogleLoginReader is a Reader for the GetGoogleLogin structure.

func (*GetGoogleLoginReader) ReadResponse

func (o *GetGoogleLoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetGoogleLoginTemporaryRedirect

type GetGoogleLoginTemporaryRedirect struct {

	/* Redirects to Google
	 */
	Location string
}

GetGoogleLoginTemporaryRedirect describes a response with status code 307, with default header values.

Temporary Redirect

func NewGetGoogleLoginTemporaryRedirect

func NewGetGoogleLoginTemporaryRedirect() *GetGoogleLoginTemporaryRedirect

NewGetGoogleLoginTemporaryRedirect creates a GetGoogleLoginTemporaryRedirect with default headers values

func (*GetGoogleLoginTemporaryRedirect) Code

Code gets the status code for the get google login temporary redirect response

func (*GetGoogleLoginTemporaryRedirect) Error

func (*GetGoogleLoginTemporaryRedirect) IsClientError

func (o *GetGoogleLoginTemporaryRedirect) IsClientError() bool

IsClientError returns true when this get google login temporary redirect response has a 4xx status code

func (*GetGoogleLoginTemporaryRedirect) IsCode

func (o *GetGoogleLoginTemporaryRedirect) IsCode(code int) bool

IsCode returns true when this get google login temporary redirect response a status code equal to that given

func (*GetGoogleLoginTemporaryRedirect) IsRedirect

func (o *GetGoogleLoginTemporaryRedirect) IsRedirect() bool

IsRedirect returns true when this get google login temporary redirect response has a 3xx status code

func (*GetGoogleLoginTemporaryRedirect) IsServerError

func (o *GetGoogleLoginTemporaryRedirect) IsServerError() bool

IsServerError returns true when this get google login temporary redirect response has a 5xx status code

func (*GetGoogleLoginTemporaryRedirect) IsSuccess

func (o *GetGoogleLoginTemporaryRedirect) IsSuccess() bool

IsSuccess returns true when this get google login temporary redirect response has a 2xx status code

func (*GetGoogleLoginTemporaryRedirect) String

type GetGoogleLoginUnauthorized

type GetGoogleLoginUnauthorized struct {
	Payload string
}

GetGoogleLoginUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetGoogleLoginUnauthorized

func NewGetGoogleLoginUnauthorized() *GetGoogleLoginUnauthorized

NewGetGoogleLoginUnauthorized creates a GetGoogleLoginUnauthorized with default headers values

func (*GetGoogleLoginUnauthorized) Code

func (o *GetGoogleLoginUnauthorized) Code() int

Code gets the status code for the get google login unauthorized response

func (*GetGoogleLoginUnauthorized) Error

func (*GetGoogleLoginUnauthorized) GetPayload

func (o *GetGoogleLoginUnauthorized) GetPayload() string

func (*GetGoogleLoginUnauthorized) IsClientError

func (o *GetGoogleLoginUnauthorized) IsClientError() bool

IsClientError returns true when this get google login unauthorized response has a 4xx status code

func (*GetGoogleLoginUnauthorized) IsCode

func (o *GetGoogleLoginUnauthorized) IsCode(code int) bool

IsCode returns true when this get google login unauthorized response a status code equal to that given

func (*GetGoogleLoginUnauthorized) IsRedirect

func (o *GetGoogleLoginUnauthorized) IsRedirect() bool

IsRedirect returns true when this get google login unauthorized response has a 3xx status code

func (*GetGoogleLoginUnauthorized) IsServerError

func (o *GetGoogleLoginUnauthorized) IsServerError() bool

IsServerError returns true when this get google login unauthorized response has a 5xx status code

func (*GetGoogleLoginUnauthorized) IsSuccess

func (o *GetGoogleLoginUnauthorized) IsSuccess() bool

IsSuccess returns true when this get google login unauthorized response has a 2xx status code

func (*GetGoogleLoginUnauthorized) String

func (o *GetGoogleLoginUnauthorized) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL