organization_logs

package
v1.0.100 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationVndCycloidIoV1JSON

func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationVndCycloidIoV1JSON sets the Accept header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationVndCycloidIoV1JSON

func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationVndCycloidIoV1JSON sets the Content-Type header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for organization logs API

func (*Client) GetProjEnvLogEntries

func (a *Client) GetProjEnvLogEntries(params *GetProjEnvLogEntriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjEnvLogEntriesOK, error)
	GetProjEnvLogEntries Get log's entries information  of the specified log stream stream which is associated to the project's environment of the specified organization. The log's entries to request can be filtered using the unix timestamp ranges and/or the query as follow - When unix timestamps are defined, they are converted to the specific
	query language used by the configured underlying log system (e.g AWS
	Cloud Watch, ElasticSearch, etc.) and appended to the query value
	respecting the syntax but not checking the content of the query, which
	means that if the whole query must be enclosed by curly brackets hence
	the query value is enclosed on them, the time range filter will be
	added inside not just appended at the end, because otherwise it would
	cause wrong syntax; on the other hand, not checking the content means
	that if the query contains a timerange filter, the whole query will
	contain both and the result will be the one returned by on the
	underlying log system, being an error or not.
  - When no time range are defined, then the query is used as it has been
    send, there is not modification on the query to send to the underlying
    log system, hence the result will be the one returned by it.
  - If none of the filters (timestamp range and query) are sent, then
    a 422 status code will be responded.
  - Some constraints are established by the underlying log system, so
    depending which one has been configured some parameters may be
    required or not.

func (*Client) GetProjEnvLogSources

func (a *Client) GetProjEnvLogSources(params *GetProjEnvLogSourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjEnvLogSourcesOK, error)

GetProjEnvLogSources Get the list of sources configured for the specified project's environment of the organization.

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 may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetProjEnvLogEntries(params *GetProjEnvLogEntriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjEnvLogEntriesOK, error)

	GetProjEnvLogSources(params *GetProjEnvLogSourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjEnvLogSourcesOK, 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 organization logs API client.

func NewClientWithBasicAuth

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

New creates a new organization logs 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 organization logs 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 GetProjEnvLogEntriesDefault

type GetProjEnvLogEntriesDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetProjEnvLogEntriesDefault

func NewGetProjEnvLogEntriesDefault(code int) *GetProjEnvLogEntriesDefault

NewGetProjEnvLogEntriesDefault creates a GetProjEnvLogEntriesDefault with default headers values

func (*GetProjEnvLogEntriesDefault) Code

func (o *GetProjEnvLogEntriesDefault) Code() int

Code gets the status code for the get proj env log entries default response

func (*GetProjEnvLogEntriesDefault) Error

func (*GetProjEnvLogEntriesDefault) GetPayload

func (*GetProjEnvLogEntriesDefault) IsClientError

func (o *GetProjEnvLogEntriesDefault) IsClientError() bool

IsClientError returns true when this get proj env log entries default response has a 4xx status code

func (*GetProjEnvLogEntriesDefault) IsCode

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

IsCode returns true when this get proj env log entries default response a status code equal to that given

func (*GetProjEnvLogEntriesDefault) IsRedirect

func (o *GetProjEnvLogEntriesDefault) IsRedirect() bool

IsRedirect returns true when this get proj env log entries default response has a 3xx status code

func (*GetProjEnvLogEntriesDefault) IsServerError

func (o *GetProjEnvLogEntriesDefault) IsServerError() bool

IsServerError returns true when this get proj env log entries default response has a 5xx status code

func (*GetProjEnvLogEntriesDefault) IsSuccess

func (o *GetProjEnvLogEntriesDefault) IsSuccess() bool

IsSuccess returns true when this get proj env log entries default response has a 2xx status code

func (*GetProjEnvLogEntriesDefault) String

func (o *GetProjEnvLogEntriesDefault) String() string

type GetProjEnvLogEntriesForbidden

type GetProjEnvLogEntriesForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewGetProjEnvLogEntriesForbidden

func NewGetProjEnvLogEntriesForbidden() *GetProjEnvLogEntriesForbidden

NewGetProjEnvLogEntriesForbidden creates a GetProjEnvLogEntriesForbidden with default headers values

func (*GetProjEnvLogEntriesForbidden) Code

Code gets the status code for the get proj env log entries forbidden response

func (*GetProjEnvLogEntriesForbidden) Error

func (*GetProjEnvLogEntriesForbidden) GetPayload

func (*GetProjEnvLogEntriesForbidden) IsClientError

func (o *GetProjEnvLogEntriesForbidden) IsClientError() bool

IsClientError returns true when this get proj env log entries forbidden response has a 4xx status code

func (*GetProjEnvLogEntriesForbidden) IsCode

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

IsCode returns true when this get proj env log entries forbidden response a status code equal to that given

func (*GetProjEnvLogEntriesForbidden) IsRedirect

func (o *GetProjEnvLogEntriesForbidden) IsRedirect() bool

IsRedirect returns true when this get proj env log entries forbidden response has a 3xx status code

func (*GetProjEnvLogEntriesForbidden) IsServerError

func (o *GetProjEnvLogEntriesForbidden) IsServerError() bool

IsServerError returns true when this get proj env log entries forbidden response has a 5xx status code

func (*GetProjEnvLogEntriesForbidden) IsSuccess

func (o *GetProjEnvLogEntriesForbidden) IsSuccess() bool

IsSuccess returns true when this get proj env log entries forbidden response has a 2xx status code

func (*GetProjEnvLogEntriesForbidden) String

type GetProjEnvLogEntriesNotFound

type GetProjEnvLogEntriesNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewGetProjEnvLogEntriesNotFound

func NewGetProjEnvLogEntriesNotFound() *GetProjEnvLogEntriesNotFound

NewGetProjEnvLogEntriesNotFound creates a GetProjEnvLogEntriesNotFound with default headers values

func (*GetProjEnvLogEntriesNotFound) Code

Code gets the status code for the get proj env log entries not found response

func (*GetProjEnvLogEntriesNotFound) Error

func (*GetProjEnvLogEntriesNotFound) GetPayload

func (*GetProjEnvLogEntriesNotFound) IsClientError

func (o *GetProjEnvLogEntriesNotFound) IsClientError() bool

IsClientError returns true when this get proj env log entries not found response has a 4xx status code

func (*GetProjEnvLogEntriesNotFound) IsCode

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

IsCode returns true when this get proj env log entries not found response a status code equal to that given

func (*GetProjEnvLogEntriesNotFound) IsRedirect

func (o *GetProjEnvLogEntriesNotFound) IsRedirect() bool

IsRedirect returns true when this get proj env log entries not found response has a 3xx status code

func (*GetProjEnvLogEntriesNotFound) IsServerError

func (o *GetProjEnvLogEntriesNotFound) IsServerError() bool

IsServerError returns true when this get proj env log entries not found response has a 5xx status code

func (*GetProjEnvLogEntriesNotFound) IsSuccess

func (o *GetProjEnvLogEntriesNotFound) IsSuccess() bool

IsSuccess returns true when this get proj env log entries not found response has a 2xx status code

func (*GetProjEnvLogEntriesNotFound) String

type GetProjEnvLogEntriesOK

type GetProjEnvLogEntriesOK struct {
	Payload *GetProjEnvLogEntriesOKBody
}

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

The list of log's entries which are comprehended by the begin and end timestamps and are selected by the optional query.

func NewGetProjEnvLogEntriesOK

func NewGetProjEnvLogEntriesOK() *GetProjEnvLogEntriesOK

NewGetProjEnvLogEntriesOK creates a GetProjEnvLogEntriesOK with default headers values

func (*GetProjEnvLogEntriesOK) Code

func (o *GetProjEnvLogEntriesOK) Code() int

Code gets the status code for the get proj env log entries o k response

func (*GetProjEnvLogEntriesOK) Error

func (o *GetProjEnvLogEntriesOK) Error() string

func (*GetProjEnvLogEntriesOK) GetPayload

func (*GetProjEnvLogEntriesOK) IsClientError

func (o *GetProjEnvLogEntriesOK) IsClientError() bool

IsClientError returns true when this get proj env log entries o k response has a 4xx status code

func (*GetProjEnvLogEntriesOK) IsCode

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

IsCode returns true when this get proj env log entries o k response a status code equal to that given

func (*GetProjEnvLogEntriesOK) IsRedirect

func (o *GetProjEnvLogEntriesOK) IsRedirect() bool

IsRedirect returns true when this get proj env log entries o k response has a 3xx status code

func (*GetProjEnvLogEntriesOK) IsServerError

func (o *GetProjEnvLogEntriesOK) IsServerError() bool

IsServerError returns true when this get proj env log entries o k response has a 5xx status code

func (*GetProjEnvLogEntriesOK) IsSuccess

func (o *GetProjEnvLogEntriesOK) IsSuccess() bool

IsSuccess returns true when this get proj env log entries o k response has a 2xx status code

func (*GetProjEnvLogEntriesOK) String

func (o *GetProjEnvLogEntriesOK) String() string

type GetProjEnvLogEntriesOKBody

type GetProjEnvLogEntriesOKBody struct {

	// data
	// Required: true
	Data []*models.LogSourceEntry `json:"data"`
}

GetProjEnvLogEntriesOKBody The list of log lines swagger:model GetProjEnvLogEntriesOKBody

func (*GetProjEnvLogEntriesOKBody) ContextValidate

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

ContextValidate validate this get proj env log entries o k body based on the context it is used

func (*GetProjEnvLogEntriesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetProjEnvLogEntriesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetProjEnvLogEntriesOKBody) Validate

func (o *GetProjEnvLogEntriesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get proj env log entries o k body

type GetProjEnvLogEntriesParams

type GetProjEnvLogEntriesParams struct {

	/* Begin.

	   The unix timestamp in milliseconds, which indicate the start of the time range.

	   Format: uint64
	*/
	Begin *uint64

	/* End.

	   The unix timestamp in milliseconds, which indicate the end of the time range.

	   Format: uint64
	*/
	End *uint64

	/* EnvironmentCanonical.

	   The environment canonical to use as part of a path
	*/
	EnvironmentCanonical string

	/* LogSourceID.

	   A unique identifier, which group log's entries under under a context, established by the source.
	*/
	LogSourceID string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

	/* ProjectCanonical.

	   A canonical of a project.
	*/
	ProjectCanonical string

	/* Query.

	   A free text which the content depends of the context of the API endpoint. Can be a free text value or a complete query expressed of supported query language.
	*/
	Query *string

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

GetProjEnvLogEntriesParams contains all the parameters to send to the API endpoint

for the get proj env log entries operation.

Typically these are written to a http.Request.

func NewGetProjEnvLogEntriesParams

func NewGetProjEnvLogEntriesParams() *GetProjEnvLogEntriesParams

NewGetProjEnvLogEntriesParams creates a new GetProjEnvLogEntriesParams 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 NewGetProjEnvLogEntriesParamsWithContext

func NewGetProjEnvLogEntriesParamsWithContext(ctx context.Context) *GetProjEnvLogEntriesParams

NewGetProjEnvLogEntriesParamsWithContext creates a new GetProjEnvLogEntriesParams object with the ability to set a context for a request.

func NewGetProjEnvLogEntriesParamsWithHTTPClient

func NewGetProjEnvLogEntriesParamsWithHTTPClient(client *http.Client) *GetProjEnvLogEntriesParams

NewGetProjEnvLogEntriesParamsWithHTTPClient creates a new GetProjEnvLogEntriesParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjEnvLogEntriesParamsWithTimeout

func NewGetProjEnvLogEntriesParamsWithTimeout(timeout time.Duration) *GetProjEnvLogEntriesParams

NewGetProjEnvLogEntriesParamsWithTimeout creates a new GetProjEnvLogEntriesParams object with the ability to set a timeout on a request.

func (*GetProjEnvLogEntriesParams) SetBegin

func (o *GetProjEnvLogEntriesParams) SetBegin(begin *uint64)

SetBegin adds the begin to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetContext

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

SetContext adds the context to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetDefaults

func (o *GetProjEnvLogEntriesParams) SetDefaults()

SetDefaults hydrates default values in the get proj env log entries params (not the query body).

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

func (*GetProjEnvLogEntriesParams) SetEnd

func (o *GetProjEnvLogEntriesParams) SetEnd(end *uint64)

SetEnd adds the end to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetEnvironmentCanonical

func (o *GetProjEnvLogEntriesParams) SetEnvironmentCanonical(environmentCanonical string)

SetEnvironmentCanonical adds the environmentCanonical to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetLogSourceID

func (o *GetProjEnvLogEntriesParams) SetLogSourceID(logSourceID string)

SetLogSourceID adds the logSourceId to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetOrganizationCanonical

func (o *GetProjEnvLogEntriesParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetProjectCanonical

func (o *GetProjEnvLogEntriesParams) SetProjectCanonical(projectCanonical string)

SetProjectCanonical adds the projectCanonical to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetQuery

func (o *GetProjEnvLogEntriesParams) SetQuery(query *string)

SetQuery adds the query to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) SetTimeout

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

SetTimeout adds the timeout to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithBegin

WithBegin adds the begin to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithContext

WithContext adds the context to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithDefaults

WithDefaults hydrates default values in the get proj env log entries params (not the query body).

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

func (*GetProjEnvLogEntriesParams) WithEnd

WithEnd adds the end to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithEnvironmentCanonical

func (o *GetProjEnvLogEntriesParams) WithEnvironmentCanonical(environmentCanonical string) *GetProjEnvLogEntriesParams

WithEnvironmentCanonical adds the environmentCanonical to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithLogSourceID

func (o *GetProjEnvLogEntriesParams) WithLogSourceID(logSourceID string) *GetProjEnvLogEntriesParams

WithLogSourceID adds the logSourceID to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithOrganizationCanonical

func (o *GetProjEnvLogEntriesParams) WithOrganizationCanonical(organizationCanonical string) *GetProjEnvLogEntriesParams

WithOrganizationCanonical adds the organizationCanonical to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithProjectCanonical

func (o *GetProjEnvLogEntriesParams) WithProjectCanonical(projectCanonical string) *GetProjEnvLogEntriesParams

WithProjectCanonical adds the projectCanonical to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithQuery

WithQuery adds the query to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WithTimeout

WithTimeout adds the timeout to the get proj env log entries params

func (*GetProjEnvLogEntriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjEnvLogEntriesReader

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

GetProjEnvLogEntriesReader is a Reader for the GetProjEnvLogEntries structure.

func (*GetProjEnvLogEntriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjEnvLogEntriesUnprocessableEntity

type GetProjEnvLogEntriesUnprocessableEntity struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetProjEnvLogEntriesUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetProjEnvLogEntriesUnprocessableEntity

func NewGetProjEnvLogEntriesUnprocessableEntity() *GetProjEnvLogEntriesUnprocessableEntity

NewGetProjEnvLogEntriesUnprocessableEntity creates a GetProjEnvLogEntriesUnprocessableEntity with default headers values

func (*GetProjEnvLogEntriesUnprocessableEntity) Code

Code gets the status code for the get proj env log entries unprocessable entity response

func (*GetProjEnvLogEntriesUnprocessableEntity) Error

func (*GetProjEnvLogEntriesUnprocessableEntity) GetPayload

func (*GetProjEnvLogEntriesUnprocessableEntity) IsClientError

func (o *GetProjEnvLogEntriesUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get proj env log entries unprocessable entity response has a 4xx status code

func (*GetProjEnvLogEntriesUnprocessableEntity) IsCode

IsCode returns true when this get proj env log entries unprocessable entity response a status code equal to that given

func (*GetProjEnvLogEntriesUnprocessableEntity) IsRedirect

IsRedirect returns true when this get proj env log entries unprocessable entity response has a 3xx status code

func (*GetProjEnvLogEntriesUnprocessableEntity) IsServerError

func (o *GetProjEnvLogEntriesUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get proj env log entries unprocessable entity response has a 5xx status code

func (*GetProjEnvLogEntriesUnprocessableEntity) IsSuccess

IsSuccess returns true when this get proj env log entries unprocessable entity response has a 2xx status code

func (*GetProjEnvLogEntriesUnprocessableEntity) String

type GetProjEnvLogSourcesDefault

type GetProjEnvLogSourcesDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetProjEnvLogSourcesDefault

func NewGetProjEnvLogSourcesDefault(code int) *GetProjEnvLogSourcesDefault

NewGetProjEnvLogSourcesDefault creates a GetProjEnvLogSourcesDefault with default headers values

func (*GetProjEnvLogSourcesDefault) Code

func (o *GetProjEnvLogSourcesDefault) Code() int

Code gets the status code for the get proj env log sources default response

func (*GetProjEnvLogSourcesDefault) Error

func (*GetProjEnvLogSourcesDefault) GetPayload

func (*GetProjEnvLogSourcesDefault) IsClientError

func (o *GetProjEnvLogSourcesDefault) IsClientError() bool

IsClientError returns true when this get proj env log sources default response has a 4xx status code

func (*GetProjEnvLogSourcesDefault) IsCode

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

IsCode returns true when this get proj env log sources default response a status code equal to that given

func (*GetProjEnvLogSourcesDefault) IsRedirect

func (o *GetProjEnvLogSourcesDefault) IsRedirect() bool

IsRedirect returns true when this get proj env log sources default response has a 3xx status code

func (*GetProjEnvLogSourcesDefault) IsServerError

func (o *GetProjEnvLogSourcesDefault) IsServerError() bool

IsServerError returns true when this get proj env log sources default response has a 5xx status code

func (*GetProjEnvLogSourcesDefault) IsSuccess

func (o *GetProjEnvLogSourcesDefault) IsSuccess() bool

IsSuccess returns true when this get proj env log sources default response has a 2xx status code

func (*GetProjEnvLogSourcesDefault) String

func (o *GetProjEnvLogSourcesDefault) String() string

type GetProjEnvLogSourcesForbidden

type GetProjEnvLogSourcesForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewGetProjEnvLogSourcesForbidden

func NewGetProjEnvLogSourcesForbidden() *GetProjEnvLogSourcesForbidden

NewGetProjEnvLogSourcesForbidden creates a GetProjEnvLogSourcesForbidden with default headers values

func (*GetProjEnvLogSourcesForbidden) Code

Code gets the status code for the get proj env log sources forbidden response

func (*GetProjEnvLogSourcesForbidden) Error

func (*GetProjEnvLogSourcesForbidden) GetPayload

func (*GetProjEnvLogSourcesForbidden) IsClientError

func (o *GetProjEnvLogSourcesForbidden) IsClientError() bool

IsClientError returns true when this get proj env log sources forbidden response has a 4xx status code

func (*GetProjEnvLogSourcesForbidden) IsCode

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

IsCode returns true when this get proj env log sources forbidden response a status code equal to that given

func (*GetProjEnvLogSourcesForbidden) IsRedirect

func (o *GetProjEnvLogSourcesForbidden) IsRedirect() bool

IsRedirect returns true when this get proj env log sources forbidden response has a 3xx status code

func (*GetProjEnvLogSourcesForbidden) IsServerError

func (o *GetProjEnvLogSourcesForbidden) IsServerError() bool

IsServerError returns true when this get proj env log sources forbidden response has a 5xx status code

func (*GetProjEnvLogSourcesForbidden) IsSuccess

func (o *GetProjEnvLogSourcesForbidden) IsSuccess() bool

IsSuccess returns true when this get proj env log sources forbidden response has a 2xx status code

func (*GetProjEnvLogSourcesForbidden) String

type GetProjEnvLogSourcesNotFound

type GetProjEnvLogSourcesNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewGetProjEnvLogSourcesNotFound

func NewGetProjEnvLogSourcesNotFound() *GetProjEnvLogSourcesNotFound

NewGetProjEnvLogSourcesNotFound creates a GetProjEnvLogSourcesNotFound with default headers values

func (*GetProjEnvLogSourcesNotFound) Code

Code gets the status code for the get proj env log sources not found response

func (*GetProjEnvLogSourcesNotFound) Error

func (*GetProjEnvLogSourcesNotFound) GetPayload

func (*GetProjEnvLogSourcesNotFound) IsClientError

func (o *GetProjEnvLogSourcesNotFound) IsClientError() bool

IsClientError returns true when this get proj env log sources not found response has a 4xx status code

func (*GetProjEnvLogSourcesNotFound) IsCode

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

IsCode returns true when this get proj env log sources not found response a status code equal to that given

func (*GetProjEnvLogSourcesNotFound) IsRedirect

func (o *GetProjEnvLogSourcesNotFound) IsRedirect() bool

IsRedirect returns true when this get proj env log sources not found response has a 3xx status code

func (*GetProjEnvLogSourcesNotFound) IsServerError

func (o *GetProjEnvLogSourcesNotFound) IsServerError() bool

IsServerError returns true when this get proj env log sources not found response has a 5xx status code

func (*GetProjEnvLogSourcesNotFound) IsSuccess

func (o *GetProjEnvLogSourcesNotFound) IsSuccess() bool

IsSuccess returns true when this get proj env log sources not found response has a 2xx status code

func (*GetProjEnvLogSourcesNotFound) String

type GetProjEnvLogSourcesOK

type GetProjEnvLogSourcesOK struct {
	Payload *GetProjEnvLogSourcesOKBody
}

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

The list of sources related to the project's environment.

func NewGetProjEnvLogSourcesOK

func NewGetProjEnvLogSourcesOK() *GetProjEnvLogSourcesOK

NewGetProjEnvLogSourcesOK creates a GetProjEnvLogSourcesOK with default headers values

func (*GetProjEnvLogSourcesOK) Code

func (o *GetProjEnvLogSourcesOK) Code() int

Code gets the status code for the get proj env log sources o k response

func (*GetProjEnvLogSourcesOK) Error

func (o *GetProjEnvLogSourcesOK) Error() string

func (*GetProjEnvLogSourcesOK) GetPayload

func (*GetProjEnvLogSourcesOK) IsClientError

func (o *GetProjEnvLogSourcesOK) IsClientError() bool

IsClientError returns true when this get proj env log sources o k response has a 4xx status code

func (*GetProjEnvLogSourcesOK) IsCode

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

IsCode returns true when this get proj env log sources o k response a status code equal to that given

func (*GetProjEnvLogSourcesOK) IsRedirect

func (o *GetProjEnvLogSourcesOK) IsRedirect() bool

IsRedirect returns true when this get proj env log sources o k response has a 3xx status code

func (*GetProjEnvLogSourcesOK) IsServerError

func (o *GetProjEnvLogSourcesOK) IsServerError() bool

IsServerError returns true when this get proj env log sources o k response has a 5xx status code

func (*GetProjEnvLogSourcesOK) IsSuccess

func (o *GetProjEnvLogSourcesOK) IsSuccess() bool

IsSuccess returns true when this get proj env log sources o k response has a 2xx status code

func (*GetProjEnvLogSourcesOK) String

func (o *GetProjEnvLogSourcesOK) String() string

type GetProjEnvLogSourcesOKBody

type GetProjEnvLogSourcesOKBody struct {

	// data
	// Required: true
	Data []*models.LogSource `json:"data"`
}

GetProjEnvLogSourcesOKBody The list of log sources. swagger:model GetProjEnvLogSourcesOKBody

func (*GetProjEnvLogSourcesOKBody) ContextValidate

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

ContextValidate validate this get proj env log sources o k body based on the context it is used

func (*GetProjEnvLogSourcesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetProjEnvLogSourcesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetProjEnvLogSourcesOKBody) Validate

func (o *GetProjEnvLogSourcesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get proj env log sources o k body

type GetProjEnvLogSourcesParams

type GetProjEnvLogSourcesParams struct {

	/* EnvironmentCanonical.

	   The environment canonical to use as part of a path
	*/
	EnvironmentCanonical string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

	/* ProjectCanonical.

	   A canonical of a project.
	*/
	ProjectCanonical string

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

GetProjEnvLogSourcesParams contains all the parameters to send to the API endpoint

for the get proj env log sources operation.

Typically these are written to a http.Request.

func NewGetProjEnvLogSourcesParams

func NewGetProjEnvLogSourcesParams() *GetProjEnvLogSourcesParams

NewGetProjEnvLogSourcesParams creates a new GetProjEnvLogSourcesParams 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 NewGetProjEnvLogSourcesParamsWithContext

func NewGetProjEnvLogSourcesParamsWithContext(ctx context.Context) *GetProjEnvLogSourcesParams

NewGetProjEnvLogSourcesParamsWithContext creates a new GetProjEnvLogSourcesParams object with the ability to set a context for a request.

func NewGetProjEnvLogSourcesParamsWithHTTPClient

func NewGetProjEnvLogSourcesParamsWithHTTPClient(client *http.Client) *GetProjEnvLogSourcesParams

NewGetProjEnvLogSourcesParamsWithHTTPClient creates a new GetProjEnvLogSourcesParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjEnvLogSourcesParamsWithTimeout

func NewGetProjEnvLogSourcesParamsWithTimeout(timeout time.Duration) *GetProjEnvLogSourcesParams

NewGetProjEnvLogSourcesParamsWithTimeout creates a new GetProjEnvLogSourcesParams object with the ability to set a timeout on a request.

func (*GetProjEnvLogSourcesParams) SetContext

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

SetContext adds the context to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) SetDefaults

func (o *GetProjEnvLogSourcesParams) SetDefaults()

SetDefaults hydrates default values in the get proj env log sources params (not the query body).

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

func (*GetProjEnvLogSourcesParams) SetEnvironmentCanonical

func (o *GetProjEnvLogSourcesParams) SetEnvironmentCanonical(environmentCanonical string)

SetEnvironmentCanonical adds the environmentCanonical to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) SetOrganizationCanonical

func (o *GetProjEnvLogSourcesParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) SetProjectCanonical

func (o *GetProjEnvLogSourcesParams) SetProjectCanonical(projectCanonical string)

SetProjectCanonical adds the projectCanonical to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) SetTimeout

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

SetTimeout adds the timeout to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WithContext

WithContext adds the context to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WithDefaults

WithDefaults hydrates default values in the get proj env log sources params (not the query body).

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

func (*GetProjEnvLogSourcesParams) WithEnvironmentCanonical

func (o *GetProjEnvLogSourcesParams) WithEnvironmentCanonical(environmentCanonical string) *GetProjEnvLogSourcesParams

WithEnvironmentCanonical adds the environmentCanonical to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WithOrganizationCanonical

func (o *GetProjEnvLogSourcesParams) WithOrganizationCanonical(organizationCanonical string) *GetProjEnvLogSourcesParams

WithOrganizationCanonical adds the organizationCanonical to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WithProjectCanonical

func (o *GetProjEnvLogSourcesParams) WithProjectCanonical(projectCanonical string) *GetProjEnvLogSourcesParams

WithProjectCanonical adds the projectCanonical to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WithTimeout

WithTimeout adds the timeout to the get proj env log sources params

func (*GetProjEnvLogSourcesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjEnvLogSourcesReader

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

GetProjEnvLogSourcesReader is a Reader for the GetProjEnvLogSources structure.

func (*GetProjEnvLogSourcesReader) ReadResponse

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