api_usage

package
v0.0.0-...-b7c797c Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 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 api usage API

func (*Client) GetOrganizationAPIRequests

func (a *Client) GetOrganizationAPIRequests(params *GetOrganizationAPIRequestsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrganizationAPIRequestsOK, error)

GetOrganizationAPIRequests gets organization Api requests

List the API requests made by an organization

func (*Client) GetOrganizationAPIRequestsOverview

GetOrganizationAPIRequestsOverview gets organization Api requests overview

Return an aggregated overview of API requests data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetOrganizationAPIRequests(params *GetOrganizationAPIRequestsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrganizationAPIRequestsOK, error)

	GetOrganizationAPIRequestsOverview(params *GetOrganizationAPIRequestsOverviewParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrganizationAPIRequestsOverviewOK, 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 api usage API client.

type GetOrganizationAPIRequestsOK

type GetOrganizationAPIRequestsOK struct {
	Payload interface{}
}

GetOrganizationAPIRequestsOK handles this case with default header values.

Successful operation

func NewGetOrganizationAPIRequestsOK

func NewGetOrganizationAPIRequestsOK() *GetOrganizationAPIRequestsOK

NewGetOrganizationAPIRequestsOK creates a GetOrganizationAPIRequestsOK with default headers values

func (*GetOrganizationAPIRequestsOK) Error

func (*GetOrganizationAPIRequestsOK) GetPayload

func (o *GetOrganizationAPIRequestsOK) GetPayload() interface{}

type GetOrganizationAPIRequestsOverviewOK

type GetOrganizationAPIRequestsOverviewOK struct {
	Payload interface{}
}

GetOrganizationAPIRequestsOverviewOK handles this case with default header values.

Successful operation

func NewGetOrganizationAPIRequestsOverviewOK

func NewGetOrganizationAPIRequestsOverviewOK() *GetOrganizationAPIRequestsOverviewOK

NewGetOrganizationAPIRequestsOverviewOK creates a GetOrganizationAPIRequestsOverviewOK with default headers values

func (*GetOrganizationAPIRequestsOverviewOK) Error

func (*GetOrganizationAPIRequestsOverviewOK) GetPayload

func (o *GetOrganizationAPIRequestsOverviewOK) GetPayload() interface{}

type GetOrganizationAPIRequestsOverviewParams

type GetOrganizationAPIRequestsOverviewParams struct {

	/*OrganizationID*/
	OrganizationID string
	/*T0
	  The beginning of the timespan for the data. The maximum lookback period is 31 days from today.

	*/
	T0 *string
	/*T1
	  The end of the timespan for the data. t1 can be a maximum of 31 days after t0.

	*/
	T1 *string
	/*Timespan
	  The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 31 days.

	*/
	Timespan *float64

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

GetOrganizationAPIRequestsOverviewParams contains all the parameters to send to the API endpoint for the get organization Api requests overview operation typically these are written to a http.Request

func NewGetOrganizationAPIRequestsOverviewParams

func NewGetOrganizationAPIRequestsOverviewParams() *GetOrganizationAPIRequestsOverviewParams

NewGetOrganizationAPIRequestsOverviewParams creates a new GetOrganizationAPIRequestsOverviewParams object with the default values initialized.

func NewGetOrganizationAPIRequestsOverviewParamsWithContext

func NewGetOrganizationAPIRequestsOverviewParamsWithContext(ctx context.Context) *GetOrganizationAPIRequestsOverviewParams

NewGetOrganizationAPIRequestsOverviewParamsWithContext creates a new GetOrganizationAPIRequestsOverviewParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrganizationAPIRequestsOverviewParamsWithHTTPClient

func NewGetOrganizationAPIRequestsOverviewParamsWithHTTPClient(client *http.Client) *GetOrganizationAPIRequestsOverviewParams

NewGetOrganizationAPIRequestsOverviewParamsWithHTTPClient creates a new GetOrganizationAPIRequestsOverviewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrganizationAPIRequestsOverviewParamsWithTimeout

func NewGetOrganizationAPIRequestsOverviewParamsWithTimeout(timeout time.Duration) *GetOrganizationAPIRequestsOverviewParams

NewGetOrganizationAPIRequestsOverviewParamsWithTimeout creates a new GetOrganizationAPIRequestsOverviewParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrganizationAPIRequestsOverviewParams) SetContext

SetContext adds the context to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) SetOrganizationID

func (o *GetOrganizationAPIRequestsOverviewParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) SetT0

SetT0 adds the t0 to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) SetT1

SetT1 adds the t1 to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) SetTimeout

SetTimeout adds the timeout to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) SetTimespan

func (o *GetOrganizationAPIRequestsOverviewParams) SetTimespan(timespan *float64)

SetTimespan adds the timespan to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithContext

WithContext adds the context to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithOrganizationID

WithOrganizationID adds the organizationID to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithT0

WithT0 adds the t0 to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithT1

WithT1 adds the t1 to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithTimeout

WithTimeout adds the timeout to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WithTimespan

WithTimespan adds the timespan to the get organization Api requests overview params

func (*GetOrganizationAPIRequestsOverviewParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationAPIRequestsOverviewReader

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

GetOrganizationAPIRequestsOverviewReader is a Reader for the GetOrganizationAPIRequestsOverview structure.

func (*GetOrganizationAPIRequestsOverviewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationAPIRequestsParams

type GetOrganizationAPIRequestsParams struct {

	/*AdminID
	  Filter the results by the ID of the admin who made the API requests

	*/
	AdminID *string
	/*EndingBefore
	  A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

	*/
	EndingBefore *string
	/*Method
	  Filter the results by the method of the API requests (must be 'GET', 'PUT', 'POST' or 'DELETE')

	*/
	Method *string
	/*OrganizationID*/
	OrganizationID string
	/*Path
	  Filter the results by the path of the API requests

	*/
	Path *string
	/*PerPage
	  The number of entries per page returned. Acceptable range is 3 - 1000. Default is 50.

	*/
	PerPage *int32
	/*ResponseCode
	  Filter the results by the response code of the API requests

	*/
	ResponseCode *int32
	/*SourceIP
	  Filter the results by the IP address of the originating API request

	*/
	SourceIP *string
	/*StartingAfter
	  A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

	*/
	StartingAfter *string
	/*T0
	  The beginning of the timespan for the data. The maximum lookback period is 31 days from today.

	*/
	T0 *string
	/*T1
	  The end of the timespan for the data. t1 can be a maximum of 31 days after t0.

	*/
	T1 *string
	/*Timespan
	  The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 31 days.

	*/
	Timespan *float64

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

GetOrganizationAPIRequestsParams contains all the parameters to send to the API endpoint for the get organization Api requests operation typically these are written to a http.Request

func NewGetOrganizationAPIRequestsParams

func NewGetOrganizationAPIRequestsParams() *GetOrganizationAPIRequestsParams

NewGetOrganizationAPIRequestsParams creates a new GetOrganizationAPIRequestsParams object with the default values initialized.

func NewGetOrganizationAPIRequestsParamsWithContext

func NewGetOrganizationAPIRequestsParamsWithContext(ctx context.Context) *GetOrganizationAPIRequestsParams

NewGetOrganizationAPIRequestsParamsWithContext creates a new GetOrganizationAPIRequestsParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrganizationAPIRequestsParamsWithHTTPClient

func NewGetOrganizationAPIRequestsParamsWithHTTPClient(client *http.Client) *GetOrganizationAPIRequestsParams

NewGetOrganizationAPIRequestsParamsWithHTTPClient creates a new GetOrganizationAPIRequestsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrganizationAPIRequestsParamsWithTimeout

func NewGetOrganizationAPIRequestsParamsWithTimeout(timeout time.Duration) *GetOrganizationAPIRequestsParams

NewGetOrganizationAPIRequestsParamsWithTimeout creates a new GetOrganizationAPIRequestsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrganizationAPIRequestsParams) SetAdminID

func (o *GetOrganizationAPIRequestsParams) SetAdminID(adminID *string)

SetAdminID adds the adminId to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetContext

SetContext adds the context to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetEndingBefore

func (o *GetOrganizationAPIRequestsParams) SetEndingBefore(endingBefore *string)

SetEndingBefore adds the endingBefore to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetMethod

func (o *GetOrganizationAPIRequestsParams) SetMethod(method *string)

SetMethod adds the method to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetOrganizationID

func (o *GetOrganizationAPIRequestsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetPath

func (o *GetOrganizationAPIRequestsParams) SetPath(path *string)

SetPath adds the path to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetPerPage

func (o *GetOrganizationAPIRequestsParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetResponseCode

func (o *GetOrganizationAPIRequestsParams) SetResponseCode(responseCode *int32)

SetResponseCode adds the responseCode to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetSourceIP

func (o *GetOrganizationAPIRequestsParams) SetSourceIP(sourceIP *string)

SetSourceIP adds the sourceIp to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetStartingAfter

func (o *GetOrganizationAPIRequestsParams) SetStartingAfter(startingAfter *string)

SetStartingAfter adds the startingAfter to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetT0

SetT0 adds the t0 to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetT1

SetT1 adds the t1 to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetTimeout

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

SetTimeout adds the timeout to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) SetTimespan

func (o *GetOrganizationAPIRequestsParams) SetTimespan(timespan *float64)

SetTimespan adds the timespan to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithAdminID

WithAdminID adds the adminID to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithContext

WithContext adds the context to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithEndingBefore

func (o *GetOrganizationAPIRequestsParams) WithEndingBefore(endingBefore *string) *GetOrganizationAPIRequestsParams

WithEndingBefore adds the endingBefore to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithMethod

WithMethod adds the method to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithOrganizationID

func (o *GetOrganizationAPIRequestsParams) WithOrganizationID(organizationID string) *GetOrganizationAPIRequestsParams

WithOrganizationID adds the organizationID to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithPath

WithPath adds the path to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithPerPage

WithPerPage adds the perPage to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithResponseCode

func (o *GetOrganizationAPIRequestsParams) WithResponseCode(responseCode *int32) *GetOrganizationAPIRequestsParams

WithResponseCode adds the responseCode to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithSourceIP

WithSourceIP adds the sourceIP to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithStartingAfter

func (o *GetOrganizationAPIRequestsParams) WithStartingAfter(startingAfter *string) *GetOrganizationAPIRequestsParams

WithStartingAfter adds the startingAfter to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithT0

WithT0 adds the t0 to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithT1

WithT1 adds the t1 to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithTimeout

WithTimeout adds the timeout to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WithTimespan

WithTimespan adds the timespan to the get organization Api requests params

func (*GetOrganizationAPIRequestsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationAPIRequestsReader

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

GetOrganizationAPIRequestsReader is a Reader for the GetOrganizationAPIRequests structure.

func (*GetOrganizationAPIRequestsReader) ReadResponse

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