user_attribute

package
v0.0.0-...-9dad3f6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllUserAttributeGroupValuesBadRequest

type AllUserAttributeGroupValuesBadRequest struct {
	Payload *models.Error
}

AllUserAttributeGroupValuesBadRequest handles this case with default header values.

Bad Request

func NewAllUserAttributeGroupValuesBadRequest

func NewAllUserAttributeGroupValuesBadRequest() *AllUserAttributeGroupValuesBadRequest

NewAllUserAttributeGroupValuesBadRequest creates a AllUserAttributeGroupValuesBadRequest with default headers values

func (*AllUserAttributeGroupValuesBadRequest) Error

func (*AllUserAttributeGroupValuesBadRequest) GetPayload

type AllUserAttributeGroupValuesNotFound

type AllUserAttributeGroupValuesNotFound struct {
	Payload *models.Error
}

AllUserAttributeGroupValuesNotFound handles this case with default header values.

Not Found

func NewAllUserAttributeGroupValuesNotFound

func NewAllUserAttributeGroupValuesNotFound() *AllUserAttributeGroupValuesNotFound

NewAllUserAttributeGroupValuesNotFound creates a AllUserAttributeGroupValuesNotFound with default headers values

func (*AllUserAttributeGroupValuesNotFound) Error

func (*AllUserAttributeGroupValuesNotFound) GetPayload

type AllUserAttributeGroupValuesOK

type AllUserAttributeGroupValuesOK struct {
	Payload []*models.UserAttributeGroupValue
}

AllUserAttributeGroupValuesOK handles this case with default header values.

All group values for attribute.

func NewAllUserAttributeGroupValuesOK

func NewAllUserAttributeGroupValuesOK() *AllUserAttributeGroupValuesOK

NewAllUserAttributeGroupValuesOK creates a AllUserAttributeGroupValuesOK with default headers values

func (*AllUserAttributeGroupValuesOK) Error

func (*AllUserAttributeGroupValuesOK) GetPayload

type AllUserAttributeGroupValuesParams

type AllUserAttributeGroupValuesParams struct {

	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*UserAttributeID
	  Id of user attribute

	*/
	UserAttributeID int64

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

AllUserAttributeGroupValuesParams contains all the parameters to send to the API endpoint for the all user attribute group values operation typically these are written to a http.Request

func NewAllUserAttributeGroupValuesParams

func NewAllUserAttributeGroupValuesParams() *AllUserAttributeGroupValuesParams

NewAllUserAttributeGroupValuesParams creates a new AllUserAttributeGroupValuesParams object with the default values initialized.

func NewAllUserAttributeGroupValuesParamsWithContext

func NewAllUserAttributeGroupValuesParamsWithContext(ctx context.Context) *AllUserAttributeGroupValuesParams

NewAllUserAttributeGroupValuesParamsWithContext creates a new AllUserAttributeGroupValuesParams object with the default values initialized, and the ability to set a context for a request

func NewAllUserAttributeGroupValuesParamsWithHTTPClient

func NewAllUserAttributeGroupValuesParamsWithHTTPClient(client *http.Client) *AllUserAttributeGroupValuesParams

NewAllUserAttributeGroupValuesParamsWithHTTPClient creates a new AllUserAttributeGroupValuesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAllUserAttributeGroupValuesParamsWithTimeout

func NewAllUserAttributeGroupValuesParamsWithTimeout(timeout time.Duration) *AllUserAttributeGroupValuesParams

NewAllUserAttributeGroupValuesParamsWithTimeout creates a new AllUserAttributeGroupValuesParams object with the default values initialized, and the ability to set a timeout on a request

func (*AllUserAttributeGroupValuesParams) SetContext

SetContext adds the context to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) SetFields

func (o *AllUserAttributeGroupValuesParams) SetFields(fields *string)

SetFields adds the fields to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) SetTimeout

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

SetTimeout adds the timeout to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) SetUserAttributeID

func (o *AllUserAttributeGroupValuesParams) SetUserAttributeID(userAttributeID int64)

SetUserAttributeID adds the userAttributeId to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) WithContext

WithContext adds the context to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) WithFields

WithFields adds the fields to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) WithTimeout

WithTimeout adds the timeout to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) WithUserAttributeID

func (o *AllUserAttributeGroupValuesParams) WithUserAttributeID(userAttributeID int64) *AllUserAttributeGroupValuesParams

WithUserAttributeID adds the userAttributeID to the all user attribute group values params

func (*AllUserAttributeGroupValuesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AllUserAttributeGroupValuesReader

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

AllUserAttributeGroupValuesReader is a Reader for the AllUserAttributeGroupValues structure.

func (*AllUserAttributeGroupValuesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AllUserAttributesBadRequest

type AllUserAttributesBadRequest struct {
	Payload *models.Error
}

AllUserAttributesBadRequest handles this case with default header values.

Bad Request

func NewAllUserAttributesBadRequest

func NewAllUserAttributesBadRequest() *AllUserAttributesBadRequest

NewAllUserAttributesBadRequest creates a AllUserAttributesBadRequest with default headers values

func (*AllUserAttributesBadRequest) Error

func (*AllUserAttributesBadRequest) GetPayload

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

type AllUserAttributesNotFound

type AllUserAttributesNotFound struct {
	Payload *models.Error
}

AllUserAttributesNotFound handles this case with default header values.

Not Found

func NewAllUserAttributesNotFound

func NewAllUserAttributesNotFound() *AllUserAttributesNotFound

NewAllUserAttributesNotFound creates a AllUserAttributesNotFound with default headers values

func (*AllUserAttributesNotFound) Error

func (o *AllUserAttributesNotFound) Error() string

func (*AllUserAttributesNotFound) GetPayload

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

type AllUserAttributesOK

type AllUserAttributesOK struct {
	Payload []*models.UserAttribute
}

AllUserAttributesOK handles this case with default header values.

User Attribute

func NewAllUserAttributesOK

func NewAllUserAttributesOK() *AllUserAttributesOK

NewAllUserAttributesOK creates a AllUserAttributesOK with default headers values

func (*AllUserAttributesOK) Error

func (o *AllUserAttributesOK) Error() string

func (*AllUserAttributesOK) GetPayload

func (o *AllUserAttributesOK) GetPayload() []*models.UserAttribute

type AllUserAttributesParams

type AllUserAttributesParams struct {

	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*Sorts
	  Fields to order the results by. Sortable fields include: name, label

	*/
	Sorts *string

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

AllUserAttributesParams contains all the parameters to send to the API endpoint for the all user attributes operation typically these are written to a http.Request

func NewAllUserAttributesParams

func NewAllUserAttributesParams() *AllUserAttributesParams

NewAllUserAttributesParams creates a new AllUserAttributesParams object with the default values initialized.

func NewAllUserAttributesParamsWithContext

func NewAllUserAttributesParamsWithContext(ctx context.Context) *AllUserAttributesParams

NewAllUserAttributesParamsWithContext creates a new AllUserAttributesParams object with the default values initialized, and the ability to set a context for a request

func NewAllUserAttributesParamsWithHTTPClient

func NewAllUserAttributesParamsWithHTTPClient(client *http.Client) *AllUserAttributesParams

NewAllUserAttributesParamsWithHTTPClient creates a new AllUserAttributesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAllUserAttributesParamsWithTimeout

func NewAllUserAttributesParamsWithTimeout(timeout time.Duration) *AllUserAttributesParams

NewAllUserAttributesParamsWithTimeout creates a new AllUserAttributesParams object with the default values initialized, and the ability to set a timeout on a request

func (*AllUserAttributesParams) SetContext

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

SetContext adds the context to the all user attributes params

func (*AllUserAttributesParams) SetFields

func (o *AllUserAttributesParams) SetFields(fields *string)

SetFields adds the fields to the all user attributes params

func (*AllUserAttributesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the all user attributes params

func (*AllUserAttributesParams) SetSorts

func (o *AllUserAttributesParams) SetSorts(sorts *string)

SetSorts adds the sorts to the all user attributes params

func (*AllUserAttributesParams) SetTimeout

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

SetTimeout adds the timeout to the all user attributes params

func (*AllUserAttributesParams) WithContext

WithContext adds the context to the all user attributes params

func (*AllUserAttributesParams) WithFields

func (o *AllUserAttributesParams) WithFields(fields *string) *AllUserAttributesParams

WithFields adds the fields to the all user attributes params

func (*AllUserAttributesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the all user attributes params

func (*AllUserAttributesParams) WithSorts

WithSorts adds the sorts to the all user attributes params

func (*AllUserAttributesParams) WithTimeout

WithTimeout adds the timeout to the all user attributes params

func (*AllUserAttributesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AllUserAttributesReader

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

AllUserAttributesReader is a Reader for the AllUserAttributes structure.

func (*AllUserAttributesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for user attribute API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new user attribute API client.

func (*Client) AllUserAttributeGroupValues

func (a *Client) AllUserAttributeGroupValues(params *AllUserAttributeGroupValuesParams) (*AllUserAttributeGroupValuesOK, error)

AllUserAttributeGroupValues gets user attribute group values

### Returns all values of a user attribute defined by user groups, in precedence order.

A user may be a member of multiple groups which define different values for a given user attribute. The order of group-values in the response determines precedence for selecting which group-value applies to a given user. For more information, see [Set User Attribute Group Values](#!/UserAttribute/set_user_attribute_group_values).

Results will only include groups that the caller's user account has permission to see.

func (*Client) AllUserAttributes

func (a *Client) AllUserAttributes(params *AllUserAttributesParams) (*AllUserAttributesOK, error)

AllUserAttributes gets all user attributes

### Get information about all user attributes.

func (*Client) CreateUserAttribute

func (a *Client) CreateUserAttribute(params *CreateUserAttributeParams) (*CreateUserAttributeOK, error)

CreateUserAttribute creates user attribute

### Create a new user attribute

Permission information for a user attribute is conveyed through the `can` and `user_can_edit` fields. The `user_can_edit` field indicates whether an attribute is user-editable _anywhere_ in the application. The `can` field gives more granular access information, with the `set_value` child field indicating whether an attribute's value can be set by [Setting the User Attribute User Value](#!/User/set_user_attribute_user_value).

Note: `name` and `label` fields must be unique across all user attributes in the Looker instance. Attempting to create a new user attribute with a name or label that duplicates an existing user attribute will fail with a 422 error.

func (*Client) DeleteUserAttribute

func (a *Client) DeleteUserAttribute(params *DeleteUserAttributeParams) (*DeleteUserAttributeNoContent, error)

DeleteUserAttribute deletes user attribute

### Delete a user attribute (admin only).

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SetUserAttributeGroupValues

func (a *Client) SetUserAttributeGroupValues(params *SetUserAttributeGroupValuesParams) (*SetUserAttributeGroupValuesOK, error)

SetUserAttributeGroupValues sets user attribute group values

### Define values for a user attribute across a set of groups, in priority order.

This function defines all values for a user attribute defined by user groups. This is a global setting, potentially affecting all users in the system. This function replaces any existing group value definitions for the indicated user attribute.

The value of a user attribute for a given user is determined by searching the following locations, in this order:

1. the user's account settings 2. the groups that the user is a member of 3. the default value of the user attribute, if any

The user may be a member of multiple groups which define different values for that user attribute. The order of items in the group_values parameter determines which group takes priority for that user. Lowest array index wins.

An alternate method to indicate the selection precedence of group-values is to assign numbers to the 'rank' property of each group-value object in the array. Lowest 'rank' value wins. If you use this technique, you must assign a rank value to every group-value object in the array.

To set a user attribute value for a single user, see [Set User Attribute User Value](#!/User/set_user_attribute_user_value).

To set a user attribute value for all members of a group, see [Set User Attribute Group Value](#!/Group/update_user_attribute_group_value).

func (*Client) UpdateUserAttribute

func (a *Client) UpdateUserAttribute(params *UpdateUserAttributeParams) (*UpdateUserAttributeOK, error)

UpdateUserAttribute updates user attribute

### Update a user attribute definition.

func (*Client) UserAttribute

func (a *Client) UserAttribute(params *UserAttributeParams) (*UserAttributeOK, error)

UserAttribute gets user attribute

### Get information about a user attribute.

type CreateUserAttributeBadRequest

type CreateUserAttributeBadRequest struct {
	Payload *models.Error
}

CreateUserAttributeBadRequest handles this case with default header values.

Bad Request

func NewCreateUserAttributeBadRequest

func NewCreateUserAttributeBadRequest() *CreateUserAttributeBadRequest

NewCreateUserAttributeBadRequest creates a CreateUserAttributeBadRequest with default headers values

func (*CreateUserAttributeBadRequest) Error

func (*CreateUserAttributeBadRequest) GetPayload

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

type CreateUserAttributeConflict

type CreateUserAttributeConflict struct {
	Payload *models.Error
}

CreateUserAttributeConflict handles this case with default header values.

Resource Already Exists

func NewCreateUserAttributeConflict

func NewCreateUserAttributeConflict() *CreateUserAttributeConflict

NewCreateUserAttributeConflict creates a CreateUserAttributeConflict with default headers values

func (*CreateUserAttributeConflict) Error

func (*CreateUserAttributeConflict) GetPayload

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

type CreateUserAttributeNotFound

type CreateUserAttributeNotFound struct {
	Payload *models.Error
}

CreateUserAttributeNotFound handles this case with default header values.

Not Found

func NewCreateUserAttributeNotFound

func NewCreateUserAttributeNotFound() *CreateUserAttributeNotFound

NewCreateUserAttributeNotFound creates a CreateUserAttributeNotFound with default headers values

func (*CreateUserAttributeNotFound) Error

func (*CreateUserAttributeNotFound) GetPayload

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

type CreateUserAttributeOK

type CreateUserAttributeOK struct {
	Payload *models.UserAttribute
}

CreateUserAttributeOK handles this case with default header values.

User Attribute

func NewCreateUserAttributeOK

func NewCreateUserAttributeOK() *CreateUserAttributeOK

NewCreateUserAttributeOK creates a CreateUserAttributeOK with default headers values

func (*CreateUserAttributeOK) Error

func (o *CreateUserAttributeOK) Error() string

func (*CreateUserAttributeOK) GetPayload

func (o *CreateUserAttributeOK) GetPayload() *models.UserAttribute

type CreateUserAttributeParams

type CreateUserAttributeParams struct {

	/*Body
	  User Attribute

	*/
	Body *models.UserAttribute
	/*Fields
	  Requested fields.

	*/
	Fields *string

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

CreateUserAttributeParams contains all the parameters to send to the API endpoint for the create user attribute operation typically these are written to a http.Request

func NewCreateUserAttributeParams

func NewCreateUserAttributeParams() *CreateUserAttributeParams

NewCreateUserAttributeParams creates a new CreateUserAttributeParams object with the default values initialized.

func NewCreateUserAttributeParamsWithContext

func NewCreateUserAttributeParamsWithContext(ctx context.Context) *CreateUserAttributeParams

NewCreateUserAttributeParamsWithContext creates a new CreateUserAttributeParams object with the default values initialized, and the ability to set a context for a request

func NewCreateUserAttributeParamsWithHTTPClient

func NewCreateUserAttributeParamsWithHTTPClient(client *http.Client) *CreateUserAttributeParams

NewCreateUserAttributeParamsWithHTTPClient creates a new CreateUserAttributeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateUserAttributeParamsWithTimeout

func NewCreateUserAttributeParamsWithTimeout(timeout time.Duration) *CreateUserAttributeParams

NewCreateUserAttributeParamsWithTimeout creates a new CreateUserAttributeParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateUserAttributeParams) SetBody

SetBody adds the body to the create user attribute params

func (*CreateUserAttributeParams) SetContext

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

SetContext adds the context to the create user attribute params

func (*CreateUserAttributeParams) SetFields

func (o *CreateUserAttributeParams) SetFields(fields *string)

SetFields adds the fields to the create user attribute params

func (*CreateUserAttributeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user attribute params

func (*CreateUserAttributeParams) SetTimeout

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

SetTimeout adds the timeout to the create user attribute params

func (*CreateUserAttributeParams) WithBody

WithBody adds the body to the create user attribute params

func (*CreateUserAttributeParams) WithContext

WithContext adds the context to the create user attribute params

func (*CreateUserAttributeParams) WithFields

WithFields adds the fields to the create user attribute params

func (*CreateUserAttributeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create user attribute params

func (*CreateUserAttributeParams) WithTimeout

WithTimeout adds the timeout to the create user attribute params

func (*CreateUserAttributeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateUserAttributeReader

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

CreateUserAttributeReader is a Reader for the CreateUserAttribute structure.

func (*CreateUserAttributeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUserAttributeUnprocessableEntity

type CreateUserAttributeUnprocessableEntity struct {
	Payload *models.ValidationError
}

CreateUserAttributeUnprocessableEntity handles this case with default header values.

Validation Error

func NewCreateUserAttributeUnprocessableEntity

func NewCreateUserAttributeUnprocessableEntity() *CreateUserAttributeUnprocessableEntity

NewCreateUserAttributeUnprocessableEntity creates a CreateUserAttributeUnprocessableEntity with default headers values

func (*CreateUserAttributeUnprocessableEntity) Error

func (*CreateUserAttributeUnprocessableEntity) GetPayload

type DeleteUserAttributeBadRequest

type DeleteUserAttributeBadRequest struct {
	Payload *models.Error
}

DeleteUserAttributeBadRequest handles this case with default header values.

Bad Request

func NewDeleteUserAttributeBadRequest

func NewDeleteUserAttributeBadRequest() *DeleteUserAttributeBadRequest

NewDeleteUserAttributeBadRequest creates a DeleteUserAttributeBadRequest with default headers values

func (*DeleteUserAttributeBadRequest) Error

func (*DeleteUserAttributeBadRequest) GetPayload

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

type DeleteUserAttributeNoContent

type DeleteUserAttributeNoContent struct {
	Payload string
}

DeleteUserAttributeNoContent handles this case with default header values.

Successfully deleted.

func NewDeleteUserAttributeNoContent

func NewDeleteUserAttributeNoContent() *DeleteUserAttributeNoContent

NewDeleteUserAttributeNoContent creates a DeleteUserAttributeNoContent with default headers values

func (*DeleteUserAttributeNoContent) Error

func (*DeleteUserAttributeNoContent) GetPayload

func (o *DeleteUserAttributeNoContent) GetPayload() string

type DeleteUserAttributeNotFound

type DeleteUserAttributeNotFound struct {
	Payload *models.Error
}

DeleteUserAttributeNotFound handles this case with default header values.

Not Found

func NewDeleteUserAttributeNotFound

func NewDeleteUserAttributeNotFound() *DeleteUserAttributeNotFound

NewDeleteUserAttributeNotFound creates a DeleteUserAttributeNotFound with default headers values

func (*DeleteUserAttributeNotFound) Error

func (*DeleteUserAttributeNotFound) GetPayload

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

type DeleteUserAttributeParams

type DeleteUserAttributeParams struct {

	/*UserAttributeID
	  Id of user_attribute

	*/
	UserAttributeID int64

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

DeleteUserAttributeParams contains all the parameters to send to the API endpoint for the delete user attribute operation typically these are written to a http.Request

func NewDeleteUserAttributeParams

func NewDeleteUserAttributeParams() *DeleteUserAttributeParams

NewDeleteUserAttributeParams creates a new DeleteUserAttributeParams object with the default values initialized.

func NewDeleteUserAttributeParamsWithContext

func NewDeleteUserAttributeParamsWithContext(ctx context.Context) *DeleteUserAttributeParams

NewDeleteUserAttributeParamsWithContext creates a new DeleteUserAttributeParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteUserAttributeParamsWithHTTPClient

func NewDeleteUserAttributeParamsWithHTTPClient(client *http.Client) *DeleteUserAttributeParams

NewDeleteUserAttributeParamsWithHTTPClient creates a new DeleteUserAttributeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteUserAttributeParamsWithTimeout

func NewDeleteUserAttributeParamsWithTimeout(timeout time.Duration) *DeleteUserAttributeParams

NewDeleteUserAttributeParamsWithTimeout creates a new DeleteUserAttributeParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteUserAttributeParams) SetContext

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

SetContext adds the context to the delete user attribute params

func (*DeleteUserAttributeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete user attribute params

func (*DeleteUserAttributeParams) SetTimeout

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

SetTimeout adds the timeout to the delete user attribute params

func (*DeleteUserAttributeParams) SetUserAttributeID

func (o *DeleteUserAttributeParams) SetUserAttributeID(userAttributeID int64)

SetUserAttributeID adds the userAttributeId to the delete user attribute params

func (*DeleteUserAttributeParams) WithContext

WithContext adds the context to the delete user attribute params

func (*DeleteUserAttributeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete user attribute params

func (*DeleteUserAttributeParams) WithTimeout

WithTimeout adds the timeout to the delete user attribute params

func (*DeleteUserAttributeParams) WithUserAttributeID

func (o *DeleteUserAttributeParams) WithUserAttributeID(userAttributeID int64) *DeleteUserAttributeParams

WithUserAttributeID adds the userAttributeID to the delete user attribute params

func (*DeleteUserAttributeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteUserAttributeReader

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

DeleteUserAttributeReader is a Reader for the DeleteUserAttribute structure.

func (*DeleteUserAttributeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetUserAttributeGroupValuesBadRequest

type SetUserAttributeGroupValuesBadRequest struct {
	Payload *models.Error
}

SetUserAttributeGroupValuesBadRequest handles this case with default header values.

Bad Request

func NewSetUserAttributeGroupValuesBadRequest

func NewSetUserAttributeGroupValuesBadRequest() *SetUserAttributeGroupValuesBadRequest

NewSetUserAttributeGroupValuesBadRequest creates a SetUserAttributeGroupValuesBadRequest with default headers values

func (*SetUserAttributeGroupValuesBadRequest) Error

func (*SetUserAttributeGroupValuesBadRequest) GetPayload

type SetUserAttributeGroupValuesConflict

type SetUserAttributeGroupValuesConflict struct {
	Payload *models.Error
}

SetUserAttributeGroupValuesConflict handles this case with default header values.

Resource Already Exists

func NewSetUserAttributeGroupValuesConflict

func NewSetUserAttributeGroupValuesConflict() *SetUserAttributeGroupValuesConflict

NewSetUserAttributeGroupValuesConflict creates a SetUserAttributeGroupValuesConflict with default headers values

func (*SetUserAttributeGroupValuesConflict) Error

func (*SetUserAttributeGroupValuesConflict) GetPayload

type SetUserAttributeGroupValuesNotFound

type SetUserAttributeGroupValuesNotFound struct {
	Payload *models.Error
}

SetUserAttributeGroupValuesNotFound handles this case with default header values.

Not Found

func NewSetUserAttributeGroupValuesNotFound

func NewSetUserAttributeGroupValuesNotFound() *SetUserAttributeGroupValuesNotFound

NewSetUserAttributeGroupValuesNotFound creates a SetUserAttributeGroupValuesNotFound with default headers values

func (*SetUserAttributeGroupValuesNotFound) Error

func (*SetUserAttributeGroupValuesNotFound) GetPayload

type SetUserAttributeGroupValuesOK

type SetUserAttributeGroupValuesOK struct {
	Payload []*models.UserAttributeGroupValue
}

SetUserAttributeGroupValuesOK handles this case with default header values.

Array of group values.

func NewSetUserAttributeGroupValuesOK

func NewSetUserAttributeGroupValuesOK() *SetUserAttributeGroupValuesOK

NewSetUserAttributeGroupValuesOK creates a SetUserAttributeGroupValuesOK with default headers values

func (*SetUserAttributeGroupValuesOK) Error

func (*SetUserAttributeGroupValuesOK) GetPayload

type SetUserAttributeGroupValuesParams

type SetUserAttributeGroupValuesParams struct {

	/*Body
	  Array of group values.

	*/
	Body []*models.UserAttributeGroupValue
	/*UserAttributeID
	  Id of user attribute

	*/
	UserAttributeID int64

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

SetUserAttributeGroupValuesParams contains all the parameters to send to the API endpoint for the set user attribute group values operation typically these are written to a http.Request

func NewSetUserAttributeGroupValuesParams

func NewSetUserAttributeGroupValuesParams() *SetUserAttributeGroupValuesParams

NewSetUserAttributeGroupValuesParams creates a new SetUserAttributeGroupValuesParams object with the default values initialized.

func NewSetUserAttributeGroupValuesParamsWithContext

func NewSetUserAttributeGroupValuesParamsWithContext(ctx context.Context) *SetUserAttributeGroupValuesParams

NewSetUserAttributeGroupValuesParamsWithContext creates a new SetUserAttributeGroupValuesParams object with the default values initialized, and the ability to set a context for a request

func NewSetUserAttributeGroupValuesParamsWithHTTPClient

func NewSetUserAttributeGroupValuesParamsWithHTTPClient(client *http.Client) *SetUserAttributeGroupValuesParams

NewSetUserAttributeGroupValuesParamsWithHTTPClient creates a new SetUserAttributeGroupValuesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetUserAttributeGroupValuesParamsWithTimeout

func NewSetUserAttributeGroupValuesParamsWithTimeout(timeout time.Duration) *SetUserAttributeGroupValuesParams

NewSetUserAttributeGroupValuesParamsWithTimeout creates a new SetUserAttributeGroupValuesParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetUserAttributeGroupValuesParams) SetBody

SetBody adds the body to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) SetContext

SetContext adds the context to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) SetTimeout

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

SetTimeout adds the timeout to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) SetUserAttributeID

func (o *SetUserAttributeGroupValuesParams) SetUserAttributeID(userAttributeID int64)

SetUserAttributeID adds the userAttributeId to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) WithBody

WithBody adds the body to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) WithContext

WithContext adds the context to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) WithTimeout

WithTimeout adds the timeout to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) WithUserAttributeID

func (o *SetUserAttributeGroupValuesParams) WithUserAttributeID(userAttributeID int64) *SetUserAttributeGroupValuesParams

WithUserAttributeID adds the userAttributeID to the set user attribute group values params

func (*SetUserAttributeGroupValuesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetUserAttributeGroupValuesReader

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

SetUserAttributeGroupValuesReader is a Reader for the SetUserAttributeGroupValues structure.

func (*SetUserAttributeGroupValuesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetUserAttributeGroupValuesUnprocessableEntity

type SetUserAttributeGroupValuesUnprocessableEntity struct {
	Payload *models.ValidationError
}

SetUserAttributeGroupValuesUnprocessableEntity handles this case with default header values.

Validation Error

func NewSetUserAttributeGroupValuesUnprocessableEntity

func NewSetUserAttributeGroupValuesUnprocessableEntity() *SetUserAttributeGroupValuesUnprocessableEntity

NewSetUserAttributeGroupValuesUnprocessableEntity creates a SetUserAttributeGroupValuesUnprocessableEntity with default headers values

func (*SetUserAttributeGroupValuesUnprocessableEntity) Error

func (*SetUserAttributeGroupValuesUnprocessableEntity) GetPayload

type UpdateUserAttributeBadRequest

type UpdateUserAttributeBadRequest struct {
	Payload *models.Error
}

UpdateUserAttributeBadRequest handles this case with default header values.

Bad Request

func NewUpdateUserAttributeBadRequest

func NewUpdateUserAttributeBadRequest() *UpdateUserAttributeBadRequest

NewUpdateUserAttributeBadRequest creates a UpdateUserAttributeBadRequest with default headers values

func (*UpdateUserAttributeBadRequest) Error

func (*UpdateUserAttributeBadRequest) GetPayload

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

type UpdateUserAttributeNotFound

type UpdateUserAttributeNotFound struct {
	Payload *models.Error
}

UpdateUserAttributeNotFound handles this case with default header values.

Not Found

func NewUpdateUserAttributeNotFound

func NewUpdateUserAttributeNotFound() *UpdateUserAttributeNotFound

NewUpdateUserAttributeNotFound creates a UpdateUserAttributeNotFound with default headers values

func (*UpdateUserAttributeNotFound) Error

func (*UpdateUserAttributeNotFound) GetPayload

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

type UpdateUserAttributeOK

type UpdateUserAttributeOK struct {
	Payload *models.UserAttribute
}

UpdateUserAttributeOK handles this case with default header values.

User Attribute

func NewUpdateUserAttributeOK

func NewUpdateUserAttributeOK() *UpdateUserAttributeOK

NewUpdateUserAttributeOK creates a UpdateUserAttributeOK with default headers values

func (*UpdateUserAttributeOK) Error

func (o *UpdateUserAttributeOK) Error() string

func (*UpdateUserAttributeOK) GetPayload

func (o *UpdateUserAttributeOK) GetPayload() *models.UserAttribute

type UpdateUserAttributeParams

type UpdateUserAttributeParams struct {

	/*Body
	  User Attribute

	*/
	Body *models.UserAttribute
	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*UserAttributeID
	  Id of user attribute

	*/
	UserAttributeID int64

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

UpdateUserAttributeParams contains all the parameters to send to the API endpoint for the update user attribute operation typically these are written to a http.Request

func NewUpdateUserAttributeParams

func NewUpdateUserAttributeParams() *UpdateUserAttributeParams

NewUpdateUserAttributeParams creates a new UpdateUserAttributeParams object with the default values initialized.

func NewUpdateUserAttributeParamsWithContext

func NewUpdateUserAttributeParamsWithContext(ctx context.Context) *UpdateUserAttributeParams

NewUpdateUserAttributeParamsWithContext creates a new UpdateUserAttributeParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateUserAttributeParamsWithHTTPClient

func NewUpdateUserAttributeParamsWithHTTPClient(client *http.Client) *UpdateUserAttributeParams

NewUpdateUserAttributeParamsWithHTTPClient creates a new UpdateUserAttributeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateUserAttributeParamsWithTimeout

func NewUpdateUserAttributeParamsWithTimeout(timeout time.Duration) *UpdateUserAttributeParams

NewUpdateUserAttributeParamsWithTimeout creates a new UpdateUserAttributeParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateUserAttributeParams) SetBody

SetBody adds the body to the update user attribute params

func (*UpdateUserAttributeParams) SetContext

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

SetContext adds the context to the update user attribute params

func (*UpdateUserAttributeParams) SetFields

func (o *UpdateUserAttributeParams) SetFields(fields *string)

SetFields adds the fields to the update user attribute params

func (*UpdateUserAttributeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user attribute params

func (*UpdateUserAttributeParams) SetTimeout

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

SetTimeout adds the timeout to the update user attribute params

func (*UpdateUserAttributeParams) SetUserAttributeID

func (o *UpdateUserAttributeParams) SetUserAttributeID(userAttributeID int64)

SetUserAttributeID adds the userAttributeId to the update user attribute params

func (*UpdateUserAttributeParams) WithBody

WithBody adds the body to the update user attribute params

func (*UpdateUserAttributeParams) WithContext

WithContext adds the context to the update user attribute params

func (*UpdateUserAttributeParams) WithFields

WithFields adds the fields to the update user attribute params

func (*UpdateUserAttributeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user attribute params

func (*UpdateUserAttributeParams) WithTimeout

WithTimeout adds the timeout to the update user attribute params

func (*UpdateUserAttributeParams) WithUserAttributeID

func (o *UpdateUserAttributeParams) WithUserAttributeID(userAttributeID int64) *UpdateUserAttributeParams

WithUserAttributeID adds the userAttributeID to the update user attribute params

func (*UpdateUserAttributeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserAttributeReader

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

UpdateUserAttributeReader is a Reader for the UpdateUserAttribute structure.

func (*UpdateUserAttributeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserAttributeUnprocessableEntity

type UpdateUserAttributeUnprocessableEntity struct {
	Payload *models.ValidationError
}

UpdateUserAttributeUnprocessableEntity handles this case with default header values.

Validation Error

func NewUpdateUserAttributeUnprocessableEntity

func NewUpdateUserAttributeUnprocessableEntity() *UpdateUserAttributeUnprocessableEntity

NewUpdateUserAttributeUnprocessableEntity creates a UpdateUserAttributeUnprocessableEntity with default headers values

func (*UpdateUserAttributeUnprocessableEntity) Error

func (*UpdateUserAttributeUnprocessableEntity) GetPayload

type UserAttributeBadRequest

type UserAttributeBadRequest struct {
	Payload *models.Error
}

UserAttributeBadRequest handles this case with default header values.

Bad Request

func NewUserAttributeBadRequest

func NewUserAttributeBadRequest() *UserAttributeBadRequest

NewUserAttributeBadRequest creates a UserAttributeBadRequest with default headers values

func (*UserAttributeBadRequest) Error

func (o *UserAttributeBadRequest) Error() string

func (*UserAttributeBadRequest) GetPayload

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

type UserAttributeNotFound

type UserAttributeNotFound struct {
	Payload *models.Error
}

UserAttributeNotFound handles this case with default header values.

Not Found

func NewUserAttributeNotFound

func NewUserAttributeNotFound() *UserAttributeNotFound

NewUserAttributeNotFound creates a UserAttributeNotFound with default headers values

func (*UserAttributeNotFound) Error

func (o *UserAttributeNotFound) Error() string

func (*UserAttributeNotFound) GetPayload

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

type UserAttributeOK

type UserAttributeOK struct {
	Payload *models.UserAttribute
}

UserAttributeOK handles this case with default header values.

User Attribute

func NewUserAttributeOK

func NewUserAttributeOK() *UserAttributeOK

NewUserAttributeOK creates a UserAttributeOK with default headers values

func (*UserAttributeOK) Error

func (o *UserAttributeOK) Error() string

func (*UserAttributeOK) GetPayload

func (o *UserAttributeOK) GetPayload() *models.UserAttribute

type UserAttributeParams

type UserAttributeParams struct {

	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*UserAttributeID
	  Id of user attribute

	*/
	UserAttributeID int64

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

UserAttributeParams contains all the parameters to send to the API endpoint for the user attribute operation typically these are written to a http.Request

func NewUserAttributeParams

func NewUserAttributeParams() *UserAttributeParams

NewUserAttributeParams creates a new UserAttributeParams object with the default values initialized.

func NewUserAttributeParamsWithContext

func NewUserAttributeParamsWithContext(ctx context.Context) *UserAttributeParams

NewUserAttributeParamsWithContext creates a new UserAttributeParams object with the default values initialized, and the ability to set a context for a request

func NewUserAttributeParamsWithHTTPClient

func NewUserAttributeParamsWithHTTPClient(client *http.Client) *UserAttributeParams

NewUserAttributeParamsWithHTTPClient creates a new UserAttributeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUserAttributeParamsWithTimeout

func NewUserAttributeParamsWithTimeout(timeout time.Duration) *UserAttributeParams

NewUserAttributeParamsWithTimeout creates a new UserAttributeParams object with the default values initialized, and the ability to set a timeout on a request

func (*UserAttributeParams) SetContext

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

SetContext adds the context to the user attribute params

func (*UserAttributeParams) SetFields

func (o *UserAttributeParams) SetFields(fields *string)

SetFields adds the fields to the user attribute params

func (*UserAttributeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user attribute params

func (*UserAttributeParams) SetTimeout

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

SetTimeout adds the timeout to the user attribute params

func (*UserAttributeParams) SetUserAttributeID

func (o *UserAttributeParams) SetUserAttributeID(userAttributeID int64)

SetUserAttributeID adds the userAttributeId to the user attribute params

func (*UserAttributeParams) WithContext

WithContext adds the context to the user attribute params

func (*UserAttributeParams) WithFields

func (o *UserAttributeParams) WithFields(fields *string) *UserAttributeParams

WithFields adds the fields to the user attribute params

func (*UserAttributeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user attribute params

func (*UserAttributeParams) WithTimeout

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

WithTimeout adds the timeout to the user attribute params

func (*UserAttributeParams) WithUserAttributeID

func (o *UserAttributeParams) WithUserAttributeID(userAttributeID int64) *UserAttributeParams

WithUserAttributeID adds the userAttributeID to the user attribute params

func (*UserAttributeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserAttributeReader

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

UserAttributeReader is a Reader for the UserAttribute structure.

func (*UserAttributeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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