infrastructure_accounts

package
v0.0.0-...-69bf527 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 13 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 infrastructure accounts API

func (*Client) CreateInfrastructureAccount

func (a *Client) CreateInfrastructureAccount(params *CreateInfrastructureAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInfrastructureAccountCreated, error)

CreateInfrastructureAccount creates infrastructure account

Creates a new infrastructure account

func (*Client) GetInfrastructureAccount

func (a *Client) GetInfrastructureAccount(params *GetInfrastructureAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfrastructureAccountOK, error)

GetInfrastructureAccount gets single infrastructure account

Read information regarding the infrastructure account.

func (*Client) ListInfrastructureAccounts

func (a *Client) ListInfrastructureAccounts(params *ListInfrastructureAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListInfrastructureAccountsOK, error)

ListInfrastructureAccounts lists all registered infrastructure accounts

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateInfrastructureAccount

func (a *Client) UpdateInfrastructureAccount(params *UpdateInfrastructureAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateInfrastructureAccountOK, error)

UpdateInfrastructureAccount updates infrastructure account

update an infrastructure account.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateInfrastructureAccount(params *CreateInfrastructureAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInfrastructureAccountCreated, error)

	GetInfrastructureAccount(params *GetInfrastructureAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfrastructureAccountOK, error)

	ListInfrastructureAccounts(params *ListInfrastructureAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListInfrastructureAccountsOK, error)

	UpdateInfrastructureAccount(params *UpdateInfrastructureAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateInfrastructureAccountOK, 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 infrastructure accounts API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new infrastructure accounts API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new infrastructure accounts API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateInfrastructureAccountBadRequest

type CreateInfrastructureAccountBadRequest struct {
}

CreateInfrastructureAccountBadRequest describes a response with status code 400, with default header values.

Invalid parameters

func NewCreateInfrastructureAccountBadRequest

func NewCreateInfrastructureAccountBadRequest() *CreateInfrastructureAccountBadRequest

NewCreateInfrastructureAccountBadRequest creates a CreateInfrastructureAccountBadRequest with default headers values

func (*CreateInfrastructureAccountBadRequest) Code

Code gets the status code for the create infrastructure account bad request response

func (*CreateInfrastructureAccountBadRequest) Error

func (*CreateInfrastructureAccountBadRequest) IsClientError

func (o *CreateInfrastructureAccountBadRequest) IsClientError() bool

IsClientError returns true when this create infrastructure account bad request response has a 4xx status code

func (*CreateInfrastructureAccountBadRequest) IsCode

IsCode returns true when this create infrastructure account bad request response a status code equal to that given

func (*CreateInfrastructureAccountBadRequest) IsRedirect

IsRedirect returns true when this create infrastructure account bad request response has a 3xx status code

func (*CreateInfrastructureAccountBadRequest) IsServerError

func (o *CreateInfrastructureAccountBadRequest) IsServerError() bool

IsServerError returns true when this create infrastructure account bad request response has a 5xx status code

func (*CreateInfrastructureAccountBadRequest) IsSuccess

IsSuccess returns true when this create infrastructure account bad request response has a 2xx status code

func (*CreateInfrastructureAccountBadRequest) String

type CreateInfrastructureAccountConflict

type CreateInfrastructureAccountConflict struct {
}

CreateInfrastructureAccountConflict describes a response with status code 409, with default header values.

Conflict, already existing.

func NewCreateInfrastructureAccountConflict

func NewCreateInfrastructureAccountConflict() *CreateInfrastructureAccountConflict

NewCreateInfrastructureAccountConflict creates a CreateInfrastructureAccountConflict with default headers values

func (*CreateInfrastructureAccountConflict) Code

Code gets the status code for the create infrastructure account conflict response

func (*CreateInfrastructureAccountConflict) Error

func (*CreateInfrastructureAccountConflict) IsClientError

func (o *CreateInfrastructureAccountConflict) IsClientError() bool

IsClientError returns true when this create infrastructure account conflict response has a 4xx status code

func (*CreateInfrastructureAccountConflict) IsCode

IsCode returns true when this create infrastructure account conflict response a status code equal to that given

func (*CreateInfrastructureAccountConflict) IsRedirect

func (o *CreateInfrastructureAccountConflict) IsRedirect() bool

IsRedirect returns true when this create infrastructure account conflict response has a 3xx status code

func (*CreateInfrastructureAccountConflict) IsServerError

func (o *CreateInfrastructureAccountConflict) IsServerError() bool

IsServerError returns true when this create infrastructure account conflict response has a 5xx status code

func (*CreateInfrastructureAccountConflict) IsSuccess

IsSuccess returns true when this create infrastructure account conflict response has a 2xx status code

func (*CreateInfrastructureAccountConflict) String

type CreateInfrastructureAccountCreated

type CreateInfrastructureAccountCreated struct {
	Payload *models.InfrastructureAccount
}

CreateInfrastructureAccountCreated describes a response with status code 201, with default header values.

Infrastructure account was scheduled for creation.

func NewCreateInfrastructureAccountCreated

func NewCreateInfrastructureAccountCreated() *CreateInfrastructureAccountCreated

NewCreateInfrastructureAccountCreated creates a CreateInfrastructureAccountCreated with default headers values

func (*CreateInfrastructureAccountCreated) Code

Code gets the status code for the create infrastructure account created response

func (*CreateInfrastructureAccountCreated) Error

func (*CreateInfrastructureAccountCreated) GetPayload

func (*CreateInfrastructureAccountCreated) IsClientError

func (o *CreateInfrastructureAccountCreated) IsClientError() bool

IsClientError returns true when this create infrastructure account created response has a 4xx status code

func (*CreateInfrastructureAccountCreated) IsCode

IsCode returns true when this create infrastructure account created response a status code equal to that given

func (*CreateInfrastructureAccountCreated) IsRedirect

func (o *CreateInfrastructureAccountCreated) IsRedirect() bool

IsRedirect returns true when this create infrastructure account created response has a 3xx status code

func (*CreateInfrastructureAccountCreated) IsServerError

func (o *CreateInfrastructureAccountCreated) IsServerError() bool

IsServerError returns true when this create infrastructure account created response has a 5xx status code

func (*CreateInfrastructureAccountCreated) IsSuccess

IsSuccess returns true when this create infrastructure account created response has a 2xx status code

func (*CreateInfrastructureAccountCreated) String

type CreateInfrastructureAccountForbidden

type CreateInfrastructureAccountForbidden struct {
}

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

Forbidden

func NewCreateInfrastructureAccountForbidden

func NewCreateInfrastructureAccountForbidden() *CreateInfrastructureAccountForbidden

NewCreateInfrastructureAccountForbidden creates a CreateInfrastructureAccountForbidden with default headers values

func (*CreateInfrastructureAccountForbidden) Code

Code gets the status code for the create infrastructure account forbidden response

func (*CreateInfrastructureAccountForbidden) Error

func (*CreateInfrastructureAccountForbidden) IsClientError

func (o *CreateInfrastructureAccountForbidden) IsClientError() bool

IsClientError returns true when this create infrastructure account forbidden response has a 4xx status code

func (*CreateInfrastructureAccountForbidden) IsCode

IsCode returns true when this create infrastructure account forbidden response a status code equal to that given

func (*CreateInfrastructureAccountForbidden) IsRedirect

IsRedirect returns true when this create infrastructure account forbidden response has a 3xx status code

func (*CreateInfrastructureAccountForbidden) IsServerError

func (o *CreateInfrastructureAccountForbidden) IsServerError() bool

IsServerError returns true when this create infrastructure account forbidden response has a 5xx status code

func (*CreateInfrastructureAccountForbidden) IsSuccess

IsSuccess returns true when this create infrastructure account forbidden response has a 2xx status code

func (*CreateInfrastructureAccountForbidden) String

type CreateInfrastructureAccountInternalServerError

type CreateInfrastructureAccountInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewCreateInfrastructureAccountInternalServerError

func NewCreateInfrastructureAccountInternalServerError() *CreateInfrastructureAccountInternalServerError

NewCreateInfrastructureAccountInternalServerError creates a CreateInfrastructureAccountInternalServerError with default headers values

func (*CreateInfrastructureAccountInternalServerError) Code

Code gets the status code for the create infrastructure account internal server error response

func (*CreateInfrastructureAccountInternalServerError) Error

func (*CreateInfrastructureAccountInternalServerError) GetPayload

func (*CreateInfrastructureAccountInternalServerError) IsClientError

IsClientError returns true when this create infrastructure account internal server error response has a 4xx status code

func (*CreateInfrastructureAccountInternalServerError) IsCode

IsCode returns true when this create infrastructure account internal server error response a status code equal to that given

func (*CreateInfrastructureAccountInternalServerError) IsRedirect

IsRedirect returns true when this create infrastructure account internal server error response has a 3xx status code

func (*CreateInfrastructureAccountInternalServerError) IsServerError

IsServerError returns true when this create infrastructure account internal server error response has a 5xx status code

func (*CreateInfrastructureAccountInternalServerError) IsSuccess

IsSuccess returns true when this create infrastructure account internal server error response has a 2xx status code

func (*CreateInfrastructureAccountInternalServerError) String

type CreateInfrastructureAccountParams

type CreateInfrastructureAccountParams struct {

	/* InfrastructureAccount.

	   Account that will be created.
	*/
	InfrastructureAccount *models.InfrastructureAccount

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

CreateInfrastructureAccountParams contains all the parameters to send to the API endpoint

for the create infrastructure account operation.

Typically these are written to a http.Request.

func NewCreateInfrastructureAccountParams

func NewCreateInfrastructureAccountParams() *CreateInfrastructureAccountParams

NewCreateInfrastructureAccountParams creates a new CreateInfrastructureAccountParams 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 NewCreateInfrastructureAccountParamsWithContext

func NewCreateInfrastructureAccountParamsWithContext(ctx context.Context) *CreateInfrastructureAccountParams

NewCreateInfrastructureAccountParamsWithContext creates a new CreateInfrastructureAccountParams object with the ability to set a context for a request.

func NewCreateInfrastructureAccountParamsWithHTTPClient

func NewCreateInfrastructureAccountParamsWithHTTPClient(client *http.Client) *CreateInfrastructureAccountParams

NewCreateInfrastructureAccountParamsWithHTTPClient creates a new CreateInfrastructureAccountParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInfrastructureAccountParamsWithTimeout

func NewCreateInfrastructureAccountParamsWithTimeout(timeout time.Duration) *CreateInfrastructureAccountParams

NewCreateInfrastructureAccountParamsWithTimeout creates a new CreateInfrastructureAccountParams object with the ability to set a timeout on a request.

func (*CreateInfrastructureAccountParams) SetContext

SetContext adds the context to the create infrastructure account params

func (*CreateInfrastructureAccountParams) SetDefaults

func (o *CreateInfrastructureAccountParams) SetDefaults()

SetDefaults hydrates default values in the create infrastructure account params (not the query body).

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

func (*CreateInfrastructureAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create infrastructure account params

func (*CreateInfrastructureAccountParams) SetInfrastructureAccount

func (o *CreateInfrastructureAccountParams) SetInfrastructureAccount(infrastructureAccount *models.InfrastructureAccount)

SetInfrastructureAccount adds the infrastructureAccount to the create infrastructure account params

func (*CreateInfrastructureAccountParams) SetTimeout

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

SetTimeout adds the timeout to the create infrastructure account params

func (*CreateInfrastructureAccountParams) WithContext

WithContext adds the context to the create infrastructure account params

func (*CreateInfrastructureAccountParams) WithDefaults

WithDefaults hydrates default values in the create infrastructure account params (not the query body).

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

func (*CreateInfrastructureAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create infrastructure account params

func (*CreateInfrastructureAccountParams) WithInfrastructureAccount

func (o *CreateInfrastructureAccountParams) WithInfrastructureAccount(infrastructureAccount *models.InfrastructureAccount) *CreateInfrastructureAccountParams

WithInfrastructureAccount adds the infrastructureAccount to the create infrastructure account params

func (*CreateInfrastructureAccountParams) WithTimeout

WithTimeout adds the timeout to the create infrastructure account params

func (*CreateInfrastructureAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateInfrastructureAccountReader

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

CreateInfrastructureAccountReader is a Reader for the CreateInfrastructureAccount structure.

func (*CreateInfrastructureAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateInfrastructureAccountUnauthorized

type CreateInfrastructureAccountUnauthorized struct {
}

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

Unauthorized

func NewCreateInfrastructureAccountUnauthorized

func NewCreateInfrastructureAccountUnauthorized() *CreateInfrastructureAccountUnauthorized

NewCreateInfrastructureAccountUnauthorized creates a CreateInfrastructureAccountUnauthorized with default headers values

func (*CreateInfrastructureAccountUnauthorized) Code

Code gets the status code for the create infrastructure account unauthorized response

func (*CreateInfrastructureAccountUnauthorized) Error

func (*CreateInfrastructureAccountUnauthorized) IsClientError

func (o *CreateInfrastructureAccountUnauthorized) IsClientError() bool

IsClientError returns true when this create infrastructure account unauthorized response has a 4xx status code

func (*CreateInfrastructureAccountUnauthorized) IsCode

IsCode returns true when this create infrastructure account unauthorized response a status code equal to that given

func (*CreateInfrastructureAccountUnauthorized) IsRedirect

IsRedirect returns true when this create infrastructure account unauthorized response has a 3xx status code

func (*CreateInfrastructureAccountUnauthorized) IsServerError

func (o *CreateInfrastructureAccountUnauthorized) IsServerError() bool

IsServerError returns true when this create infrastructure account unauthorized response has a 5xx status code

func (*CreateInfrastructureAccountUnauthorized) IsSuccess

IsSuccess returns true when this create infrastructure account unauthorized response has a 2xx status code

func (*CreateInfrastructureAccountUnauthorized) String

type GetInfrastructureAccountForbidden

type GetInfrastructureAccountForbidden struct {
}

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

Forbidden

func NewGetInfrastructureAccountForbidden

func NewGetInfrastructureAccountForbidden() *GetInfrastructureAccountForbidden

NewGetInfrastructureAccountForbidden creates a GetInfrastructureAccountForbidden with default headers values

func (*GetInfrastructureAccountForbidden) Code

Code gets the status code for the get infrastructure account forbidden response

func (*GetInfrastructureAccountForbidden) Error

func (*GetInfrastructureAccountForbidden) IsClientError

func (o *GetInfrastructureAccountForbidden) IsClientError() bool

IsClientError returns true when this get infrastructure account forbidden response has a 4xx status code

func (*GetInfrastructureAccountForbidden) IsCode

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

IsCode returns true when this get infrastructure account forbidden response a status code equal to that given

func (*GetInfrastructureAccountForbidden) IsRedirect

func (o *GetInfrastructureAccountForbidden) IsRedirect() bool

IsRedirect returns true when this get infrastructure account forbidden response has a 3xx status code

func (*GetInfrastructureAccountForbidden) IsServerError

func (o *GetInfrastructureAccountForbidden) IsServerError() bool

IsServerError returns true when this get infrastructure account forbidden response has a 5xx status code

func (*GetInfrastructureAccountForbidden) IsSuccess

func (o *GetInfrastructureAccountForbidden) IsSuccess() bool

IsSuccess returns true when this get infrastructure account forbidden response has a 2xx status code

func (*GetInfrastructureAccountForbidden) String

type GetInfrastructureAccountInternalServerError

type GetInfrastructureAccountInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewGetInfrastructureAccountInternalServerError

func NewGetInfrastructureAccountInternalServerError() *GetInfrastructureAccountInternalServerError

NewGetInfrastructureAccountInternalServerError creates a GetInfrastructureAccountInternalServerError with default headers values

func (*GetInfrastructureAccountInternalServerError) Code

Code gets the status code for the get infrastructure account internal server error response

func (*GetInfrastructureAccountInternalServerError) Error

func (*GetInfrastructureAccountInternalServerError) GetPayload

func (*GetInfrastructureAccountInternalServerError) IsClientError

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

func (*GetInfrastructureAccountInternalServerError) IsCode

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

func (*GetInfrastructureAccountInternalServerError) IsRedirect

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

func (*GetInfrastructureAccountInternalServerError) IsServerError

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

func (*GetInfrastructureAccountInternalServerError) IsSuccess

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

func (*GetInfrastructureAccountInternalServerError) String

type GetInfrastructureAccountNotFound

type GetInfrastructureAccountNotFound struct {
}

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

InfrastructureAccount not found

func NewGetInfrastructureAccountNotFound

func NewGetInfrastructureAccountNotFound() *GetInfrastructureAccountNotFound

NewGetInfrastructureAccountNotFound creates a GetInfrastructureAccountNotFound with default headers values

func (*GetInfrastructureAccountNotFound) Code

Code gets the status code for the get infrastructure account not found response

func (*GetInfrastructureAccountNotFound) Error

func (*GetInfrastructureAccountNotFound) IsClientError

func (o *GetInfrastructureAccountNotFound) IsClientError() bool

IsClientError returns true when this get infrastructure account not found response has a 4xx status code

func (*GetInfrastructureAccountNotFound) IsCode

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

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

func (*GetInfrastructureAccountNotFound) IsRedirect

func (o *GetInfrastructureAccountNotFound) IsRedirect() bool

IsRedirect returns true when this get infrastructure account not found response has a 3xx status code

func (*GetInfrastructureAccountNotFound) IsServerError

func (o *GetInfrastructureAccountNotFound) IsServerError() bool

IsServerError returns true when this get infrastructure account not found response has a 5xx status code

func (*GetInfrastructureAccountNotFound) IsSuccess

func (o *GetInfrastructureAccountNotFound) IsSuccess() bool

IsSuccess returns true when this get infrastructure account not found response has a 2xx status code

func (*GetInfrastructureAccountNotFound) String

type GetInfrastructureAccountOK

type GetInfrastructureAccountOK struct {
	Payload *models.InfrastructureAccount
}

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

Infrastructure account information.

func NewGetInfrastructureAccountOK

func NewGetInfrastructureAccountOK() *GetInfrastructureAccountOK

NewGetInfrastructureAccountOK creates a GetInfrastructureAccountOK with default headers values

func (*GetInfrastructureAccountOK) Code

func (o *GetInfrastructureAccountOK) Code() int

Code gets the status code for the get infrastructure account o k response

func (*GetInfrastructureAccountOK) Error

func (*GetInfrastructureAccountOK) GetPayload

func (*GetInfrastructureAccountOK) IsClientError

func (o *GetInfrastructureAccountOK) IsClientError() bool

IsClientError returns true when this get infrastructure account o k response has a 4xx status code

func (*GetInfrastructureAccountOK) IsCode

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

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

func (*GetInfrastructureAccountOK) IsRedirect

func (o *GetInfrastructureAccountOK) IsRedirect() bool

IsRedirect returns true when this get infrastructure account o k response has a 3xx status code

func (*GetInfrastructureAccountOK) IsServerError

func (o *GetInfrastructureAccountOK) IsServerError() bool

IsServerError returns true when this get infrastructure account o k response has a 5xx status code

func (*GetInfrastructureAccountOK) IsSuccess

func (o *GetInfrastructureAccountOK) IsSuccess() bool

IsSuccess returns true when this get infrastructure account o k response has a 2xx status code

func (*GetInfrastructureAccountOK) String

func (o *GetInfrastructureAccountOK) String() string

type GetInfrastructureAccountParams

type GetInfrastructureAccountParams struct {

	/* AccountID.

	   ID of the infrastructure account.
	*/
	AccountID string

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

GetInfrastructureAccountParams contains all the parameters to send to the API endpoint

for the get infrastructure account operation.

Typically these are written to a http.Request.

func NewGetInfrastructureAccountParams

func NewGetInfrastructureAccountParams() *GetInfrastructureAccountParams

NewGetInfrastructureAccountParams creates a new GetInfrastructureAccountParams 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 NewGetInfrastructureAccountParamsWithContext

func NewGetInfrastructureAccountParamsWithContext(ctx context.Context) *GetInfrastructureAccountParams

NewGetInfrastructureAccountParamsWithContext creates a new GetInfrastructureAccountParams object with the ability to set a context for a request.

func NewGetInfrastructureAccountParamsWithHTTPClient

func NewGetInfrastructureAccountParamsWithHTTPClient(client *http.Client) *GetInfrastructureAccountParams

NewGetInfrastructureAccountParamsWithHTTPClient creates a new GetInfrastructureAccountParams object with the ability to set a custom HTTPClient for a request.

func NewGetInfrastructureAccountParamsWithTimeout

func NewGetInfrastructureAccountParamsWithTimeout(timeout time.Duration) *GetInfrastructureAccountParams

NewGetInfrastructureAccountParamsWithTimeout creates a new GetInfrastructureAccountParams object with the ability to set a timeout on a request.

func (*GetInfrastructureAccountParams) SetAccountID

func (o *GetInfrastructureAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the get infrastructure account params

func (*GetInfrastructureAccountParams) SetContext

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

SetContext adds the context to the get infrastructure account params

func (*GetInfrastructureAccountParams) SetDefaults

func (o *GetInfrastructureAccountParams) SetDefaults()

SetDefaults hydrates default values in the get infrastructure account params (not the query body).

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

func (*GetInfrastructureAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get infrastructure account params

func (*GetInfrastructureAccountParams) SetTimeout

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

SetTimeout adds the timeout to the get infrastructure account params

func (*GetInfrastructureAccountParams) WithAccountID

WithAccountID adds the accountID to the get infrastructure account params

func (*GetInfrastructureAccountParams) WithContext

WithContext adds the context to the get infrastructure account params

func (*GetInfrastructureAccountParams) WithDefaults

WithDefaults hydrates default values in the get infrastructure account params (not the query body).

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

func (*GetInfrastructureAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get infrastructure account params

func (*GetInfrastructureAccountParams) WithTimeout

WithTimeout adds the timeout to the get infrastructure account params

func (*GetInfrastructureAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInfrastructureAccountReader

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

GetInfrastructureAccountReader is a Reader for the GetInfrastructureAccount structure.

func (*GetInfrastructureAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInfrastructureAccountUnauthorized

type GetInfrastructureAccountUnauthorized struct {
}

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

Unauthorized

func NewGetInfrastructureAccountUnauthorized

func NewGetInfrastructureAccountUnauthorized() *GetInfrastructureAccountUnauthorized

NewGetInfrastructureAccountUnauthorized creates a GetInfrastructureAccountUnauthorized with default headers values

func (*GetInfrastructureAccountUnauthorized) Code

Code gets the status code for the get infrastructure account unauthorized response

func (*GetInfrastructureAccountUnauthorized) Error

func (*GetInfrastructureAccountUnauthorized) IsClientError

func (o *GetInfrastructureAccountUnauthorized) IsClientError() bool

IsClientError returns true when this get infrastructure account unauthorized response has a 4xx status code

func (*GetInfrastructureAccountUnauthorized) IsCode

IsCode returns true when this get infrastructure account unauthorized response a status code equal to that given

func (*GetInfrastructureAccountUnauthorized) IsRedirect

IsRedirect returns true when this get infrastructure account unauthorized response has a 3xx status code

func (*GetInfrastructureAccountUnauthorized) IsServerError

func (o *GetInfrastructureAccountUnauthorized) IsServerError() bool

IsServerError returns true when this get infrastructure account unauthorized response has a 5xx status code

func (*GetInfrastructureAccountUnauthorized) IsSuccess

IsSuccess returns true when this get infrastructure account unauthorized response has a 2xx status code

func (*GetInfrastructureAccountUnauthorized) String

type ListInfrastructureAccountsForbidden

type ListInfrastructureAccountsForbidden struct {
}

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

Forbidden

func NewListInfrastructureAccountsForbidden

func NewListInfrastructureAccountsForbidden() *ListInfrastructureAccountsForbidden

NewListInfrastructureAccountsForbidden creates a ListInfrastructureAccountsForbidden with default headers values

func (*ListInfrastructureAccountsForbidden) Code

Code gets the status code for the list infrastructure accounts forbidden response

func (*ListInfrastructureAccountsForbidden) Error

func (*ListInfrastructureAccountsForbidden) IsClientError

func (o *ListInfrastructureAccountsForbidden) IsClientError() bool

IsClientError returns true when this list infrastructure accounts forbidden response has a 4xx status code

func (*ListInfrastructureAccountsForbidden) IsCode

IsCode returns true when this list infrastructure accounts forbidden response a status code equal to that given

func (*ListInfrastructureAccountsForbidden) IsRedirect

func (o *ListInfrastructureAccountsForbidden) IsRedirect() bool

IsRedirect returns true when this list infrastructure accounts forbidden response has a 3xx status code

func (*ListInfrastructureAccountsForbidden) IsServerError

func (o *ListInfrastructureAccountsForbidden) IsServerError() bool

IsServerError returns true when this list infrastructure accounts forbidden response has a 5xx status code

func (*ListInfrastructureAccountsForbidden) IsSuccess

IsSuccess returns true when this list infrastructure accounts forbidden response has a 2xx status code

func (*ListInfrastructureAccountsForbidden) String

type ListInfrastructureAccountsInternalServerError

type ListInfrastructureAccountsInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewListInfrastructureAccountsInternalServerError

func NewListInfrastructureAccountsInternalServerError() *ListInfrastructureAccountsInternalServerError

NewListInfrastructureAccountsInternalServerError creates a ListInfrastructureAccountsInternalServerError with default headers values

func (*ListInfrastructureAccountsInternalServerError) Code

Code gets the status code for the list infrastructure accounts internal server error response

func (*ListInfrastructureAccountsInternalServerError) Error

func (*ListInfrastructureAccountsInternalServerError) GetPayload

func (*ListInfrastructureAccountsInternalServerError) IsClientError

IsClientError returns true when this list infrastructure accounts internal server error response has a 4xx status code

func (*ListInfrastructureAccountsInternalServerError) IsCode

IsCode returns true when this list infrastructure accounts internal server error response a status code equal to that given

func (*ListInfrastructureAccountsInternalServerError) IsRedirect

IsRedirect returns true when this list infrastructure accounts internal server error response has a 3xx status code

func (*ListInfrastructureAccountsInternalServerError) IsServerError

IsServerError returns true when this list infrastructure accounts internal server error response has a 5xx status code

func (*ListInfrastructureAccountsInternalServerError) IsSuccess

IsSuccess returns true when this list infrastructure accounts internal server error response has a 2xx status code

func (*ListInfrastructureAccountsInternalServerError) String

type ListInfrastructureAccountsOK

type ListInfrastructureAccountsOK struct {
	Payload *ListInfrastructureAccountsOKBody
}

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

List of all infrastructure accounts.

func NewListInfrastructureAccountsOK

func NewListInfrastructureAccountsOK() *ListInfrastructureAccountsOK

NewListInfrastructureAccountsOK creates a ListInfrastructureAccountsOK with default headers values

func (*ListInfrastructureAccountsOK) Code

Code gets the status code for the list infrastructure accounts o k response

func (*ListInfrastructureAccountsOK) Error

func (*ListInfrastructureAccountsOK) GetPayload

func (*ListInfrastructureAccountsOK) IsClientError

func (o *ListInfrastructureAccountsOK) IsClientError() bool

IsClientError returns true when this list infrastructure accounts o k response has a 4xx status code

func (*ListInfrastructureAccountsOK) IsCode

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

IsCode returns true when this list infrastructure accounts o k response a status code equal to that given

func (*ListInfrastructureAccountsOK) IsRedirect

func (o *ListInfrastructureAccountsOK) IsRedirect() bool

IsRedirect returns true when this list infrastructure accounts o k response has a 3xx status code

func (*ListInfrastructureAccountsOK) IsServerError

func (o *ListInfrastructureAccountsOK) IsServerError() bool

IsServerError returns true when this list infrastructure accounts o k response has a 5xx status code

func (*ListInfrastructureAccountsOK) IsSuccess

func (o *ListInfrastructureAccountsOK) IsSuccess() bool

IsSuccess returns true when this list infrastructure accounts o k response has a 2xx status code

func (*ListInfrastructureAccountsOK) String

type ListInfrastructureAccountsOKBody

type ListInfrastructureAccountsOKBody struct {

	// items
	Items []*models.InfrastructureAccount `json:"items"`
}

ListInfrastructureAccountsOKBody list infrastructure accounts o k body swagger:model ListInfrastructureAccountsOKBody

func (*ListInfrastructureAccountsOKBody) ContextValidate

func (o *ListInfrastructureAccountsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list infrastructure accounts o k body based on the context it is used

func (*ListInfrastructureAccountsOKBody) MarshalBinary

func (o *ListInfrastructureAccountsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListInfrastructureAccountsOKBody) UnmarshalBinary

func (o *ListInfrastructureAccountsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListInfrastructureAccountsOKBody) Validate

Validate validates this list infrastructure accounts o k body

type ListInfrastructureAccountsParams

type ListInfrastructureAccountsParams struct {

	/* CostCenter.

	   Filter on cost center number.
	*/
	CostCenter *string

	/* CriticalityLevel.

	   Filter on criticality level.

	   Format: int32
	*/
	CriticalityLevel *int32

	/* Environment.

	   Filter on environment.
	*/
	Environment *string

	/* ExternalID.

	   Filter on external id.
	*/
	ExternalID *string

	/* LifecycleStatus.

	   Filter on cluster lifecycle status.
	*/
	LifecycleStatus *string

	/* Name.

	   Filter on name.
	*/
	Name *string

	/* Owner.

	   Filter on owner.
	*/
	Owner *string

	/* Type.

	   Filter on type.
	*/
	Type *string

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

ListInfrastructureAccountsParams contains all the parameters to send to the API endpoint

for the list infrastructure accounts operation.

Typically these are written to a http.Request.

func NewListInfrastructureAccountsParams

func NewListInfrastructureAccountsParams() *ListInfrastructureAccountsParams

NewListInfrastructureAccountsParams creates a new ListInfrastructureAccountsParams 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 NewListInfrastructureAccountsParamsWithContext

func NewListInfrastructureAccountsParamsWithContext(ctx context.Context) *ListInfrastructureAccountsParams

NewListInfrastructureAccountsParamsWithContext creates a new ListInfrastructureAccountsParams object with the ability to set a context for a request.

func NewListInfrastructureAccountsParamsWithHTTPClient

func NewListInfrastructureAccountsParamsWithHTTPClient(client *http.Client) *ListInfrastructureAccountsParams

NewListInfrastructureAccountsParamsWithHTTPClient creates a new ListInfrastructureAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewListInfrastructureAccountsParamsWithTimeout

func NewListInfrastructureAccountsParamsWithTimeout(timeout time.Duration) *ListInfrastructureAccountsParams

NewListInfrastructureAccountsParamsWithTimeout creates a new ListInfrastructureAccountsParams object with the ability to set a timeout on a request.

func (*ListInfrastructureAccountsParams) SetContext

SetContext adds the context to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetCostCenter

func (o *ListInfrastructureAccountsParams) SetCostCenter(costCenter *string)

SetCostCenter adds the costCenter to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetCriticalityLevel

func (o *ListInfrastructureAccountsParams) SetCriticalityLevel(criticalityLevel *int32)

SetCriticalityLevel adds the criticalityLevel to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetDefaults

func (o *ListInfrastructureAccountsParams) SetDefaults()

SetDefaults hydrates default values in the list infrastructure accounts params (not the query body).

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

func (*ListInfrastructureAccountsParams) SetEnvironment

func (o *ListInfrastructureAccountsParams) SetEnvironment(environment *string)

SetEnvironment adds the environment to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetExternalID

func (o *ListInfrastructureAccountsParams) SetExternalID(externalID *string)

SetExternalID adds the externalId to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetLifecycleStatus

func (o *ListInfrastructureAccountsParams) SetLifecycleStatus(lifecycleStatus *string)

SetLifecycleStatus adds the lifecycleStatus to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetName

func (o *ListInfrastructureAccountsParams) SetName(name *string)

SetName adds the name to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetOwner

func (o *ListInfrastructureAccountsParams) SetOwner(owner *string)

SetOwner adds the owner to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) SetType

func (o *ListInfrastructureAccountsParams) SetType(typeVar *string)

SetType adds the type to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithContext

WithContext adds the context to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithCostCenter

WithCostCenter adds the costCenter to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithCriticalityLevel

func (o *ListInfrastructureAccountsParams) WithCriticalityLevel(criticalityLevel *int32) *ListInfrastructureAccountsParams

WithCriticalityLevel adds the criticalityLevel to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithDefaults

WithDefaults hydrates default values in the list infrastructure accounts params (not the query body).

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

func (*ListInfrastructureAccountsParams) WithEnvironment

WithEnvironment adds the environment to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithExternalID

WithExternalID adds the externalID to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithLifecycleStatus

func (o *ListInfrastructureAccountsParams) WithLifecycleStatus(lifecycleStatus *string) *ListInfrastructureAccountsParams

WithLifecycleStatus adds the lifecycleStatus to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithName

WithName adds the name to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithOwner

WithOwner adds the owner to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithTimeout

WithTimeout adds the timeout to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WithType

WithType adds the typeVar to the list infrastructure accounts params

func (*ListInfrastructureAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListInfrastructureAccountsReader

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

ListInfrastructureAccountsReader is a Reader for the ListInfrastructureAccounts structure.

func (*ListInfrastructureAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListInfrastructureAccountsUnauthorized

type ListInfrastructureAccountsUnauthorized struct {
}

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

Unauthorized

func NewListInfrastructureAccountsUnauthorized

func NewListInfrastructureAccountsUnauthorized() *ListInfrastructureAccountsUnauthorized

NewListInfrastructureAccountsUnauthorized creates a ListInfrastructureAccountsUnauthorized with default headers values

func (*ListInfrastructureAccountsUnauthorized) Code

Code gets the status code for the list infrastructure accounts unauthorized response

func (*ListInfrastructureAccountsUnauthorized) Error

func (*ListInfrastructureAccountsUnauthorized) IsClientError

func (o *ListInfrastructureAccountsUnauthorized) IsClientError() bool

IsClientError returns true when this list infrastructure accounts unauthorized response has a 4xx status code

func (*ListInfrastructureAccountsUnauthorized) IsCode

IsCode returns true when this list infrastructure accounts unauthorized response a status code equal to that given

func (*ListInfrastructureAccountsUnauthorized) IsRedirect

IsRedirect returns true when this list infrastructure accounts unauthorized response has a 3xx status code

func (*ListInfrastructureAccountsUnauthorized) IsServerError

func (o *ListInfrastructureAccountsUnauthorized) IsServerError() bool

IsServerError returns true when this list infrastructure accounts unauthorized response has a 5xx status code

func (*ListInfrastructureAccountsUnauthorized) IsSuccess

IsSuccess returns true when this list infrastructure accounts unauthorized response has a 2xx status code

func (*ListInfrastructureAccountsUnauthorized) String

type UpdateInfrastructureAccountForbidden

type UpdateInfrastructureAccountForbidden struct {
}

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

Forbidden

func NewUpdateInfrastructureAccountForbidden

func NewUpdateInfrastructureAccountForbidden() *UpdateInfrastructureAccountForbidden

NewUpdateInfrastructureAccountForbidden creates a UpdateInfrastructureAccountForbidden with default headers values

func (*UpdateInfrastructureAccountForbidden) Code

Code gets the status code for the update infrastructure account forbidden response

func (*UpdateInfrastructureAccountForbidden) Error

func (*UpdateInfrastructureAccountForbidden) IsClientError

func (o *UpdateInfrastructureAccountForbidden) IsClientError() bool

IsClientError returns true when this update infrastructure account forbidden response has a 4xx status code

func (*UpdateInfrastructureAccountForbidden) IsCode

IsCode returns true when this update infrastructure account forbidden response a status code equal to that given

func (*UpdateInfrastructureAccountForbidden) IsRedirect

IsRedirect returns true when this update infrastructure account forbidden response has a 3xx status code

func (*UpdateInfrastructureAccountForbidden) IsServerError

func (o *UpdateInfrastructureAccountForbidden) IsServerError() bool

IsServerError returns true when this update infrastructure account forbidden response has a 5xx status code

func (*UpdateInfrastructureAccountForbidden) IsSuccess

IsSuccess returns true when this update infrastructure account forbidden response has a 2xx status code

func (*UpdateInfrastructureAccountForbidden) String

type UpdateInfrastructureAccountInternalServerError

type UpdateInfrastructureAccountInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewUpdateInfrastructureAccountInternalServerError

func NewUpdateInfrastructureAccountInternalServerError() *UpdateInfrastructureAccountInternalServerError

NewUpdateInfrastructureAccountInternalServerError creates a UpdateInfrastructureAccountInternalServerError with default headers values

func (*UpdateInfrastructureAccountInternalServerError) Code

Code gets the status code for the update infrastructure account internal server error response

func (*UpdateInfrastructureAccountInternalServerError) Error

func (*UpdateInfrastructureAccountInternalServerError) GetPayload

func (*UpdateInfrastructureAccountInternalServerError) IsClientError

IsClientError returns true when this update infrastructure account internal server error response has a 4xx status code

func (*UpdateInfrastructureAccountInternalServerError) IsCode

IsCode returns true when this update infrastructure account internal server error response a status code equal to that given

func (*UpdateInfrastructureAccountInternalServerError) IsRedirect

IsRedirect returns true when this update infrastructure account internal server error response has a 3xx status code

func (*UpdateInfrastructureAccountInternalServerError) IsServerError

IsServerError returns true when this update infrastructure account internal server error response has a 5xx status code

func (*UpdateInfrastructureAccountInternalServerError) IsSuccess

IsSuccess returns true when this update infrastructure account internal server error response has a 2xx status code

func (*UpdateInfrastructureAccountInternalServerError) String

type UpdateInfrastructureAccountNotFound

type UpdateInfrastructureAccountNotFound struct {
}

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

InfrastructureAccount not found

func NewUpdateInfrastructureAccountNotFound

func NewUpdateInfrastructureAccountNotFound() *UpdateInfrastructureAccountNotFound

NewUpdateInfrastructureAccountNotFound creates a UpdateInfrastructureAccountNotFound with default headers values

func (*UpdateInfrastructureAccountNotFound) Code

Code gets the status code for the update infrastructure account not found response

func (*UpdateInfrastructureAccountNotFound) Error

func (*UpdateInfrastructureAccountNotFound) IsClientError

func (o *UpdateInfrastructureAccountNotFound) IsClientError() bool

IsClientError returns true when this update infrastructure account not found response has a 4xx status code

func (*UpdateInfrastructureAccountNotFound) IsCode

IsCode returns true when this update infrastructure account not found response a status code equal to that given

func (*UpdateInfrastructureAccountNotFound) IsRedirect

func (o *UpdateInfrastructureAccountNotFound) IsRedirect() bool

IsRedirect returns true when this update infrastructure account not found response has a 3xx status code

func (*UpdateInfrastructureAccountNotFound) IsServerError

func (o *UpdateInfrastructureAccountNotFound) IsServerError() bool

IsServerError returns true when this update infrastructure account not found response has a 5xx status code

func (*UpdateInfrastructureAccountNotFound) IsSuccess

IsSuccess returns true when this update infrastructure account not found response has a 2xx status code

func (*UpdateInfrastructureAccountNotFound) String

type UpdateInfrastructureAccountOK

type UpdateInfrastructureAccountOK struct {
	Payload *models.InfrastructureAccount
}

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

The infrastructure account update request is accepted

func NewUpdateInfrastructureAccountOK

func NewUpdateInfrastructureAccountOK() *UpdateInfrastructureAccountOK

NewUpdateInfrastructureAccountOK creates a UpdateInfrastructureAccountOK with default headers values

func (*UpdateInfrastructureAccountOK) Code

Code gets the status code for the update infrastructure account o k response

func (*UpdateInfrastructureAccountOK) Error

func (*UpdateInfrastructureAccountOK) GetPayload

func (*UpdateInfrastructureAccountOK) IsClientError

func (o *UpdateInfrastructureAccountOK) IsClientError() bool

IsClientError returns true when this update infrastructure account o k response has a 4xx status code

func (*UpdateInfrastructureAccountOK) IsCode

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

IsCode returns true when this update infrastructure account o k response a status code equal to that given

func (*UpdateInfrastructureAccountOK) IsRedirect

func (o *UpdateInfrastructureAccountOK) IsRedirect() bool

IsRedirect returns true when this update infrastructure account o k response has a 3xx status code

func (*UpdateInfrastructureAccountOK) IsServerError

func (o *UpdateInfrastructureAccountOK) IsServerError() bool

IsServerError returns true when this update infrastructure account o k response has a 5xx status code

func (*UpdateInfrastructureAccountOK) IsSuccess

func (o *UpdateInfrastructureAccountOK) IsSuccess() bool

IsSuccess returns true when this update infrastructure account o k response has a 2xx status code

func (*UpdateInfrastructureAccountOK) String

type UpdateInfrastructureAccountParams

type UpdateInfrastructureAccountParams struct {

	/* AccountID.

	   ID of the infrastructure account.
	*/
	AccountID string

	/* InfrastructureAccount.

	   Infrastructure Account that will be updated.
	*/
	InfrastructureAccount *models.InfrastructureAccountUpdate

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

UpdateInfrastructureAccountParams contains all the parameters to send to the API endpoint

for the update infrastructure account operation.

Typically these are written to a http.Request.

func NewUpdateInfrastructureAccountParams

func NewUpdateInfrastructureAccountParams() *UpdateInfrastructureAccountParams

NewUpdateInfrastructureAccountParams creates a new UpdateInfrastructureAccountParams 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 NewUpdateInfrastructureAccountParamsWithContext

func NewUpdateInfrastructureAccountParamsWithContext(ctx context.Context) *UpdateInfrastructureAccountParams

NewUpdateInfrastructureAccountParamsWithContext creates a new UpdateInfrastructureAccountParams object with the ability to set a context for a request.

func NewUpdateInfrastructureAccountParamsWithHTTPClient

func NewUpdateInfrastructureAccountParamsWithHTTPClient(client *http.Client) *UpdateInfrastructureAccountParams

NewUpdateInfrastructureAccountParamsWithHTTPClient creates a new UpdateInfrastructureAccountParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateInfrastructureAccountParamsWithTimeout

func NewUpdateInfrastructureAccountParamsWithTimeout(timeout time.Duration) *UpdateInfrastructureAccountParams

NewUpdateInfrastructureAccountParamsWithTimeout creates a new UpdateInfrastructureAccountParams object with the ability to set a timeout on a request.

func (*UpdateInfrastructureAccountParams) SetAccountID

func (o *UpdateInfrastructureAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) SetContext

SetContext adds the context to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) SetDefaults

func (o *UpdateInfrastructureAccountParams) SetDefaults()

SetDefaults hydrates default values in the update infrastructure account params (not the query body).

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

func (*UpdateInfrastructureAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) SetInfrastructureAccount

func (o *UpdateInfrastructureAccountParams) SetInfrastructureAccount(infrastructureAccount *models.InfrastructureAccountUpdate)

SetInfrastructureAccount adds the infrastructureAccount to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) SetTimeout

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

SetTimeout adds the timeout to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) WithAccountID

WithAccountID adds the accountID to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) WithContext

WithContext adds the context to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) WithDefaults

WithDefaults hydrates default values in the update infrastructure account params (not the query body).

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

func (*UpdateInfrastructureAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) WithInfrastructureAccount

func (o *UpdateInfrastructureAccountParams) WithInfrastructureAccount(infrastructureAccount *models.InfrastructureAccountUpdate) *UpdateInfrastructureAccountParams

WithInfrastructureAccount adds the infrastructureAccount to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) WithTimeout

WithTimeout adds the timeout to the update infrastructure account params

func (*UpdateInfrastructureAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateInfrastructureAccountReader

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

UpdateInfrastructureAccountReader is a Reader for the UpdateInfrastructureAccount structure.

func (*UpdateInfrastructureAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateInfrastructureAccountUnauthorized

type UpdateInfrastructureAccountUnauthorized struct {
}

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

Unauthorized

func NewUpdateInfrastructureAccountUnauthorized

func NewUpdateInfrastructureAccountUnauthorized() *UpdateInfrastructureAccountUnauthorized

NewUpdateInfrastructureAccountUnauthorized creates a UpdateInfrastructureAccountUnauthorized with default headers values

func (*UpdateInfrastructureAccountUnauthorized) Code

Code gets the status code for the update infrastructure account unauthorized response

func (*UpdateInfrastructureAccountUnauthorized) Error

func (*UpdateInfrastructureAccountUnauthorized) IsClientError

func (o *UpdateInfrastructureAccountUnauthorized) IsClientError() bool

IsClientError returns true when this update infrastructure account unauthorized response has a 4xx status code

func (*UpdateInfrastructureAccountUnauthorized) IsCode

IsCode returns true when this update infrastructure account unauthorized response a status code equal to that given

func (*UpdateInfrastructureAccountUnauthorized) IsRedirect

IsRedirect returns true when this update infrastructure account unauthorized response has a 3xx status code

func (*UpdateInfrastructureAccountUnauthorized) IsServerError

func (o *UpdateInfrastructureAccountUnauthorized) IsServerError() bool

IsServerError returns true when this update infrastructure account unauthorized response has a 5xx status code

func (*UpdateInfrastructureAccountUnauthorized) IsSuccess

IsSuccess returns true when this update infrastructure account unauthorized response has a 2xx status code

func (*UpdateInfrastructureAccountUnauthorized) String

Jump to

Keyboard shortcuts

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