managed_accounts

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 12 Imported by: 1

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 managed accounts API

func (*Client) CreateManagedAccount

func (a *Client) CreateManagedAccount(params *CreateManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateManagedAccountCreated, error)

CreateManagedAccount Create a Managed Account.

func (*Client) DeleteManagedAccount

func (a *Client) DeleteManagedAccount(params *DeleteManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteManagedAccountNoContent, error)

DeleteManagedAccount Delete a Managed Account.

func (*Client) GetManagedAccount

func (a *Client) GetManagedAccount(params *GetManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetManagedAccountOK, error)

GetManagedAccount Return a Managed Account.

func (*Client) GetManagedAccounts

func (a *Client) GetManagedAccounts(params *GetManagedAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetManagedAccountsOK, error)

GetManagedAccounts Returns a list of managed accounts.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateManagedAccount

func (a *Client) UpdateManagedAccount(params *UpdateManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateManagedAccountOK, error)

UpdateManagedAccount Update a Managed Account.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

type ClientService

type ClientService interface {
	CreateManagedAccount(params *CreateManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateManagedAccountCreated, error)

	DeleteManagedAccount(params *DeleteManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteManagedAccountNoContent, error)

	GetManagedAccount(params *GetManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetManagedAccountOK, error)

	GetManagedAccounts(params *GetManagedAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetManagedAccountsOK, error)

	UpdateManagedAccount(params *UpdateManagedAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateManagedAccountOK, 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 managed accounts API client.

func NewClientWithBasicAuth added in v0.0.33

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

New creates a new managed 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 added in v0.0.33

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

New creates a new managed 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 CreateManagedAccountBadRequest

type CreateManagedAccountBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewCreateManagedAccountBadRequest

func NewCreateManagedAccountBadRequest() *CreateManagedAccountBadRequest

NewCreateManagedAccountBadRequest creates a CreateManagedAccountBadRequest with default headers values

func (*CreateManagedAccountBadRequest) Code

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

func (*CreateManagedAccountBadRequest) Error

func (*CreateManagedAccountBadRequest) GetPayload

func (o *CreateManagedAccountBadRequest) GetPayload() *models.Errors

func (*CreateManagedAccountBadRequest) IsClientError

func (o *CreateManagedAccountBadRequest) IsClientError() bool

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

func (*CreateManagedAccountBadRequest) IsCode

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

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

func (*CreateManagedAccountBadRequest) IsRedirect

func (o *CreateManagedAccountBadRequest) IsRedirect() bool

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

func (*CreateManagedAccountBadRequest) IsServerError

func (o *CreateManagedAccountBadRequest) IsServerError() bool

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

func (*CreateManagedAccountBadRequest) IsSuccess

func (o *CreateManagedAccountBadRequest) IsSuccess() bool

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

func (*CreateManagedAccountBadRequest) String

type CreateManagedAccountCreated

type CreateManagedAccountCreated struct {
	Payload *models.ManagedAccount
}

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

CreateManagedAccountCreated create managed account created

func NewCreateManagedAccountCreated

func NewCreateManagedAccountCreated() *CreateManagedAccountCreated

NewCreateManagedAccountCreated creates a CreateManagedAccountCreated with default headers values

func (*CreateManagedAccountCreated) Code

func (o *CreateManagedAccountCreated) Code() int

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

func (*CreateManagedAccountCreated) Error

func (*CreateManagedAccountCreated) GetPayload

func (*CreateManagedAccountCreated) IsClientError

func (o *CreateManagedAccountCreated) IsClientError() bool

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

func (*CreateManagedAccountCreated) IsCode

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

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

func (*CreateManagedAccountCreated) IsRedirect

func (o *CreateManagedAccountCreated) IsRedirect() bool

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

func (*CreateManagedAccountCreated) IsServerError

func (o *CreateManagedAccountCreated) IsServerError() bool

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

func (*CreateManagedAccountCreated) IsSuccess

func (o *CreateManagedAccountCreated) IsSuccess() bool

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

func (*CreateManagedAccountCreated) String

func (o *CreateManagedAccountCreated) String() string

type CreateManagedAccountParams

type CreateManagedAccountParams struct {

	// CreateManagedAccount.
	CreateManagedAccount *models.CreateManagedAccount

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

CreateManagedAccountParams contains all the parameters to send to the API endpoint

for the create managed account operation.

Typically these are written to a http.Request.

func NewCreateManagedAccountParams

func NewCreateManagedAccountParams() *CreateManagedAccountParams

NewCreateManagedAccountParams creates a new CreateManagedAccountParams 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 NewCreateManagedAccountParamsWithContext

func NewCreateManagedAccountParamsWithContext(ctx context.Context) *CreateManagedAccountParams

NewCreateManagedAccountParamsWithContext creates a new CreateManagedAccountParams object with the ability to set a context for a request.

func NewCreateManagedAccountParamsWithHTTPClient

func NewCreateManagedAccountParamsWithHTTPClient(client *http.Client) *CreateManagedAccountParams

NewCreateManagedAccountParamsWithHTTPClient creates a new CreateManagedAccountParams object with the ability to set a custom HTTPClient for a request.

func NewCreateManagedAccountParamsWithTimeout

func NewCreateManagedAccountParamsWithTimeout(timeout time.Duration) *CreateManagedAccountParams

NewCreateManagedAccountParamsWithTimeout creates a new CreateManagedAccountParams object with the ability to set a timeout on a request.

func (*CreateManagedAccountParams) SetContext

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

SetContext adds the context to the create managed account params

func (*CreateManagedAccountParams) SetCreateManagedAccount

func (o *CreateManagedAccountParams) SetCreateManagedAccount(createManagedAccount *models.CreateManagedAccount)

SetCreateManagedAccount adds the createManagedAccount to the create managed account params

func (*CreateManagedAccountParams) SetDefaults

func (o *CreateManagedAccountParams) SetDefaults()

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

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

func (*CreateManagedAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create managed account params

func (*CreateManagedAccountParams) SetTimeout

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

SetTimeout adds the timeout to the create managed account params

func (*CreateManagedAccountParams) WithContext

WithContext adds the context to the create managed account params

func (*CreateManagedAccountParams) WithCreateManagedAccount

func (o *CreateManagedAccountParams) WithCreateManagedAccount(createManagedAccount *models.CreateManagedAccount) *CreateManagedAccountParams

WithCreateManagedAccount adds the createManagedAccount to the create managed account params

func (*CreateManagedAccountParams) WithDefaults

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

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

func (*CreateManagedAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create managed account params

func (*CreateManagedAccountParams) WithTimeout

WithTimeout adds the timeout to the create managed account params

func (*CreateManagedAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateManagedAccountReader

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

CreateManagedAccountReader is a Reader for the CreateManagedAccount structure.

func (*CreateManagedAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteManagedAccountNoContent

type DeleteManagedAccountNoContent struct {
	Payload *models.ManagedAccount
}

DeleteManagedAccountNoContent describes a response with status code 204, with default header values.

DeleteManagedAccountNoContent delete managed account no content

func NewDeleteManagedAccountNoContent

func NewDeleteManagedAccountNoContent() *DeleteManagedAccountNoContent

NewDeleteManagedAccountNoContent creates a DeleteManagedAccountNoContent with default headers values

func (*DeleteManagedAccountNoContent) Code

Code gets the status code for the delete managed account no content response

func (*DeleteManagedAccountNoContent) Error

func (*DeleteManagedAccountNoContent) GetPayload

func (*DeleteManagedAccountNoContent) IsClientError

func (o *DeleteManagedAccountNoContent) IsClientError() bool

IsClientError returns true when this delete managed account no content response has a 4xx status code

func (*DeleteManagedAccountNoContent) IsCode

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

IsCode returns true when this delete managed account no content response a status code equal to that given

func (*DeleteManagedAccountNoContent) IsRedirect

func (o *DeleteManagedAccountNoContent) IsRedirect() bool

IsRedirect returns true when this delete managed account no content response has a 3xx status code

func (*DeleteManagedAccountNoContent) IsServerError

func (o *DeleteManagedAccountNoContent) IsServerError() bool

IsServerError returns true when this delete managed account no content response has a 5xx status code

func (*DeleteManagedAccountNoContent) IsSuccess

func (o *DeleteManagedAccountNoContent) IsSuccess() bool

IsSuccess returns true when this delete managed account no content response has a 2xx status code

func (*DeleteManagedAccountNoContent) String

type DeleteManagedAccountNotFound

type DeleteManagedAccountNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewDeleteManagedAccountNotFound

func NewDeleteManagedAccountNotFound() *DeleteManagedAccountNotFound

NewDeleteManagedAccountNotFound creates a DeleteManagedAccountNotFound with default headers values

func (*DeleteManagedAccountNotFound) Code

Code gets the status code for the delete managed account not found response

func (*DeleteManagedAccountNotFound) Error

func (*DeleteManagedAccountNotFound) GetPayload

func (o *DeleteManagedAccountNotFound) GetPayload() *models.Errors

func (*DeleteManagedAccountNotFound) IsClientError

func (o *DeleteManagedAccountNotFound) IsClientError() bool

IsClientError returns true when this delete managed account not found response has a 4xx status code

func (*DeleteManagedAccountNotFound) IsCode

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

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

func (*DeleteManagedAccountNotFound) IsRedirect

func (o *DeleteManagedAccountNotFound) IsRedirect() bool

IsRedirect returns true when this delete managed account not found response has a 3xx status code

func (*DeleteManagedAccountNotFound) IsServerError

func (o *DeleteManagedAccountNotFound) IsServerError() bool

IsServerError returns true when this delete managed account not found response has a 5xx status code

func (*DeleteManagedAccountNotFound) IsSuccess

func (o *DeleteManagedAccountNotFound) IsSuccess() bool

IsSuccess returns true when this delete managed account not found response has a 2xx status code

func (*DeleteManagedAccountNotFound) String

type DeleteManagedAccountParams

type DeleteManagedAccountParams struct {

	// ManagedAccountToken.
	ManagedAccountToken string

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

DeleteManagedAccountParams contains all the parameters to send to the API endpoint

for the delete managed account operation.

Typically these are written to a http.Request.

func NewDeleteManagedAccountParams

func NewDeleteManagedAccountParams() *DeleteManagedAccountParams

NewDeleteManagedAccountParams creates a new DeleteManagedAccountParams 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 NewDeleteManagedAccountParamsWithContext

func NewDeleteManagedAccountParamsWithContext(ctx context.Context) *DeleteManagedAccountParams

NewDeleteManagedAccountParamsWithContext creates a new DeleteManagedAccountParams object with the ability to set a context for a request.

func NewDeleteManagedAccountParamsWithHTTPClient

func NewDeleteManagedAccountParamsWithHTTPClient(client *http.Client) *DeleteManagedAccountParams

NewDeleteManagedAccountParamsWithHTTPClient creates a new DeleteManagedAccountParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteManagedAccountParamsWithTimeout

func NewDeleteManagedAccountParamsWithTimeout(timeout time.Duration) *DeleteManagedAccountParams

NewDeleteManagedAccountParamsWithTimeout creates a new DeleteManagedAccountParams object with the ability to set a timeout on a request.

func (*DeleteManagedAccountParams) SetContext

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

SetContext adds the context to the delete managed account params

func (*DeleteManagedAccountParams) SetDefaults

func (o *DeleteManagedAccountParams) SetDefaults()

SetDefaults hydrates default values in the delete managed account params (not the query body).

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

func (*DeleteManagedAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete managed account params

func (*DeleteManagedAccountParams) SetManagedAccountToken

func (o *DeleteManagedAccountParams) SetManagedAccountToken(managedAccountToken string)

SetManagedAccountToken adds the managedAccountToken to the delete managed account params

func (*DeleteManagedAccountParams) SetTimeout

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

SetTimeout adds the timeout to the delete managed account params

func (*DeleteManagedAccountParams) WithContext

WithContext adds the context to the delete managed account params

func (*DeleteManagedAccountParams) WithDefaults

WithDefaults hydrates default values in the delete managed account params (not the query body).

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

func (*DeleteManagedAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete managed account params

func (*DeleteManagedAccountParams) WithManagedAccountToken

func (o *DeleteManagedAccountParams) WithManagedAccountToken(managedAccountToken string) *DeleteManagedAccountParams

WithManagedAccountToken adds the managedAccountToken to the delete managed account params

func (*DeleteManagedAccountParams) WithTimeout

WithTimeout adds the timeout to the delete managed account params

func (*DeleteManagedAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteManagedAccountReader

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

DeleteManagedAccountReader is a Reader for the DeleteManagedAccount structure.

func (*DeleteManagedAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetManagedAccountNotFound

type GetManagedAccountNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewGetManagedAccountNotFound

func NewGetManagedAccountNotFound() *GetManagedAccountNotFound

NewGetManagedAccountNotFound creates a GetManagedAccountNotFound with default headers values

func (*GetManagedAccountNotFound) Code

func (o *GetManagedAccountNotFound) Code() int

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

func (*GetManagedAccountNotFound) Error

func (o *GetManagedAccountNotFound) Error() string

func (*GetManagedAccountNotFound) GetPayload

func (o *GetManagedAccountNotFound) GetPayload() *models.Errors

func (*GetManagedAccountNotFound) IsClientError

func (o *GetManagedAccountNotFound) IsClientError() bool

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

func (*GetManagedAccountNotFound) IsCode

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

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

func (*GetManagedAccountNotFound) IsRedirect

func (o *GetManagedAccountNotFound) IsRedirect() bool

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

func (*GetManagedAccountNotFound) IsServerError

func (o *GetManagedAccountNotFound) IsServerError() bool

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

func (*GetManagedAccountNotFound) IsSuccess

func (o *GetManagedAccountNotFound) IsSuccess() bool

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

func (*GetManagedAccountNotFound) String

func (o *GetManagedAccountNotFound) String() string

type GetManagedAccountOK

type GetManagedAccountOK struct {
	Payload *models.ManagedAccount
}

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

GetManagedAccountOK get managed account o k

func NewGetManagedAccountOK

func NewGetManagedAccountOK() *GetManagedAccountOK

NewGetManagedAccountOK creates a GetManagedAccountOK with default headers values

func (*GetManagedAccountOK) Code

func (o *GetManagedAccountOK) Code() int

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

func (*GetManagedAccountOK) Error

func (o *GetManagedAccountOK) Error() string

func (*GetManagedAccountOK) GetPayload

func (o *GetManagedAccountOK) GetPayload() *models.ManagedAccount

func (*GetManagedAccountOK) IsClientError

func (o *GetManagedAccountOK) IsClientError() bool

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

func (*GetManagedAccountOK) IsCode

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

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

func (*GetManagedAccountOK) IsRedirect

func (o *GetManagedAccountOK) IsRedirect() bool

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

func (*GetManagedAccountOK) IsServerError

func (o *GetManagedAccountOK) IsServerError() bool

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

func (*GetManagedAccountOK) IsSuccess

func (o *GetManagedAccountOK) IsSuccess() bool

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

func (*GetManagedAccountOK) String

func (o *GetManagedAccountOK) String() string

type GetManagedAccountParams

type GetManagedAccountParams struct {

	// ManagedAccountToken.
	ManagedAccountToken string

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

GetManagedAccountParams contains all the parameters to send to the API endpoint

for the get managed account operation.

Typically these are written to a http.Request.

func NewGetManagedAccountParams

func NewGetManagedAccountParams() *GetManagedAccountParams

NewGetManagedAccountParams creates a new GetManagedAccountParams 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 NewGetManagedAccountParamsWithContext

func NewGetManagedAccountParamsWithContext(ctx context.Context) *GetManagedAccountParams

NewGetManagedAccountParamsWithContext creates a new GetManagedAccountParams object with the ability to set a context for a request.

func NewGetManagedAccountParamsWithHTTPClient

func NewGetManagedAccountParamsWithHTTPClient(client *http.Client) *GetManagedAccountParams

NewGetManagedAccountParamsWithHTTPClient creates a new GetManagedAccountParams object with the ability to set a custom HTTPClient for a request.

func NewGetManagedAccountParamsWithTimeout

func NewGetManagedAccountParamsWithTimeout(timeout time.Duration) *GetManagedAccountParams

NewGetManagedAccountParamsWithTimeout creates a new GetManagedAccountParams object with the ability to set a timeout on a request.

func (*GetManagedAccountParams) SetContext

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

SetContext adds the context to the get managed account params

func (*GetManagedAccountParams) SetDefaults

func (o *GetManagedAccountParams) SetDefaults()

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

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

func (*GetManagedAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get managed account params

func (*GetManagedAccountParams) SetManagedAccountToken

func (o *GetManagedAccountParams) SetManagedAccountToken(managedAccountToken string)

SetManagedAccountToken adds the managedAccountToken to the get managed account params

func (*GetManagedAccountParams) SetTimeout

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

SetTimeout adds the timeout to the get managed account params

func (*GetManagedAccountParams) WithContext

WithContext adds the context to the get managed account params

func (*GetManagedAccountParams) WithDefaults

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

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

func (*GetManagedAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get managed account params

func (*GetManagedAccountParams) WithManagedAccountToken

func (o *GetManagedAccountParams) WithManagedAccountToken(managedAccountToken string) *GetManagedAccountParams

WithManagedAccountToken adds the managedAccountToken to the get managed account params

func (*GetManagedAccountParams) WithTimeout

WithTimeout adds the timeout to the get managed account params

func (*GetManagedAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetManagedAccountReader

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

GetManagedAccountReader is a Reader for the GetManagedAccount structure.

func (*GetManagedAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetManagedAccountsOK

type GetManagedAccountsOK struct {
	Payload *models.ManagedAccounts
}

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

GetManagedAccountsOK get managed accounts o k

func NewGetManagedAccountsOK

func NewGetManagedAccountsOK() *GetManagedAccountsOK

NewGetManagedAccountsOK creates a GetManagedAccountsOK with default headers values

func (*GetManagedAccountsOK) Code

func (o *GetManagedAccountsOK) Code() int

Code gets the status code for the get managed accounts o k response

func (*GetManagedAccountsOK) Error

func (o *GetManagedAccountsOK) Error() string

func (*GetManagedAccountsOK) GetPayload

func (o *GetManagedAccountsOK) GetPayload() *models.ManagedAccounts

func (*GetManagedAccountsOK) IsClientError

func (o *GetManagedAccountsOK) IsClientError() bool

IsClientError returns true when this get managed accounts o k response has a 4xx status code

func (*GetManagedAccountsOK) IsCode

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

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

func (*GetManagedAccountsOK) IsRedirect

func (o *GetManagedAccountsOK) IsRedirect() bool

IsRedirect returns true when this get managed accounts o k response has a 3xx status code

func (*GetManagedAccountsOK) IsServerError

func (o *GetManagedAccountsOK) IsServerError() bool

IsServerError returns true when this get managed accounts o k response has a 5xx status code

func (*GetManagedAccountsOK) IsSuccess

func (o *GetManagedAccountsOK) IsSuccess() bool

IsSuccess returns true when this get managed accounts o k response has a 2xx status code

func (*GetManagedAccountsOK) String

func (o *GetManagedAccountsOK) String() string

type GetManagedAccountsParams

type GetManagedAccountsParams struct {

	/* Limit.

	   The amount of results to return. The maximum is 1000.

	   Format: int32
	*/
	Limit *int32

	/* Page.

	   The page of results to return.

	   Format: int32
	*/
	Page *int32

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

GetManagedAccountsParams contains all the parameters to send to the API endpoint

for the get managed accounts operation.

Typically these are written to a http.Request.

func NewGetManagedAccountsParams

func NewGetManagedAccountsParams() *GetManagedAccountsParams

NewGetManagedAccountsParams creates a new GetManagedAccountsParams 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 NewGetManagedAccountsParamsWithContext

func NewGetManagedAccountsParamsWithContext(ctx context.Context) *GetManagedAccountsParams

NewGetManagedAccountsParamsWithContext creates a new GetManagedAccountsParams object with the ability to set a context for a request.

func NewGetManagedAccountsParamsWithHTTPClient

func NewGetManagedAccountsParamsWithHTTPClient(client *http.Client) *GetManagedAccountsParams

NewGetManagedAccountsParamsWithHTTPClient creates a new GetManagedAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewGetManagedAccountsParamsWithTimeout

func NewGetManagedAccountsParamsWithTimeout(timeout time.Duration) *GetManagedAccountsParams

NewGetManagedAccountsParamsWithTimeout creates a new GetManagedAccountsParams object with the ability to set a timeout on a request.

func (*GetManagedAccountsParams) SetContext

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

SetContext adds the context to the get managed accounts params

func (*GetManagedAccountsParams) SetDefaults

func (o *GetManagedAccountsParams) SetDefaults()

SetDefaults hydrates default values in the get managed accounts params (not the query body).

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

func (*GetManagedAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get managed accounts params

func (*GetManagedAccountsParams) SetLimit

func (o *GetManagedAccountsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get managed accounts params

func (*GetManagedAccountsParams) SetPage

func (o *GetManagedAccountsParams) SetPage(page *int32)

SetPage adds the page to the get managed accounts params

func (*GetManagedAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the get managed accounts params

func (*GetManagedAccountsParams) WithContext

WithContext adds the context to the get managed accounts params

func (*GetManagedAccountsParams) WithDefaults

WithDefaults hydrates default values in the get managed accounts params (not the query body).

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

func (*GetManagedAccountsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get managed accounts params

func (*GetManagedAccountsParams) WithLimit

WithLimit adds the limit to the get managed accounts params

func (*GetManagedAccountsParams) WithPage

WithPage adds the page to the get managed accounts params

func (*GetManagedAccountsParams) WithTimeout

WithTimeout adds the timeout to the get managed accounts params

func (*GetManagedAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetManagedAccountsReader

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

GetManagedAccountsReader is a Reader for the GetManagedAccounts structure.

func (*GetManagedAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateManagedAccountBadRequest

type UpdateManagedAccountBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewUpdateManagedAccountBadRequest

func NewUpdateManagedAccountBadRequest() *UpdateManagedAccountBadRequest

NewUpdateManagedAccountBadRequest creates a UpdateManagedAccountBadRequest with default headers values

func (*UpdateManagedAccountBadRequest) Code

Code gets the status code for the update managed account bad request response

func (*UpdateManagedAccountBadRequest) Error

func (*UpdateManagedAccountBadRequest) GetPayload

func (o *UpdateManagedAccountBadRequest) GetPayload() *models.Errors

func (*UpdateManagedAccountBadRequest) IsClientError

func (o *UpdateManagedAccountBadRequest) IsClientError() bool

IsClientError returns true when this update managed account bad request response has a 4xx status code

func (*UpdateManagedAccountBadRequest) IsCode

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

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

func (*UpdateManagedAccountBadRequest) IsRedirect

func (o *UpdateManagedAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this update managed account bad request response has a 3xx status code

func (*UpdateManagedAccountBadRequest) IsServerError

func (o *UpdateManagedAccountBadRequest) IsServerError() bool

IsServerError returns true when this update managed account bad request response has a 5xx status code

func (*UpdateManagedAccountBadRequest) IsSuccess

func (o *UpdateManagedAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this update managed account bad request response has a 2xx status code

func (*UpdateManagedAccountBadRequest) String

type UpdateManagedAccountNotFound

type UpdateManagedAccountNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewUpdateManagedAccountNotFound

func NewUpdateManagedAccountNotFound() *UpdateManagedAccountNotFound

NewUpdateManagedAccountNotFound creates a UpdateManagedAccountNotFound with default headers values

func (*UpdateManagedAccountNotFound) Code

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

func (*UpdateManagedAccountNotFound) Error

func (*UpdateManagedAccountNotFound) GetPayload

func (o *UpdateManagedAccountNotFound) GetPayload() *models.Errors

func (*UpdateManagedAccountNotFound) IsClientError

func (o *UpdateManagedAccountNotFound) IsClientError() bool

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

func (*UpdateManagedAccountNotFound) IsCode

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

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

func (*UpdateManagedAccountNotFound) IsRedirect

func (o *UpdateManagedAccountNotFound) IsRedirect() bool

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

func (*UpdateManagedAccountNotFound) IsServerError

func (o *UpdateManagedAccountNotFound) IsServerError() bool

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

func (*UpdateManagedAccountNotFound) IsSuccess

func (o *UpdateManagedAccountNotFound) IsSuccess() bool

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

func (*UpdateManagedAccountNotFound) String

type UpdateManagedAccountOK

type UpdateManagedAccountOK struct {
	Payload *models.ManagedAccount
}

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

UpdateManagedAccountOK update managed account o k

func NewUpdateManagedAccountOK

func NewUpdateManagedAccountOK() *UpdateManagedAccountOK

NewUpdateManagedAccountOK creates a UpdateManagedAccountOK with default headers values

func (*UpdateManagedAccountOK) Code

func (o *UpdateManagedAccountOK) Code() int

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

func (*UpdateManagedAccountOK) Error

func (o *UpdateManagedAccountOK) Error() string

func (*UpdateManagedAccountOK) GetPayload

func (o *UpdateManagedAccountOK) GetPayload() *models.ManagedAccount

func (*UpdateManagedAccountOK) IsClientError

func (o *UpdateManagedAccountOK) IsClientError() bool

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

func (*UpdateManagedAccountOK) IsCode

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

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

func (*UpdateManagedAccountOK) IsRedirect

func (o *UpdateManagedAccountOK) IsRedirect() bool

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

func (*UpdateManagedAccountOK) IsServerError

func (o *UpdateManagedAccountOK) IsServerError() bool

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

func (*UpdateManagedAccountOK) IsSuccess

func (o *UpdateManagedAccountOK) IsSuccess() bool

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

func (*UpdateManagedAccountOK) String

func (o *UpdateManagedAccountOK) String() string

type UpdateManagedAccountParams

type UpdateManagedAccountParams struct {

	// ManagedAccountToken.
	ManagedAccountToken string

	// UpdateManagedAccount.
	UpdateManagedAccount *models.UpdateManagedAccount

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

UpdateManagedAccountParams contains all the parameters to send to the API endpoint

for the update managed account operation.

Typically these are written to a http.Request.

func NewUpdateManagedAccountParams

func NewUpdateManagedAccountParams() *UpdateManagedAccountParams

NewUpdateManagedAccountParams creates a new UpdateManagedAccountParams 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 NewUpdateManagedAccountParamsWithContext

func NewUpdateManagedAccountParamsWithContext(ctx context.Context) *UpdateManagedAccountParams

NewUpdateManagedAccountParamsWithContext creates a new UpdateManagedAccountParams object with the ability to set a context for a request.

func NewUpdateManagedAccountParamsWithHTTPClient

func NewUpdateManagedAccountParamsWithHTTPClient(client *http.Client) *UpdateManagedAccountParams

NewUpdateManagedAccountParamsWithHTTPClient creates a new UpdateManagedAccountParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateManagedAccountParamsWithTimeout

func NewUpdateManagedAccountParamsWithTimeout(timeout time.Duration) *UpdateManagedAccountParams

NewUpdateManagedAccountParamsWithTimeout creates a new UpdateManagedAccountParams object with the ability to set a timeout on a request.

func (*UpdateManagedAccountParams) SetContext

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

SetContext adds the context to the update managed account params

func (*UpdateManagedAccountParams) SetDefaults

func (o *UpdateManagedAccountParams) SetDefaults()

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

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

func (*UpdateManagedAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update managed account params

func (*UpdateManagedAccountParams) SetManagedAccountToken

func (o *UpdateManagedAccountParams) SetManagedAccountToken(managedAccountToken string)

SetManagedAccountToken adds the managedAccountToken to the update managed account params

func (*UpdateManagedAccountParams) SetTimeout

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

SetTimeout adds the timeout to the update managed account params

func (*UpdateManagedAccountParams) SetUpdateManagedAccount

func (o *UpdateManagedAccountParams) SetUpdateManagedAccount(updateManagedAccount *models.UpdateManagedAccount)

SetUpdateManagedAccount adds the updateManagedAccount to the update managed account params

func (*UpdateManagedAccountParams) WithContext

WithContext adds the context to the update managed account params

func (*UpdateManagedAccountParams) WithDefaults

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

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

func (*UpdateManagedAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update managed account params

func (*UpdateManagedAccountParams) WithManagedAccountToken

func (o *UpdateManagedAccountParams) WithManagedAccountToken(managedAccountToken string) *UpdateManagedAccountParams

WithManagedAccountToken adds the managedAccountToken to the update managed account params

func (*UpdateManagedAccountParams) WithTimeout

WithTimeout adds the timeout to the update managed account params

func (*UpdateManagedAccountParams) WithUpdateManagedAccount

func (o *UpdateManagedAccountParams) WithUpdateManagedAccount(updateManagedAccount *models.UpdateManagedAccount) *UpdateManagedAccountParams

WithUpdateManagedAccount adds the updateManagedAccount to the update managed account params

func (*UpdateManagedAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateManagedAccountReader

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

UpdateManagedAccountReader is a Reader for the UpdateManagedAccount structure.

func (*UpdateManagedAccountReader) ReadResponse

func (o *UpdateManagedAccountReader) 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