roles

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 13 Imported by: 1

Documentation

Index

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 (*AdminCreateRoleV3BadRequest) GetPayload

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

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 (*AdminCreateRoleV3Forbidden) GetPayload

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

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

WithBody adds the body to the admin create role v3 params

func (*AdminCreateRoleV3Params) WithContext

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

WithTimeout adds the timeout to the admin create role v3 params

func (*AdminCreateRoleV3Params) WriteToRequest

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 {
	Payload *iamclientmodels.RestErrorResponse
}

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 (*AdminCreateRoleV3Unauthorized) GetPayload

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

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

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

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

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 {
	Payload *iamclientmodels.RestErrorResponse
}

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 (*AdminGetRolesV3Unauthorized) GetPayload

type Client

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

Client for roles API

func (*Client) AdminCreateRoleV3

AdminCreateRoleV3 creates role

Required permission 'ADMIN:ROLE [CREATE]' <br>action code: 10401

func (*Client) AdminGetRolesV3

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

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.

Jump to

Keyboard shortcuts

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