Documentation
¶
Index ¶
- type Client
- func (a *Client) RolesRolesChildrenList(params *RolesRolesChildrenListParams) (*RolesRolesChildrenListOK, error)
- func (a *Client) RolesRolesList(params *RolesRolesListParams) (*RolesRolesListOK, error)
- func (a *Client) RolesRolesParentsList(params *RolesRolesParentsListParams) (*RolesRolesParentsListOK, error)
- func (a *Client) RolesRolesRead(params *RolesRolesReadParams) (*RolesRolesReadOK, error)
- func (a *Client) RolesRolesTeamsCreate(params *RolesRolesTeamsCreateParams) (*RolesRolesTeamsCreateCreated, error)
- func (a *Client) RolesRolesTeamsList(params *RolesRolesTeamsListParams) (*RolesRolesTeamsListOK, error)
- func (a *Client) RolesRolesUsersCreate(params *RolesRolesUsersCreateParams) (*RolesRolesUsersCreateCreated, error)
- func (a *Client) RolesRolesUsersList(params *RolesRolesUsersListParams) (*RolesRolesUsersListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type RolesRolesChildrenListOK
- type RolesRolesChildrenListParams
- func NewRolesRolesChildrenListParams() *RolesRolesChildrenListParams
- func NewRolesRolesChildrenListParamsWithContext(ctx context.Context) *RolesRolesChildrenListParams
- func NewRolesRolesChildrenListParamsWithHTTPClient(client *http.Client) *RolesRolesChildrenListParams
- func NewRolesRolesChildrenListParamsWithTimeout(timeout time.Duration) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) SetContext(ctx context.Context)
- func (o *RolesRolesChildrenListParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesChildrenListParams) SetID(id string)
- func (o *RolesRolesChildrenListParams) SetPage(page *int64)
- func (o *RolesRolesChildrenListParams) SetPageSize(pageSize *int64)
- func (o *RolesRolesChildrenListParams) SetSearch(search *string)
- func (o *RolesRolesChildrenListParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesChildrenListParams) WithContext(ctx context.Context) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WithHTTPClient(client *http.Client) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WithID(id string) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WithPage(page *int64) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WithPageSize(pageSize *int64) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WithSearch(search *string) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WithTimeout(timeout time.Duration) *RolesRolesChildrenListParams
- func (o *RolesRolesChildrenListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesChildrenListReader
- type RolesRolesListOK
- type RolesRolesListParams
- func NewRolesRolesListParams() *RolesRolesListParams
- func NewRolesRolesListParamsWithContext(ctx context.Context) *RolesRolesListParams
- func NewRolesRolesListParamsWithHTTPClient(client *http.Client) *RolesRolesListParams
- func NewRolesRolesListParamsWithTimeout(timeout time.Duration) *RolesRolesListParams
- func (o *RolesRolesListParams) SetContext(ctx context.Context)
- func (o *RolesRolesListParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesListParams) SetPage(page *int64)
- func (o *RolesRolesListParams) SetPageSize(pageSize *int64)
- func (o *RolesRolesListParams) SetSearch(search *string)
- func (o *RolesRolesListParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesListParams) WithContext(ctx context.Context) *RolesRolesListParams
- func (o *RolesRolesListParams) WithHTTPClient(client *http.Client) *RolesRolesListParams
- func (o *RolesRolesListParams) WithPage(page *int64) *RolesRolesListParams
- func (o *RolesRolesListParams) WithPageSize(pageSize *int64) *RolesRolesListParams
- func (o *RolesRolesListParams) WithSearch(search *string) *RolesRolesListParams
- func (o *RolesRolesListParams) WithTimeout(timeout time.Duration) *RolesRolesListParams
- func (o *RolesRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesListReader
- type RolesRolesParentsListOK
- type RolesRolesParentsListParams
- func NewRolesRolesParentsListParams() *RolesRolesParentsListParams
- func NewRolesRolesParentsListParamsWithContext(ctx context.Context) *RolesRolesParentsListParams
- func NewRolesRolesParentsListParamsWithHTTPClient(client *http.Client) *RolesRolesParentsListParams
- func NewRolesRolesParentsListParamsWithTimeout(timeout time.Duration) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) SetContext(ctx context.Context)
- func (o *RolesRolesParentsListParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesParentsListParams) SetID(id string)
- func (o *RolesRolesParentsListParams) SetPage(page *int64)
- func (o *RolesRolesParentsListParams) SetPageSize(pageSize *int64)
- func (o *RolesRolesParentsListParams) SetSearch(search *string)
- func (o *RolesRolesParentsListParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesParentsListParams) WithContext(ctx context.Context) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WithHTTPClient(client *http.Client) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WithID(id string) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WithPage(page *int64) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WithPageSize(pageSize *int64) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WithSearch(search *string) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WithTimeout(timeout time.Duration) *RolesRolesParentsListParams
- func (o *RolesRolesParentsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesParentsListReader
- type RolesRolesReadOK
- type RolesRolesReadParams
- func NewRolesRolesReadParams() *RolesRolesReadParams
- func NewRolesRolesReadParamsWithContext(ctx context.Context) *RolesRolesReadParams
- func NewRolesRolesReadParamsWithHTTPClient(client *http.Client) *RolesRolesReadParams
- func NewRolesRolesReadParamsWithTimeout(timeout time.Duration) *RolesRolesReadParams
- func (o *RolesRolesReadParams) SetContext(ctx context.Context)
- func (o *RolesRolesReadParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesReadParams) SetID(id string)
- func (o *RolesRolesReadParams) SetSearch(search *string)
- func (o *RolesRolesReadParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesReadParams) WithContext(ctx context.Context) *RolesRolesReadParams
- func (o *RolesRolesReadParams) WithHTTPClient(client *http.Client) *RolesRolesReadParams
- func (o *RolesRolesReadParams) WithID(id string) *RolesRolesReadParams
- func (o *RolesRolesReadParams) WithSearch(search *string) *RolesRolesReadParams
- func (o *RolesRolesReadParams) WithTimeout(timeout time.Duration) *RolesRolesReadParams
- func (o *RolesRolesReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesReadReader
- type RolesRolesTeamsCreateBadRequest
- type RolesRolesTeamsCreateCreated
- type RolesRolesTeamsCreateForbidden
- type RolesRolesTeamsCreateParams
- func NewRolesRolesTeamsCreateParams() *RolesRolesTeamsCreateParams
- func NewRolesRolesTeamsCreateParamsWithContext(ctx context.Context) *RolesRolesTeamsCreateParams
- func NewRolesRolesTeamsCreateParamsWithHTTPClient(client *http.Client) *RolesRolesTeamsCreateParams
- func NewRolesRolesTeamsCreateParamsWithTimeout(timeout time.Duration) *RolesRolesTeamsCreateParams
- func (o *RolesRolesTeamsCreateParams) SetContext(ctx context.Context)
- func (o *RolesRolesTeamsCreateParams) SetData(data interface{})
- func (o *RolesRolesTeamsCreateParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesTeamsCreateParams) SetID(id string)
- func (o *RolesRolesTeamsCreateParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesTeamsCreateParams) WithContext(ctx context.Context) *RolesRolesTeamsCreateParams
- func (o *RolesRolesTeamsCreateParams) WithData(data interface{}) *RolesRolesTeamsCreateParams
- func (o *RolesRolesTeamsCreateParams) WithHTTPClient(client *http.Client) *RolesRolesTeamsCreateParams
- func (o *RolesRolesTeamsCreateParams) WithID(id string) *RolesRolesTeamsCreateParams
- func (o *RolesRolesTeamsCreateParams) WithTimeout(timeout time.Duration) *RolesRolesTeamsCreateParams
- func (o *RolesRolesTeamsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesTeamsCreateReader
- type RolesRolesTeamsListOK
- type RolesRolesTeamsListParams
- func NewRolesRolesTeamsListParams() *RolesRolesTeamsListParams
- func NewRolesRolesTeamsListParamsWithContext(ctx context.Context) *RolesRolesTeamsListParams
- func NewRolesRolesTeamsListParamsWithHTTPClient(client *http.Client) *RolesRolesTeamsListParams
- func NewRolesRolesTeamsListParamsWithTimeout(timeout time.Duration) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) SetContext(ctx context.Context)
- func (o *RolesRolesTeamsListParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesTeamsListParams) SetID(id string)
- func (o *RolesRolesTeamsListParams) SetPage(page *int64)
- func (o *RolesRolesTeamsListParams) SetPageSize(pageSize *int64)
- func (o *RolesRolesTeamsListParams) SetSearch(search *string)
- func (o *RolesRolesTeamsListParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesTeamsListParams) WithContext(ctx context.Context) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WithHTTPClient(client *http.Client) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WithID(id string) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WithPage(page *int64) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WithPageSize(pageSize *int64) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WithSearch(search *string) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WithTimeout(timeout time.Duration) *RolesRolesTeamsListParams
- func (o *RolesRolesTeamsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesTeamsListReader
- type RolesRolesUsersCreateBadRequest
- type RolesRolesUsersCreateCreated
- type RolesRolesUsersCreateParams
- func NewRolesRolesUsersCreateParams() *RolesRolesUsersCreateParams
- func NewRolesRolesUsersCreateParamsWithContext(ctx context.Context) *RolesRolesUsersCreateParams
- func NewRolesRolesUsersCreateParamsWithHTTPClient(client *http.Client) *RolesRolesUsersCreateParams
- func NewRolesRolesUsersCreateParamsWithTimeout(timeout time.Duration) *RolesRolesUsersCreateParams
- func (o *RolesRolesUsersCreateParams) SetContext(ctx context.Context)
- func (o *RolesRolesUsersCreateParams) SetData(data interface{})
- func (o *RolesRolesUsersCreateParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesUsersCreateParams) SetID(id string)
- func (o *RolesRolesUsersCreateParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesUsersCreateParams) WithContext(ctx context.Context) *RolesRolesUsersCreateParams
- func (o *RolesRolesUsersCreateParams) WithData(data interface{}) *RolesRolesUsersCreateParams
- func (o *RolesRolesUsersCreateParams) WithHTTPClient(client *http.Client) *RolesRolesUsersCreateParams
- func (o *RolesRolesUsersCreateParams) WithID(id string) *RolesRolesUsersCreateParams
- func (o *RolesRolesUsersCreateParams) WithTimeout(timeout time.Duration) *RolesRolesUsersCreateParams
- func (o *RolesRolesUsersCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesUsersCreateReader
- type RolesRolesUsersListOK
- type RolesRolesUsersListParams
- func NewRolesRolesUsersListParams() *RolesRolesUsersListParams
- func NewRolesRolesUsersListParamsWithContext(ctx context.Context) *RolesRolesUsersListParams
- func NewRolesRolesUsersListParamsWithHTTPClient(client *http.Client) *RolesRolesUsersListParams
- func NewRolesRolesUsersListParamsWithTimeout(timeout time.Duration) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) SetContext(ctx context.Context)
- func (o *RolesRolesUsersListParams) SetHTTPClient(client *http.Client)
- func (o *RolesRolesUsersListParams) SetID(id string)
- func (o *RolesRolesUsersListParams) SetPage(page *int64)
- func (o *RolesRolesUsersListParams) SetPageSize(pageSize *int64)
- func (o *RolesRolesUsersListParams) SetSearch(search *string)
- func (o *RolesRolesUsersListParams) SetTimeout(timeout time.Duration)
- func (o *RolesRolesUsersListParams) WithContext(ctx context.Context) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WithHTTPClient(client *http.Client) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WithID(id string) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WithPage(page *int64) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WithPageSize(pageSize *int64) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WithSearch(search *string) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WithTimeout(timeout time.Duration) *RolesRolesUsersListParams
- func (o *RolesRolesUsersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RolesRolesUsersListReader
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 roles API
func (*Client) RolesRolesChildrenList ¶
func (a *Client) RolesRolesChildrenList(params *RolesRolesChildrenListParams) (*RolesRolesChildrenListOK, error)
RolesRolesChildrenList lists roles for a role
Make a GET request to this resource to retrieve a list of roles associated with the selected role.
The resulting data structure contains:
{ "count": 99, "next": null, "previous": null, "results": [ ... ] }
The `count` field indicates the total number of roles found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more role records.
## Results
Each role data structure includes the following fields:
* `id`: Database ID for this role. (integer) * `type`: Data type for this role. (choice) * `url`: URL for this role. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `name`: Name of this role. (field) * `description`: Optional description of this role. (field)
## Sorting
To specify that roles are returned in a particular order, use the `order_by` query string parameter on the GET request.
?order_by=name
Prefix the field name with a dash `-` to sort in reverse:
?order_by=-name
Multiple sorting fields may be specified by separating the field names with a comma `,`:
?order_by=name,some_other_field
## Pagination
Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.
?page_size=100&page=2
The `previous` and `next` links returned with the results will set these query string parameters automatically.
## Searching
Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.
?search=findme
(_Added in Ansible Tower 3.1.0_) Search across related fields:
?related__search=findme
func (*Client) RolesRolesList ¶
func (a *Client) RolesRolesList(params *RolesRolesListParams) (*RolesRolesListOK, error)
RolesRolesList lists roles
Make a GET request to this resource to retrieve the list of roles.
The resulting data structure contains:
{ "count": 99, "next": null, "previous": null, "results": [ ... ] }
The `count` field indicates the total number of roles found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more role records.
## Results
Each role data structure includes the following fields:
* `id`: Database ID for this role. (integer) * `type`: Data type for this role. (choice) * `url`: URL for this role. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `name`: Name of this role. (field) * `description`: Optional description of this role. (field)
## Sorting
To specify that roles are returned in a particular order, use the `order_by` query string parameter on the GET request.
?order_by=name
Prefix the field name with a dash `-` to sort in reverse:
?order_by=-name
Multiple sorting fields may be specified by separating the field names with a comma `,`:
?order_by=name,some_other_field
## Pagination
Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.
?page_size=100&page=2
The `previous` and `next` links returned with the results will set these query string parameters automatically.
## Searching
Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.
?search=findme
(_Added in Ansible Tower 3.1.0_) Search across related fields:
?related__search=findme
func (*Client) RolesRolesParentsList ¶
func (a *Client) RolesRolesParentsList(params *RolesRolesParentsListParams) (*RolesRolesParentsListOK, error)
RolesRolesParentsList lists roles for a role
Make a GET request to this resource to retrieve a list of roles associated with the selected role.
The resulting data structure contains:
{ "count": 99, "next": null, "previous": null, "results": [ ... ] }
The `count` field indicates the total number of roles found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more role records.
## Results
Each role data structure includes the following fields:
* `id`: Database ID for this role. (integer) * `type`: Data type for this role. (choice) * `url`: URL for this role. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `name`: Name of this role. (field) * `description`: Optional description of this role. (field)
## Sorting
To specify that roles are returned in a particular order, use the `order_by` query string parameter on the GET request.
?order_by=name
Prefix the field name with a dash `-` to sort in reverse:
?order_by=-name
Multiple sorting fields may be specified by separating the field names with a comma `,`:
?order_by=name,some_other_field
## Pagination
Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.
?page_size=100&page=2
The `previous` and `next` links returned with the results will set these query string parameters automatically.
## Searching
Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.
?search=findme
(_Added in Ansible Tower 3.1.0_) Search across related fields:
?related__search=findme
func (*Client) RolesRolesRead ¶
func (a *Client) RolesRolesRead(params *RolesRolesReadParams) (*RolesRolesReadOK, error)
RolesRolesRead retrieves a role
Make GET request to this resource to retrieve a single role record containing the following fields:
* `id`: Database ID for this role. (integer) * `type`: Data type for this role. (choice) * `url`: URL for this role. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `name`: Name of this role. (field) * `description`: Optional description of this role. (field)
func (*Client) RolesRolesTeamsCreate ¶
func (a *Client) RolesRolesTeamsCreate(params *RolesRolesTeamsCreateParams) (*RolesRolesTeamsCreateCreated, error)
RolesRolesTeamsCreate creates a team for a role
Make a POST request to this resource with the following team fields to create a new team associated with this role.
* `name`: Name of this team. (string, required) * `description`: Optional description of this team. (string, default=`""`) * `organization`: (id, required)
Add Teams for a Role: ¶
Make a POST request to this resource with only an `id` field to associate an existing team with this role.
Remove Teams from this Role: ¶
Make a POST request to this resource with `id` and `disassociate` fields to remove the team from this role
without deleting the team.
func (*Client) RolesRolesTeamsList ¶
func (a *Client) RolesRolesTeamsList(params *RolesRolesTeamsListParams) (*RolesRolesTeamsListOK, error)
RolesRolesTeamsList lists teams for a role
Make a GET request to this resource to retrieve a list of teams associated with the selected role.
The resulting data structure contains:
{ "count": 99, "next": null, "previous": null, "results": [ ... ] }
The `count` field indicates the total number of teams found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more team records.
## Results
Each team data structure includes the following fields:
* `id`: Database ID for this team. (integer) * `type`: Data type for this team. (choice) * `url`: URL for this team. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `created`: Timestamp when this team was created. (datetime) * `modified`: Timestamp when this team was last modified. (datetime) * `name`: Name of this team. (string) * `description`: Optional description of this team. (string) * `organization`: (id)
## Sorting
To specify that teams are returned in a particular order, use the `order_by` query string parameter on the GET request.
?order_by=name
Prefix the field name with a dash `-` to sort in reverse:
?order_by=-name
Multiple sorting fields may be specified by separating the field names with a comma `,`:
?order_by=name,some_other_field
## Pagination
Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.
?page_size=100&page=2
The `previous` and `next` links returned with the results will set these query string parameters automatically.
## Searching
Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.
?search=findme
(_Added in Ansible Tower 3.1.0_) Search across related fields:
?related__search=findme
func (*Client) RolesRolesUsersCreate ¶
func (a *Client) RolesRolesUsersCreate(params *RolesRolesUsersCreateParams) (*RolesRolesUsersCreateCreated, error)
RolesRolesUsersCreate creates a user for a role
Make a POST request to this resource with the following user fields to create a new user associated with this role.
* `username`: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. (string, required) * `first_name`: (string, default=`""`) * `last_name`: (string, default=`""`) * `email`: (string, default=`""`) * `is_superuser`: Designates that this user has all permissions without explicitly assigning them. (boolean, default=`False`) * `is_system_auditor`: (boolean, default=`False`) * `password`: Write-only field used to change the password. (string, default=`""`)
Add Users for a Role: ¶
Make a POST request to this resource with only an `id` field to associate an existing user with this role.
Remove Users from this Role: ¶
Make a POST request to this resource with `id` and `disassociate` fields to remove the user from this role
without deleting the user.
func (*Client) RolesRolesUsersList ¶
func (a *Client) RolesRolesUsersList(params *RolesRolesUsersListParams) (*RolesRolesUsersListOK, error)
RolesRolesUsersList lists users for a role
Make a GET request to this resource to retrieve a list of users associated with the selected role.
The resulting data structure contains:
{ "count": 99, "next": null, "previous": null, "results": [ ... ] }
The `count` field indicates the total number of users found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more user records.
## Results
Each user data structure includes the following fields:
* `id`: Database ID for this user. (integer) * `type`: Data type for this user. (choice) * `url`: URL for this user. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `created`: Timestamp when this user was created. (datetime) * `username`: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. (string) * `first_name`: (string) * `last_name`: (string) * `email`: (string) * `is_superuser`: Designates that this user has all permissions without explicitly assigning them. (boolean) * `is_system_auditor`: (boolean)
* `ldap_dn`: (string) * `last_login`: (datetime) * `external_account`: Set if the account is managed by an external service (field)
## Sorting
To specify that users are returned in a particular order, use the `order_by` query string parameter on the GET request.
?order_by=username
Prefix the field name with a dash `-` to sort in reverse:
?order_by=-username
Multiple sorting fields may be specified by separating the field names with a comma `,`:
?order_by=username,some_other_field
## Pagination
Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.
?page_size=100&page=2
The `previous` and `next` links returned with the results will set these query string parameters automatically.
## Searching
Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.
?search=findme
(_Added in Ansible Tower 3.1.0_) Search across related fields:
?related__search=findme
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { RolesRolesChildrenList(params *RolesRolesChildrenListParams) (*RolesRolesChildrenListOK, error) RolesRolesList(params *RolesRolesListParams) (*RolesRolesListOK, error) RolesRolesParentsList(params *RolesRolesParentsListParams) (*RolesRolesParentsListOK, error) RolesRolesRead(params *RolesRolesReadParams) (*RolesRolesReadOK, error) RolesRolesTeamsCreate(params *RolesRolesTeamsCreateParams) (*RolesRolesTeamsCreateCreated, error) RolesRolesTeamsList(params *RolesRolesTeamsListParams) (*RolesRolesTeamsListOK, error) RolesRolesUsersCreate(params *RolesRolesUsersCreateParams) (*RolesRolesUsersCreateCreated, error) RolesRolesUsersList(params *RolesRolesUsersListParams) (*RolesRolesUsersListOK, 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.
type RolesRolesChildrenListOK ¶
type RolesRolesChildrenListOK struct { }
RolesRolesChildrenListOK handles this case with default header values.
OK
func NewRolesRolesChildrenListOK ¶
func NewRolesRolesChildrenListOK() *RolesRolesChildrenListOK
NewRolesRolesChildrenListOK creates a RolesRolesChildrenListOK with default headers values
func (*RolesRolesChildrenListOK) Error ¶
func (o *RolesRolesChildrenListOK) Error() string
type RolesRolesChildrenListParams ¶
type RolesRolesChildrenListParams struct { /*ID*/ ID string /*Page A page number within the paginated result set. */ Page *int64 /*PageSize Number of results to return per page. */ PageSize *int64 /*Search A search term. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesChildrenListParams contains all the parameters to send to the API endpoint for the roles roles children list operation typically these are written to a http.Request
func NewRolesRolesChildrenListParams ¶
func NewRolesRolesChildrenListParams() *RolesRolesChildrenListParams
NewRolesRolesChildrenListParams creates a new RolesRolesChildrenListParams object with the default values initialized.
func NewRolesRolesChildrenListParamsWithContext ¶
func NewRolesRolesChildrenListParamsWithContext(ctx context.Context) *RolesRolesChildrenListParams
NewRolesRolesChildrenListParamsWithContext creates a new RolesRolesChildrenListParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesChildrenListParamsWithHTTPClient ¶
func NewRolesRolesChildrenListParamsWithHTTPClient(client *http.Client) *RolesRolesChildrenListParams
NewRolesRolesChildrenListParamsWithHTTPClient creates a new RolesRolesChildrenListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesChildrenListParamsWithTimeout ¶
func NewRolesRolesChildrenListParamsWithTimeout(timeout time.Duration) *RolesRolesChildrenListParams
NewRolesRolesChildrenListParamsWithTimeout creates a new RolesRolesChildrenListParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesChildrenListParams) SetContext ¶
func (o *RolesRolesChildrenListParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles children list params
func (*RolesRolesChildrenListParams) SetHTTPClient ¶
func (o *RolesRolesChildrenListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles children list params
func (*RolesRolesChildrenListParams) SetID ¶
func (o *RolesRolesChildrenListParams) SetID(id string)
SetID adds the id to the roles roles children list params
func (*RolesRolesChildrenListParams) SetPage ¶
func (o *RolesRolesChildrenListParams) SetPage(page *int64)
SetPage adds the page to the roles roles children list params
func (*RolesRolesChildrenListParams) SetPageSize ¶
func (o *RolesRolesChildrenListParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the roles roles children list params
func (*RolesRolesChildrenListParams) SetSearch ¶
func (o *RolesRolesChildrenListParams) SetSearch(search *string)
SetSearch adds the search to the roles roles children list params
func (*RolesRolesChildrenListParams) SetTimeout ¶
func (o *RolesRolesChildrenListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles children list params
func (*RolesRolesChildrenListParams) WithContext ¶
func (o *RolesRolesChildrenListParams) WithContext(ctx context.Context) *RolesRolesChildrenListParams
WithContext adds the context to the roles roles children list params
func (*RolesRolesChildrenListParams) WithHTTPClient ¶
func (o *RolesRolesChildrenListParams) WithHTTPClient(client *http.Client) *RolesRolesChildrenListParams
WithHTTPClient adds the HTTPClient to the roles roles children list params
func (*RolesRolesChildrenListParams) WithID ¶
func (o *RolesRolesChildrenListParams) WithID(id string) *RolesRolesChildrenListParams
WithID adds the id to the roles roles children list params
func (*RolesRolesChildrenListParams) WithPage ¶
func (o *RolesRolesChildrenListParams) WithPage(page *int64) *RolesRolesChildrenListParams
WithPage adds the page to the roles roles children list params
func (*RolesRolesChildrenListParams) WithPageSize ¶
func (o *RolesRolesChildrenListParams) WithPageSize(pageSize *int64) *RolesRolesChildrenListParams
WithPageSize adds the pageSize to the roles roles children list params
func (*RolesRolesChildrenListParams) WithSearch ¶
func (o *RolesRolesChildrenListParams) WithSearch(search *string) *RolesRolesChildrenListParams
WithSearch adds the search to the roles roles children list params
func (*RolesRolesChildrenListParams) WithTimeout ¶
func (o *RolesRolesChildrenListParams) WithTimeout(timeout time.Duration) *RolesRolesChildrenListParams
WithTimeout adds the timeout to the roles roles children list params
func (*RolesRolesChildrenListParams) WriteToRequest ¶
func (o *RolesRolesChildrenListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesChildrenListReader ¶
type RolesRolesChildrenListReader struct {
// contains filtered or unexported fields
}
RolesRolesChildrenListReader is a Reader for the RolesRolesChildrenList structure.
func (*RolesRolesChildrenListReader) ReadResponse ¶
func (o *RolesRolesChildrenListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesListOK ¶
type RolesRolesListOK struct { }
RolesRolesListOK handles this case with default header values.
OK
func NewRolesRolesListOK ¶
func NewRolesRolesListOK() *RolesRolesListOK
NewRolesRolesListOK creates a RolesRolesListOK with default headers values
func (*RolesRolesListOK) Error ¶
func (o *RolesRolesListOK) Error() string
type RolesRolesListParams ¶
type RolesRolesListParams struct { /*Page A page number within the paginated result set. */ Page *int64 /*PageSize Number of results to return per page. */ PageSize *int64 /*Search A search term. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesListParams contains all the parameters to send to the API endpoint for the roles roles list operation typically these are written to a http.Request
func NewRolesRolesListParams ¶
func NewRolesRolesListParams() *RolesRolesListParams
NewRolesRolesListParams creates a new RolesRolesListParams object with the default values initialized.
func NewRolesRolesListParamsWithContext ¶
func NewRolesRolesListParamsWithContext(ctx context.Context) *RolesRolesListParams
NewRolesRolesListParamsWithContext creates a new RolesRolesListParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesListParamsWithHTTPClient ¶
func NewRolesRolesListParamsWithHTTPClient(client *http.Client) *RolesRolesListParams
NewRolesRolesListParamsWithHTTPClient creates a new RolesRolesListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesListParamsWithTimeout ¶
func NewRolesRolesListParamsWithTimeout(timeout time.Duration) *RolesRolesListParams
NewRolesRolesListParamsWithTimeout creates a new RolesRolesListParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesListParams) SetContext ¶
func (o *RolesRolesListParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles list params
func (*RolesRolesListParams) SetHTTPClient ¶
func (o *RolesRolesListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles list params
func (*RolesRolesListParams) SetPage ¶
func (o *RolesRolesListParams) SetPage(page *int64)
SetPage adds the page to the roles roles list params
func (*RolesRolesListParams) SetPageSize ¶
func (o *RolesRolesListParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the roles roles list params
func (*RolesRolesListParams) SetSearch ¶
func (o *RolesRolesListParams) SetSearch(search *string)
SetSearch adds the search to the roles roles list params
func (*RolesRolesListParams) SetTimeout ¶
func (o *RolesRolesListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles list params
func (*RolesRolesListParams) WithContext ¶
func (o *RolesRolesListParams) WithContext(ctx context.Context) *RolesRolesListParams
WithContext adds the context to the roles roles list params
func (*RolesRolesListParams) WithHTTPClient ¶
func (o *RolesRolesListParams) WithHTTPClient(client *http.Client) *RolesRolesListParams
WithHTTPClient adds the HTTPClient to the roles roles list params
func (*RolesRolesListParams) WithPage ¶
func (o *RolesRolesListParams) WithPage(page *int64) *RolesRolesListParams
WithPage adds the page to the roles roles list params
func (*RolesRolesListParams) WithPageSize ¶
func (o *RolesRolesListParams) WithPageSize(pageSize *int64) *RolesRolesListParams
WithPageSize adds the pageSize to the roles roles list params
func (*RolesRolesListParams) WithSearch ¶
func (o *RolesRolesListParams) WithSearch(search *string) *RolesRolesListParams
WithSearch adds the search to the roles roles list params
func (*RolesRolesListParams) WithTimeout ¶
func (o *RolesRolesListParams) WithTimeout(timeout time.Duration) *RolesRolesListParams
WithTimeout adds the timeout to the roles roles list params
func (*RolesRolesListParams) WriteToRequest ¶
func (o *RolesRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesListReader ¶
type RolesRolesListReader struct {
// contains filtered or unexported fields
}
RolesRolesListReader is a Reader for the RolesRolesList structure.
func (*RolesRolesListReader) ReadResponse ¶
func (o *RolesRolesListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesParentsListOK ¶
type RolesRolesParentsListOK struct { }
RolesRolesParentsListOK handles this case with default header values.
OK
func NewRolesRolesParentsListOK ¶
func NewRolesRolesParentsListOK() *RolesRolesParentsListOK
NewRolesRolesParentsListOK creates a RolesRolesParentsListOK with default headers values
func (*RolesRolesParentsListOK) Error ¶
func (o *RolesRolesParentsListOK) Error() string
type RolesRolesParentsListParams ¶
type RolesRolesParentsListParams struct { /*ID*/ ID string /*Page A page number within the paginated result set. */ Page *int64 /*PageSize Number of results to return per page. */ PageSize *int64 /*Search A search term. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesParentsListParams contains all the parameters to send to the API endpoint for the roles roles parents list operation typically these are written to a http.Request
func NewRolesRolesParentsListParams ¶
func NewRolesRolesParentsListParams() *RolesRolesParentsListParams
NewRolesRolesParentsListParams creates a new RolesRolesParentsListParams object with the default values initialized.
func NewRolesRolesParentsListParamsWithContext ¶
func NewRolesRolesParentsListParamsWithContext(ctx context.Context) *RolesRolesParentsListParams
NewRolesRolesParentsListParamsWithContext creates a new RolesRolesParentsListParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesParentsListParamsWithHTTPClient ¶
func NewRolesRolesParentsListParamsWithHTTPClient(client *http.Client) *RolesRolesParentsListParams
NewRolesRolesParentsListParamsWithHTTPClient creates a new RolesRolesParentsListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesParentsListParamsWithTimeout ¶
func NewRolesRolesParentsListParamsWithTimeout(timeout time.Duration) *RolesRolesParentsListParams
NewRolesRolesParentsListParamsWithTimeout creates a new RolesRolesParentsListParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesParentsListParams) SetContext ¶
func (o *RolesRolesParentsListParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles parents list params
func (*RolesRolesParentsListParams) SetHTTPClient ¶
func (o *RolesRolesParentsListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles parents list params
func (*RolesRolesParentsListParams) SetID ¶
func (o *RolesRolesParentsListParams) SetID(id string)
SetID adds the id to the roles roles parents list params
func (*RolesRolesParentsListParams) SetPage ¶
func (o *RolesRolesParentsListParams) SetPage(page *int64)
SetPage adds the page to the roles roles parents list params
func (*RolesRolesParentsListParams) SetPageSize ¶
func (o *RolesRolesParentsListParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the roles roles parents list params
func (*RolesRolesParentsListParams) SetSearch ¶
func (o *RolesRolesParentsListParams) SetSearch(search *string)
SetSearch adds the search to the roles roles parents list params
func (*RolesRolesParentsListParams) SetTimeout ¶
func (o *RolesRolesParentsListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles parents list params
func (*RolesRolesParentsListParams) WithContext ¶
func (o *RolesRolesParentsListParams) WithContext(ctx context.Context) *RolesRolesParentsListParams
WithContext adds the context to the roles roles parents list params
func (*RolesRolesParentsListParams) WithHTTPClient ¶
func (o *RolesRolesParentsListParams) WithHTTPClient(client *http.Client) *RolesRolesParentsListParams
WithHTTPClient adds the HTTPClient to the roles roles parents list params
func (*RolesRolesParentsListParams) WithID ¶
func (o *RolesRolesParentsListParams) WithID(id string) *RolesRolesParentsListParams
WithID adds the id to the roles roles parents list params
func (*RolesRolesParentsListParams) WithPage ¶
func (o *RolesRolesParentsListParams) WithPage(page *int64) *RolesRolesParentsListParams
WithPage adds the page to the roles roles parents list params
func (*RolesRolesParentsListParams) WithPageSize ¶
func (o *RolesRolesParentsListParams) WithPageSize(pageSize *int64) *RolesRolesParentsListParams
WithPageSize adds the pageSize to the roles roles parents list params
func (*RolesRolesParentsListParams) WithSearch ¶
func (o *RolesRolesParentsListParams) WithSearch(search *string) *RolesRolesParentsListParams
WithSearch adds the search to the roles roles parents list params
func (*RolesRolesParentsListParams) WithTimeout ¶
func (o *RolesRolesParentsListParams) WithTimeout(timeout time.Duration) *RolesRolesParentsListParams
WithTimeout adds the timeout to the roles roles parents list params
func (*RolesRolesParentsListParams) WriteToRequest ¶
func (o *RolesRolesParentsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesParentsListReader ¶
type RolesRolesParentsListReader struct {
// contains filtered or unexported fields
}
RolesRolesParentsListReader is a Reader for the RolesRolesParentsList structure.
func (*RolesRolesParentsListReader) ReadResponse ¶
func (o *RolesRolesParentsListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesReadOK ¶
type RolesRolesReadOK struct { }
RolesRolesReadOK handles this case with default header values.
OK
func NewRolesRolesReadOK ¶
func NewRolesRolesReadOK() *RolesRolesReadOK
NewRolesRolesReadOK creates a RolesRolesReadOK with default headers values
func (*RolesRolesReadOK) Error ¶
func (o *RolesRolesReadOK) Error() string
type RolesRolesReadParams ¶
type RolesRolesReadParams struct { /*ID*/ ID string /*Search A search term. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesReadParams contains all the parameters to send to the API endpoint for the roles roles read operation typically these are written to a http.Request
func NewRolesRolesReadParams ¶
func NewRolesRolesReadParams() *RolesRolesReadParams
NewRolesRolesReadParams creates a new RolesRolesReadParams object with the default values initialized.
func NewRolesRolesReadParamsWithContext ¶
func NewRolesRolesReadParamsWithContext(ctx context.Context) *RolesRolesReadParams
NewRolesRolesReadParamsWithContext creates a new RolesRolesReadParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesReadParamsWithHTTPClient ¶
func NewRolesRolesReadParamsWithHTTPClient(client *http.Client) *RolesRolesReadParams
NewRolesRolesReadParamsWithHTTPClient creates a new RolesRolesReadParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesReadParamsWithTimeout ¶
func NewRolesRolesReadParamsWithTimeout(timeout time.Duration) *RolesRolesReadParams
NewRolesRolesReadParamsWithTimeout creates a new RolesRolesReadParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesReadParams) SetContext ¶
func (o *RolesRolesReadParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles read params
func (*RolesRolesReadParams) SetHTTPClient ¶
func (o *RolesRolesReadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles read params
func (*RolesRolesReadParams) SetID ¶
func (o *RolesRolesReadParams) SetID(id string)
SetID adds the id to the roles roles read params
func (*RolesRolesReadParams) SetSearch ¶
func (o *RolesRolesReadParams) SetSearch(search *string)
SetSearch adds the search to the roles roles read params
func (*RolesRolesReadParams) SetTimeout ¶
func (o *RolesRolesReadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles read params
func (*RolesRolesReadParams) WithContext ¶
func (o *RolesRolesReadParams) WithContext(ctx context.Context) *RolesRolesReadParams
WithContext adds the context to the roles roles read params
func (*RolesRolesReadParams) WithHTTPClient ¶
func (o *RolesRolesReadParams) WithHTTPClient(client *http.Client) *RolesRolesReadParams
WithHTTPClient adds the HTTPClient to the roles roles read params
func (*RolesRolesReadParams) WithID ¶
func (o *RolesRolesReadParams) WithID(id string) *RolesRolesReadParams
WithID adds the id to the roles roles read params
func (*RolesRolesReadParams) WithSearch ¶
func (o *RolesRolesReadParams) WithSearch(search *string) *RolesRolesReadParams
WithSearch adds the search to the roles roles read params
func (*RolesRolesReadParams) WithTimeout ¶
func (o *RolesRolesReadParams) WithTimeout(timeout time.Duration) *RolesRolesReadParams
WithTimeout adds the timeout to the roles roles read params
func (*RolesRolesReadParams) WriteToRequest ¶
func (o *RolesRolesReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesReadReader ¶
type RolesRolesReadReader struct {
// contains filtered or unexported fields
}
RolesRolesReadReader is a Reader for the RolesRolesRead structure.
func (*RolesRolesReadReader) ReadResponse ¶
func (o *RolesRolesReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesTeamsCreateBadRequest ¶
type RolesRolesTeamsCreateBadRequest struct { }
RolesRolesTeamsCreateBadRequest handles this case with default header values.
Bad Request
func NewRolesRolesTeamsCreateBadRequest ¶
func NewRolesRolesTeamsCreateBadRequest() *RolesRolesTeamsCreateBadRequest
NewRolesRolesTeamsCreateBadRequest creates a RolesRolesTeamsCreateBadRequest with default headers values
func (*RolesRolesTeamsCreateBadRequest) Error ¶
func (o *RolesRolesTeamsCreateBadRequest) Error() string
type RolesRolesTeamsCreateCreated ¶
type RolesRolesTeamsCreateCreated struct { }
RolesRolesTeamsCreateCreated handles this case with default header values.
RolesRolesTeamsCreateCreated roles roles teams create created
func NewRolesRolesTeamsCreateCreated ¶
func NewRolesRolesTeamsCreateCreated() *RolesRolesTeamsCreateCreated
NewRolesRolesTeamsCreateCreated creates a RolesRolesTeamsCreateCreated with default headers values
func (*RolesRolesTeamsCreateCreated) Error ¶
func (o *RolesRolesTeamsCreateCreated) Error() string
type RolesRolesTeamsCreateForbidden ¶
type RolesRolesTeamsCreateForbidden struct { }
RolesRolesTeamsCreateForbidden handles this case with default header values.
No Permission Response
func NewRolesRolesTeamsCreateForbidden ¶
func NewRolesRolesTeamsCreateForbidden() *RolesRolesTeamsCreateForbidden
NewRolesRolesTeamsCreateForbidden creates a RolesRolesTeamsCreateForbidden with default headers values
func (*RolesRolesTeamsCreateForbidden) Error ¶
func (o *RolesRolesTeamsCreateForbidden) Error() string
type RolesRolesTeamsCreateParams ¶
type RolesRolesTeamsCreateParams struct { /*Data*/ Data interface{} /*ID*/ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesTeamsCreateParams contains all the parameters to send to the API endpoint for the roles roles teams create operation typically these are written to a http.Request
func NewRolesRolesTeamsCreateParams ¶
func NewRolesRolesTeamsCreateParams() *RolesRolesTeamsCreateParams
NewRolesRolesTeamsCreateParams creates a new RolesRolesTeamsCreateParams object with the default values initialized.
func NewRolesRolesTeamsCreateParamsWithContext ¶
func NewRolesRolesTeamsCreateParamsWithContext(ctx context.Context) *RolesRolesTeamsCreateParams
NewRolesRolesTeamsCreateParamsWithContext creates a new RolesRolesTeamsCreateParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesTeamsCreateParamsWithHTTPClient ¶
func NewRolesRolesTeamsCreateParamsWithHTTPClient(client *http.Client) *RolesRolesTeamsCreateParams
NewRolesRolesTeamsCreateParamsWithHTTPClient creates a new RolesRolesTeamsCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesTeamsCreateParamsWithTimeout ¶
func NewRolesRolesTeamsCreateParamsWithTimeout(timeout time.Duration) *RolesRolesTeamsCreateParams
NewRolesRolesTeamsCreateParamsWithTimeout creates a new RolesRolesTeamsCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesTeamsCreateParams) SetContext ¶
func (o *RolesRolesTeamsCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) SetData ¶
func (o *RolesRolesTeamsCreateParams) SetData(data interface{})
SetData adds the data to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) SetHTTPClient ¶
func (o *RolesRolesTeamsCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) SetID ¶
func (o *RolesRolesTeamsCreateParams) SetID(id string)
SetID adds the id to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) SetTimeout ¶
func (o *RolesRolesTeamsCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) WithContext ¶
func (o *RolesRolesTeamsCreateParams) WithContext(ctx context.Context) *RolesRolesTeamsCreateParams
WithContext adds the context to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) WithData ¶
func (o *RolesRolesTeamsCreateParams) WithData(data interface{}) *RolesRolesTeamsCreateParams
WithData adds the data to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) WithHTTPClient ¶
func (o *RolesRolesTeamsCreateParams) WithHTTPClient(client *http.Client) *RolesRolesTeamsCreateParams
WithHTTPClient adds the HTTPClient to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) WithID ¶
func (o *RolesRolesTeamsCreateParams) WithID(id string) *RolesRolesTeamsCreateParams
WithID adds the id to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) WithTimeout ¶
func (o *RolesRolesTeamsCreateParams) WithTimeout(timeout time.Duration) *RolesRolesTeamsCreateParams
WithTimeout adds the timeout to the roles roles teams create params
func (*RolesRolesTeamsCreateParams) WriteToRequest ¶
func (o *RolesRolesTeamsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesTeamsCreateReader ¶
type RolesRolesTeamsCreateReader struct {
// contains filtered or unexported fields
}
RolesRolesTeamsCreateReader is a Reader for the RolesRolesTeamsCreate structure.
func (*RolesRolesTeamsCreateReader) ReadResponse ¶
func (o *RolesRolesTeamsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesTeamsListOK ¶
type RolesRolesTeamsListOK struct { }
RolesRolesTeamsListOK handles this case with default header values.
OK
func NewRolesRolesTeamsListOK ¶
func NewRolesRolesTeamsListOK() *RolesRolesTeamsListOK
NewRolesRolesTeamsListOK creates a RolesRolesTeamsListOK with default headers values
func (*RolesRolesTeamsListOK) Error ¶
func (o *RolesRolesTeamsListOK) Error() string
type RolesRolesTeamsListParams ¶
type RolesRolesTeamsListParams struct { /*ID*/ ID string /*Page A page number within the paginated result set. */ Page *int64 /*PageSize Number of results to return per page. */ PageSize *int64 /*Search A search term. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesTeamsListParams contains all the parameters to send to the API endpoint for the roles roles teams list operation typically these are written to a http.Request
func NewRolesRolesTeamsListParams ¶
func NewRolesRolesTeamsListParams() *RolesRolesTeamsListParams
NewRolesRolesTeamsListParams creates a new RolesRolesTeamsListParams object with the default values initialized.
func NewRolesRolesTeamsListParamsWithContext ¶
func NewRolesRolesTeamsListParamsWithContext(ctx context.Context) *RolesRolesTeamsListParams
NewRolesRolesTeamsListParamsWithContext creates a new RolesRolesTeamsListParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesTeamsListParamsWithHTTPClient ¶
func NewRolesRolesTeamsListParamsWithHTTPClient(client *http.Client) *RolesRolesTeamsListParams
NewRolesRolesTeamsListParamsWithHTTPClient creates a new RolesRolesTeamsListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesTeamsListParamsWithTimeout ¶
func NewRolesRolesTeamsListParamsWithTimeout(timeout time.Duration) *RolesRolesTeamsListParams
NewRolesRolesTeamsListParamsWithTimeout creates a new RolesRolesTeamsListParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesTeamsListParams) SetContext ¶
func (o *RolesRolesTeamsListParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles teams list params
func (*RolesRolesTeamsListParams) SetHTTPClient ¶
func (o *RolesRolesTeamsListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles teams list params
func (*RolesRolesTeamsListParams) SetID ¶
func (o *RolesRolesTeamsListParams) SetID(id string)
SetID adds the id to the roles roles teams list params
func (*RolesRolesTeamsListParams) SetPage ¶
func (o *RolesRolesTeamsListParams) SetPage(page *int64)
SetPage adds the page to the roles roles teams list params
func (*RolesRolesTeamsListParams) SetPageSize ¶
func (o *RolesRolesTeamsListParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the roles roles teams list params
func (*RolesRolesTeamsListParams) SetSearch ¶
func (o *RolesRolesTeamsListParams) SetSearch(search *string)
SetSearch adds the search to the roles roles teams list params
func (*RolesRolesTeamsListParams) SetTimeout ¶
func (o *RolesRolesTeamsListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithContext ¶
func (o *RolesRolesTeamsListParams) WithContext(ctx context.Context) *RolesRolesTeamsListParams
WithContext adds the context to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithHTTPClient ¶
func (o *RolesRolesTeamsListParams) WithHTTPClient(client *http.Client) *RolesRolesTeamsListParams
WithHTTPClient adds the HTTPClient to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithID ¶
func (o *RolesRolesTeamsListParams) WithID(id string) *RolesRolesTeamsListParams
WithID adds the id to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithPage ¶
func (o *RolesRolesTeamsListParams) WithPage(page *int64) *RolesRolesTeamsListParams
WithPage adds the page to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithPageSize ¶
func (o *RolesRolesTeamsListParams) WithPageSize(pageSize *int64) *RolesRolesTeamsListParams
WithPageSize adds the pageSize to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithSearch ¶
func (o *RolesRolesTeamsListParams) WithSearch(search *string) *RolesRolesTeamsListParams
WithSearch adds the search to the roles roles teams list params
func (*RolesRolesTeamsListParams) WithTimeout ¶
func (o *RolesRolesTeamsListParams) WithTimeout(timeout time.Duration) *RolesRolesTeamsListParams
WithTimeout adds the timeout to the roles roles teams list params
func (*RolesRolesTeamsListParams) WriteToRequest ¶
func (o *RolesRolesTeamsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesTeamsListReader ¶
type RolesRolesTeamsListReader struct {
// contains filtered or unexported fields
}
RolesRolesTeamsListReader is a Reader for the RolesRolesTeamsList structure.
func (*RolesRolesTeamsListReader) ReadResponse ¶
func (o *RolesRolesTeamsListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesUsersCreateBadRequest ¶
type RolesRolesUsersCreateBadRequest struct { }
RolesRolesUsersCreateBadRequest handles this case with default header values.
Bad Request
func NewRolesRolesUsersCreateBadRequest ¶
func NewRolesRolesUsersCreateBadRequest() *RolesRolesUsersCreateBadRequest
NewRolesRolesUsersCreateBadRequest creates a RolesRolesUsersCreateBadRequest with default headers values
func (*RolesRolesUsersCreateBadRequest) Error ¶
func (o *RolesRolesUsersCreateBadRequest) Error() string
type RolesRolesUsersCreateCreated ¶
type RolesRolesUsersCreateCreated struct { }
RolesRolesUsersCreateCreated handles this case with default header values.
RolesRolesUsersCreateCreated roles roles users create created
func NewRolesRolesUsersCreateCreated ¶
func NewRolesRolesUsersCreateCreated() *RolesRolesUsersCreateCreated
NewRolesRolesUsersCreateCreated creates a RolesRolesUsersCreateCreated with default headers values
func (*RolesRolesUsersCreateCreated) Error ¶
func (o *RolesRolesUsersCreateCreated) Error() string
type RolesRolesUsersCreateParams ¶
type RolesRolesUsersCreateParams struct { /*Data*/ Data interface{} /*ID*/ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesUsersCreateParams contains all the parameters to send to the API endpoint for the roles roles users create operation typically these are written to a http.Request
func NewRolesRolesUsersCreateParams ¶
func NewRolesRolesUsersCreateParams() *RolesRolesUsersCreateParams
NewRolesRolesUsersCreateParams creates a new RolesRolesUsersCreateParams object with the default values initialized.
func NewRolesRolesUsersCreateParamsWithContext ¶
func NewRolesRolesUsersCreateParamsWithContext(ctx context.Context) *RolesRolesUsersCreateParams
NewRolesRolesUsersCreateParamsWithContext creates a new RolesRolesUsersCreateParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesUsersCreateParamsWithHTTPClient ¶
func NewRolesRolesUsersCreateParamsWithHTTPClient(client *http.Client) *RolesRolesUsersCreateParams
NewRolesRolesUsersCreateParamsWithHTTPClient creates a new RolesRolesUsersCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesUsersCreateParamsWithTimeout ¶
func NewRolesRolesUsersCreateParamsWithTimeout(timeout time.Duration) *RolesRolesUsersCreateParams
NewRolesRolesUsersCreateParamsWithTimeout creates a new RolesRolesUsersCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesUsersCreateParams) SetContext ¶
func (o *RolesRolesUsersCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles users create params
func (*RolesRolesUsersCreateParams) SetData ¶
func (o *RolesRolesUsersCreateParams) SetData(data interface{})
SetData adds the data to the roles roles users create params
func (*RolesRolesUsersCreateParams) SetHTTPClient ¶
func (o *RolesRolesUsersCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles users create params
func (*RolesRolesUsersCreateParams) SetID ¶
func (o *RolesRolesUsersCreateParams) SetID(id string)
SetID adds the id to the roles roles users create params
func (*RolesRolesUsersCreateParams) SetTimeout ¶
func (o *RolesRolesUsersCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles users create params
func (*RolesRolesUsersCreateParams) WithContext ¶
func (o *RolesRolesUsersCreateParams) WithContext(ctx context.Context) *RolesRolesUsersCreateParams
WithContext adds the context to the roles roles users create params
func (*RolesRolesUsersCreateParams) WithData ¶
func (o *RolesRolesUsersCreateParams) WithData(data interface{}) *RolesRolesUsersCreateParams
WithData adds the data to the roles roles users create params
func (*RolesRolesUsersCreateParams) WithHTTPClient ¶
func (o *RolesRolesUsersCreateParams) WithHTTPClient(client *http.Client) *RolesRolesUsersCreateParams
WithHTTPClient adds the HTTPClient to the roles roles users create params
func (*RolesRolesUsersCreateParams) WithID ¶
func (o *RolesRolesUsersCreateParams) WithID(id string) *RolesRolesUsersCreateParams
WithID adds the id to the roles roles users create params
func (*RolesRolesUsersCreateParams) WithTimeout ¶
func (o *RolesRolesUsersCreateParams) WithTimeout(timeout time.Duration) *RolesRolesUsersCreateParams
WithTimeout adds the timeout to the roles roles users create params
func (*RolesRolesUsersCreateParams) WriteToRequest ¶
func (o *RolesRolesUsersCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesUsersCreateReader ¶
type RolesRolesUsersCreateReader struct {
// contains filtered or unexported fields
}
RolesRolesUsersCreateReader is a Reader for the RolesRolesUsersCreate structure.
func (*RolesRolesUsersCreateReader) ReadResponse ¶
func (o *RolesRolesUsersCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RolesRolesUsersListOK ¶
type RolesRolesUsersListOK struct { }
RolesRolesUsersListOK handles this case with default header values.
OK
func NewRolesRolesUsersListOK ¶
func NewRolesRolesUsersListOK() *RolesRolesUsersListOK
NewRolesRolesUsersListOK creates a RolesRolesUsersListOK with default headers values
func (*RolesRolesUsersListOK) Error ¶
func (o *RolesRolesUsersListOK) Error() string
type RolesRolesUsersListParams ¶
type RolesRolesUsersListParams struct { /*ID*/ ID string /*Page A page number within the paginated result set. */ Page *int64 /*PageSize Number of results to return per page. */ PageSize *int64 /*Search A search term. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RolesRolesUsersListParams contains all the parameters to send to the API endpoint for the roles roles users list operation typically these are written to a http.Request
func NewRolesRolesUsersListParams ¶
func NewRolesRolesUsersListParams() *RolesRolesUsersListParams
NewRolesRolesUsersListParams creates a new RolesRolesUsersListParams object with the default values initialized.
func NewRolesRolesUsersListParamsWithContext ¶
func NewRolesRolesUsersListParamsWithContext(ctx context.Context) *RolesRolesUsersListParams
NewRolesRolesUsersListParamsWithContext creates a new RolesRolesUsersListParams object with the default values initialized, and the ability to set a context for a request
func NewRolesRolesUsersListParamsWithHTTPClient ¶
func NewRolesRolesUsersListParamsWithHTTPClient(client *http.Client) *RolesRolesUsersListParams
NewRolesRolesUsersListParamsWithHTTPClient creates a new RolesRolesUsersListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRolesRolesUsersListParamsWithTimeout ¶
func NewRolesRolesUsersListParamsWithTimeout(timeout time.Duration) *RolesRolesUsersListParams
NewRolesRolesUsersListParamsWithTimeout creates a new RolesRolesUsersListParams object with the default values initialized, and the ability to set a timeout on a request
func (*RolesRolesUsersListParams) SetContext ¶
func (o *RolesRolesUsersListParams) SetContext(ctx context.Context)
SetContext adds the context to the roles roles users list params
func (*RolesRolesUsersListParams) SetHTTPClient ¶
func (o *RolesRolesUsersListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the roles roles users list params
func (*RolesRolesUsersListParams) SetID ¶
func (o *RolesRolesUsersListParams) SetID(id string)
SetID adds the id to the roles roles users list params
func (*RolesRolesUsersListParams) SetPage ¶
func (o *RolesRolesUsersListParams) SetPage(page *int64)
SetPage adds the page to the roles roles users list params
func (*RolesRolesUsersListParams) SetPageSize ¶
func (o *RolesRolesUsersListParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the roles roles users list params
func (*RolesRolesUsersListParams) SetSearch ¶
func (o *RolesRolesUsersListParams) SetSearch(search *string)
SetSearch adds the search to the roles roles users list params
func (*RolesRolesUsersListParams) SetTimeout ¶
func (o *RolesRolesUsersListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the roles roles users list params
func (*RolesRolesUsersListParams) WithContext ¶
func (o *RolesRolesUsersListParams) WithContext(ctx context.Context) *RolesRolesUsersListParams
WithContext adds the context to the roles roles users list params
func (*RolesRolesUsersListParams) WithHTTPClient ¶
func (o *RolesRolesUsersListParams) WithHTTPClient(client *http.Client) *RolesRolesUsersListParams
WithHTTPClient adds the HTTPClient to the roles roles users list params
func (*RolesRolesUsersListParams) WithID ¶
func (o *RolesRolesUsersListParams) WithID(id string) *RolesRolesUsersListParams
WithID adds the id to the roles roles users list params
func (*RolesRolesUsersListParams) WithPage ¶
func (o *RolesRolesUsersListParams) WithPage(page *int64) *RolesRolesUsersListParams
WithPage adds the page to the roles roles users list params
func (*RolesRolesUsersListParams) WithPageSize ¶
func (o *RolesRolesUsersListParams) WithPageSize(pageSize *int64) *RolesRolesUsersListParams
WithPageSize adds the pageSize to the roles roles users list params
func (*RolesRolesUsersListParams) WithSearch ¶
func (o *RolesRolesUsersListParams) WithSearch(search *string) *RolesRolesUsersListParams
WithSearch adds the search to the roles roles users list params
func (*RolesRolesUsersListParams) WithTimeout ¶
func (o *RolesRolesUsersListParams) WithTimeout(timeout time.Duration) *RolesRolesUsersListParams
WithTimeout adds the timeout to the roles roles users list params
func (*RolesRolesUsersListParams) WriteToRequest ¶
func (o *RolesRolesUsersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RolesRolesUsersListReader ¶
type RolesRolesUsersListReader struct {
// contains filtered or unexported fields
}
RolesRolesUsersListReader is a Reader for the RolesRolesUsersList structure.
func (*RolesRolesUsersListReader) ReadResponse ¶
func (o *RolesRolesUsersListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- roles_client.go
- roles_roles_children_list_parameters.go
- roles_roles_children_list_responses.go
- roles_roles_list_parameters.go
- roles_roles_list_responses.go
- roles_roles_parents_list_parameters.go
- roles_roles_parents_list_responses.go
- roles_roles_read_parameters.go
- roles_roles_read_responses.go
- roles_roles_teams_create_parameters.go
- roles_roles_teams_create_responses.go
- roles_roles_teams_list_parameters.go
- roles_roles_teams_list_responses.go
- roles_roles_users_create_parameters.go
- roles_roles_users_create_responses.go
- roles_roles_users_list_parameters.go
- roles_roles_users_list_responses.go