scopes

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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 scopes API

func (*Client) CreateScope

func (a *Client) CreateScope(params *CreateScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateScopeCreated, error)
CreateScope creates scope

Scope name is required. If scope id is not provided, will be generated.

If you want to assign scope to a service, provide service id.

func (*Client) DeleteScope

func (a *Client) DeleteScope(params *DeleteScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteScopeNoContent, error)

DeleteScope deletes scope

Delete scope.

func (*Client) GetScope

func (a *Client) GetScope(params *GetScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetScopeOK, error)

GetScope gets scope

Get scope.

func (*Client) ListScopes

func (a *Client) ListScopes(params *ListScopesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListScopesOK, error)

ListScopes lists scopes

List scopes.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateScope

func (a *Client) UpdateScope(params *UpdateScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateScopeOK, error)

UpdateScope updates scope

Update scope.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateScope(params *CreateScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateScopeCreated, error)

	DeleteScope(params *DeleteScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteScopeNoContent, error)

	GetScope(params *GetScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetScopeOK, error)

	ListScopes(params *ListScopesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListScopesOK, error)

	UpdateScope(params *UpdateScopeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateScopeOK, 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 scopes API client.

type CreateScopeBadRequest

type CreateScopeBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewCreateScopeBadRequest

func NewCreateScopeBadRequest() *CreateScopeBadRequest

NewCreateScopeBadRequest creates a CreateScopeBadRequest with default headers values

func (*CreateScopeBadRequest) Code

func (o *CreateScopeBadRequest) Code() int

Code gets the status code for the create scope bad request response

func (*CreateScopeBadRequest) Error

func (o *CreateScopeBadRequest) Error() string

func (*CreateScopeBadRequest) GetPayload

func (o *CreateScopeBadRequest) GetPayload() *models.Error

func (*CreateScopeBadRequest) IsClientError

func (o *CreateScopeBadRequest) IsClientError() bool

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

func (*CreateScopeBadRequest) IsCode

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

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

func (*CreateScopeBadRequest) IsRedirect

func (o *CreateScopeBadRequest) IsRedirect() bool

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

func (*CreateScopeBadRequest) IsServerError

func (o *CreateScopeBadRequest) IsServerError() bool

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

func (*CreateScopeBadRequest) IsSuccess

func (o *CreateScopeBadRequest) IsSuccess() bool

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

func (*CreateScopeBadRequest) String

func (o *CreateScopeBadRequest) String() string

type CreateScopeConflict

type CreateScopeConflict struct {
	Payload *models.Error
}

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

Conflict

func NewCreateScopeConflict

func NewCreateScopeConflict() *CreateScopeConflict

NewCreateScopeConflict creates a CreateScopeConflict with default headers values

func (*CreateScopeConflict) Code

func (o *CreateScopeConflict) Code() int

Code gets the status code for the create scope conflict response

func (*CreateScopeConflict) Error

func (o *CreateScopeConflict) Error() string

func (*CreateScopeConflict) GetPayload

func (o *CreateScopeConflict) GetPayload() *models.Error

func (*CreateScopeConflict) IsClientError

func (o *CreateScopeConflict) IsClientError() bool

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

func (*CreateScopeConflict) IsCode

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

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

func (*CreateScopeConflict) IsRedirect

func (o *CreateScopeConflict) IsRedirect() bool

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

func (*CreateScopeConflict) IsServerError

func (o *CreateScopeConflict) IsServerError() bool

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

func (*CreateScopeConflict) IsSuccess

func (o *CreateScopeConflict) IsSuccess() bool

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

func (*CreateScopeConflict) String

func (o *CreateScopeConflict) String() string

type CreateScopeCreated

type CreateScopeCreated struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.ScopeWithServiceID
}

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

Scope

func NewCreateScopeCreated

func NewCreateScopeCreated() *CreateScopeCreated

NewCreateScopeCreated creates a CreateScopeCreated with default headers values

func (*CreateScopeCreated) Code

func (o *CreateScopeCreated) Code() int

Code gets the status code for the create scope created response

func (*CreateScopeCreated) Error

func (o *CreateScopeCreated) Error() string

func (*CreateScopeCreated) GetPayload

func (o *CreateScopeCreated) GetPayload() *models.ScopeWithServiceID

func (*CreateScopeCreated) IsClientError

func (o *CreateScopeCreated) IsClientError() bool

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

func (*CreateScopeCreated) IsCode

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

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

func (*CreateScopeCreated) IsRedirect

func (o *CreateScopeCreated) IsRedirect() bool

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

func (*CreateScopeCreated) IsServerError

func (o *CreateScopeCreated) IsServerError() bool

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

func (*CreateScopeCreated) IsSuccess

func (o *CreateScopeCreated) IsSuccess() bool

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

func (*CreateScopeCreated) String

func (o *CreateScopeCreated) String() string

type CreateScopeForbidden

type CreateScopeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewCreateScopeForbidden

func NewCreateScopeForbidden() *CreateScopeForbidden

NewCreateScopeForbidden creates a CreateScopeForbidden with default headers values

func (*CreateScopeForbidden) Code

func (o *CreateScopeForbidden) Code() int

Code gets the status code for the create scope forbidden response

func (*CreateScopeForbidden) Error

func (o *CreateScopeForbidden) Error() string

func (*CreateScopeForbidden) GetPayload

func (o *CreateScopeForbidden) GetPayload() *models.Error

func (*CreateScopeForbidden) IsClientError

func (o *CreateScopeForbidden) IsClientError() bool

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

func (*CreateScopeForbidden) IsCode

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

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

func (*CreateScopeForbidden) IsRedirect

func (o *CreateScopeForbidden) IsRedirect() bool

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

func (*CreateScopeForbidden) IsServerError

func (o *CreateScopeForbidden) IsServerError() bool

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

func (*CreateScopeForbidden) IsSuccess

func (o *CreateScopeForbidden) IsSuccess() bool

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

func (*CreateScopeForbidden) String

func (o *CreateScopeForbidden) String() string

type CreateScopeNotFound

type CreateScopeNotFound struct {
	Payload *models.Error
}

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

Not found

func NewCreateScopeNotFound

func NewCreateScopeNotFound() *CreateScopeNotFound

NewCreateScopeNotFound creates a CreateScopeNotFound with default headers values

func (*CreateScopeNotFound) Code

func (o *CreateScopeNotFound) Code() int

Code gets the status code for the create scope not found response

func (*CreateScopeNotFound) Error

func (o *CreateScopeNotFound) Error() string

func (*CreateScopeNotFound) GetPayload

func (o *CreateScopeNotFound) GetPayload() *models.Error

func (*CreateScopeNotFound) IsClientError

func (o *CreateScopeNotFound) IsClientError() bool

IsClientError returns true when this create scope not found response has a 4xx status code

func (*CreateScopeNotFound) IsCode

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

IsCode returns true when this create scope not found response a status code equal to that given

func (*CreateScopeNotFound) IsRedirect

func (o *CreateScopeNotFound) IsRedirect() bool

IsRedirect returns true when this create scope not found response has a 3xx status code

func (*CreateScopeNotFound) IsServerError

func (o *CreateScopeNotFound) IsServerError() bool

IsServerError returns true when this create scope not found response has a 5xx status code

func (*CreateScopeNotFound) IsSuccess

func (o *CreateScopeNotFound) IsSuccess() bool

IsSuccess returns true when this create scope not found response has a 2xx status code

func (*CreateScopeNotFound) String

func (o *CreateScopeNotFound) String() string

type CreateScopeParams

type CreateScopeParams struct {

	// ScopeWithService.
	ScopeWithService *models.ScopeWithServiceID

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

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

CreateScopeParams contains all the parameters to send to the API endpoint

for the create scope operation.

Typically these are written to a http.Request.

func NewCreateScopeParams

func NewCreateScopeParams() *CreateScopeParams

NewCreateScopeParams creates a new CreateScopeParams 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 NewCreateScopeParamsWithContext

func NewCreateScopeParamsWithContext(ctx context.Context) *CreateScopeParams

NewCreateScopeParamsWithContext creates a new CreateScopeParams object with the ability to set a context for a request.

func NewCreateScopeParamsWithHTTPClient

func NewCreateScopeParamsWithHTTPClient(client *http.Client) *CreateScopeParams

NewCreateScopeParamsWithHTTPClient creates a new CreateScopeParams object with the ability to set a custom HTTPClient for a request.

func NewCreateScopeParamsWithTimeout

func NewCreateScopeParamsWithTimeout(timeout time.Duration) *CreateScopeParams

NewCreateScopeParamsWithTimeout creates a new CreateScopeParams object with the ability to set a timeout on a request.

func (*CreateScopeParams) SetContext

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

SetContext adds the context to the create scope params

func (*CreateScopeParams) SetDefaults

func (o *CreateScopeParams) SetDefaults()

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

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

func (*CreateScopeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create scope params

func (*CreateScopeParams) SetIfMatch

func (o *CreateScopeParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the create scope params

func (*CreateScopeParams) SetScopeWithService

func (o *CreateScopeParams) SetScopeWithService(scopeWithService *models.ScopeWithServiceID)

SetScopeWithService adds the scopeWithService to the create scope params

func (*CreateScopeParams) SetTimeout

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

SetTimeout adds the timeout to the create scope params

func (*CreateScopeParams) WithContext

func (o *CreateScopeParams) WithContext(ctx context.Context) *CreateScopeParams

WithContext adds the context to the create scope params

func (*CreateScopeParams) WithDefaults

func (o *CreateScopeParams) WithDefaults() *CreateScopeParams

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

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

func (*CreateScopeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create scope params

func (*CreateScopeParams) WithIfMatch

func (o *CreateScopeParams) WithIfMatch(ifMatch *string) *CreateScopeParams

WithIfMatch adds the ifMatch to the create scope params

func (*CreateScopeParams) WithScopeWithService

func (o *CreateScopeParams) WithScopeWithService(scopeWithService *models.ScopeWithServiceID) *CreateScopeParams

WithScopeWithService adds the scopeWithService to the create scope params

func (*CreateScopeParams) WithTimeout

func (o *CreateScopeParams) WithTimeout(timeout time.Duration) *CreateScopeParams

WithTimeout adds the timeout to the create scope params

func (*CreateScopeParams) WriteToRequest

func (o *CreateScopeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateScopeReader

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

CreateScopeReader is a Reader for the CreateScope structure.

func (*CreateScopeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateScopeTooManyRequests

type CreateScopeTooManyRequests struct {
	Payload *models.Error
}

CreateScopeTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewCreateScopeTooManyRequests

func NewCreateScopeTooManyRequests() *CreateScopeTooManyRequests

NewCreateScopeTooManyRequests creates a CreateScopeTooManyRequests with default headers values

func (*CreateScopeTooManyRequests) Code

func (o *CreateScopeTooManyRequests) Code() int

Code gets the status code for the create scope too many requests response

func (*CreateScopeTooManyRequests) Error

func (*CreateScopeTooManyRequests) GetPayload

func (o *CreateScopeTooManyRequests) GetPayload() *models.Error

func (*CreateScopeTooManyRequests) IsClientError

func (o *CreateScopeTooManyRequests) IsClientError() bool

IsClientError returns true when this create scope too many requests response has a 4xx status code

func (*CreateScopeTooManyRequests) IsCode

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

IsCode returns true when this create scope too many requests response a status code equal to that given

func (*CreateScopeTooManyRequests) IsRedirect

func (o *CreateScopeTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create scope too many requests response has a 3xx status code

func (*CreateScopeTooManyRequests) IsServerError

func (o *CreateScopeTooManyRequests) IsServerError() bool

IsServerError returns true when this create scope too many requests response has a 5xx status code

func (*CreateScopeTooManyRequests) IsSuccess

func (o *CreateScopeTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create scope too many requests response has a 2xx status code

func (*CreateScopeTooManyRequests) String

func (o *CreateScopeTooManyRequests) String() string

type CreateScopeUnauthorized

type CreateScopeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewCreateScopeUnauthorized

func NewCreateScopeUnauthorized() *CreateScopeUnauthorized

NewCreateScopeUnauthorized creates a CreateScopeUnauthorized with default headers values

func (*CreateScopeUnauthorized) Code

func (o *CreateScopeUnauthorized) Code() int

Code gets the status code for the create scope unauthorized response

func (*CreateScopeUnauthorized) Error

func (o *CreateScopeUnauthorized) Error() string

func (*CreateScopeUnauthorized) GetPayload

func (o *CreateScopeUnauthorized) GetPayload() *models.Error

func (*CreateScopeUnauthorized) IsClientError

func (o *CreateScopeUnauthorized) IsClientError() bool

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

func (*CreateScopeUnauthorized) IsCode

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

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

func (*CreateScopeUnauthorized) IsRedirect

func (o *CreateScopeUnauthorized) IsRedirect() bool

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

func (*CreateScopeUnauthorized) IsServerError

func (o *CreateScopeUnauthorized) IsServerError() bool

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

func (*CreateScopeUnauthorized) IsSuccess

func (o *CreateScopeUnauthorized) IsSuccess() bool

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

func (*CreateScopeUnauthorized) String

func (o *CreateScopeUnauthorized) String() string

type CreateScopeUnprocessableEntity

type CreateScopeUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewCreateScopeUnprocessableEntity

func NewCreateScopeUnprocessableEntity() *CreateScopeUnprocessableEntity

NewCreateScopeUnprocessableEntity creates a CreateScopeUnprocessableEntity with default headers values

func (*CreateScopeUnprocessableEntity) Code

Code gets the status code for the create scope unprocessable entity response

func (*CreateScopeUnprocessableEntity) Error

func (*CreateScopeUnprocessableEntity) GetPayload

func (o *CreateScopeUnprocessableEntity) GetPayload() *models.Error

func (*CreateScopeUnprocessableEntity) IsClientError

func (o *CreateScopeUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create scope unprocessable entity response has a 4xx status code

func (*CreateScopeUnprocessableEntity) IsCode

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

IsCode returns true when this create scope unprocessable entity response a status code equal to that given

func (*CreateScopeUnprocessableEntity) IsRedirect

func (o *CreateScopeUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this create scope unprocessable entity response has a 3xx status code

func (*CreateScopeUnprocessableEntity) IsServerError

func (o *CreateScopeUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create scope unprocessable entity response has a 5xx status code

func (*CreateScopeUnprocessableEntity) IsSuccess

func (o *CreateScopeUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this create scope unprocessable entity response has a 2xx status code

func (*CreateScopeUnprocessableEntity) String

type DeleteScopeForbidden

type DeleteScopeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewDeleteScopeForbidden

func NewDeleteScopeForbidden() *DeleteScopeForbidden

NewDeleteScopeForbidden creates a DeleteScopeForbidden with default headers values

func (*DeleteScopeForbidden) Code

func (o *DeleteScopeForbidden) Code() int

Code gets the status code for the delete scope forbidden response

func (*DeleteScopeForbidden) Error

func (o *DeleteScopeForbidden) Error() string

func (*DeleteScopeForbidden) GetPayload

func (o *DeleteScopeForbidden) GetPayload() *models.Error

func (*DeleteScopeForbidden) IsClientError

func (o *DeleteScopeForbidden) IsClientError() bool

IsClientError returns true when this delete scope forbidden response has a 4xx status code

func (*DeleteScopeForbidden) IsCode

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

IsCode returns true when this delete scope forbidden response a status code equal to that given

func (*DeleteScopeForbidden) IsRedirect

func (o *DeleteScopeForbidden) IsRedirect() bool

IsRedirect returns true when this delete scope forbidden response has a 3xx status code

func (*DeleteScopeForbidden) IsServerError

func (o *DeleteScopeForbidden) IsServerError() bool

IsServerError returns true when this delete scope forbidden response has a 5xx status code

func (*DeleteScopeForbidden) IsSuccess

func (o *DeleteScopeForbidden) IsSuccess() bool

IsSuccess returns true when this delete scope forbidden response has a 2xx status code

func (*DeleteScopeForbidden) String

func (o *DeleteScopeForbidden) String() string

type DeleteScopeNoContent

type DeleteScopeNoContent struct {
}

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

Scope has been deleted

func NewDeleteScopeNoContent

func NewDeleteScopeNoContent() *DeleteScopeNoContent

NewDeleteScopeNoContent creates a DeleteScopeNoContent with default headers values

func (*DeleteScopeNoContent) Code

func (o *DeleteScopeNoContent) Code() int

Code gets the status code for the delete scope no content response

func (*DeleteScopeNoContent) Error

func (o *DeleteScopeNoContent) Error() string

func (*DeleteScopeNoContent) IsClientError

func (o *DeleteScopeNoContent) IsClientError() bool

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

func (*DeleteScopeNoContent) IsCode

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

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

func (*DeleteScopeNoContent) IsRedirect

func (o *DeleteScopeNoContent) IsRedirect() bool

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

func (*DeleteScopeNoContent) IsServerError

func (o *DeleteScopeNoContent) IsServerError() bool

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

func (*DeleteScopeNoContent) IsSuccess

func (o *DeleteScopeNoContent) IsSuccess() bool

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

func (*DeleteScopeNoContent) String

func (o *DeleteScopeNoContent) String() string

type DeleteScopeNotFound

type DeleteScopeNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteScopeNotFound

func NewDeleteScopeNotFound() *DeleteScopeNotFound

NewDeleteScopeNotFound creates a DeleteScopeNotFound with default headers values

func (*DeleteScopeNotFound) Code

func (o *DeleteScopeNotFound) Code() int

Code gets the status code for the delete scope not found response

func (*DeleteScopeNotFound) Error

func (o *DeleteScopeNotFound) Error() string

func (*DeleteScopeNotFound) GetPayload

func (o *DeleteScopeNotFound) GetPayload() *models.Error

func (*DeleteScopeNotFound) IsClientError

func (o *DeleteScopeNotFound) IsClientError() bool

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

func (*DeleteScopeNotFound) IsCode

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

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

func (*DeleteScopeNotFound) IsRedirect

func (o *DeleteScopeNotFound) IsRedirect() bool

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

func (*DeleteScopeNotFound) IsServerError

func (o *DeleteScopeNotFound) IsServerError() bool

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

func (*DeleteScopeNotFound) IsSuccess

func (o *DeleteScopeNotFound) IsSuccess() bool

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

func (*DeleteScopeNotFound) String

func (o *DeleteScopeNotFound) String() string

type DeleteScopeParams

type DeleteScopeParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	// Scp.
	Scp string

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

DeleteScopeParams contains all the parameters to send to the API endpoint

for the delete scope operation.

Typically these are written to a http.Request.

func NewDeleteScopeParams

func NewDeleteScopeParams() *DeleteScopeParams

NewDeleteScopeParams creates a new DeleteScopeParams 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 NewDeleteScopeParamsWithContext

func NewDeleteScopeParamsWithContext(ctx context.Context) *DeleteScopeParams

NewDeleteScopeParamsWithContext creates a new DeleteScopeParams object with the ability to set a context for a request.

func NewDeleteScopeParamsWithHTTPClient

func NewDeleteScopeParamsWithHTTPClient(client *http.Client) *DeleteScopeParams

NewDeleteScopeParamsWithHTTPClient creates a new DeleteScopeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteScopeParamsWithTimeout

func NewDeleteScopeParamsWithTimeout(timeout time.Duration) *DeleteScopeParams

NewDeleteScopeParamsWithTimeout creates a new DeleteScopeParams object with the ability to set a timeout on a request.

func (*DeleteScopeParams) SetContext

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

SetContext adds the context to the delete scope params

func (*DeleteScopeParams) SetDefaults

func (o *DeleteScopeParams) SetDefaults()

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

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

func (*DeleteScopeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete scope params

func (*DeleteScopeParams) SetIfMatch

func (o *DeleteScopeParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the delete scope params

func (*DeleteScopeParams) SetScp

func (o *DeleteScopeParams) SetScp(scp string)

SetScp adds the scp to the delete scope params

func (*DeleteScopeParams) SetTimeout

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

SetTimeout adds the timeout to the delete scope params

func (*DeleteScopeParams) WithContext

func (o *DeleteScopeParams) WithContext(ctx context.Context) *DeleteScopeParams

WithContext adds the context to the delete scope params

func (*DeleteScopeParams) WithDefaults

func (o *DeleteScopeParams) WithDefaults() *DeleteScopeParams

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

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

func (*DeleteScopeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete scope params

func (*DeleteScopeParams) WithIfMatch

func (o *DeleteScopeParams) WithIfMatch(ifMatch *string) *DeleteScopeParams

WithIfMatch adds the ifMatch to the delete scope params

func (*DeleteScopeParams) WithScp

func (o *DeleteScopeParams) WithScp(scp string) *DeleteScopeParams

WithScp adds the scp to the delete scope params

func (*DeleteScopeParams) WithTimeout

func (o *DeleteScopeParams) WithTimeout(timeout time.Duration) *DeleteScopeParams

WithTimeout adds the timeout to the delete scope params

func (*DeleteScopeParams) WriteToRequest

func (o *DeleteScopeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteScopeReader

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

DeleteScopeReader is a Reader for the DeleteScope structure.

func (*DeleteScopeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteScopeTooManyRequests

type DeleteScopeTooManyRequests struct {
	Payload *models.Error
}

DeleteScopeTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewDeleteScopeTooManyRequests

func NewDeleteScopeTooManyRequests() *DeleteScopeTooManyRequests

NewDeleteScopeTooManyRequests creates a DeleteScopeTooManyRequests with default headers values

func (*DeleteScopeTooManyRequests) Code

func (o *DeleteScopeTooManyRequests) Code() int

Code gets the status code for the delete scope too many requests response

func (*DeleteScopeTooManyRequests) Error

func (*DeleteScopeTooManyRequests) GetPayload

func (o *DeleteScopeTooManyRequests) GetPayload() *models.Error

func (*DeleteScopeTooManyRequests) IsClientError

func (o *DeleteScopeTooManyRequests) IsClientError() bool

IsClientError returns true when this delete scope too many requests response has a 4xx status code

func (*DeleteScopeTooManyRequests) IsCode

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

IsCode returns true when this delete scope too many requests response a status code equal to that given

func (*DeleteScopeTooManyRequests) IsRedirect

func (o *DeleteScopeTooManyRequests) IsRedirect() bool

IsRedirect returns true when this delete scope too many requests response has a 3xx status code

func (*DeleteScopeTooManyRequests) IsServerError

func (o *DeleteScopeTooManyRequests) IsServerError() bool

IsServerError returns true when this delete scope too many requests response has a 5xx status code

func (*DeleteScopeTooManyRequests) IsSuccess

func (o *DeleteScopeTooManyRequests) IsSuccess() bool

IsSuccess returns true when this delete scope too many requests response has a 2xx status code

func (*DeleteScopeTooManyRequests) String

func (o *DeleteScopeTooManyRequests) String() string

type DeleteScopeUnauthorized

type DeleteScopeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewDeleteScopeUnauthorized

func NewDeleteScopeUnauthorized() *DeleteScopeUnauthorized

NewDeleteScopeUnauthorized creates a DeleteScopeUnauthorized with default headers values

func (*DeleteScopeUnauthorized) Code

func (o *DeleteScopeUnauthorized) Code() int

Code gets the status code for the delete scope unauthorized response

func (*DeleteScopeUnauthorized) Error

func (o *DeleteScopeUnauthorized) Error() string

func (*DeleteScopeUnauthorized) GetPayload

func (o *DeleteScopeUnauthorized) GetPayload() *models.Error

func (*DeleteScopeUnauthorized) IsClientError

func (o *DeleteScopeUnauthorized) IsClientError() bool

IsClientError returns true when this delete scope unauthorized response has a 4xx status code

func (*DeleteScopeUnauthorized) IsCode

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

IsCode returns true when this delete scope unauthorized response a status code equal to that given

func (*DeleteScopeUnauthorized) IsRedirect

func (o *DeleteScopeUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete scope unauthorized response has a 3xx status code

func (*DeleteScopeUnauthorized) IsServerError

func (o *DeleteScopeUnauthorized) IsServerError() bool

IsServerError returns true when this delete scope unauthorized response has a 5xx status code

func (*DeleteScopeUnauthorized) IsSuccess

func (o *DeleteScopeUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete scope unauthorized response has a 2xx status code

func (*DeleteScopeUnauthorized) String

func (o *DeleteScopeUnauthorized) String() string

type GetScopeForbidden

type GetScopeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGetScopeForbidden

func NewGetScopeForbidden() *GetScopeForbidden

NewGetScopeForbidden creates a GetScopeForbidden with default headers values

func (*GetScopeForbidden) Code

func (o *GetScopeForbidden) Code() int

Code gets the status code for the get scope forbidden response

func (*GetScopeForbidden) Error

func (o *GetScopeForbidden) Error() string

func (*GetScopeForbidden) GetPayload

func (o *GetScopeForbidden) GetPayload() *models.Error

func (*GetScopeForbidden) IsClientError

func (o *GetScopeForbidden) IsClientError() bool

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

func (*GetScopeForbidden) IsCode

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

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

func (*GetScopeForbidden) IsRedirect

func (o *GetScopeForbidden) IsRedirect() bool

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

func (*GetScopeForbidden) IsServerError

func (o *GetScopeForbidden) IsServerError() bool

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

func (*GetScopeForbidden) IsSuccess

func (o *GetScopeForbidden) IsSuccess() bool

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

func (*GetScopeForbidden) String

func (o *GetScopeForbidden) String() string

type GetScopeNotFound

type GetScopeNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetScopeNotFound

func NewGetScopeNotFound() *GetScopeNotFound

NewGetScopeNotFound creates a GetScopeNotFound with default headers values

func (*GetScopeNotFound) Code

func (o *GetScopeNotFound) Code() int

Code gets the status code for the get scope not found response

func (*GetScopeNotFound) Error

func (o *GetScopeNotFound) Error() string

func (*GetScopeNotFound) GetPayload

func (o *GetScopeNotFound) GetPayload() *models.Error

func (*GetScopeNotFound) IsClientError

func (o *GetScopeNotFound) IsClientError() bool

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

func (*GetScopeNotFound) IsCode

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

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

func (*GetScopeNotFound) IsRedirect

func (o *GetScopeNotFound) IsRedirect() bool

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

func (*GetScopeNotFound) IsServerError

func (o *GetScopeNotFound) IsServerError() bool

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

func (*GetScopeNotFound) IsSuccess

func (o *GetScopeNotFound) IsSuccess() bool

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

func (*GetScopeNotFound) String

func (o *GetScopeNotFound) String() string

type GetScopeOK

type GetScopeOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.ScopeWithService
}

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

Scope with service

func NewGetScopeOK

func NewGetScopeOK() *GetScopeOK

NewGetScopeOK creates a GetScopeOK with default headers values

func (*GetScopeOK) Code

func (o *GetScopeOK) Code() int

Code gets the status code for the get scope o k response

func (*GetScopeOK) Error

func (o *GetScopeOK) Error() string

func (*GetScopeOK) GetPayload

func (o *GetScopeOK) GetPayload() *models.ScopeWithService

func (*GetScopeOK) IsClientError

func (o *GetScopeOK) IsClientError() bool

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

func (*GetScopeOK) IsCode

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

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

func (*GetScopeOK) IsRedirect

func (o *GetScopeOK) IsRedirect() bool

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

func (*GetScopeOK) IsServerError

func (o *GetScopeOK) IsServerError() bool

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

func (*GetScopeOK) IsSuccess

func (o *GetScopeOK) IsSuccess() bool

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

func (*GetScopeOK) String

func (o *GetScopeOK) String() string

type GetScopeParams

type GetScopeParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	// Scp.
	Scp string

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

GetScopeParams contains all the parameters to send to the API endpoint

for the get scope operation.

Typically these are written to a http.Request.

func NewGetScopeParams

func NewGetScopeParams() *GetScopeParams

NewGetScopeParams creates a new GetScopeParams 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 NewGetScopeParamsWithContext

func NewGetScopeParamsWithContext(ctx context.Context) *GetScopeParams

NewGetScopeParamsWithContext creates a new GetScopeParams object with the ability to set a context for a request.

func NewGetScopeParamsWithHTTPClient

func NewGetScopeParamsWithHTTPClient(client *http.Client) *GetScopeParams

NewGetScopeParamsWithHTTPClient creates a new GetScopeParams object with the ability to set a custom HTTPClient for a request.

func NewGetScopeParamsWithTimeout

func NewGetScopeParamsWithTimeout(timeout time.Duration) *GetScopeParams

NewGetScopeParamsWithTimeout creates a new GetScopeParams object with the ability to set a timeout on a request.

func (*GetScopeParams) SetContext

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

SetContext adds the context to the get scope params

func (*GetScopeParams) SetDefaults

func (o *GetScopeParams) SetDefaults()

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

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

func (*GetScopeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get scope params

func (*GetScopeParams) SetIfMatch

func (o *GetScopeParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get scope params

func (*GetScopeParams) SetScp

func (o *GetScopeParams) SetScp(scp string)

SetScp adds the scp to the get scope params

func (*GetScopeParams) SetTimeout

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

SetTimeout adds the timeout to the get scope params

func (*GetScopeParams) WithContext

func (o *GetScopeParams) WithContext(ctx context.Context) *GetScopeParams

WithContext adds the context to the get scope params

func (*GetScopeParams) WithDefaults

func (o *GetScopeParams) WithDefaults() *GetScopeParams

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

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

func (*GetScopeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get scope params

func (*GetScopeParams) WithIfMatch

func (o *GetScopeParams) WithIfMatch(ifMatch *string) *GetScopeParams

WithIfMatch adds the ifMatch to the get scope params

func (*GetScopeParams) WithScp

func (o *GetScopeParams) WithScp(scp string) *GetScopeParams

WithScp adds the scp to the get scope params

func (*GetScopeParams) WithTimeout

func (o *GetScopeParams) WithTimeout(timeout time.Duration) *GetScopeParams

WithTimeout adds the timeout to the get scope params

func (*GetScopeParams) WriteToRequest

func (o *GetScopeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetScopeReader

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

GetScopeReader is a Reader for the GetScope structure.

func (*GetScopeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetScopeTooManyRequests

type GetScopeTooManyRequests struct {
	Payload *models.Error
}

GetScopeTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetScopeTooManyRequests

func NewGetScopeTooManyRequests() *GetScopeTooManyRequests

NewGetScopeTooManyRequests creates a GetScopeTooManyRequests with default headers values

func (*GetScopeTooManyRequests) Code

func (o *GetScopeTooManyRequests) Code() int

Code gets the status code for the get scope too many requests response

func (*GetScopeTooManyRequests) Error

func (o *GetScopeTooManyRequests) Error() string

func (*GetScopeTooManyRequests) GetPayload

func (o *GetScopeTooManyRequests) GetPayload() *models.Error

func (*GetScopeTooManyRequests) IsClientError

func (o *GetScopeTooManyRequests) IsClientError() bool

IsClientError returns true when this get scope too many requests response has a 4xx status code

func (*GetScopeTooManyRequests) IsCode

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

IsCode returns true when this get scope too many requests response a status code equal to that given

func (*GetScopeTooManyRequests) IsRedirect

func (o *GetScopeTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get scope too many requests response has a 3xx status code

func (*GetScopeTooManyRequests) IsServerError

func (o *GetScopeTooManyRequests) IsServerError() bool

IsServerError returns true when this get scope too many requests response has a 5xx status code

func (*GetScopeTooManyRequests) IsSuccess

func (o *GetScopeTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get scope too many requests response has a 2xx status code

func (*GetScopeTooManyRequests) String

func (o *GetScopeTooManyRequests) String() string

type GetScopeUnauthorized

type GetScopeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetScopeUnauthorized

func NewGetScopeUnauthorized() *GetScopeUnauthorized

NewGetScopeUnauthorized creates a GetScopeUnauthorized with default headers values

func (*GetScopeUnauthorized) Code

func (o *GetScopeUnauthorized) Code() int

Code gets the status code for the get scope unauthorized response

func (*GetScopeUnauthorized) Error

func (o *GetScopeUnauthorized) Error() string

func (*GetScopeUnauthorized) GetPayload

func (o *GetScopeUnauthorized) GetPayload() *models.Error

func (*GetScopeUnauthorized) IsClientError

func (o *GetScopeUnauthorized) IsClientError() bool

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

func (*GetScopeUnauthorized) IsCode

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

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

func (*GetScopeUnauthorized) IsRedirect

func (o *GetScopeUnauthorized) IsRedirect() bool

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

func (*GetScopeUnauthorized) IsServerError

func (o *GetScopeUnauthorized) IsServerError() bool

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

func (*GetScopeUnauthorized) IsSuccess

func (o *GetScopeUnauthorized) IsSuccess() bool

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

func (*GetScopeUnauthorized) String

func (o *GetScopeUnauthorized) String() string

type ListScopesForbidden

type ListScopesForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListScopesForbidden

func NewListScopesForbidden() *ListScopesForbidden

NewListScopesForbidden creates a ListScopesForbidden with default headers values

func (*ListScopesForbidden) Code

func (o *ListScopesForbidden) Code() int

Code gets the status code for the list scopes forbidden response

func (*ListScopesForbidden) Error

func (o *ListScopesForbidden) Error() string

func (*ListScopesForbidden) GetPayload

func (o *ListScopesForbidden) GetPayload() *models.Error

func (*ListScopesForbidden) IsClientError

func (o *ListScopesForbidden) IsClientError() bool

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

func (*ListScopesForbidden) IsCode

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

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

func (*ListScopesForbidden) IsRedirect

func (o *ListScopesForbidden) IsRedirect() bool

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

func (*ListScopesForbidden) IsServerError

func (o *ListScopesForbidden) IsServerError() bool

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

func (*ListScopesForbidden) IsSuccess

func (o *ListScopesForbidden) IsSuccess() bool

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

func (*ListScopesForbidden) String

func (o *ListScopesForbidden) String() string

type ListScopesOK

type ListScopesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.ScopesWithServices
}

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

Scopes with services

func NewListScopesOK

func NewListScopesOK() *ListScopesOK

NewListScopesOK creates a ListScopesOK with default headers values

func (*ListScopesOK) Code

func (o *ListScopesOK) Code() int

Code gets the status code for the list scopes o k response

func (*ListScopesOK) Error

func (o *ListScopesOK) Error() string

func (*ListScopesOK) GetPayload

func (o *ListScopesOK) GetPayload() *models.ScopesWithServices

func (*ListScopesOK) IsClientError

func (o *ListScopesOK) IsClientError() bool

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

func (*ListScopesOK) IsCode

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

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

func (*ListScopesOK) IsRedirect

func (o *ListScopesOK) IsRedirect() bool

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

func (*ListScopesOK) IsServerError

func (o *ListScopesOK) IsServerError() bool

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

func (*ListScopesOK) IsSuccess

func (o *ListScopesOK) IsSuccess() bool

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

func (*ListScopesOK) String

func (o *ListScopesOK) String() string

type ListScopesParams

type ListScopesParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id

	   Default: "default"
	*/
	Wid string

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

ListScopesParams contains all the parameters to send to the API endpoint

for the list scopes operation.

Typically these are written to a http.Request.

func NewListScopesParams

func NewListScopesParams() *ListScopesParams

NewListScopesParams creates a new ListScopesParams 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 NewListScopesParamsWithContext

func NewListScopesParamsWithContext(ctx context.Context) *ListScopesParams

NewListScopesParamsWithContext creates a new ListScopesParams object with the ability to set a context for a request.

func NewListScopesParamsWithHTTPClient

func NewListScopesParamsWithHTTPClient(client *http.Client) *ListScopesParams

NewListScopesParamsWithHTTPClient creates a new ListScopesParams object with the ability to set a custom HTTPClient for a request.

func NewListScopesParamsWithTimeout

func NewListScopesParamsWithTimeout(timeout time.Duration) *ListScopesParams

NewListScopesParamsWithTimeout creates a new ListScopesParams object with the ability to set a timeout on a request.

func (*ListScopesParams) SetContext

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

SetContext adds the context to the list scopes params

func (*ListScopesParams) SetDefaults

func (o *ListScopesParams) SetDefaults()

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

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

func (*ListScopesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list scopes params

func (*ListScopesParams) SetIfMatch

func (o *ListScopesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list scopes params

func (*ListScopesParams) SetTimeout

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

SetTimeout adds the timeout to the list scopes params

func (*ListScopesParams) SetWid

func (o *ListScopesParams) SetWid(wid string)

SetWid adds the wid to the list scopes params

func (*ListScopesParams) WithContext

func (o *ListScopesParams) WithContext(ctx context.Context) *ListScopesParams

WithContext adds the context to the list scopes params

func (*ListScopesParams) WithDefaults

func (o *ListScopesParams) WithDefaults() *ListScopesParams

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

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

func (*ListScopesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list scopes params

func (*ListScopesParams) WithIfMatch

func (o *ListScopesParams) WithIfMatch(ifMatch *string) *ListScopesParams

WithIfMatch adds the ifMatch to the list scopes params

func (*ListScopesParams) WithTimeout

func (o *ListScopesParams) WithTimeout(timeout time.Duration) *ListScopesParams

WithTimeout adds the timeout to the list scopes params

func (*ListScopesParams) WithWid

func (o *ListScopesParams) WithWid(wid string) *ListScopesParams

WithWid adds the wid to the list scopes params

func (*ListScopesParams) WriteToRequest

func (o *ListScopesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListScopesReader

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

ListScopesReader is a Reader for the ListScopes structure.

func (*ListScopesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListScopesTooManyRequests

type ListScopesTooManyRequests struct {
	Payload *models.Error
}

ListScopesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListScopesTooManyRequests

func NewListScopesTooManyRequests() *ListScopesTooManyRequests

NewListScopesTooManyRequests creates a ListScopesTooManyRequests with default headers values

func (*ListScopesTooManyRequests) Code

func (o *ListScopesTooManyRequests) Code() int

Code gets the status code for the list scopes too many requests response

func (*ListScopesTooManyRequests) Error

func (o *ListScopesTooManyRequests) Error() string

func (*ListScopesTooManyRequests) GetPayload

func (o *ListScopesTooManyRequests) GetPayload() *models.Error

func (*ListScopesTooManyRequests) IsClientError

func (o *ListScopesTooManyRequests) IsClientError() bool

IsClientError returns true when this list scopes too many requests response has a 4xx status code

func (*ListScopesTooManyRequests) IsCode

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

IsCode returns true when this list scopes too many requests response a status code equal to that given

func (*ListScopesTooManyRequests) IsRedirect

func (o *ListScopesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list scopes too many requests response has a 3xx status code

func (*ListScopesTooManyRequests) IsServerError

func (o *ListScopesTooManyRequests) IsServerError() bool

IsServerError returns true when this list scopes too many requests response has a 5xx status code

func (*ListScopesTooManyRequests) IsSuccess

func (o *ListScopesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list scopes too many requests response has a 2xx status code

func (*ListScopesTooManyRequests) String

func (o *ListScopesTooManyRequests) String() string

type ListScopesUnauthorized

type ListScopesUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListScopesUnauthorized

func NewListScopesUnauthorized() *ListScopesUnauthorized

NewListScopesUnauthorized creates a ListScopesUnauthorized with default headers values

func (*ListScopesUnauthorized) Code

func (o *ListScopesUnauthorized) Code() int

Code gets the status code for the list scopes unauthorized response

func (*ListScopesUnauthorized) Error

func (o *ListScopesUnauthorized) Error() string

func (*ListScopesUnauthorized) GetPayload

func (o *ListScopesUnauthorized) GetPayload() *models.Error

func (*ListScopesUnauthorized) IsClientError

func (o *ListScopesUnauthorized) IsClientError() bool

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

func (*ListScopesUnauthorized) IsCode

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

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

func (*ListScopesUnauthorized) IsRedirect

func (o *ListScopesUnauthorized) IsRedirect() bool

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

func (*ListScopesUnauthorized) IsServerError

func (o *ListScopesUnauthorized) IsServerError() bool

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

func (*ListScopesUnauthorized) IsSuccess

func (o *ListScopesUnauthorized) IsSuccess() bool

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

func (*ListScopesUnauthorized) String

func (o *ListScopesUnauthorized) String() string

type UpdateScopeBadRequest

type UpdateScopeBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewUpdateScopeBadRequest

func NewUpdateScopeBadRequest() *UpdateScopeBadRequest

NewUpdateScopeBadRequest creates a UpdateScopeBadRequest with default headers values

func (*UpdateScopeBadRequest) Code

func (o *UpdateScopeBadRequest) Code() int

Code gets the status code for the update scope bad request response

func (*UpdateScopeBadRequest) Error

func (o *UpdateScopeBadRequest) Error() string

func (*UpdateScopeBadRequest) GetPayload

func (o *UpdateScopeBadRequest) GetPayload() *models.Error

func (*UpdateScopeBadRequest) IsClientError

func (o *UpdateScopeBadRequest) IsClientError() bool

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

func (*UpdateScopeBadRequest) IsCode

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

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

func (*UpdateScopeBadRequest) IsRedirect

func (o *UpdateScopeBadRequest) IsRedirect() bool

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

func (*UpdateScopeBadRequest) IsServerError

func (o *UpdateScopeBadRequest) IsServerError() bool

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

func (*UpdateScopeBadRequest) IsSuccess

func (o *UpdateScopeBadRequest) IsSuccess() bool

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

func (*UpdateScopeBadRequest) String

func (o *UpdateScopeBadRequest) String() string

type UpdateScopeForbidden

type UpdateScopeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewUpdateScopeForbidden

func NewUpdateScopeForbidden() *UpdateScopeForbidden

NewUpdateScopeForbidden creates a UpdateScopeForbidden with default headers values

func (*UpdateScopeForbidden) Code

func (o *UpdateScopeForbidden) Code() int

Code gets the status code for the update scope forbidden response

func (*UpdateScopeForbidden) Error

func (o *UpdateScopeForbidden) Error() string

func (*UpdateScopeForbidden) GetPayload

func (o *UpdateScopeForbidden) GetPayload() *models.Error

func (*UpdateScopeForbidden) IsClientError

func (o *UpdateScopeForbidden) IsClientError() bool

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

func (*UpdateScopeForbidden) IsCode

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

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

func (*UpdateScopeForbidden) IsRedirect

func (o *UpdateScopeForbidden) IsRedirect() bool

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

func (*UpdateScopeForbidden) IsServerError

func (o *UpdateScopeForbidden) IsServerError() bool

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

func (*UpdateScopeForbidden) IsSuccess

func (o *UpdateScopeForbidden) IsSuccess() bool

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

func (*UpdateScopeForbidden) String

func (o *UpdateScopeForbidden) String() string

type UpdateScopeNotFound

type UpdateScopeNotFound struct {
	Payload *models.Error
}

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

Not found

func NewUpdateScopeNotFound

func NewUpdateScopeNotFound() *UpdateScopeNotFound

NewUpdateScopeNotFound creates a UpdateScopeNotFound with default headers values

func (*UpdateScopeNotFound) Code

func (o *UpdateScopeNotFound) Code() int

Code gets the status code for the update scope not found response

func (*UpdateScopeNotFound) Error

func (o *UpdateScopeNotFound) Error() string

func (*UpdateScopeNotFound) GetPayload

func (o *UpdateScopeNotFound) GetPayload() *models.Error

func (*UpdateScopeNotFound) IsClientError

func (o *UpdateScopeNotFound) IsClientError() bool

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

func (*UpdateScopeNotFound) IsCode

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

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

func (*UpdateScopeNotFound) IsRedirect

func (o *UpdateScopeNotFound) IsRedirect() bool

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

func (*UpdateScopeNotFound) IsServerError

func (o *UpdateScopeNotFound) IsServerError() bool

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

func (*UpdateScopeNotFound) IsSuccess

func (o *UpdateScopeNotFound) IsSuccess() bool

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

func (*UpdateScopeNotFound) String

func (o *UpdateScopeNotFound) String() string

type UpdateScopeOK

type UpdateScopeOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.ScopeWithServiceID
}

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

Scope

func NewUpdateScopeOK

func NewUpdateScopeOK() *UpdateScopeOK

NewUpdateScopeOK creates a UpdateScopeOK with default headers values

func (*UpdateScopeOK) Code

func (o *UpdateScopeOK) Code() int

Code gets the status code for the update scope o k response

func (*UpdateScopeOK) Error

func (o *UpdateScopeOK) Error() string

func (*UpdateScopeOK) GetPayload

func (o *UpdateScopeOK) GetPayload() *models.ScopeWithServiceID

func (*UpdateScopeOK) IsClientError

func (o *UpdateScopeOK) IsClientError() bool

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

func (*UpdateScopeOK) IsCode

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

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

func (*UpdateScopeOK) IsRedirect

func (o *UpdateScopeOK) IsRedirect() bool

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

func (*UpdateScopeOK) IsServerError

func (o *UpdateScopeOK) IsServerError() bool

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

func (*UpdateScopeOK) IsSuccess

func (o *UpdateScopeOK) IsSuccess() bool

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

func (*UpdateScopeOK) String

func (o *UpdateScopeOK) String() string

type UpdateScopeParams

type UpdateScopeParams struct {

	// Scope.
	Scope *models.Scope

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	// Scp.
	Scp string

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

UpdateScopeParams contains all the parameters to send to the API endpoint

for the update scope operation.

Typically these are written to a http.Request.

func NewUpdateScopeParams

func NewUpdateScopeParams() *UpdateScopeParams

NewUpdateScopeParams creates a new UpdateScopeParams 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 NewUpdateScopeParamsWithContext

func NewUpdateScopeParamsWithContext(ctx context.Context) *UpdateScopeParams

NewUpdateScopeParamsWithContext creates a new UpdateScopeParams object with the ability to set a context for a request.

func NewUpdateScopeParamsWithHTTPClient

func NewUpdateScopeParamsWithHTTPClient(client *http.Client) *UpdateScopeParams

NewUpdateScopeParamsWithHTTPClient creates a new UpdateScopeParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateScopeParamsWithTimeout

func NewUpdateScopeParamsWithTimeout(timeout time.Duration) *UpdateScopeParams

NewUpdateScopeParamsWithTimeout creates a new UpdateScopeParams object with the ability to set a timeout on a request.

func (*UpdateScopeParams) SetContext

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

SetContext adds the context to the update scope params

func (*UpdateScopeParams) SetDefaults

func (o *UpdateScopeParams) SetDefaults()

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

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

func (*UpdateScopeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update scope params

func (*UpdateScopeParams) SetIfMatch

func (o *UpdateScopeParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the update scope params

func (*UpdateScopeParams) SetScope

func (o *UpdateScopeParams) SetScope(scope *models.Scope)

SetScope adds the scope to the update scope params

func (*UpdateScopeParams) SetScp

func (o *UpdateScopeParams) SetScp(scp string)

SetScp adds the scp to the update scope params

func (*UpdateScopeParams) SetTimeout

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

SetTimeout adds the timeout to the update scope params

func (*UpdateScopeParams) WithContext

func (o *UpdateScopeParams) WithContext(ctx context.Context) *UpdateScopeParams

WithContext adds the context to the update scope params

func (*UpdateScopeParams) WithDefaults

func (o *UpdateScopeParams) WithDefaults() *UpdateScopeParams

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

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

func (*UpdateScopeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update scope params

func (*UpdateScopeParams) WithIfMatch

func (o *UpdateScopeParams) WithIfMatch(ifMatch *string) *UpdateScopeParams

WithIfMatch adds the ifMatch to the update scope params

func (*UpdateScopeParams) WithScope

func (o *UpdateScopeParams) WithScope(scope *models.Scope) *UpdateScopeParams

WithScope adds the scope to the update scope params

func (*UpdateScopeParams) WithScp

func (o *UpdateScopeParams) WithScp(scp string) *UpdateScopeParams

WithScp adds the scp to the update scope params

func (*UpdateScopeParams) WithTimeout

func (o *UpdateScopeParams) WithTimeout(timeout time.Duration) *UpdateScopeParams

WithTimeout adds the timeout to the update scope params

func (*UpdateScopeParams) WriteToRequest

func (o *UpdateScopeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateScopeReader

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

UpdateScopeReader is a Reader for the UpdateScope structure.

func (*UpdateScopeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateScopeTooManyRequests

type UpdateScopeTooManyRequests struct {
	Payload *models.Error
}

UpdateScopeTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewUpdateScopeTooManyRequests

func NewUpdateScopeTooManyRequests() *UpdateScopeTooManyRequests

NewUpdateScopeTooManyRequests creates a UpdateScopeTooManyRequests with default headers values

func (*UpdateScopeTooManyRequests) Code

func (o *UpdateScopeTooManyRequests) Code() int

Code gets the status code for the update scope too many requests response

func (*UpdateScopeTooManyRequests) Error

func (*UpdateScopeTooManyRequests) GetPayload

func (o *UpdateScopeTooManyRequests) GetPayload() *models.Error

func (*UpdateScopeTooManyRequests) IsClientError

func (o *UpdateScopeTooManyRequests) IsClientError() bool

IsClientError returns true when this update scope too many requests response has a 4xx status code

func (*UpdateScopeTooManyRequests) IsCode

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

IsCode returns true when this update scope too many requests response a status code equal to that given

func (*UpdateScopeTooManyRequests) IsRedirect

func (o *UpdateScopeTooManyRequests) IsRedirect() bool

IsRedirect returns true when this update scope too many requests response has a 3xx status code

func (*UpdateScopeTooManyRequests) IsServerError

func (o *UpdateScopeTooManyRequests) IsServerError() bool

IsServerError returns true when this update scope too many requests response has a 5xx status code

func (*UpdateScopeTooManyRequests) IsSuccess

func (o *UpdateScopeTooManyRequests) IsSuccess() bool

IsSuccess returns true when this update scope too many requests response has a 2xx status code

func (*UpdateScopeTooManyRequests) String

func (o *UpdateScopeTooManyRequests) String() string

type UpdateScopeUnauthorized

type UpdateScopeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewUpdateScopeUnauthorized

func NewUpdateScopeUnauthorized() *UpdateScopeUnauthorized

NewUpdateScopeUnauthorized creates a UpdateScopeUnauthorized with default headers values

func (*UpdateScopeUnauthorized) Code

func (o *UpdateScopeUnauthorized) Code() int

Code gets the status code for the update scope unauthorized response

func (*UpdateScopeUnauthorized) Error

func (o *UpdateScopeUnauthorized) Error() string

func (*UpdateScopeUnauthorized) GetPayload

func (o *UpdateScopeUnauthorized) GetPayload() *models.Error

func (*UpdateScopeUnauthorized) IsClientError

func (o *UpdateScopeUnauthorized) IsClientError() bool

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

func (*UpdateScopeUnauthorized) IsCode

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

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

func (*UpdateScopeUnauthorized) IsRedirect

func (o *UpdateScopeUnauthorized) IsRedirect() bool

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

func (*UpdateScopeUnauthorized) IsServerError

func (o *UpdateScopeUnauthorized) IsServerError() bool

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

func (*UpdateScopeUnauthorized) IsSuccess

func (o *UpdateScopeUnauthorized) IsSuccess() bool

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

func (*UpdateScopeUnauthorized) String

func (o *UpdateScopeUnauthorized) String() string

type UpdateScopeUnprocessableEntity

type UpdateScopeUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewUpdateScopeUnprocessableEntity

func NewUpdateScopeUnprocessableEntity() *UpdateScopeUnprocessableEntity

NewUpdateScopeUnprocessableEntity creates a UpdateScopeUnprocessableEntity with default headers values

func (*UpdateScopeUnprocessableEntity) Code

Code gets the status code for the update scope unprocessable entity response

func (*UpdateScopeUnprocessableEntity) Error

func (*UpdateScopeUnprocessableEntity) GetPayload

func (o *UpdateScopeUnprocessableEntity) GetPayload() *models.Error

func (*UpdateScopeUnprocessableEntity) IsClientError

func (o *UpdateScopeUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update scope unprocessable entity response has a 4xx status code

func (*UpdateScopeUnprocessableEntity) IsCode

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

IsCode returns true when this update scope unprocessable entity response a status code equal to that given

func (*UpdateScopeUnprocessableEntity) IsRedirect

func (o *UpdateScopeUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this update scope unprocessable entity response has a 3xx status code

func (*UpdateScopeUnprocessableEntity) IsServerError

func (o *UpdateScopeUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update scope unprocessable entity response has a 5xx status code

func (*UpdateScopeUnprocessableEntity) IsSuccess

func (o *UpdateScopeUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this update scope unprocessable entity response has a 2xx status code

func (*UpdateScopeUnprocessableEntity) String

Jump to

Keyboard shortcuts

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