Documentation ¶
Index ¶
- type CheckTenantPermissionsForbidden
- func (o *CheckTenantPermissionsForbidden) Code() int
- func (o *CheckTenantPermissionsForbidden) Error() string
- func (o *CheckTenantPermissionsForbidden) GetPayload() *models.Error
- func (o *CheckTenantPermissionsForbidden) IsClientError() bool
- func (o *CheckTenantPermissionsForbidden) IsCode(code int) bool
- func (o *CheckTenantPermissionsForbidden) IsRedirect() bool
- func (o *CheckTenantPermissionsForbidden) IsServerError() bool
- func (o *CheckTenantPermissionsForbidden) IsSuccess() bool
- func (o *CheckTenantPermissionsForbidden) String() string
- type CheckTenantPermissionsNotFound
- func (o *CheckTenantPermissionsNotFound) Code() int
- func (o *CheckTenantPermissionsNotFound) Error() string
- func (o *CheckTenantPermissionsNotFound) GetPayload() *models.Error
- func (o *CheckTenantPermissionsNotFound) IsClientError() bool
- func (o *CheckTenantPermissionsNotFound) IsCode(code int) bool
- func (o *CheckTenantPermissionsNotFound) IsRedirect() bool
- func (o *CheckTenantPermissionsNotFound) IsServerError() bool
- func (o *CheckTenantPermissionsNotFound) IsSuccess() bool
- func (o *CheckTenantPermissionsNotFound) String() string
- type CheckTenantPermissionsOK
- func (o *CheckTenantPermissionsOK) Code() int
- func (o *CheckTenantPermissionsOK) Error() string
- func (o *CheckTenantPermissionsOK) GetPayload() *models.TenantPermissionsResponse
- func (o *CheckTenantPermissionsOK) IsClientError() bool
- func (o *CheckTenantPermissionsOK) IsCode(code int) bool
- func (o *CheckTenantPermissionsOK) IsRedirect() bool
- func (o *CheckTenantPermissionsOK) IsServerError() bool
- func (o *CheckTenantPermissionsOK) IsSuccess() bool
- func (o *CheckTenantPermissionsOK) String() string
- type CheckTenantPermissionsParams
- func NewCheckTenantPermissionsParams() *CheckTenantPermissionsParams
- func NewCheckTenantPermissionsParamsWithContext(ctx context.Context) *CheckTenantPermissionsParams
- func NewCheckTenantPermissionsParamsWithHTTPClient(client *http.Client) *CheckTenantPermissionsParams
- func NewCheckTenantPermissionsParamsWithTimeout(timeout time.Duration) *CheckTenantPermissionsParams
- func (o *CheckTenantPermissionsParams) SetContext(ctx context.Context)
- func (o *CheckTenantPermissionsParams) SetDefaults()
- func (o *CheckTenantPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *CheckTenantPermissionsParams) SetIfMatch(ifMatch *string)
- func (o *CheckTenantPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *CheckTenantPermissionsParams) WithContext(ctx context.Context) *CheckTenantPermissionsParams
- func (o *CheckTenantPermissionsParams) WithDefaults() *CheckTenantPermissionsParams
- func (o *CheckTenantPermissionsParams) WithHTTPClient(client *http.Client) *CheckTenantPermissionsParams
- func (o *CheckTenantPermissionsParams) WithIfMatch(ifMatch *string) *CheckTenantPermissionsParams
- func (o *CheckTenantPermissionsParams) WithTimeout(timeout time.Duration) *CheckTenantPermissionsParams
- func (o *CheckTenantPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckTenantPermissionsReader
- type CheckTenantPermissionsTooManyRequests
- func (o *CheckTenantPermissionsTooManyRequests) Code() int
- func (o *CheckTenantPermissionsTooManyRequests) Error() string
- func (o *CheckTenantPermissionsTooManyRequests) GetPayload() *models.Error
- func (o *CheckTenantPermissionsTooManyRequests) IsClientError() bool
- func (o *CheckTenantPermissionsTooManyRequests) IsCode(code int) bool
- func (o *CheckTenantPermissionsTooManyRequests) IsRedirect() bool
- func (o *CheckTenantPermissionsTooManyRequests) IsServerError() bool
- func (o *CheckTenantPermissionsTooManyRequests) IsSuccess() bool
- func (o *CheckTenantPermissionsTooManyRequests) String() string
- type CheckTenantPermissionsUnauthorized
- func (o *CheckTenantPermissionsUnauthorized) Code() int
- func (o *CheckTenantPermissionsUnauthorized) Error() string
- func (o *CheckTenantPermissionsUnauthorized) GetPayload() *models.Error
- func (o *CheckTenantPermissionsUnauthorized) IsClientError() bool
- func (o *CheckTenantPermissionsUnauthorized) IsCode(code int) bool
- func (o *CheckTenantPermissionsUnauthorized) IsRedirect() bool
- func (o *CheckTenantPermissionsUnauthorized) IsServerError() bool
- func (o *CheckTenantPermissionsUnauthorized) IsSuccess() bool
- func (o *CheckTenantPermissionsUnauthorized) String() string
- type CheckWorkspacePermissionsForbidden
- func (o *CheckWorkspacePermissionsForbidden) Code() int
- func (o *CheckWorkspacePermissionsForbidden) Error() string
- func (o *CheckWorkspacePermissionsForbidden) GetPayload() *models.Error
- func (o *CheckWorkspacePermissionsForbidden) IsClientError() bool
- func (o *CheckWorkspacePermissionsForbidden) IsCode(code int) bool
- func (o *CheckWorkspacePermissionsForbidden) IsRedirect() bool
- func (o *CheckWorkspacePermissionsForbidden) IsServerError() bool
- func (o *CheckWorkspacePermissionsForbidden) IsSuccess() bool
- func (o *CheckWorkspacePermissionsForbidden) String() string
- type CheckWorkspacePermissionsNotFound
- func (o *CheckWorkspacePermissionsNotFound) Code() int
- func (o *CheckWorkspacePermissionsNotFound) Error() string
- func (o *CheckWorkspacePermissionsNotFound) GetPayload() *models.Error
- func (o *CheckWorkspacePermissionsNotFound) IsClientError() bool
- func (o *CheckWorkspacePermissionsNotFound) IsCode(code int) bool
- func (o *CheckWorkspacePermissionsNotFound) IsRedirect() bool
- func (o *CheckWorkspacePermissionsNotFound) IsServerError() bool
- func (o *CheckWorkspacePermissionsNotFound) IsSuccess() bool
- func (o *CheckWorkspacePermissionsNotFound) String() string
- type CheckWorkspacePermissionsOK
- func (o *CheckWorkspacePermissionsOK) Code() int
- func (o *CheckWorkspacePermissionsOK) Error() string
- func (o *CheckWorkspacePermissionsOK) GetPayload() *models.WorkspacePermissionsResponse
- func (o *CheckWorkspacePermissionsOK) IsClientError() bool
- func (o *CheckWorkspacePermissionsOK) IsCode(code int) bool
- func (o *CheckWorkspacePermissionsOK) IsRedirect() bool
- func (o *CheckWorkspacePermissionsOK) IsServerError() bool
- func (o *CheckWorkspacePermissionsOK) IsSuccess() bool
- func (o *CheckWorkspacePermissionsOK) String() string
- type CheckWorkspacePermissionsParams
- func NewCheckWorkspacePermissionsParams() *CheckWorkspacePermissionsParams
- func NewCheckWorkspacePermissionsParamsWithContext(ctx context.Context) *CheckWorkspacePermissionsParams
- func NewCheckWorkspacePermissionsParamsWithHTTPClient(client *http.Client) *CheckWorkspacePermissionsParams
- func NewCheckWorkspacePermissionsParamsWithTimeout(timeout time.Duration) *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) SetContext(ctx context.Context)
- func (o *CheckWorkspacePermissionsParams) SetDefaults()
- func (o *CheckWorkspacePermissionsParams) SetHTTPClient(client *http.Client)
- func (o *CheckWorkspacePermissionsParams) SetIfMatch(ifMatch *string)
- func (o *CheckWorkspacePermissionsParams) SetTimeout(timeout time.Duration)
- func (o *CheckWorkspacePermissionsParams) SetWid(wid string)
- func (o *CheckWorkspacePermissionsParams) WithContext(ctx context.Context) *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) WithDefaults() *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) WithHTTPClient(client *http.Client) *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) WithIfMatch(ifMatch *string) *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) WithTimeout(timeout time.Duration) *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) WithWid(wid string) *CheckWorkspacePermissionsParams
- func (o *CheckWorkspacePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckWorkspacePermissionsReader
- type CheckWorkspacePermissionsTooManyRequests
- func (o *CheckWorkspacePermissionsTooManyRequests) Code() int
- func (o *CheckWorkspacePermissionsTooManyRequests) Error() string
- func (o *CheckWorkspacePermissionsTooManyRequests) GetPayload() *models.Error
- func (o *CheckWorkspacePermissionsTooManyRequests) IsClientError() bool
- func (o *CheckWorkspacePermissionsTooManyRequests) IsCode(code int) bool
- func (o *CheckWorkspacePermissionsTooManyRequests) IsRedirect() bool
- func (o *CheckWorkspacePermissionsTooManyRequests) IsServerError() bool
- func (o *CheckWorkspacePermissionsTooManyRequests) IsSuccess() bool
- func (o *CheckWorkspacePermissionsTooManyRequests) String() string
- type CheckWorkspacePermissionsUnauthorized
- func (o *CheckWorkspacePermissionsUnauthorized) Code() int
- func (o *CheckWorkspacePermissionsUnauthorized) Error() string
- func (o *CheckWorkspacePermissionsUnauthorized) GetPayload() *models.Error
- func (o *CheckWorkspacePermissionsUnauthorized) IsClientError() bool
- func (o *CheckWorkspacePermissionsUnauthorized) IsCode(code int) bool
- func (o *CheckWorkspacePermissionsUnauthorized) IsRedirect() bool
- func (o *CheckWorkspacePermissionsUnauthorized) IsServerError() bool
- func (o *CheckWorkspacePermissionsUnauthorized) IsSuccess() bool
- func (o *CheckWorkspacePermissionsUnauthorized) String() string
- type Client
- func (a *Client) CheckTenantPermissions(params *CheckTenantPermissionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CheckTenantPermissionsOK, error)
- func (a *Client) CheckWorkspacePermissions(params *CheckWorkspacePermissionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CheckWorkspacePermissionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckTenantPermissionsForbidden ¶
CheckTenantPermissionsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCheckTenantPermissionsForbidden ¶
func NewCheckTenantPermissionsForbidden() *CheckTenantPermissionsForbidden
NewCheckTenantPermissionsForbidden creates a CheckTenantPermissionsForbidden with default headers values
func (*CheckTenantPermissionsForbidden) Code ¶
func (o *CheckTenantPermissionsForbidden) Code() int
Code gets the status code for the check tenant permissions forbidden response
func (*CheckTenantPermissionsForbidden) Error ¶
func (o *CheckTenantPermissionsForbidden) Error() string
func (*CheckTenantPermissionsForbidden) GetPayload ¶
func (o *CheckTenantPermissionsForbidden) GetPayload() *models.Error
func (*CheckTenantPermissionsForbidden) IsClientError ¶
func (o *CheckTenantPermissionsForbidden) IsClientError() bool
IsClientError returns true when this check tenant permissions forbidden response has a 4xx status code
func (*CheckTenantPermissionsForbidden) IsCode ¶
func (o *CheckTenantPermissionsForbidden) IsCode(code int) bool
IsCode returns true when this check tenant permissions forbidden response a status code equal to that given
func (*CheckTenantPermissionsForbidden) IsRedirect ¶
func (o *CheckTenantPermissionsForbidden) IsRedirect() bool
IsRedirect returns true when this check tenant permissions forbidden response has a 3xx status code
func (*CheckTenantPermissionsForbidden) IsServerError ¶
func (o *CheckTenantPermissionsForbidden) IsServerError() bool
IsServerError returns true when this check tenant permissions forbidden response has a 5xx status code
func (*CheckTenantPermissionsForbidden) IsSuccess ¶
func (o *CheckTenantPermissionsForbidden) IsSuccess() bool
IsSuccess returns true when this check tenant permissions forbidden response has a 2xx status code
func (*CheckTenantPermissionsForbidden) String ¶
func (o *CheckTenantPermissionsForbidden) String() string
type CheckTenantPermissionsNotFound ¶
CheckTenantPermissionsNotFound describes a response with status code 404, with default header values.
Not found
func NewCheckTenantPermissionsNotFound ¶
func NewCheckTenantPermissionsNotFound() *CheckTenantPermissionsNotFound
NewCheckTenantPermissionsNotFound creates a CheckTenantPermissionsNotFound with default headers values
func (*CheckTenantPermissionsNotFound) Code ¶
func (o *CheckTenantPermissionsNotFound) Code() int
Code gets the status code for the check tenant permissions not found response
func (*CheckTenantPermissionsNotFound) Error ¶
func (o *CheckTenantPermissionsNotFound) Error() string
func (*CheckTenantPermissionsNotFound) GetPayload ¶
func (o *CheckTenantPermissionsNotFound) GetPayload() *models.Error
func (*CheckTenantPermissionsNotFound) IsClientError ¶
func (o *CheckTenantPermissionsNotFound) IsClientError() bool
IsClientError returns true when this check tenant permissions not found response has a 4xx status code
func (*CheckTenantPermissionsNotFound) IsCode ¶
func (o *CheckTenantPermissionsNotFound) IsCode(code int) bool
IsCode returns true when this check tenant permissions not found response a status code equal to that given
func (*CheckTenantPermissionsNotFound) IsRedirect ¶
func (o *CheckTenantPermissionsNotFound) IsRedirect() bool
IsRedirect returns true when this check tenant permissions not found response has a 3xx status code
func (*CheckTenantPermissionsNotFound) IsServerError ¶
func (o *CheckTenantPermissionsNotFound) IsServerError() bool
IsServerError returns true when this check tenant permissions not found response has a 5xx status code
func (*CheckTenantPermissionsNotFound) IsSuccess ¶
func (o *CheckTenantPermissionsNotFound) IsSuccess() bool
IsSuccess returns true when this check tenant permissions not found response has a 2xx status code
func (*CheckTenantPermissionsNotFound) String ¶
func (o *CheckTenantPermissionsNotFound) String() string
type CheckTenantPermissionsOK ¶
type CheckTenantPermissionsOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.TenantPermissionsResponse }
CheckTenantPermissionsOK describes a response with status code 200, with default header values.
TenantPermissions
func NewCheckTenantPermissionsOK ¶
func NewCheckTenantPermissionsOK() *CheckTenantPermissionsOK
NewCheckTenantPermissionsOK creates a CheckTenantPermissionsOK with default headers values
func (*CheckTenantPermissionsOK) Code ¶
func (o *CheckTenantPermissionsOK) Code() int
Code gets the status code for the check tenant permissions o k response
func (*CheckTenantPermissionsOK) Error ¶
func (o *CheckTenantPermissionsOK) Error() string
func (*CheckTenantPermissionsOK) GetPayload ¶
func (o *CheckTenantPermissionsOK) GetPayload() *models.TenantPermissionsResponse
func (*CheckTenantPermissionsOK) IsClientError ¶
func (o *CheckTenantPermissionsOK) IsClientError() bool
IsClientError returns true when this check tenant permissions o k response has a 4xx status code
func (*CheckTenantPermissionsOK) IsCode ¶
func (o *CheckTenantPermissionsOK) IsCode(code int) bool
IsCode returns true when this check tenant permissions o k response a status code equal to that given
func (*CheckTenantPermissionsOK) IsRedirect ¶
func (o *CheckTenantPermissionsOK) IsRedirect() bool
IsRedirect returns true when this check tenant permissions o k response has a 3xx status code
func (*CheckTenantPermissionsOK) IsServerError ¶
func (o *CheckTenantPermissionsOK) IsServerError() bool
IsServerError returns true when this check tenant permissions o k response has a 5xx status code
func (*CheckTenantPermissionsOK) IsSuccess ¶
func (o *CheckTenantPermissionsOK) IsSuccess() bool
IsSuccess returns true when this check tenant permissions o k response has a 2xx status code
func (*CheckTenantPermissionsOK) String ¶
func (o *CheckTenantPermissionsOK) String() string
type CheckTenantPermissionsParams ¶
type CheckTenantPermissionsParams struct { /* 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 }
CheckTenantPermissionsParams contains all the parameters to send to the API endpoint
for the check tenant permissions operation. Typically these are written to a http.Request.
func NewCheckTenantPermissionsParams ¶
func NewCheckTenantPermissionsParams() *CheckTenantPermissionsParams
NewCheckTenantPermissionsParams creates a new CheckTenantPermissionsParams 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 NewCheckTenantPermissionsParamsWithContext ¶
func NewCheckTenantPermissionsParamsWithContext(ctx context.Context) *CheckTenantPermissionsParams
NewCheckTenantPermissionsParamsWithContext creates a new CheckTenantPermissionsParams object with the ability to set a context for a request.
func NewCheckTenantPermissionsParamsWithHTTPClient ¶
func NewCheckTenantPermissionsParamsWithHTTPClient(client *http.Client) *CheckTenantPermissionsParams
NewCheckTenantPermissionsParamsWithHTTPClient creates a new CheckTenantPermissionsParams object with the ability to set a custom HTTPClient for a request.
func NewCheckTenantPermissionsParamsWithTimeout ¶
func NewCheckTenantPermissionsParamsWithTimeout(timeout time.Duration) *CheckTenantPermissionsParams
NewCheckTenantPermissionsParamsWithTimeout creates a new CheckTenantPermissionsParams object with the ability to set a timeout on a request.
func (*CheckTenantPermissionsParams) SetContext ¶
func (o *CheckTenantPermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the check tenant permissions params
func (*CheckTenantPermissionsParams) SetDefaults ¶
func (o *CheckTenantPermissionsParams) SetDefaults()
SetDefaults hydrates default values in the check tenant permissions params (not the query body).
All values with no default are reset to their zero value.
func (*CheckTenantPermissionsParams) SetHTTPClient ¶
func (o *CheckTenantPermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the check tenant permissions params
func (*CheckTenantPermissionsParams) SetIfMatch ¶
func (o *CheckTenantPermissionsParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the check tenant permissions params
func (*CheckTenantPermissionsParams) SetTimeout ¶
func (o *CheckTenantPermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the check tenant permissions params
func (*CheckTenantPermissionsParams) WithContext ¶
func (o *CheckTenantPermissionsParams) WithContext(ctx context.Context) *CheckTenantPermissionsParams
WithContext adds the context to the check tenant permissions params
func (*CheckTenantPermissionsParams) WithDefaults ¶
func (o *CheckTenantPermissionsParams) WithDefaults() *CheckTenantPermissionsParams
WithDefaults hydrates default values in the check tenant permissions params (not the query body).
All values with no default are reset to their zero value.
func (*CheckTenantPermissionsParams) WithHTTPClient ¶
func (o *CheckTenantPermissionsParams) WithHTTPClient(client *http.Client) *CheckTenantPermissionsParams
WithHTTPClient adds the HTTPClient to the check tenant permissions params
func (*CheckTenantPermissionsParams) WithIfMatch ¶
func (o *CheckTenantPermissionsParams) WithIfMatch(ifMatch *string) *CheckTenantPermissionsParams
WithIfMatch adds the ifMatch to the check tenant permissions params
func (*CheckTenantPermissionsParams) WithTimeout ¶
func (o *CheckTenantPermissionsParams) WithTimeout(timeout time.Duration) *CheckTenantPermissionsParams
WithTimeout adds the timeout to the check tenant permissions params
func (*CheckTenantPermissionsParams) WriteToRequest ¶
func (o *CheckTenantPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CheckTenantPermissionsReader ¶
type CheckTenantPermissionsReader struct {
// contains filtered or unexported fields
}
CheckTenantPermissionsReader is a Reader for the CheckTenantPermissions structure.
func (*CheckTenantPermissionsReader) ReadResponse ¶
func (o *CheckTenantPermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CheckTenantPermissionsTooManyRequests ¶
CheckTenantPermissionsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewCheckTenantPermissionsTooManyRequests ¶
func NewCheckTenantPermissionsTooManyRequests() *CheckTenantPermissionsTooManyRequests
NewCheckTenantPermissionsTooManyRequests creates a CheckTenantPermissionsTooManyRequests with default headers values
func (*CheckTenantPermissionsTooManyRequests) Code ¶
func (o *CheckTenantPermissionsTooManyRequests) Code() int
Code gets the status code for the check tenant permissions too many requests response
func (*CheckTenantPermissionsTooManyRequests) Error ¶
func (o *CheckTenantPermissionsTooManyRequests) Error() string
func (*CheckTenantPermissionsTooManyRequests) GetPayload ¶
func (o *CheckTenantPermissionsTooManyRequests) GetPayload() *models.Error
func (*CheckTenantPermissionsTooManyRequests) IsClientError ¶
func (o *CheckTenantPermissionsTooManyRequests) IsClientError() bool
IsClientError returns true when this check tenant permissions too many requests response has a 4xx status code
func (*CheckTenantPermissionsTooManyRequests) IsCode ¶
func (o *CheckTenantPermissionsTooManyRequests) IsCode(code int) bool
IsCode returns true when this check tenant permissions too many requests response a status code equal to that given
func (*CheckTenantPermissionsTooManyRequests) IsRedirect ¶
func (o *CheckTenantPermissionsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this check tenant permissions too many requests response has a 3xx status code
func (*CheckTenantPermissionsTooManyRequests) IsServerError ¶
func (o *CheckTenantPermissionsTooManyRequests) IsServerError() bool
IsServerError returns true when this check tenant permissions too many requests response has a 5xx status code
func (*CheckTenantPermissionsTooManyRequests) IsSuccess ¶
func (o *CheckTenantPermissionsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this check tenant permissions too many requests response has a 2xx status code
func (*CheckTenantPermissionsTooManyRequests) String ¶
func (o *CheckTenantPermissionsTooManyRequests) String() string
type CheckTenantPermissionsUnauthorized ¶
type CheckTenantPermissionsUnauthorized struct {
}CheckTenantPermissionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCheckTenantPermissionsUnauthorized ¶
func NewCheckTenantPermissionsUnauthorized() *CheckTenantPermissionsUnauthorized
NewCheckTenantPermissionsUnauthorized creates a CheckTenantPermissionsUnauthorized with default headers values
func (*CheckTenantPermissionsUnauthorized) Code ¶
func (o *CheckTenantPermissionsUnauthorized) Code() int
Code gets the status code for the check tenant permissions unauthorized response
func (*CheckTenantPermissionsUnauthorized) Error ¶
func (o *CheckTenantPermissionsUnauthorized) Error() string
func (*CheckTenantPermissionsUnauthorized) GetPayload ¶
func (o *CheckTenantPermissionsUnauthorized) GetPayload() *models.Error
func (*CheckTenantPermissionsUnauthorized) IsClientError ¶
func (o *CheckTenantPermissionsUnauthorized) IsClientError() bool
IsClientError returns true when this check tenant permissions unauthorized response has a 4xx status code
func (*CheckTenantPermissionsUnauthorized) IsCode ¶
func (o *CheckTenantPermissionsUnauthorized) IsCode(code int) bool
IsCode returns true when this check tenant permissions unauthorized response a status code equal to that given
func (*CheckTenantPermissionsUnauthorized) IsRedirect ¶
func (o *CheckTenantPermissionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this check tenant permissions unauthorized response has a 3xx status code
func (*CheckTenantPermissionsUnauthorized) IsServerError ¶
func (o *CheckTenantPermissionsUnauthorized) IsServerError() bool
IsServerError returns true when this check tenant permissions unauthorized response has a 5xx status code
func (*CheckTenantPermissionsUnauthorized) IsSuccess ¶
func (o *CheckTenantPermissionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this check tenant permissions unauthorized response has a 2xx status code
func (*CheckTenantPermissionsUnauthorized) String ¶
func (o *CheckTenantPermissionsUnauthorized) String() string
type CheckWorkspacePermissionsForbidden ¶
CheckWorkspacePermissionsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCheckWorkspacePermissionsForbidden ¶
func NewCheckWorkspacePermissionsForbidden() *CheckWorkspacePermissionsForbidden
NewCheckWorkspacePermissionsForbidden creates a CheckWorkspacePermissionsForbidden with default headers values
func (*CheckWorkspacePermissionsForbidden) Code ¶
func (o *CheckWorkspacePermissionsForbidden) Code() int
Code gets the status code for the check workspace permissions forbidden response
func (*CheckWorkspacePermissionsForbidden) Error ¶
func (o *CheckWorkspacePermissionsForbidden) Error() string
func (*CheckWorkspacePermissionsForbidden) GetPayload ¶
func (o *CheckWorkspacePermissionsForbidden) GetPayload() *models.Error
func (*CheckWorkspacePermissionsForbidden) IsClientError ¶
func (o *CheckWorkspacePermissionsForbidden) IsClientError() bool
IsClientError returns true when this check workspace permissions forbidden response has a 4xx status code
func (*CheckWorkspacePermissionsForbidden) IsCode ¶
func (o *CheckWorkspacePermissionsForbidden) IsCode(code int) bool
IsCode returns true when this check workspace permissions forbidden response a status code equal to that given
func (*CheckWorkspacePermissionsForbidden) IsRedirect ¶
func (o *CheckWorkspacePermissionsForbidden) IsRedirect() bool
IsRedirect returns true when this check workspace permissions forbidden response has a 3xx status code
func (*CheckWorkspacePermissionsForbidden) IsServerError ¶
func (o *CheckWorkspacePermissionsForbidden) IsServerError() bool
IsServerError returns true when this check workspace permissions forbidden response has a 5xx status code
func (*CheckWorkspacePermissionsForbidden) IsSuccess ¶
func (o *CheckWorkspacePermissionsForbidden) IsSuccess() bool
IsSuccess returns true when this check workspace permissions forbidden response has a 2xx status code
func (*CheckWorkspacePermissionsForbidden) String ¶
func (o *CheckWorkspacePermissionsForbidden) String() string
type CheckWorkspacePermissionsNotFound ¶
CheckWorkspacePermissionsNotFound describes a response with status code 404, with default header values.
Not found
func NewCheckWorkspacePermissionsNotFound ¶
func NewCheckWorkspacePermissionsNotFound() *CheckWorkspacePermissionsNotFound
NewCheckWorkspacePermissionsNotFound creates a CheckWorkspacePermissionsNotFound with default headers values
func (*CheckWorkspacePermissionsNotFound) Code ¶
func (o *CheckWorkspacePermissionsNotFound) Code() int
Code gets the status code for the check workspace permissions not found response
func (*CheckWorkspacePermissionsNotFound) Error ¶
func (o *CheckWorkspacePermissionsNotFound) Error() string
func (*CheckWorkspacePermissionsNotFound) GetPayload ¶
func (o *CheckWorkspacePermissionsNotFound) GetPayload() *models.Error
func (*CheckWorkspacePermissionsNotFound) IsClientError ¶
func (o *CheckWorkspacePermissionsNotFound) IsClientError() bool
IsClientError returns true when this check workspace permissions not found response has a 4xx status code
func (*CheckWorkspacePermissionsNotFound) IsCode ¶
func (o *CheckWorkspacePermissionsNotFound) IsCode(code int) bool
IsCode returns true when this check workspace permissions not found response a status code equal to that given
func (*CheckWorkspacePermissionsNotFound) IsRedirect ¶
func (o *CheckWorkspacePermissionsNotFound) IsRedirect() bool
IsRedirect returns true when this check workspace permissions not found response has a 3xx status code
func (*CheckWorkspacePermissionsNotFound) IsServerError ¶
func (o *CheckWorkspacePermissionsNotFound) IsServerError() bool
IsServerError returns true when this check workspace permissions not found response has a 5xx status code
func (*CheckWorkspacePermissionsNotFound) IsSuccess ¶
func (o *CheckWorkspacePermissionsNotFound) IsSuccess() bool
IsSuccess returns true when this check workspace permissions not found response has a 2xx status code
func (*CheckWorkspacePermissionsNotFound) String ¶
func (o *CheckWorkspacePermissionsNotFound) String() string
type CheckWorkspacePermissionsOK ¶
type CheckWorkspacePermissionsOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.WorkspacePermissionsResponse }
CheckWorkspacePermissionsOK describes a response with status code 200, with default header values.
WorkspacePermissions
func NewCheckWorkspacePermissionsOK ¶
func NewCheckWorkspacePermissionsOK() *CheckWorkspacePermissionsOK
NewCheckWorkspacePermissionsOK creates a CheckWorkspacePermissionsOK with default headers values
func (*CheckWorkspacePermissionsOK) Code ¶
func (o *CheckWorkspacePermissionsOK) Code() int
Code gets the status code for the check workspace permissions o k response
func (*CheckWorkspacePermissionsOK) Error ¶
func (o *CheckWorkspacePermissionsOK) Error() string
func (*CheckWorkspacePermissionsOK) GetPayload ¶
func (o *CheckWorkspacePermissionsOK) GetPayload() *models.WorkspacePermissionsResponse
func (*CheckWorkspacePermissionsOK) IsClientError ¶
func (o *CheckWorkspacePermissionsOK) IsClientError() bool
IsClientError returns true when this check workspace permissions o k response has a 4xx status code
func (*CheckWorkspacePermissionsOK) IsCode ¶
func (o *CheckWorkspacePermissionsOK) IsCode(code int) bool
IsCode returns true when this check workspace permissions o k response a status code equal to that given
func (*CheckWorkspacePermissionsOK) IsRedirect ¶
func (o *CheckWorkspacePermissionsOK) IsRedirect() bool
IsRedirect returns true when this check workspace permissions o k response has a 3xx status code
func (*CheckWorkspacePermissionsOK) IsServerError ¶
func (o *CheckWorkspacePermissionsOK) IsServerError() bool
IsServerError returns true when this check workspace permissions o k response has a 5xx status code
func (*CheckWorkspacePermissionsOK) IsSuccess ¶
func (o *CheckWorkspacePermissionsOK) IsSuccess() bool
IsSuccess returns true when this check workspace permissions o k response has a 2xx status code
func (*CheckWorkspacePermissionsOK) String ¶
func (o *CheckWorkspacePermissionsOK) String() string
type CheckWorkspacePermissionsParams ¶
type CheckWorkspacePermissionsParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Workspace id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CheckWorkspacePermissionsParams contains all the parameters to send to the API endpoint
for the check workspace permissions operation. Typically these are written to a http.Request.
func NewCheckWorkspacePermissionsParams ¶
func NewCheckWorkspacePermissionsParams() *CheckWorkspacePermissionsParams
NewCheckWorkspacePermissionsParams creates a new CheckWorkspacePermissionsParams 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 NewCheckWorkspacePermissionsParamsWithContext ¶
func NewCheckWorkspacePermissionsParamsWithContext(ctx context.Context) *CheckWorkspacePermissionsParams
NewCheckWorkspacePermissionsParamsWithContext creates a new CheckWorkspacePermissionsParams object with the ability to set a context for a request.
func NewCheckWorkspacePermissionsParamsWithHTTPClient ¶
func NewCheckWorkspacePermissionsParamsWithHTTPClient(client *http.Client) *CheckWorkspacePermissionsParams
NewCheckWorkspacePermissionsParamsWithHTTPClient creates a new CheckWorkspacePermissionsParams object with the ability to set a custom HTTPClient for a request.
func NewCheckWorkspacePermissionsParamsWithTimeout ¶
func NewCheckWorkspacePermissionsParamsWithTimeout(timeout time.Duration) *CheckWorkspacePermissionsParams
NewCheckWorkspacePermissionsParamsWithTimeout creates a new CheckWorkspacePermissionsParams object with the ability to set a timeout on a request.
func (*CheckWorkspacePermissionsParams) SetContext ¶
func (o *CheckWorkspacePermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) SetDefaults ¶
func (o *CheckWorkspacePermissionsParams) SetDefaults()
SetDefaults hydrates default values in the check workspace permissions params (not the query body).
All values with no default are reset to their zero value.
func (*CheckWorkspacePermissionsParams) SetHTTPClient ¶
func (o *CheckWorkspacePermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) SetIfMatch ¶
func (o *CheckWorkspacePermissionsParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) SetTimeout ¶
func (o *CheckWorkspacePermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) SetWid ¶
func (o *CheckWorkspacePermissionsParams) SetWid(wid string)
SetWid adds the wid to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) WithContext ¶
func (o *CheckWorkspacePermissionsParams) WithContext(ctx context.Context) *CheckWorkspacePermissionsParams
WithContext adds the context to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) WithDefaults ¶
func (o *CheckWorkspacePermissionsParams) WithDefaults() *CheckWorkspacePermissionsParams
WithDefaults hydrates default values in the check workspace permissions params (not the query body).
All values with no default are reset to their zero value.
func (*CheckWorkspacePermissionsParams) WithHTTPClient ¶
func (o *CheckWorkspacePermissionsParams) WithHTTPClient(client *http.Client) *CheckWorkspacePermissionsParams
WithHTTPClient adds the HTTPClient to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) WithIfMatch ¶
func (o *CheckWorkspacePermissionsParams) WithIfMatch(ifMatch *string) *CheckWorkspacePermissionsParams
WithIfMatch adds the ifMatch to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) WithTimeout ¶
func (o *CheckWorkspacePermissionsParams) WithTimeout(timeout time.Duration) *CheckWorkspacePermissionsParams
WithTimeout adds the timeout to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) WithWid ¶
func (o *CheckWorkspacePermissionsParams) WithWid(wid string) *CheckWorkspacePermissionsParams
WithWid adds the wid to the check workspace permissions params
func (*CheckWorkspacePermissionsParams) WriteToRequest ¶
func (o *CheckWorkspacePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CheckWorkspacePermissionsReader ¶
type CheckWorkspacePermissionsReader struct {
// contains filtered or unexported fields
}
CheckWorkspacePermissionsReader is a Reader for the CheckWorkspacePermissions structure.
func (*CheckWorkspacePermissionsReader) ReadResponse ¶
func (o *CheckWorkspacePermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CheckWorkspacePermissionsTooManyRequests ¶
CheckWorkspacePermissionsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewCheckWorkspacePermissionsTooManyRequests ¶
func NewCheckWorkspacePermissionsTooManyRequests() *CheckWorkspacePermissionsTooManyRequests
NewCheckWorkspacePermissionsTooManyRequests creates a CheckWorkspacePermissionsTooManyRequests with default headers values
func (*CheckWorkspacePermissionsTooManyRequests) Code ¶
func (o *CheckWorkspacePermissionsTooManyRequests) Code() int
Code gets the status code for the check workspace permissions too many requests response
func (*CheckWorkspacePermissionsTooManyRequests) Error ¶
func (o *CheckWorkspacePermissionsTooManyRequests) Error() string
func (*CheckWorkspacePermissionsTooManyRequests) GetPayload ¶
func (o *CheckWorkspacePermissionsTooManyRequests) GetPayload() *models.Error
func (*CheckWorkspacePermissionsTooManyRequests) IsClientError ¶
func (o *CheckWorkspacePermissionsTooManyRequests) IsClientError() bool
IsClientError returns true when this check workspace permissions too many requests response has a 4xx status code
func (*CheckWorkspacePermissionsTooManyRequests) IsCode ¶
func (o *CheckWorkspacePermissionsTooManyRequests) IsCode(code int) bool
IsCode returns true when this check workspace permissions too many requests response a status code equal to that given
func (*CheckWorkspacePermissionsTooManyRequests) IsRedirect ¶
func (o *CheckWorkspacePermissionsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this check workspace permissions too many requests response has a 3xx status code
func (*CheckWorkspacePermissionsTooManyRequests) IsServerError ¶
func (o *CheckWorkspacePermissionsTooManyRequests) IsServerError() bool
IsServerError returns true when this check workspace permissions too many requests response has a 5xx status code
func (*CheckWorkspacePermissionsTooManyRequests) IsSuccess ¶
func (o *CheckWorkspacePermissionsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this check workspace permissions too many requests response has a 2xx status code
func (*CheckWorkspacePermissionsTooManyRequests) String ¶
func (o *CheckWorkspacePermissionsTooManyRequests) String() string
type CheckWorkspacePermissionsUnauthorized ¶
type CheckWorkspacePermissionsUnauthorized struct {
}CheckWorkspacePermissionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCheckWorkspacePermissionsUnauthorized ¶
func NewCheckWorkspacePermissionsUnauthorized() *CheckWorkspacePermissionsUnauthorized
NewCheckWorkspacePermissionsUnauthorized creates a CheckWorkspacePermissionsUnauthorized with default headers values
func (*CheckWorkspacePermissionsUnauthorized) Code ¶
func (o *CheckWorkspacePermissionsUnauthorized) Code() int
Code gets the status code for the check workspace permissions unauthorized response
func (*CheckWorkspacePermissionsUnauthorized) Error ¶
func (o *CheckWorkspacePermissionsUnauthorized) Error() string
func (*CheckWorkspacePermissionsUnauthorized) GetPayload ¶
func (o *CheckWorkspacePermissionsUnauthorized) GetPayload() *models.Error
func (*CheckWorkspacePermissionsUnauthorized) IsClientError ¶
func (o *CheckWorkspacePermissionsUnauthorized) IsClientError() bool
IsClientError returns true when this check workspace permissions unauthorized response has a 4xx status code
func (*CheckWorkspacePermissionsUnauthorized) IsCode ¶
func (o *CheckWorkspacePermissionsUnauthorized) IsCode(code int) bool
IsCode returns true when this check workspace permissions unauthorized response a status code equal to that given
func (*CheckWorkspacePermissionsUnauthorized) IsRedirect ¶
func (o *CheckWorkspacePermissionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this check workspace permissions unauthorized response has a 3xx status code
func (*CheckWorkspacePermissionsUnauthorized) IsServerError ¶
func (o *CheckWorkspacePermissionsUnauthorized) IsServerError() bool
IsServerError returns true when this check workspace permissions unauthorized response has a 5xx status code
func (*CheckWorkspacePermissionsUnauthorized) IsSuccess ¶
func (o *CheckWorkspacePermissionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this check workspace permissions unauthorized response has a 2xx status code
func (*CheckWorkspacePermissionsUnauthorized) String ¶
func (o *CheckWorkspacePermissionsUnauthorized) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for permissions API
func (*Client) CheckTenantPermissions ¶
func (a *Client) CheckTenantPermissions(params *CheckTenantPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CheckTenantPermissionsOK, error)
CheckTenantPermissions checks tenant permissions
Check my permissions for this tenant.
func (*Client) CheckWorkspacePermissions ¶
func (a *Client) CheckWorkspacePermissions(params *CheckWorkspacePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CheckWorkspacePermissionsOK, error)
CheckWorkspacePermissions checks workspace permissions
Check my permissions for this workspace.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { CheckTenantPermissions(params *CheckTenantPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CheckTenantPermissionsOK, error) CheckWorkspacePermissions(params *CheckWorkspacePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CheckWorkspacePermissionsOK, 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 permissions API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new permissions API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new permissions API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.