Documentation ¶
Index ¶
- type AdminCreateRoleV3BadRequest
- type AdminCreateRoleV3Created
- type AdminCreateRoleV3Forbidden
- type AdminCreateRoleV3Params
- func NewAdminCreateRoleV3Params() *AdminCreateRoleV3Params
- func NewAdminCreateRoleV3ParamsWithContext(ctx context.Context) *AdminCreateRoleV3Params
- func NewAdminCreateRoleV3ParamsWithHTTPClient(client *http.Client) *AdminCreateRoleV3Params
- func NewAdminCreateRoleV3ParamsWithTimeout(timeout time.Duration) *AdminCreateRoleV3Params
- func (o *AdminCreateRoleV3Params) SetBody(body *iamclientmodels.ModelRoleCreateV3Request)
- func (o *AdminCreateRoleV3Params) SetContext(ctx context.Context)
- func (o *AdminCreateRoleV3Params) SetHTTPClient(client *http.Client)
- func (o *AdminCreateRoleV3Params) SetTimeout(timeout time.Duration)
- func (o *AdminCreateRoleV3Params) WithBody(body *iamclientmodels.ModelRoleCreateV3Request) *AdminCreateRoleV3Params
- func (o *AdminCreateRoleV3Params) WithContext(ctx context.Context) *AdminCreateRoleV3Params
- func (o *AdminCreateRoleV3Params) WithHTTPClient(client *http.Client) *AdminCreateRoleV3Params
- func (o *AdminCreateRoleV3Params) WithTimeout(timeout time.Duration) *AdminCreateRoleV3Params
- func (o *AdminCreateRoleV3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminCreateRoleV3Reader
- type AdminCreateRoleV3Unauthorized
- type AdminGetRolesV3BadRequest
- type AdminGetRolesV3Forbidden
- type AdminGetRolesV3OK
- type AdminGetRolesV3Params
- func NewAdminGetRolesV3Params() *AdminGetRolesV3Params
- func NewAdminGetRolesV3ParamsWithContext(ctx context.Context) *AdminGetRolesV3Params
- func NewAdminGetRolesV3ParamsWithHTTPClient(client *http.Client) *AdminGetRolesV3Params
- func NewAdminGetRolesV3ParamsWithTimeout(timeout time.Duration) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) SetAfter(after *string)
- func (o *AdminGetRolesV3Params) SetBefore(before *string)
- func (o *AdminGetRolesV3Params) SetContext(ctx context.Context)
- func (o *AdminGetRolesV3Params) SetHTTPClient(client *http.Client)
- func (o *AdminGetRolesV3Params) SetLimit(limit *int64)
- func (o *AdminGetRolesV3Params) SetTimeout(timeout time.Duration)
- func (o *AdminGetRolesV3Params) WithAfter(after *string) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) WithBefore(before *string) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) WithContext(ctx context.Context) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) WithHTTPClient(client *http.Client) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) WithLimit(limit *int64) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) WithTimeout(timeout time.Duration) *AdminGetRolesV3Params
- func (o *AdminGetRolesV3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminGetRolesV3Reader
- type AdminGetRolesV3Unauthorized
- type Client
- func (a *Client) AdminCreateRoleV3(params *AdminCreateRoleV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateRoleV3Created, *AdminCreateRoleV3BadRequest, ...)
- func (a *Client) AdminGetRolesV3(params *AdminGetRolesV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetRolesV3OK, *AdminGetRolesV3BadRequest, *AdminGetRolesV3Unauthorized, ...)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminCreateRoleV3BadRequest ¶
type AdminCreateRoleV3BadRequest struct {
Payload *iamclientmodels.RestErrorResponse
}
AdminCreateRoleV3BadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr><tr><td>10466</td><td>invalid role members</td></tr></table>
func NewAdminCreateRoleV3BadRequest ¶
func NewAdminCreateRoleV3BadRequest() *AdminCreateRoleV3BadRequest
NewAdminCreateRoleV3BadRequest creates a AdminCreateRoleV3BadRequest with default headers values
func (*AdminCreateRoleV3BadRequest) Error ¶
func (o *AdminCreateRoleV3BadRequest) Error() string
func (*AdminCreateRoleV3BadRequest) GetPayload ¶
func (o *AdminCreateRoleV3BadRequest) GetPayload() *iamclientmodels.RestErrorResponse
type AdminCreateRoleV3Created ¶
type AdminCreateRoleV3Created struct {
Payload *iamclientmodels.AccountcommonRoleV3
}
AdminCreateRoleV3Created handles this case with default header values.
Created
func NewAdminCreateRoleV3Created ¶
func NewAdminCreateRoleV3Created() *AdminCreateRoleV3Created
NewAdminCreateRoleV3Created creates a AdminCreateRoleV3Created with default headers values
func (*AdminCreateRoleV3Created) Error ¶
func (o *AdminCreateRoleV3Created) Error() string
func (*AdminCreateRoleV3Created) GetPayload ¶
func (o *AdminCreateRoleV3Created) GetPayload() *iamclientmodels.AccountcommonRoleV3
type AdminCreateRoleV3Forbidden ¶
type AdminCreateRoleV3Forbidden struct {
Payload *iamclientmodels.RestErrorResponse
}
AdminCreateRoleV3Forbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr></table>
func NewAdminCreateRoleV3Forbidden ¶
func NewAdminCreateRoleV3Forbidden() *AdminCreateRoleV3Forbidden
NewAdminCreateRoleV3Forbidden creates a AdminCreateRoleV3Forbidden with default headers values
func (*AdminCreateRoleV3Forbidden) Error ¶
func (o *AdminCreateRoleV3Forbidden) Error() string
func (*AdminCreateRoleV3Forbidden) GetPayload ¶
func (o *AdminCreateRoleV3Forbidden) GetPayload() *iamclientmodels.RestErrorResponse
type AdminCreateRoleV3Params ¶
type AdminCreateRoleV3Params struct { /*Body*/ Body *iamclientmodels.ModelRoleCreateV3Request Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminCreateRoleV3Params contains all the parameters to send to the API endpoint for the admin create role v3 operation typically these are written to a http.Request
func NewAdminCreateRoleV3Params ¶
func NewAdminCreateRoleV3Params() *AdminCreateRoleV3Params
NewAdminCreateRoleV3Params creates a new AdminCreateRoleV3Params object with the default values initialized.
func NewAdminCreateRoleV3ParamsWithContext ¶
func NewAdminCreateRoleV3ParamsWithContext(ctx context.Context) *AdminCreateRoleV3Params
NewAdminCreateRoleV3ParamsWithContext creates a new AdminCreateRoleV3Params object with the default values initialized, and the ability to set a context for a request
func NewAdminCreateRoleV3ParamsWithHTTPClient ¶
func NewAdminCreateRoleV3ParamsWithHTTPClient(client *http.Client) *AdminCreateRoleV3Params
NewAdminCreateRoleV3ParamsWithHTTPClient creates a new AdminCreateRoleV3Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminCreateRoleV3ParamsWithTimeout ¶
func NewAdminCreateRoleV3ParamsWithTimeout(timeout time.Duration) *AdminCreateRoleV3Params
NewAdminCreateRoleV3ParamsWithTimeout creates a new AdminCreateRoleV3Params object with the default values initialized, and the ability to set a timeout on a request
func (*AdminCreateRoleV3Params) SetBody ¶
func (o *AdminCreateRoleV3Params) SetBody(body *iamclientmodels.ModelRoleCreateV3Request)
SetBody adds the body to the admin create role v3 params
func (*AdminCreateRoleV3Params) SetContext ¶
func (o *AdminCreateRoleV3Params) SetContext(ctx context.Context)
SetContext adds the context to the admin create role v3 params
func (*AdminCreateRoleV3Params) SetHTTPClient ¶
func (o *AdminCreateRoleV3Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin create role v3 params
func (*AdminCreateRoleV3Params) SetTimeout ¶
func (o *AdminCreateRoleV3Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin create role v3 params
func (*AdminCreateRoleV3Params) WithBody ¶
func (o *AdminCreateRoleV3Params) WithBody(body *iamclientmodels.ModelRoleCreateV3Request) *AdminCreateRoleV3Params
WithBody adds the body to the admin create role v3 params
func (*AdminCreateRoleV3Params) WithContext ¶
func (o *AdminCreateRoleV3Params) WithContext(ctx context.Context) *AdminCreateRoleV3Params
WithContext adds the context to the admin create role v3 params
func (*AdminCreateRoleV3Params) WithHTTPClient ¶
func (o *AdminCreateRoleV3Params) WithHTTPClient(client *http.Client) *AdminCreateRoleV3Params
WithHTTPClient adds the HTTPClient to the admin create role v3 params
func (*AdminCreateRoleV3Params) WithTimeout ¶
func (o *AdminCreateRoleV3Params) WithTimeout(timeout time.Duration) *AdminCreateRoleV3Params
WithTimeout adds the timeout to the admin create role v3 params
func (*AdminCreateRoleV3Params) WriteToRequest ¶
func (o *AdminCreateRoleV3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminCreateRoleV3Reader ¶
type AdminCreateRoleV3Reader struct {
// contains filtered or unexported fields
}
AdminCreateRoleV3Reader is a Reader for the AdminCreateRoleV3 structure.
func (*AdminCreateRoleV3Reader) ReadResponse ¶
func (o *AdminCreateRoleV3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminCreateRoleV3Unauthorized ¶
type AdminCreateRoleV3Unauthorized struct {
}AdminCreateRoleV3Unauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>
func NewAdminCreateRoleV3Unauthorized ¶
func NewAdminCreateRoleV3Unauthorized() *AdminCreateRoleV3Unauthorized
NewAdminCreateRoleV3Unauthorized creates a AdminCreateRoleV3Unauthorized with default headers values
func (*AdminCreateRoleV3Unauthorized) Error ¶
func (o *AdminCreateRoleV3Unauthorized) Error() string
func (*AdminCreateRoleV3Unauthorized) GetPayload ¶
func (o *AdminCreateRoleV3Unauthorized) GetPayload() *iamclientmodels.RestErrorResponse
type AdminGetRolesV3BadRequest ¶
type AdminGetRolesV3BadRequest struct {
Payload *iamclientmodels.RestErrorResponse
}
AdminGetRolesV3BadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>
func NewAdminGetRolesV3BadRequest ¶
func NewAdminGetRolesV3BadRequest() *AdminGetRolesV3BadRequest
NewAdminGetRolesV3BadRequest creates a AdminGetRolesV3BadRequest with default headers values
func (*AdminGetRolesV3BadRequest) Error ¶
func (o *AdminGetRolesV3BadRequest) Error() string
func (*AdminGetRolesV3BadRequest) GetPayload ¶
func (o *AdminGetRolesV3BadRequest) GetPayload() *iamclientmodels.RestErrorResponse
type AdminGetRolesV3Forbidden ¶
type AdminGetRolesV3Forbidden struct {
Payload *iamclientmodels.RestErrorResponse
}
AdminGetRolesV3Forbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr></table>
func NewAdminGetRolesV3Forbidden ¶
func NewAdminGetRolesV3Forbidden() *AdminGetRolesV3Forbidden
NewAdminGetRolesV3Forbidden creates a AdminGetRolesV3Forbidden with default headers values
func (*AdminGetRolesV3Forbidden) Error ¶
func (o *AdminGetRolesV3Forbidden) Error() string
func (*AdminGetRolesV3Forbidden) GetPayload ¶
func (o *AdminGetRolesV3Forbidden) GetPayload() *iamclientmodels.RestErrorResponse
type AdminGetRolesV3OK ¶
type AdminGetRolesV3OK struct {
Payload *iamclientmodels.ModelRoleResponseWithManagersAndPaginationV3
}
AdminGetRolesV3OK handles this case with default header values.
OK
func NewAdminGetRolesV3OK ¶
func NewAdminGetRolesV3OK() *AdminGetRolesV3OK
NewAdminGetRolesV3OK creates a AdminGetRolesV3OK with default headers values
func (*AdminGetRolesV3OK) Error ¶
func (o *AdminGetRolesV3OK) Error() string
func (*AdminGetRolesV3OK) GetPayload ¶
func (o *AdminGetRolesV3OK) GetPayload() *iamclientmodels.ModelRoleResponseWithManagersAndPaginationV3
type AdminGetRolesV3Params ¶
type AdminGetRolesV3Params struct { /*After The cursor that points to query data for the next page */ After *string /*Before The cursor that points to query data for the previous page */ Before *string /*Limit the maximum number of data that may be returned (1...100) */ Limit *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminGetRolesV3Params contains all the parameters to send to the API endpoint for the admin get roles v3 operation typically these are written to a http.Request
func NewAdminGetRolesV3Params ¶
func NewAdminGetRolesV3Params() *AdminGetRolesV3Params
NewAdminGetRolesV3Params creates a new AdminGetRolesV3Params object with the default values initialized.
func NewAdminGetRolesV3ParamsWithContext ¶
func NewAdminGetRolesV3ParamsWithContext(ctx context.Context) *AdminGetRolesV3Params
NewAdminGetRolesV3ParamsWithContext creates a new AdminGetRolesV3Params object with the default values initialized, and the ability to set a context for a request
func NewAdminGetRolesV3ParamsWithHTTPClient ¶
func NewAdminGetRolesV3ParamsWithHTTPClient(client *http.Client) *AdminGetRolesV3Params
NewAdminGetRolesV3ParamsWithHTTPClient creates a new AdminGetRolesV3Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminGetRolesV3ParamsWithTimeout ¶
func NewAdminGetRolesV3ParamsWithTimeout(timeout time.Duration) *AdminGetRolesV3Params
NewAdminGetRolesV3ParamsWithTimeout creates a new AdminGetRolesV3Params object with the default values initialized, and the ability to set a timeout on a request
func (*AdminGetRolesV3Params) SetAfter ¶
func (o *AdminGetRolesV3Params) SetAfter(after *string)
SetAfter adds the after to the admin get roles v3 params
func (*AdminGetRolesV3Params) SetBefore ¶
func (o *AdminGetRolesV3Params) SetBefore(before *string)
SetBefore adds the before to the admin get roles v3 params
func (*AdminGetRolesV3Params) SetContext ¶
func (o *AdminGetRolesV3Params) SetContext(ctx context.Context)
SetContext adds the context to the admin get roles v3 params
func (*AdminGetRolesV3Params) SetHTTPClient ¶
func (o *AdminGetRolesV3Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin get roles v3 params
func (*AdminGetRolesV3Params) SetLimit ¶
func (o *AdminGetRolesV3Params) SetLimit(limit *int64)
SetLimit adds the limit to the admin get roles v3 params
func (*AdminGetRolesV3Params) SetTimeout ¶
func (o *AdminGetRolesV3Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin get roles v3 params
func (*AdminGetRolesV3Params) WithAfter ¶
func (o *AdminGetRolesV3Params) WithAfter(after *string) *AdminGetRolesV3Params
WithAfter adds the after to the admin get roles v3 params
func (*AdminGetRolesV3Params) WithBefore ¶
func (o *AdminGetRolesV3Params) WithBefore(before *string) *AdminGetRolesV3Params
WithBefore adds the before to the admin get roles v3 params
func (*AdminGetRolesV3Params) WithContext ¶
func (o *AdminGetRolesV3Params) WithContext(ctx context.Context) *AdminGetRolesV3Params
WithContext adds the context to the admin get roles v3 params
func (*AdminGetRolesV3Params) WithHTTPClient ¶
func (o *AdminGetRolesV3Params) WithHTTPClient(client *http.Client) *AdminGetRolesV3Params
WithHTTPClient adds the HTTPClient to the admin get roles v3 params
func (*AdminGetRolesV3Params) WithLimit ¶
func (o *AdminGetRolesV3Params) WithLimit(limit *int64) *AdminGetRolesV3Params
WithLimit adds the limit to the admin get roles v3 params
func (*AdminGetRolesV3Params) WithTimeout ¶
func (o *AdminGetRolesV3Params) WithTimeout(timeout time.Duration) *AdminGetRolesV3Params
WithTimeout adds the timeout to the admin get roles v3 params
func (*AdminGetRolesV3Params) WriteToRequest ¶
func (o *AdminGetRolesV3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminGetRolesV3Reader ¶
type AdminGetRolesV3Reader struct {
// contains filtered or unexported fields
}
AdminGetRolesV3Reader is a Reader for the AdminGetRolesV3 structure.
func (*AdminGetRolesV3Reader) ReadResponse ¶
func (o *AdminGetRolesV3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminGetRolesV3Unauthorized ¶
type AdminGetRolesV3Unauthorized struct {
}AdminGetRolesV3Unauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>
func NewAdminGetRolesV3Unauthorized ¶
func NewAdminGetRolesV3Unauthorized() *AdminGetRolesV3Unauthorized
NewAdminGetRolesV3Unauthorized creates a AdminGetRolesV3Unauthorized with default headers values
func (*AdminGetRolesV3Unauthorized) Error ¶
func (o *AdminGetRolesV3Unauthorized) Error() string
func (*AdminGetRolesV3Unauthorized) GetPayload ¶
func (o *AdminGetRolesV3Unauthorized) GetPayload() *iamclientmodels.RestErrorResponse
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for roles API
func (*Client) AdminCreateRoleV3 ¶
func (a *Client) AdminCreateRoleV3(params *AdminCreateRoleV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateRoleV3Created, *AdminCreateRoleV3BadRequest, *AdminCreateRoleV3Unauthorized, *AdminCreateRoleV3Forbidden, error)
AdminCreateRoleV3 creates role
Required permission 'ADMIN:ROLE [CREATE]' <br>action code: 10401
func (*Client) AdminGetRolesV3 ¶
func (a *Client) AdminGetRolesV3(params *AdminGetRolesV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetRolesV3OK, *AdminGetRolesV3BadRequest, *AdminGetRolesV3Unauthorized, *AdminGetRolesV3Forbidden, error)
AdminGetRolesV3 gets roles
Required permission 'ADMIN:ROLE [READ]'<br> <p>action code: 10414</p>
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { AdminCreateRoleV3(params *AdminCreateRoleV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateRoleV3Created, *AdminCreateRoleV3BadRequest, *AdminCreateRoleV3Unauthorized, *AdminCreateRoleV3Forbidden, error) AdminGetRolesV3(params *AdminGetRolesV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetRolesV3OK, *AdminGetRolesV3BadRequest, *AdminGetRolesV3Unauthorized, *AdminGetRolesV3Forbidden, 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 roles API client.