profile_service

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MPL-2.0 Imports: 11 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 profile service API

func (*Client) ConfirmMFAEnrollment

func (a *Client) ConfirmMFAEnrollment(params *ConfirmMFAEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConfirmMFAEnrollmentOK, error)

ConfirmMFAEnrollment confirms m f a enrollment is used to perform the first authentication with a newly setup m f a t o t p which then confirms the user s setup and activates the new m f a enrollment

func (*Client) DisableMFA

func (a *Client) DisableMFA(params *DisableMFAParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DisableMFAOK, error)

DisableMFA disable m f a API

func (*Client) EnableMFA

func (a *Client) EnableMFA(params *EnableMFAParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableMFAOK, error)

EnableMFA enables m f a triggers the process of enabling m f a for a given user

func (*Client) GetMFAStatus

func (a *Client) GetMFAStatus(params *GetMFAStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMFAStatusOK, error)

GetMFAStatus gets m f a status returns the m f a status of the current user

func (*Client) ResetPassword

func (a *Client) ResetPassword(params *ResetPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResetPasswordOK, error)

ResetPassword resets password resets a password for an email password user

func (*Client) SendVerificationEmail

func (a *Client) SendVerificationEmail(params *SendVerificationEmailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SendVerificationEmailOK, error)

SendVerificationEmail sends verification email triggers a new verification email to be sent to calling user s email address

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 {
	ConfirmMFAEnrollment(params *ConfirmMFAEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConfirmMFAEnrollmentOK, error)

	DisableMFA(params *DisableMFAParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DisableMFAOK, error)

	EnableMFA(params *EnableMFAParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableMFAOK, error)

	GetMFAStatus(params *GetMFAStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMFAStatusOK, error)

	ResetPassword(params *ResetPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResetPasswordOK, error)

	SendVerificationEmail(params *SendVerificationEmailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SendVerificationEmailOK, 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 profile service API client.

type ConfirmMFAEnrollmentDefault

type ConfirmMFAEnrollmentDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

ConfirmMFAEnrollmentDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewConfirmMFAEnrollmentDefault

func NewConfirmMFAEnrollmentDefault(code int) *ConfirmMFAEnrollmentDefault

NewConfirmMFAEnrollmentDefault creates a ConfirmMFAEnrollmentDefault with default headers values

func (*ConfirmMFAEnrollmentDefault) Code

func (o *ConfirmMFAEnrollmentDefault) Code() int

Code gets the status code for the confirm m f a enrollment default response

func (*ConfirmMFAEnrollmentDefault) Error

func (*ConfirmMFAEnrollmentDefault) GetPayload

func (*ConfirmMFAEnrollmentDefault) IsClientError

func (o *ConfirmMFAEnrollmentDefault) IsClientError() bool

IsClientError returns true when this confirm m f a enrollment default response has a 4xx status code

func (*ConfirmMFAEnrollmentDefault) IsCode

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

IsCode returns true when this confirm m f a enrollment default response a status code equal to that given

func (*ConfirmMFAEnrollmentDefault) IsRedirect

func (o *ConfirmMFAEnrollmentDefault) IsRedirect() bool

IsRedirect returns true when this confirm m f a enrollment default response has a 3xx status code

func (*ConfirmMFAEnrollmentDefault) IsServerError

func (o *ConfirmMFAEnrollmentDefault) IsServerError() bool

IsServerError returns true when this confirm m f a enrollment default response has a 5xx status code

func (*ConfirmMFAEnrollmentDefault) IsSuccess

func (o *ConfirmMFAEnrollmentDefault) IsSuccess() bool

IsSuccess returns true when this confirm m f a enrollment default response has a 2xx status code

func (*ConfirmMFAEnrollmentDefault) String

func (o *ConfirmMFAEnrollmentDefault) String() string

type ConfirmMFAEnrollmentOK

type ConfirmMFAEnrollmentOK struct {
	Payload models.HashicorpCloudIamConfirmMFAEnrollmentResponse
}

ConfirmMFAEnrollmentOK describes a response with status code 200, with default header values.

A successful response.

func NewConfirmMFAEnrollmentOK

func NewConfirmMFAEnrollmentOK() *ConfirmMFAEnrollmentOK

NewConfirmMFAEnrollmentOK creates a ConfirmMFAEnrollmentOK with default headers values

func (*ConfirmMFAEnrollmentOK) Error

func (o *ConfirmMFAEnrollmentOK) Error() string

func (*ConfirmMFAEnrollmentOK) GetPayload

func (*ConfirmMFAEnrollmentOK) IsClientError

func (o *ConfirmMFAEnrollmentOK) IsClientError() bool

IsClientError returns true when this confirm m f a enrollment o k response has a 4xx status code

func (*ConfirmMFAEnrollmentOK) IsCode

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

IsCode returns true when this confirm m f a enrollment o k response a status code equal to that given

func (*ConfirmMFAEnrollmentOK) IsRedirect

func (o *ConfirmMFAEnrollmentOK) IsRedirect() bool

IsRedirect returns true when this confirm m f a enrollment o k response has a 3xx status code

func (*ConfirmMFAEnrollmentOK) IsServerError

func (o *ConfirmMFAEnrollmentOK) IsServerError() bool

IsServerError returns true when this confirm m f a enrollment o k response has a 5xx status code

func (*ConfirmMFAEnrollmentOK) IsSuccess

func (o *ConfirmMFAEnrollmentOK) IsSuccess() bool

IsSuccess returns true when this confirm m f a enrollment o k response has a 2xx status code

func (*ConfirmMFAEnrollmentOK) String

func (o *ConfirmMFAEnrollmentOK) String() string

type ConfirmMFAEnrollmentParams

type ConfirmMFAEnrollmentParams struct {

	// Body.
	Body *models.HashicorpCloudIamConfirmMFAEnrollmentRequest

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

ConfirmMFAEnrollmentParams contains all the parameters to send to the API endpoint

for the confirm m f a enrollment operation.

Typically these are written to a http.Request.

func NewConfirmMFAEnrollmentParams

func NewConfirmMFAEnrollmentParams() *ConfirmMFAEnrollmentParams

NewConfirmMFAEnrollmentParams creates a new ConfirmMFAEnrollmentParams 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 NewConfirmMFAEnrollmentParamsWithContext

func NewConfirmMFAEnrollmentParamsWithContext(ctx context.Context) *ConfirmMFAEnrollmentParams

NewConfirmMFAEnrollmentParamsWithContext creates a new ConfirmMFAEnrollmentParams object with the ability to set a context for a request.

func NewConfirmMFAEnrollmentParamsWithHTTPClient

func NewConfirmMFAEnrollmentParamsWithHTTPClient(client *http.Client) *ConfirmMFAEnrollmentParams

NewConfirmMFAEnrollmentParamsWithHTTPClient creates a new ConfirmMFAEnrollmentParams object with the ability to set a custom HTTPClient for a request.

func NewConfirmMFAEnrollmentParamsWithTimeout

func NewConfirmMFAEnrollmentParamsWithTimeout(timeout time.Duration) *ConfirmMFAEnrollmentParams

NewConfirmMFAEnrollmentParamsWithTimeout creates a new ConfirmMFAEnrollmentParams object with the ability to set a timeout on a request.

func (*ConfirmMFAEnrollmentParams) SetBody

SetBody adds the body to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) SetContext

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

SetContext adds the context to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) SetDefaults

func (o *ConfirmMFAEnrollmentParams) SetDefaults()

SetDefaults hydrates default values in the confirm m f a enrollment params (not the query body).

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

func (*ConfirmMFAEnrollmentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) SetTimeout

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

SetTimeout adds the timeout to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) WithBody

WithBody adds the body to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) WithContext

WithContext adds the context to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) WithDefaults

WithDefaults hydrates default values in the confirm m f a enrollment params (not the query body).

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

func (*ConfirmMFAEnrollmentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) WithTimeout

WithTimeout adds the timeout to the confirm m f a enrollment params

func (*ConfirmMFAEnrollmentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ConfirmMFAEnrollmentReader

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

ConfirmMFAEnrollmentReader is a Reader for the ConfirmMFAEnrollment structure.

func (*ConfirmMFAEnrollmentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DisableMFADefault

type DisableMFADefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

DisableMFADefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDisableMFADefault

func NewDisableMFADefault(code int) *DisableMFADefault

NewDisableMFADefault creates a DisableMFADefault with default headers values

func (*DisableMFADefault) Code

func (o *DisableMFADefault) Code() int

Code gets the status code for the disable m f a default response

func (*DisableMFADefault) Error

func (o *DisableMFADefault) Error() string

func (*DisableMFADefault) GetPayload

func (o *DisableMFADefault) GetPayload() *cloud.GoogleRPCStatus

func (*DisableMFADefault) IsClientError

func (o *DisableMFADefault) IsClientError() bool

IsClientError returns true when this disable m f a default response has a 4xx status code

func (*DisableMFADefault) IsCode

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

IsCode returns true when this disable m f a default response a status code equal to that given

func (*DisableMFADefault) IsRedirect

func (o *DisableMFADefault) IsRedirect() bool

IsRedirect returns true when this disable m f a default response has a 3xx status code

func (*DisableMFADefault) IsServerError

func (o *DisableMFADefault) IsServerError() bool

IsServerError returns true when this disable m f a default response has a 5xx status code

func (*DisableMFADefault) IsSuccess

func (o *DisableMFADefault) IsSuccess() bool

IsSuccess returns true when this disable m f a default response has a 2xx status code

func (*DisableMFADefault) String

func (o *DisableMFADefault) String() string

type DisableMFAOK

type DisableMFAOK struct {
	Payload models.HashicorpCloudIamDisableMFAResponse
}

DisableMFAOK describes a response with status code 200, with default header values.

A successful response.

func NewDisableMFAOK

func NewDisableMFAOK() *DisableMFAOK

NewDisableMFAOK creates a DisableMFAOK with default headers values

func (*DisableMFAOK) Error

func (o *DisableMFAOK) Error() string

func (*DisableMFAOK) GetPayload

func (*DisableMFAOK) IsClientError

func (o *DisableMFAOK) IsClientError() bool

IsClientError returns true when this disable m f a o k response has a 4xx status code

func (*DisableMFAOK) IsCode

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

IsCode returns true when this disable m f a o k response a status code equal to that given

func (*DisableMFAOK) IsRedirect

func (o *DisableMFAOK) IsRedirect() bool

IsRedirect returns true when this disable m f a o k response has a 3xx status code

func (*DisableMFAOK) IsServerError

func (o *DisableMFAOK) IsServerError() bool

IsServerError returns true when this disable m f a o k response has a 5xx status code

func (*DisableMFAOK) IsSuccess

func (o *DisableMFAOK) IsSuccess() bool

IsSuccess returns true when this disable m f a o k response has a 2xx status code

func (*DisableMFAOK) String

func (o *DisableMFAOK) String() string

type DisableMFAParams

type DisableMFAParams struct {

	// Body.
	Body *models.HashicorpCloudIamDisableMFARequest

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

DisableMFAParams contains all the parameters to send to the API endpoint

for the disable m f a operation.

Typically these are written to a http.Request.

func NewDisableMFAParams

func NewDisableMFAParams() *DisableMFAParams

NewDisableMFAParams creates a new DisableMFAParams 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 NewDisableMFAParamsWithContext

func NewDisableMFAParamsWithContext(ctx context.Context) *DisableMFAParams

NewDisableMFAParamsWithContext creates a new DisableMFAParams object with the ability to set a context for a request.

func NewDisableMFAParamsWithHTTPClient

func NewDisableMFAParamsWithHTTPClient(client *http.Client) *DisableMFAParams

NewDisableMFAParamsWithHTTPClient creates a new DisableMFAParams object with the ability to set a custom HTTPClient for a request.

func NewDisableMFAParamsWithTimeout

func NewDisableMFAParamsWithTimeout(timeout time.Duration) *DisableMFAParams

NewDisableMFAParamsWithTimeout creates a new DisableMFAParams object with the ability to set a timeout on a request.

func (*DisableMFAParams) SetBody

SetBody adds the body to the disable m f a params

func (*DisableMFAParams) SetContext

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

SetContext adds the context to the disable m f a params

func (*DisableMFAParams) SetDefaults

func (o *DisableMFAParams) SetDefaults()

SetDefaults hydrates default values in the disable m f a params (not the query body).

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

func (*DisableMFAParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the disable m f a params

func (*DisableMFAParams) SetTimeout

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

SetTimeout adds the timeout to the disable m f a params

func (*DisableMFAParams) WithBody

WithBody adds the body to the disable m f a params

func (*DisableMFAParams) WithContext

func (o *DisableMFAParams) WithContext(ctx context.Context) *DisableMFAParams

WithContext adds the context to the disable m f a params

func (*DisableMFAParams) WithDefaults

func (o *DisableMFAParams) WithDefaults() *DisableMFAParams

WithDefaults hydrates default values in the disable m f a params (not the query body).

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

func (*DisableMFAParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the disable m f a params

func (*DisableMFAParams) WithTimeout

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

WithTimeout adds the timeout to the disable m f a params

func (*DisableMFAParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DisableMFAReader

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

DisableMFAReader is a Reader for the DisableMFA structure.

func (*DisableMFAReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnableMFADefault

type EnableMFADefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

EnableMFADefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewEnableMFADefault

func NewEnableMFADefault(code int) *EnableMFADefault

NewEnableMFADefault creates a EnableMFADefault with default headers values

func (*EnableMFADefault) Code

func (o *EnableMFADefault) Code() int

Code gets the status code for the enable m f a default response

func (*EnableMFADefault) Error

func (o *EnableMFADefault) Error() string

func (*EnableMFADefault) GetPayload

func (o *EnableMFADefault) GetPayload() *cloud.GoogleRPCStatus

func (*EnableMFADefault) IsClientError

func (o *EnableMFADefault) IsClientError() bool

IsClientError returns true when this enable m f a default response has a 4xx status code

func (*EnableMFADefault) IsCode

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

IsCode returns true when this enable m f a default response a status code equal to that given

func (*EnableMFADefault) IsRedirect

func (o *EnableMFADefault) IsRedirect() bool

IsRedirect returns true when this enable m f a default response has a 3xx status code

func (*EnableMFADefault) IsServerError

func (o *EnableMFADefault) IsServerError() bool

IsServerError returns true when this enable m f a default response has a 5xx status code

func (*EnableMFADefault) IsSuccess

func (o *EnableMFADefault) IsSuccess() bool

IsSuccess returns true when this enable m f a default response has a 2xx status code

func (*EnableMFADefault) String

func (o *EnableMFADefault) String() string

type EnableMFAOK

type EnableMFAOK struct {
	Payload *models.HashicorpCloudIamEnableMFAResponse
}

EnableMFAOK describes a response with status code 200, with default header values.

A successful response.

func NewEnableMFAOK

func NewEnableMFAOK() *EnableMFAOK

NewEnableMFAOK creates a EnableMFAOK with default headers values

func (*EnableMFAOK) Error

func (o *EnableMFAOK) Error() string

func (*EnableMFAOK) GetPayload

func (*EnableMFAOK) IsClientError

func (o *EnableMFAOK) IsClientError() bool

IsClientError returns true when this enable m f a o k response has a 4xx status code

func (*EnableMFAOK) IsCode

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

IsCode returns true when this enable m f a o k response a status code equal to that given

func (*EnableMFAOK) IsRedirect

func (o *EnableMFAOK) IsRedirect() bool

IsRedirect returns true when this enable m f a o k response has a 3xx status code

func (*EnableMFAOK) IsServerError

func (o *EnableMFAOK) IsServerError() bool

IsServerError returns true when this enable m f a o k response has a 5xx status code

func (*EnableMFAOK) IsSuccess

func (o *EnableMFAOK) IsSuccess() bool

IsSuccess returns true when this enable m f a o k response has a 2xx status code

func (*EnableMFAOK) String

func (o *EnableMFAOK) String() string

type EnableMFAParams

type EnableMFAParams struct {

	// Body.
	Body *models.HashicorpCloudIamEnableMFARequest

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

EnableMFAParams contains all the parameters to send to the API endpoint

for the enable m f a operation.

Typically these are written to a http.Request.

func NewEnableMFAParams

func NewEnableMFAParams() *EnableMFAParams

NewEnableMFAParams creates a new EnableMFAParams 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 NewEnableMFAParamsWithContext

func NewEnableMFAParamsWithContext(ctx context.Context) *EnableMFAParams

NewEnableMFAParamsWithContext creates a new EnableMFAParams object with the ability to set a context for a request.

func NewEnableMFAParamsWithHTTPClient

func NewEnableMFAParamsWithHTTPClient(client *http.Client) *EnableMFAParams

NewEnableMFAParamsWithHTTPClient creates a new EnableMFAParams object with the ability to set a custom HTTPClient for a request.

func NewEnableMFAParamsWithTimeout

func NewEnableMFAParamsWithTimeout(timeout time.Duration) *EnableMFAParams

NewEnableMFAParamsWithTimeout creates a new EnableMFAParams object with the ability to set a timeout on a request.

func (*EnableMFAParams) SetBody

SetBody adds the body to the enable m f a params

func (*EnableMFAParams) SetContext

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

SetContext adds the context to the enable m f a params

func (*EnableMFAParams) SetDefaults

func (o *EnableMFAParams) SetDefaults()

SetDefaults hydrates default values in the enable m f a params (not the query body).

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

func (*EnableMFAParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enable m f a params

func (*EnableMFAParams) SetTimeout

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

SetTimeout adds the timeout to the enable m f a params

func (*EnableMFAParams) WithBody

WithBody adds the body to the enable m f a params

func (*EnableMFAParams) WithContext

func (o *EnableMFAParams) WithContext(ctx context.Context) *EnableMFAParams

WithContext adds the context to the enable m f a params

func (*EnableMFAParams) WithDefaults

func (o *EnableMFAParams) WithDefaults() *EnableMFAParams

WithDefaults hydrates default values in the enable m f a params (not the query body).

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

func (*EnableMFAParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enable m f a params

func (*EnableMFAParams) WithTimeout

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

WithTimeout adds the timeout to the enable m f a params

func (*EnableMFAParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnableMFAReader

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

EnableMFAReader is a Reader for the EnableMFA structure.

func (*EnableMFAReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMFAStatusDefault

type GetMFAStatusDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

GetMFAStatusDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetMFAStatusDefault

func NewGetMFAStatusDefault(code int) *GetMFAStatusDefault

NewGetMFAStatusDefault creates a GetMFAStatusDefault with default headers values

func (*GetMFAStatusDefault) Code

func (o *GetMFAStatusDefault) Code() int

Code gets the status code for the get m f a status default response

func (*GetMFAStatusDefault) Error

func (o *GetMFAStatusDefault) Error() string

func (*GetMFAStatusDefault) GetPayload

func (o *GetMFAStatusDefault) GetPayload() *cloud.GoogleRPCStatus

func (*GetMFAStatusDefault) IsClientError

func (o *GetMFAStatusDefault) IsClientError() bool

IsClientError returns true when this get m f a status default response has a 4xx status code

func (*GetMFAStatusDefault) IsCode

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

IsCode returns true when this get m f a status default response a status code equal to that given

func (*GetMFAStatusDefault) IsRedirect

func (o *GetMFAStatusDefault) IsRedirect() bool

IsRedirect returns true when this get m f a status default response has a 3xx status code

func (*GetMFAStatusDefault) IsServerError

func (o *GetMFAStatusDefault) IsServerError() bool

IsServerError returns true when this get m f a status default response has a 5xx status code

func (*GetMFAStatusDefault) IsSuccess

func (o *GetMFAStatusDefault) IsSuccess() bool

IsSuccess returns true when this get m f a status default response has a 2xx status code

func (*GetMFAStatusDefault) String

func (o *GetMFAStatusDefault) String() string

type GetMFAStatusOK

type GetMFAStatusOK struct {
	Payload *models.HashicorpCloudIamGetMFAStatusResponse
}

GetMFAStatusOK describes a response with status code 200, with default header values.

A successful response.

func NewGetMFAStatusOK

func NewGetMFAStatusOK() *GetMFAStatusOK

NewGetMFAStatusOK creates a GetMFAStatusOK with default headers values

func (*GetMFAStatusOK) Error

func (o *GetMFAStatusOK) Error() string

func (*GetMFAStatusOK) GetPayload

func (*GetMFAStatusOK) IsClientError

func (o *GetMFAStatusOK) IsClientError() bool

IsClientError returns true when this get m f a status o k response has a 4xx status code

func (*GetMFAStatusOK) IsCode

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

IsCode returns true when this get m f a status o k response a status code equal to that given

func (*GetMFAStatusOK) IsRedirect

func (o *GetMFAStatusOK) IsRedirect() bool

IsRedirect returns true when this get m f a status o k response has a 3xx status code

func (*GetMFAStatusOK) IsServerError

func (o *GetMFAStatusOK) IsServerError() bool

IsServerError returns true when this get m f a status o k response has a 5xx status code

func (*GetMFAStatusOK) IsSuccess

func (o *GetMFAStatusOK) IsSuccess() bool

IsSuccess returns true when this get m f a status o k response has a 2xx status code

func (*GetMFAStatusOK) String

func (o *GetMFAStatusOK) String() string

type GetMFAStatusParams

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

GetMFAStatusParams contains all the parameters to send to the API endpoint

for the get m f a status operation.

Typically these are written to a http.Request.

func NewGetMFAStatusParams

func NewGetMFAStatusParams() *GetMFAStatusParams

NewGetMFAStatusParams creates a new GetMFAStatusParams 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 NewGetMFAStatusParamsWithContext

func NewGetMFAStatusParamsWithContext(ctx context.Context) *GetMFAStatusParams

NewGetMFAStatusParamsWithContext creates a new GetMFAStatusParams object with the ability to set a context for a request.

func NewGetMFAStatusParamsWithHTTPClient

func NewGetMFAStatusParamsWithHTTPClient(client *http.Client) *GetMFAStatusParams

NewGetMFAStatusParamsWithHTTPClient creates a new GetMFAStatusParams object with the ability to set a custom HTTPClient for a request.

func NewGetMFAStatusParamsWithTimeout

func NewGetMFAStatusParamsWithTimeout(timeout time.Duration) *GetMFAStatusParams

NewGetMFAStatusParamsWithTimeout creates a new GetMFAStatusParams object with the ability to set a timeout on a request.

func (*GetMFAStatusParams) SetContext

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

SetContext adds the context to the get m f a status params

func (*GetMFAStatusParams) SetDefaults

func (o *GetMFAStatusParams) SetDefaults()

SetDefaults hydrates default values in the get m f a status params (not the query body).

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

func (*GetMFAStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get m f a status params

func (*GetMFAStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get m f a status params

func (*GetMFAStatusParams) WithContext

WithContext adds the context to the get m f a status params

func (*GetMFAStatusParams) WithDefaults

func (o *GetMFAStatusParams) WithDefaults() *GetMFAStatusParams

WithDefaults hydrates default values in the get m f a status params (not the query body).

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

func (*GetMFAStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get m f a status params

func (*GetMFAStatusParams) WithTimeout

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

WithTimeout adds the timeout to the get m f a status params

func (*GetMFAStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMFAStatusReader

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

GetMFAStatusReader is a Reader for the GetMFAStatus structure.

func (*GetMFAStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResetPasswordDefault

type ResetPasswordDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

ResetPasswordDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewResetPasswordDefault

func NewResetPasswordDefault(code int) *ResetPasswordDefault

NewResetPasswordDefault creates a ResetPasswordDefault with default headers values

func (*ResetPasswordDefault) Code

func (o *ResetPasswordDefault) Code() int

Code gets the status code for the reset password default response

func (*ResetPasswordDefault) Error

func (o *ResetPasswordDefault) Error() string

func (*ResetPasswordDefault) GetPayload

func (o *ResetPasswordDefault) GetPayload() *cloud.GoogleRPCStatus

func (*ResetPasswordDefault) IsClientError

func (o *ResetPasswordDefault) IsClientError() bool

IsClientError returns true when this reset password default response has a 4xx status code

func (*ResetPasswordDefault) IsCode

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

IsCode returns true when this reset password default response a status code equal to that given

func (*ResetPasswordDefault) IsRedirect

func (o *ResetPasswordDefault) IsRedirect() bool

IsRedirect returns true when this reset password default response has a 3xx status code

func (*ResetPasswordDefault) IsServerError

func (o *ResetPasswordDefault) IsServerError() bool

IsServerError returns true when this reset password default response has a 5xx status code

func (*ResetPasswordDefault) IsSuccess

func (o *ResetPasswordDefault) IsSuccess() bool

IsSuccess returns true when this reset password default response has a 2xx status code

func (*ResetPasswordDefault) String

func (o *ResetPasswordDefault) String() string

type ResetPasswordOK

type ResetPasswordOK struct {
	Payload models.HashicorpCloudIamResetPasswordResponse
}

ResetPasswordOK describes a response with status code 200, with default header values.

A successful response.

func NewResetPasswordOK

func NewResetPasswordOK() *ResetPasswordOK

NewResetPasswordOK creates a ResetPasswordOK with default headers values

func (*ResetPasswordOK) Error

func (o *ResetPasswordOK) Error() string

func (*ResetPasswordOK) GetPayload

func (*ResetPasswordOK) IsClientError

func (o *ResetPasswordOK) IsClientError() bool

IsClientError returns true when this reset password o k response has a 4xx status code

func (*ResetPasswordOK) IsCode

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

IsCode returns true when this reset password o k response a status code equal to that given

func (*ResetPasswordOK) IsRedirect

func (o *ResetPasswordOK) IsRedirect() bool

IsRedirect returns true when this reset password o k response has a 3xx status code

func (*ResetPasswordOK) IsServerError

func (o *ResetPasswordOK) IsServerError() bool

IsServerError returns true when this reset password o k response has a 5xx status code

func (*ResetPasswordOK) IsSuccess

func (o *ResetPasswordOK) IsSuccess() bool

IsSuccess returns true when this reset password o k response has a 2xx status code

func (*ResetPasswordOK) String

func (o *ResetPasswordOK) String() string

type ResetPasswordParams

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

ResetPasswordParams contains all the parameters to send to the API endpoint

for the reset password operation.

Typically these are written to a http.Request.

func NewResetPasswordParams

func NewResetPasswordParams() *ResetPasswordParams

NewResetPasswordParams creates a new ResetPasswordParams 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 NewResetPasswordParamsWithContext

func NewResetPasswordParamsWithContext(ctx context.Context) *ResetPasswordParams

NewResetPasswordParamsWithContext creates a new ResetPasswordParams object with the ability to set a context for a request.

func NewResetPasswordParamsWithHTTPClient

func NewResetPasswordParamsWithHTTPClient(client *http.Client) *ResetPasswordParams

NewResetPasswordParamsWithHTTPClient creates a new ResetPasswordParams object with the ability to set a custom HTTPClient for a request.

func NewResetPasswordParamsWithTimeout

func NewResetPasswordParamsWithTimeout(timeout time.Duration) *ResetPasswordParams

NewResetPasswordParamsWithTimeout creates a new ResetPasswordParams object with the ability to set a timeout on a request.

func (*ResetPasswordParams) SetContext

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

SetContext adds the context to the reset password params

func (*ResetPasswordParams) SetDefaults

func (o *ResetPasswordParams) SetDefaults()

SetDefaults hydrates default values in the reset password params (not the query body).

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

func (*ResetPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WithContext

WithContext adds the context to the reset password params

func (*ResetPasswordParams) WithDefaults

func (o *ResetPasswordParams) WithDefaults() *ResetPasswordParams

WithDefaults hydrates default values in the reset password params (not the query body).

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

func (*ResetPasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) WithTimeout

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

WithTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ResetPasswordReader

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

ResetPasswordReader is a Reader for the ResetPassword structure.

func (*ResetPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SendVerificationEmailDefault

type SendVerificationEmailDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

SendVerificationEmailDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewSendVerificationEmailDefault

func NewSendVerificationEmailDefault(code int) *SendVerificationEmailDefault

NewSendVerificationEmailDefault creates a SendVerificationEmailDefault with default headers values

func (*SendVerificationEmailDefault) Code

Code gets the status code for the send verification email default response

func (*SendVerificationEmailDefault) Error

func (*SendVerificationEmailDefault) GetPayload

func (*SendVerificationEmailDefault) IsClientError

func (o *SendVerificationEmailDefault) IsClientError() bool

IsClientError returns true when this send verification email default response has a 4xx status code

func (*SendVerificationEmailDefault) IsCode

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

IsCode returns true when this send verification email default response a status code equal to that given

func (*SendVerificationEmailDefault) IsRedirect

func (o *SendVerificationEmailDefault) IsRedirect() bool

IsRedirect returns true when this send verification email default response has a 3xx status code

func (*SendVerificationEmailDefault) IsServerError

func (o *SendVerificationEmailDefault) IsServerError() bool

IsServerError returns true when this send verification email default response has a 5xx status code

func (*SendVerificationEmailDefault) IsSuccess

func (o *SendVerificationEmailDefault) IsSuccess() bool

IsSuccess returns true when this send verification email default response has a 2xx status code

func (*SendVerificationEmailDefault) String

type SendVerificationEmailOK

type SendVerificationEmailOK struct {
	Payload models.HashicorpCloudIamSendVerificationEmailResponse
}

SendVerificationEmailOK describes a response with status code 200, with default header values.

A successful response.

func NewSendVerificationEmailOK

func NewSendVerificationEmailOK() *SendVerificationEmailOK

NewSendVerificationEmailOK creates a SendVerificationEmailOK with default headers values

func (*SendVerificationEmailOK) Error

func (o *SendVerificationEmailOK) Error() string

func (*SendVerificationEmailOK) GetPayload

func (*SendVerificationEmailOK) IsClientError

func (o *SendVerificationEmailOK) IsClientError() bool

IsClientError returns true when this send verification email o k response has a 4xx status code

func (*SendVerificationEmailOK) IsCode

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

IsCode returns true when this send verification email o k response a status code equal to that given

func (*SendVerificationEmailOK) IsRedirect

func (o *SendVerificationEmailOK) IsRedirect() bool

IsRedirect returns true when this send verification email o k response has a 3xx status code

func (*SendVerificationEmailOK) IsServerError

func (o *SendVerificationEmailOK) IsServerError() bool

IsServerError returns true when this send verification email o k response has a 5xx status code

func (*SendVerificationEmailOK) IsSuccess

func (o *SendVerificationEmailOK) IsSuccess() bool

IsSuccess returns true when this send verification email o k response has a 2xx status code

func (*SendVerificationEmailOK) String

func (o *SendVerificationEmailOK) String() string

type SendVerificationEmailParams

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

SendVerificationEmailParams contains all the parameters to send to the API endpoint

for the send verification email operation.

Typically these are written to a http.Request.

func NewSendVerificationEmailParams

func NewSendVerificationEmailParams() *SendVerificationEmailParams

NewSendVerificationEmailParams creates a new SendVerificationEmailParams 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 NewSendVerificationEmailParamsWithContext

func NewSendVerificationEmailParamsWithContext(ctx context.Context) *SendVerificationEmailParams

NewSendVerificationEmailParamsWithContext creates a new SendVerificationEmailParams object with the ability to set a context for a request.

func NewSendVerificationEmailParamsWithHTTPClient

func NewSendVerificationEmailParamsWithHTTPClient(client *http.Client) *SendVerificationEmailParams

NewSendVerificationEmailParamsWithHTTPClient creates a new SendVerificationEmailParams object with the ability to set a custom HTTPClient for a request.

func NewSendVerificationEmailParamsWithTimeout

func NewSendVerificationEmailParamsWithTimeout(timeout time.Duration) *SendVerificationEmailParams

NewSendVerificationEmailParamsWithTimeout creates a new SendVerificationEmailParams object with the ability to set a timeout on a request.

func (*SendVerificationEmailParams) SetContext

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

SetContext adds the context to the send verification email params

func (*SendVerificationEmailParams) SetDefaults

func (o *SendVerificationEmailParams) SetDefaults()

SetDefaults hydrates default values in the send verification email params (not the query body).

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

func (*SendVerificationEmailParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the send verification email params

func (*SendVerificationEmailParams) SetTimeout

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

SetTimeout adds the timeout to the send verification email params

func (*SendVerificationEmailParams) WithContext

WithContext adds the context to the send verification email params

func (*SendVerificationEmailParams) WithDefaults

WithDefaults hydrates default values in the send verification email params (not the query body).

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

func (*SendVerificationEmailParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the send verification email params

func (*SendVerificationEmailParams) WithTimeout

WithTimeout adds the timeout to the send verification email params

func (*SendVerificationEmailParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SendVerificationEmailReader

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

SendVerificationEmailReader is a Reader for the SendVerificationEmail structure.

func (*SendVerificationEmailReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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