limits

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 10 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 limits API

func (*Client) GetOrganizationLimits

func (a *Client) GetOrganizationLimits(params *GetOrganizationLimitsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationLimitsOK, error)

GetOrganizationLimits organizations limitations

Returns the limitations that apply to the org (inherited from their tier)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetOrganizationLimits(params *GetOrganizationLimitsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationLimitsOK, 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 limits API client.

type EditOrganizationLimitsBadRequest

type EditOrganizationLimitsBadRequest struct {
	Payload *mono_models.Message
}
EditOrganizationLimitsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewEditOrganizationLimitsBadRequest

func NewEditOrganizationLimitsBadRequest() *EditOrganizationLimitsBadRequest

NewEditOrganizationLimitsBadRequest creates a EditOrganizationLimitsBadRequest with default headers values

func (*EditOrganizationLimitsBadRequest) Error

func (*EditOrganizationLimitsBadRequest) GetPayload

type EditOrganizationLimitsForbidden

type EditOrganizationLimitsForbidden struct {
	Payload *mono_models.Message
}
EditOrganizationLimitsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewEditOrganizationLimitsForbidden

func NewEditOrganizationLimitsForbidden() *EditOrganizationLimitsForbidden

NewEditOrganizationLimitsForbidden creates a EditOrganizationLimitsForbidden with default headers values

func (*EditOrganizationLimitsForbidden) Error

func (*EditOrganizationLimitsForbidden) GetPayload

type EditOrganizationLimitsInternalServerError

type EditOrganizationLimitsInternalServerError struct {
	Payload *mono_models.Message
}
EditOrganizationLimitsInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewEditOrganizationLimitsInternalServerError

func NewEditOrganizationLimitsInternalServerError() *EditOrganizationLimitsInternalServerError

NewEditOrganizationLimitsInternalServerError creates a EditOrganizationLimitsInternalServerError with default headers values

func (*EditOrganizationLimitsInternalServerError) Error

func (*EditOrganizationLimitsInternalServerError) GetPayload

type EditOrganizationLimitsNotFound

type EditOrganizationLimitsNotFound struct {
	Payload *mono_models.Message
}
EditOrganizationLimitsNotFound describes a response with status code 404, with default header values.

Not Found

func NewEditOrganizationLimitsNotFound

func NewEditOrganizationLimitsNotFound() *EditOrganizationLimitsNotFound

NewEditOrganizationLimitsNotFound creates a EditOrganizationLimitsNotFound with default headers values

func (*EditOrganizationLimitsNotFound) Error

func (*EditOrganizationLimitsNotFound) GetPayload

type EditOrganizationLimitsOK

type EditOrganizationLimitsOK struct {
	Payload *mono_models.Limits
}
EditOrganizationLimitsOK describes a response with status code 200, with default header values.

Success

func NewEditOrganizationLimitsOK

func NewEditOrganizationLimitsOK() *EditOrganizationLimitsOK

NewEditOrganizationLimitsOK creates a EditOrganizationLimitsOK with default headers values

func (*EditOrganizationLimitsOK) Error

func (o *EditOrganizationLimitsOK) Error() string

func (*EditOrganizationLimitsOK) GetPayload

func (o *EditOrganizationLimitsOK) GetPayload() *mono_models.Limits

type EditOrganizationLimitsParams

type EditOrganizationLimitsParams struct {

	/* IdentifierType.

	   what kind of thing the provided organizationIdentifier is

	   Default: "URLname"
	*/
	IdentifierType *string

	/* Limits.

	   the limits to set
	*/
	Limits *mono_models.LimitsEditable

	/* OrganizationIdentifier.

	   identifier (URLname, by default) of the desired organization
	*/
	OrganizationIdentifier string

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

EditOrganizationLimitsParams contains all the parameters to send to the API endpoint

for the edit organization limits operation.

Typically these are written to a http.Request.

func NewEditOrganizationLimitsParams

func NewEditOrganizationLimitsParams() *EditOrganizationLimitsParams

NewEditOrganizationLimitsParams creates a new EditOrganizationLimitsParams 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 NewEditOrganizationLimitsParamsWithContext

func NewEditOrganizationLimitsParamsWithContext(ctx context.Context) *EditOrganizationLimitsParams

NewEditOrganizationLimitsParamsWithContext creates a new EditOrganizationLimitsParams object with the ability to set a context for a request.

func NewEditOrganizationLimitsParamsWithHTTPClient

func NewEditOrganizationLimitsParamsWithHTTPClient(client *http.Client) *EditOrganizationLimitsParams

NewEditOrganizationLimitsParamsWithHTTPClient creates a new EditOrganizationLimitsParams object with the ability to set a custom HTTPClient for a request.

func NewEditOrganizationLimitsParamsWithTimeout

func NewEditOrganizationLimitsParamsWithTimeout(timeout time.Duration) *EditOrganizationLimitsParams

NewEditOrganizationLimitsParamsWithTimeout creates a new EditOrganizationLimitsParams object with the ability to set a timeout on a request.

func (*EditOrganizationLimitsParams) SetContext

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

SetContext adds the context to the edit organization limits params

func (*EditOrganizationLimitsParams) SetDefaults

func (o *EditOrganizationLimitsParams) SetDefaults()

SetDefaults hydrates default values in the edit organization limits params (not the query body).

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

func (*EditOrganizationLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the edit organization limits params

func (*EditOrganizationLimitsParams) SetIdentifierType

func (o *EditOrganizationLimitsParams) SetIdentifierType(identifierType *string)

SetIdentifierType adds the identifierType to the edit organization limits params

func (*EditOrganizationLimitsParams) SetLimits

SetLimits adds the limits to the edit organization limits params

func (*EditOrganizationLimitsParams) SetOrganizationIdentifier

func (o *EditOrganizationLimitsParams) SetOrganizationIdentifier(organizationIdentifier string)

SetOrganizationIdentifier adds the organizationIdentifier to the edit organization limits params

func (*EditOrganizationLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the edit organization limits params

func (*EditOrganizationLimitsParams) WithContext

WithContext adds the context to the edit organization limits params

func (*EditOrganizationLimitsParams) WithDefaults

WithDefaults hydrates default values in the edit organization limits params (not the query body).

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

func (*EditOrganizationLimitsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the edit organization limits params

func (*EditOrganizationLimitsParams) WithIdentifierType

func (o *EditOrganizationLimitsParams) WithIdentifierType(identifierType *string) *EditOrganizationLimitsParams

WithIdentifierType adds the identifierType to the edit organization limits params

func (*EditOrganizationLimitsParams) WithLimits

WithLimits adds the limits to the edit organization limits params

func (*EditOrganizationLimitsParams) WithOrganizationIdentifier

func (o *EditOrganizationLimitsParams) WithOrganizationIdentifier(organizationIdentifier string) *EditOrganizationLimitsParams

WithOrganizationIdentifier adds the organizationIdentifier to the edit organization limits params

func (*EditOrganizationLimitsParams) WithTimeout

WithTimeout adds the timeout to the edit organization limits params

func (*EditOrganizationLimitsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EditOrganizationLimitsReader

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

EditOrganizationLimitsReader is a Reader for the EditOrganizationLimits structure.

func (*EditOrganizationLimitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationLimitsForbidden

type GetOrganizationLimitsForbidden struct {
	Payload *mono_models.Message
}
GetOrganizationLimitsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetOrganizationLimitsForbidden

func NewGetOrganizationLimitsForbidden() *GetOrganizationLimitsForbidden

NewGetOrganizationLimitsForbidden creates a GetOrganizationLimitsForbidden with default headers values

func (*GetOrganizationLimitsForbidden) Error

func (*GetOrganizationLimitsForbidden) GetPayload

type GetOrganizationLimitsInternalServerError

type GetOrganizationLimitsInternalServerError struct {
	Payload *mono_models.Message
}
GetOrganizationLimitsInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewGetOrganizationLimitsInternalServerError

func NewGetOrganizationLimitsInternalServerError() *GetOrganizationLimitsInternalServerError

NewGetOrganizationLimitsInternalServerError creates a GetOrganizationLimitsInternalServerError with default headers values

func (*GetOrganizationLimitsInternalServerError) Error

func (*GetOrganizationLimitsInternalServerError) GetPayload

type GetOrganizationLimitsNotFound

type GetOrganizationLimitsNotFound struct {
	Payload *mono_models.Message
}
GetOrganizationLimitsNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetOrganizationLimitsNotFound

func NewGetOrganizationLimitsNotFound() *GetOrganizationLimitsNotFound

NewGetOrganizationLimitsNotFound creates a GetOrganizationLimitsNotFound with default headers values

func (*GetOrganizationLimitsNotFound) Error

func (*GetOrganizationLimitsNotFound) GetPayload

type GetOrganizationLimitsOK

type GetOrganizationLimitsOK struct {
	Payload *mono_models.Limits
}
GetOrganizationLimitsOK describes a response with status code 200, with default header values.

Success

func NewGetOrganizationLimitsOK

func NewGetOrganizationLimitsOK() *GetOrganizationLimitsOK

NewGetOrganizationLimitsOK creates a GetOrganizationLimitsOK with default headers values

func (*GetOrganizationLimitsOK) Error

func (o *GetOrganizationLimitsOK) Error() string

func (*GetOrganizationLimitsOK) GetPayload

func (o *GetOrganizationLimitsOK) GetPayload() *mono_models.Limits

type GetOrganizationLimitsParams

type GetOrganizationLimitsParams struct {

	/* IdentifierType.

	   what kind of thing the provided organizationIdentifier is

	   Default: "URLname"
	*/
	IdentifierType *string

	/* OrganizationIdentifier.

	   identifier (URLname, by default) of the desired organization
	*/
	OrganizationIdentifier string

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

GetOrganizationLimitsParams contains all the parameters to send to the API endpoint

for the get organization limits operation.

Typically these are written to a http.Request.

func NewGetOrganizationLimitsParams

func NewGetOrganizationLimitsParams() *GetOrganizationLimitsParams

NewGetOrganizationLimitsParams creates a new GetOrganizationLimitsParams 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 NewGetOrganizationLimitsParamsWithContext

func NewGetOrganizationLimitsParamsWithContext(ctx context.Context) *GetOrganizationLimitsParams

NewGetOrganizationLimitsParamsWithContext creates a new GetOrganizationLimitsParams object with the ability to set a context for a request.

func NewGetOrganizationLimitsParamsWithHTTPClient

func NewGetOrganizationLimitsParamsWithHTTPClient(client *http.Client) *GetOrganizationLimitsParams

NewGetOrganizationLimitsParamsWithHTTPClient creates a new GetOrganizationLimitsParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationLimitsParamsWithTimeout

func NewGetOrganizationLimitsParamsWithTimeout(timeout time.Duration) *GetOrganizationLimitsParams

NewGetOrganizationLimitsParamsWithTimeout creates a new GetOrganizationLimitsParams object with the ability to set a timeout on a request.

func (*GetOrganizationLimitsParams) SetContext

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

SetContext adds the context to the get organization limits params

func (*GetOrganizationLimitsParams) SetDefaults

func (o *GetOrganizationLimitsParams) SetDefaults()

SetDefaults hydrates default values in the get organization limits params (not the query body).

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

func (*GetOrganizationLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization limits params

func (*GetOrganizationLimitsParams) SetIdentifierType

func (o *GetOrganizationLimitsParams) SetIdentifierType(identifierType *string)

SetIdentifierType adds the identifierType to the get organization limits params

func (*GetOrganizationLimitsParams) SetOrganizationIdentifier

func (o *GetOrganizationLimitsParams) SetOrganizationIdentifier(organizationIdentifier string)

SetOrganizationIdentifier adds the organizationIdentifier to the get organization limits params

func (*GetOrganizationLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the get organization limits params

func (*GetOrganizationLimitsParams) WithContext

WithContext adds the context to the get organization limits params

func (*GetOrganizationLimitsParams) WithDefaults

WithDefaults hydrates default values in the get organization limits params (not the query body).

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

func (*GetOrganizationLimitsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization limits params

func (*GetOrganizationLimitsParams) WithIdentifierType

func (o *GetOrganizationLimitsParams) WithIdentifierType(identifierType *string) *GetOrganizationLimitsParams

WithIdentifierType adds the identifierType to the get organization limits params

func (*GetOrganizationLimitsParams) WithOrganizationIdentifier

func (o *GetOrganizationLimitsParams) WithOrganizationIdentifier(organizationIdentifier string) *GetOrganizationLimitsParams

WithOrganizationIdentifier adds the organizationIdentifier to the get organization limits params

func (*GetOrganizationLimitsParams) WithTimeout

WithTimeout adds the timeout to the get organization limits params

func (*GetOrganizationLimitsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationLimitsReader

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

GetOrganizationLimitsReader is a Reader for the GetOrganizationLimits structure.

func (*GetOrganizationLimitsReader) ReadResponse

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