customersv1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserAccountType_name = map[int32]string{
		0: "USER_ACCOUNT_TYPE_UNDEFINED",
		1: "USER_ACCOUNT_TYPE_FEDERATED",
		2: "USER_ACCOUNT_TYPE_LOCAL",
	}
	UserAccountType_value = map[string]int32{
		"USER_ACCOUNT_TYPE_UNDEFINED": 0,
		"USER_ACCOUNT_TYPE_FEDERATED": 1,
		"USER_ACCOUNT_TYPE_LOCAL":     2,
	}
)

Enum value maps for UserAccountType.

View Source
var File_iam_customers_v1_customers_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cursor

type Cursor struct {

	// Before - cursor for the previous page
	Before string `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
	// After - cursor for the next page
	After string `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

Cursor - is used for cursor pagination

func (*Cursor) Descriptor deprecated

func (*Cursor) Descriptor() ([]byte, []int)

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) GetAfter

func (x *Cursor) GetAfter() string

func (*Cursor) GetBefore

func (x *Cursor) GetBefore() string

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

func (x *Cursor) ProtoReflect() protoreflect.Message

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) String

func (x *Cursor) String() string

func (*Cursor) Validate

func (m *Cursor) Validate() error

Validate checks the field values on Cursor with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Cursor) ValidateAll

func (m *Cursor) ValidateAll() error

ValidateAll checks the field values on Cursor with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CursorMultiError, or nil if none found.

type CursorMultiError

type CursorMultiError []error

CursorMultiError is an error wrapping multiple validation errors returned by Cursor.ValidateAll() if the designated constraints aren't met.

func (CursorMultiError) AllErrors

func (m CursorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CursorMultiError) Error

func (m CursorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CursorValidationError

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

CursorValidationError is the validation error returned by Cursor.Validate if the designated constraints aren't met.

func (CursorValidationError) Cause

func (e CursorValidationError) Cause() error

Cause function returns cause value.

func (CursorValidationError) Error

func (e CursorValidationError) Error() string

Error satisfies the builtin error interface

func (CursorValidationError) ErrorName

func (e CursorValidationError) ErrorName() string

ErrorName returns error name.

func (CursorValidationError) Field

func (e CursorValidationError) Field() string

Field function returns field value.

func (CursorValidationError) Key

func (e CursorValidationError) Key() bool

Key function returns key value.

func (CursorValidationError) Reason

func (e CursorValidationError) Reason() string

Reason function returns reason value.

type CustomersServiceClient

type CustomersServiceClient interface {
	// InviteUser invite user to customer
	InviteUser(ctx context.Context, in *InviteUserRequest, opts ...grpc.CallOption) (*InviteUserResponse, error)
	// UpdateUser update customer user.
	// Only federative users are supported for update
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	// ReInviteUser re-invite user to customer
	ReInviteUser(ctx context.Context, in *ReInviteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetUser get customer user
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// DeleteUser delete user from customer
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// FindUser find customer user by email
	FindUser(ctx context.Context, in *FindUserRequest, opts ...grpc.CallOption) (*FindUserResponse, error)
	// ListUsers - list customer's users
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
}

CustomersServiceClient is the client API for CustomersService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DeleteUserRequest

type DeleteUserRequest struct {

	// UserID - id of user to delete
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// CustomerId - customer id to delete user from
	CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRequest - delete user from customer request

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetCustomerId

func (x *DeleteUserRequest) GetCustomerId() string

func (*DeleteUserRequest) GetUserId

func (x *DeleteUserRequest) GetUserId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

func (*DeleteUserRequest) Validate

func (m *DeleteUserRequest) Validate() error

Validate checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteUserRequest) ValidateAll

func (m *DeleteUserRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserRequestMultiError, or nil if none found.

type DeleteUserRequestMultiError

type DeleteUserRequestMultiError []error

DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRequestMultiError) AllErrors

func (m DeleteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRequestValidationError

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

DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.

func (DeleteUserRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

Reason function returns reason value.

type FindUserRequest

type FindUserRequest struct {

	// CustomerID - customer id
	CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// Email - email of user
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// Type - user account type
	Type UserAccountType `protobuf:"varint,3,opt,name=type,proto3,enum=sbercloud.cp.iam.api.v1.customers.UserAccountType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

FindUserRequest - find user by email

func (*FindUserRequest) Descriptor deprecated

func (*FindUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindUserRequest.ProtoReflect.Descriptor instead.

func (*FindUserRequest) GetCustomerId

func (x *FindUserRequest) GetCustomerId() string

func (*FindUserRequest) GetEmail

func (x *FindUserRequest) GetEmail() string

func (*FindUserRequest) GetType

func (x *FindUserRequest) GetType() UserAccountType

func (*FindUserRequest) ProtoMessage

func (*FindUserRequest) ProtoMessage()

func (*FindUserRequest) ProtoReflect

func (x *FindUserRequest) ProtoReflect() protoreflect.Message

func (*FindUserRequest) Reset

func (x *FindUserRequest) Reset()

func (*FindUserRequest) String

func (x *FindUserRequest) String() string

func (*FindUserRequest) Validate

func (m *FindUserRequest) Validate() error

Validate checks the field values on FindUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindUserRequest) ValidateAll

func (m *FindUserRequest) ValidateAll() error

ValidateAll checks the field values on FindUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindUserRequestMultiError, or nil if none found.

type FindUserRequestMultiError

type FindUserRequestMultiError []error

FindUserRequestMultiError is an error wrapping multiple validation errors returned by FindUserRequest.ValidateAll() if the designated constraints aren't met.

func (FindUserRequestMultiError) AllErrors

func (m FindUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindUserRequestValidationError

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

FindUserRequestValidationError is the validation error returned by FindUserRequest.Validate if the designated constraints aren't met.

func (FindUserRequestValidationError) Cause

Cause function returns cause value.

func (FindUserRequestValidationError) Error

Error satisfies the builtin error interface

func (FindUserRequestValidationError) ErrorName

func (e FindUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FindUserRequestValidationError) Field

Field function returns field value.

func (FindUserRequestValidationError) Key

Key function returns key value.

func (FindUserRequestValidationError) Reason

Reason function returns reason value.

type FindUserResponse

type FindUserResponse struct {

	// User - user data
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

FindUserResponse - find user response

func (*FindUserResponse) Descriptor deprecated

func (*FindUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindUserResponse.ProtoReflect.Descriptor instead.

func (*FindUserResponse) GetUser

func (x *FindUserResponse) GetUser() *User

func (*FindUserResponse) ProtoMessage

func (*FindUserResponse) ProtoMessage()

func (*FindUserResponse) ProtoReflect

func (x *FindUserResponse) ProtoReflect() protoreflect.Message

func (*FindUserResponse) Reset

func (x *FindUserResponse) Reset()

func (*FindUserResponse) String

func (x *FindUserResponse) String() string

func (*FindUserResponse) Validate

func (m *FindUserResponse) Validate() error

Validate checks the field values on FindUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindUserResponse) ValidateAll

func (m *FindUserResponse) ValidateAll() error

ValidateAll checks the field values on FindUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindUserResponseMultiError, or nil if none found.

type FindUserResponseMultiError

type FindUserResponseMultiError []error

FindUserResponseMultiError is an error wrapping multiple validation errors returned by FindUserResponse.ValidateAll() if the designated constraints aren't met.

func (FindUserResponseMultiError) AllErrors

func (m FindUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindUserResponseValidationError

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

FindUserResponseValidationError is the validation error returned by FindUserResponse.Validate if the designated constraints aren't met.

func (FindUserResponseValidationError) Cause

Cause function returns cause value.

func (FindUserResponseValidationError) Error

Error satisfies the builtin error interface

func (FindUserResponseValidationError) ErrorName

ErrorName returns error name.

func (FindUserResponseValidationError) Field

Field function returns field value.

func (FindUserResponseValidationError) Key

Key function returns key value.

func (FindUserResponseValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {

	// UserID - id of user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// CustomerId - customer id
	CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// contains filtered or unexported fields
}

GetUserRequest - get customer user request

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetCustomerId

func (x *GetUserRequest) GetCustomerId() string

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

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

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserResponse

type GetUserResponse struct {

	// User - user data
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

GetUserRequest - get customer user request

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

func (*GetUserResponse) Validate

func (m *GetUserResponse) Validate() error

Validate checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserResponse) ValidateAll

func (m *GetUserResponse) ValidateAll() error

ValidateAll checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserResponseMultiError, or nil if none found.

type GetUserResponseMultiError

type GetUserResponseMultiError []error

GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserResponseMultiError) AllErrors

func (m GetUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserResponseValidationError

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

GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.

func (GetUserResponseValidationError) Cause

Cause function returns cause value.

func (GetUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserResponseValidationError) ErrorName

func (e GetUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserResponseValidationError) Field

Field function returns field value.

func (GetUserResponseValidationError) Key

Key function returns key value.

func (GetUserResponseValidationError) Reason

Reason function returns reason value.

type InviteUserRequest

type InviteUserRequest struct {

	// UserName - user's username
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// FirstName - user's first name
	FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	// LastName - user's last name
	LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// MiddleName - user's middle name
	MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	// Email - user's email
	Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	// Federative - flag meaning is user federative or local
	// Deprecated - use AccountType field instead
	Federative bool `protobuf:"varint,6,opt,name=federative,proto3" json:"federative,omitempty"`
	// IDPID - optional field to link user with customer idp
	// Supported only for federative users
	IdpId *string `protobuf:"bytes,7,opt,name=idp_id,json=idpId,proto3,oneof" json:"idp_id,omitempty"`
	// AccountType - user account type: federated or local
	AccountType UserAccountType `` /* 150-byte string literal not displayed */
	// CustomerId customer id where user is invited
	CustomerId string `protobuf:"bytes,15,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// contains filtered or unexported fields
}

InviteUserRequest - invite user to customer request

func (*InviteUserRequest) Descriptor deprecated

func (*InviteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use InviteUserRequest.ProtoReflect.Descriptor instead.

func (*InviteUserRequest) GetAccountType

func (x *InviteUserRequest) GetAccountType() UserAccountType

func (*InviteUserRequest) GetCustomerId

func (x *InviteUserRequest) GetCustomerId() string

func (*InviteUserRequest) GetEmail

func (x *InviteUserRequest) GetEmail() string

func (*InviteUserRequest) GetFederative

func (x *InviteUserRequest) GetFederative() bool

func (*InviteUserRequest) GetFirstName

func (x *InviteUserRequest) GetFirstName() string

func (*InviteUserRequest) GetIdpId

func (x *InviteUserRequest) GetIdpId() string

func (*InviteUserRequest) GetLastName

func (x *InviteUserRequest) GetLastName() string

func (*InviteUserRequest) GetMiddleName

func (x *InviteUserRequest) GetMiddleName() string

func (*InviteUserRequest) GetUserName

func (x *InviteUserRequest) GetUserName() string

func (*InviteUserRequest) ProtoMessage

func (*InviteUserRequest) ProtoMessage()

func (*InviteUserRequest) ProtoReflect

func (x *InviteUserRequest) ProtoReflect() protoreflect.Message

func (*InviteUserRequest) Reset

func (x *InviteUserRequest) Reset()

func (*InviteUserRequest) String

func (x *InviteUserRequest) String() string

func (*InviteUserRequest) Validate

func (m *InviteUserRequest) Validate() error

Validate checks the field values on InviteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*InviteUserRequest) ValidateAll

func (m *InviteUserRequest) ValidateAll() error

ValidateAll checks the field values on InviteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InviteUserRequestMultiError, or nil if none found.

type InviteUserRequestMultiError

type InviteUserRequestMultiError []error

InviteUserRequestMultiError is an error wrapping multiple validation errors returned by InviteUserRequest.ValidateAll() if the designated constraints aren't met.

func (InviteUserRequestMultiError) AllErrors

func (m InviteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InviteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type InviteUserRequestValidationError

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

InviteUserRequestValidationError is the validation error returned by InviteUserRequest.Validate if the designated constraints aren't met.

func (InviteUserRequestValidationError) Cause

Cause function returns cause value.

func (InviteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (InviteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (InviteUserRequestValidationError) Field

Field function returns field value.

func (InviteUserRequestValidationError) Key

Key function returns key value.

func (InviteUserRequestValidationError) Reason

Reason function returns reason value.

type InviteUserResponse

type InviteUserResponse struct {

	// UserID - id of created user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

InviteUserResponse - invite user to customer response

func (*InviteUserResponse) Descriptor deprecated

func (*InviteUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use InviteUserResponse.ProtoReflect.Descriptor instead.

func (*InviteUserResponse) GetUserId

func (x *InviteUserResponse) GetUserId() string

func (*InviteUserResponse) ProtoMessage

func (*InviteUserResponse) ProtoMessage()

func (*InviteUserResponse) ProtoReflect

func (x *InviteUserResponse) ProtoReflect() protoreflect.Message

func (*InviteUserResponse) Reset

func (x *InviteUserResponse) Reset()

func (*InviteUserResponse) String

func (x *InviteUserResponse) String() string

func (*InviteUserResponse) Validate

func (m *InviteUserResponse) Validate() error

Validate checks the field values on InviteUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*InviteUserResponse) ValidateAll

func (m *InviteUserResponse) ValidateAll() error

ValidateAll checks the field values on InviteUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InviteUserResponseMultiError, or nil if none found.

type InviteUserResponseMultiError

type InviteUserResponseMultiError []error

InviteUserResponseMultiError is an error wrapping multiple validation errors returned by InviteUserResponse.ValidateAll() if the designated constraints aren't met.

func (InviteUserResponseMultiError) AllErrors

func (m InviteUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InviteUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type InviteUserResponseValidationError

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

InviteUserResponseValidationError is the validation error returned by InviteUserResponse.Validate if the designated constraints aren't met.

func (InviteUserResponseValidationError) Cause

Cause function returns cause value.

func (InviteUserResponseValidationError) Error

Error satisfies the builtin error interface

func (InviteUserResponseValidationError) ErrorName

ErrorName returns error name.

func (InviteUserResponseValidationError) Field

Field function returns field value.

func (InviteUserResponseValidationError) Key

Key function returns key value.

func (InviteUserResponseValidationError) Reason

Reason function returns reason value.

type ListUsersRequest

type ListUsersRequest struct {

	// CustomerID - customer id
	CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// Email - user email. Search users by partial match
	Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
	// UserName - user's username. Search users by partial match
	UserName *string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3,oneof" json:"user_name,omitempty"`
	// IsFederative - flag to filter only federative/local users
	// Deprecated - use AccountType field instead
	IsFederative *bool `protobuf:"varint,4,opt,name=is_federative,json=isFederative,proto3,oneof" json:"is_federative,omitempty"`
	// Limit - count of elements per page
	Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	// Before - cursor for the previous page
	Before string `protobuf:"bytes,6,opt,name=before,proto3" json:"before,omitempty"`
	// After - cursor for the next page
	After string `protobuf:"bytes,7,opt,name=after,proto3" json:"after,omitempty"`
	// AccountType - user account type: federated or local
	AccountType *UserAccountType `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

ListUsersRequest - request to list customer users

func (*ListUsersRequest) Descriptor deprecated

func (*ListUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetAccountType

func (x *ListUsersRequest) GetAccountType() UserAccountType

func (*ListUsersRequest) GetAfter

func (x *ListUsersRequest) GetAfter() string

func (*ListUsersRequest) GetBefore

func (x *ListUsersRequest) GetBefore() string

func (*ListUsersRequest) GetCustomerId

func (x *ListUsersRequest) GetCustomerId() string

func (*ListUsersRequest) GetEmail

func (x *ListUsersRequest) GetEmail() string

func (*ListUsersRequest) GetIsFederative

func (x *ListUsersRequest) GetIsFederative() bool

func (*ListUsersRequest) GetLimit

func (x *ListUsersRequest) GetLimit() uint32

func (*ListUsersRequest) GetUserName

func (x *ListUsersRequest) GetUserName() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

func (x *ListUsersRequest) ProtoReflect() protoreflect.Message

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

func (*ListUsersRequest) Validate

func (m *ListUsersRequest) Validate() error

Validate checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersRequest) ValidateAll

func (m *ListUsersRequest) ValidateAll() error

ValidateAll checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersRequestMultiError, or nil if none found.

type ListUsersRequestMultiError

type ListUsersRequestMultiError []error

ListUsersRequestMultiError is an error wrapping multiple validation errors returned by ListUsersRequest.ValidateAll() if the designated constraints aren't met.

func (ListUsersRequestMultiError) AllErrors

func (m ListUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersRequestValidationError

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

ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.

func (ListUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

Reason function returns reason value.

type ListUsersResponse

type ListUsersResponse struct {

	// Users - list of project users
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// Limit - count of elements per page
	Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	// Cursor - cursor pagination
	Cursor *Cursor `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

ListUsersResponse - list customer users response

func (*ListUsersResponse) Descriptor deprecated

func (*ListUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetCursor

func (x *ListUsersResponse) GetCursor() *Cursor

func (*ListUsersResponse) GetLimit

func (x *ListUsersResponse) GetLimit() uint32

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

func (x *ListUsersResponse) ProtoReflect() protoreflect.Message

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

func (*ListUsersResponse) Validate

func (m *ListUsersResponse) Validate() error

Validate checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersResponse) ValidateAll

func (m *ListUsersResponse) ValidateAll() error

ValidateAll checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersResponseMultiError, or nil if none found.

type ListUsersResponseMultiError

type ListUsersResponseMultiError []error

ListUsersResponseMultiError is an error wrapping multiple validation errors returned by ListUsersResponse.ValidateAll() if the designated constraints aren't met.

func (ListUsersResponseMultiError) AllErrors

func (m ListUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersResponseValidationError

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

ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.

func (ListUsersResponseValidationError) Cause

Cause function returns cause value.

func (ListUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersResponseValidationError) Field

Field function returns field value.

func (ListUsersResponseValidationError) Key

Key function returns key value.

func (ListUsersResponseValidationError) Reason

Reason function returns reason value.

type ReInviteUserRequest

type ReInviteUserRequest struct {

	// UserID - user id
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// CustomerId - customer id where user is invited
	CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// contains filtered or unexported fields
}

ReInviteUserRequest - re-invite user request

func (*ReInviteUserRequest) Descriptor deprecated

func (*ReInviteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReInviteUserRequest.ProtoReflect.Descriptor instead.

func (*ReInviteUserRequest) GetCustomerId

func (x *ReInviteUserRequest) GetCustomerId() string

func (*ReInviteUserRequest) GetUserId

func (x *ReInviteUserRequest) GetUserId() string

func (*ReInviteUserRequest) ProtoMessage

func (*ReInviteUserRequest) ProtoMessage()

func (*ReInviteUserRequest) ProtoReflect

func (x *ReInviteUserRequest) ProtoReflect() protoreflect.Message

func (*ReInviteUserRequest) Reset

func (x *ReInviteUserRequest) Reset()

func (*ReInviteUserRequest) String

func (x *ReInviteUserRequest) String() string

func (*ReInviteUserRequest) Validate

func (m *ReInviteUserRequest) Validate() error

Validate checks the field values on ReInviteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReInviteUserRequest) ValidateAll

func (m *ReInviteUserRequest) ValidateAll() error

ValidateAll checks the field values on ReInviteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReInviteUserRequestMultiError, or nil if none found.

type ReInviteUserRequestMultiError

type ReInviteUserRequestMultiError []error

ReInviteUserRequestMultiError is an error wrapping multiple validation errors returned by ReInviteUserRequest.ValidateAll() if the designated constraints aren't met.

func (ReInviteUserRequestMultiError) AllErrors

func (m ReInviteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReInviteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ReInviteUserRequestValidationError

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

ReInviteUserRequestValidationError is the validation error returned by ReInviteUserRequest.Validate if the designated constraints aren't met.

func (ReInviteUserRequestValidationError) Cause

Cause function returns cause value.

func (ReInviteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (ReInviteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (ReInviteUserRequestValidationError) Field

Field function returns field value.

func (ReInviteUserRequestValidationError) Key

Key function returns key value.

func (ReInviteUserRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {

	// UserID - id of user to update
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// FirstName - user's first name
	FirstName *string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
	// LastName - user's last name
	LastName *string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
	// MiddleName - user's middle name
	MiddleName *string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"`
	// Enabled - flag to block/unblock user
	Enabled *bool `protobuf:"varint,5,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"`
	// CustomerId - user customer id
	CustomerId string `protobuf:"bytes,15,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserRequest - update user request

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetCustomerId

func (x *UpdateUserRequest) GetCustomerId() string

func (*UpdateUserRequest) GetEnabled

func (x *UpdateUserRequest) GetEnabled() bool

func (*UpdateUserRequest) GetFirstName

func (x *UpdateUserRequest) GetFirstName() string

func (*UpdateUserRequest) GetLastName

func (x *UpdateUserRequest) GetLastName() string

func (*UpdateUserRequest) GetMiddleName

func (x *UpdateUserRequest) GetMiddleName() string

func (*UpdateUserRequest) GetUserId

func (x *UpdateUserRequest) GetUserId() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

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

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserResponse

type UpdateUserResponse struct {

	// User - updated user
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserResponse - update user response

func (*UpdateUserResponse) Descriptor deprecated

func (*UpdateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

func (*UpdateUserResponse) Validate

func (m *UpdateUserResponse) Validate() error

Validate checks the field values on UpdateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserResponse) ValidateAll

func (m *UpdateUserResponse) ValidateAll() error

ValidateAll checks the field values on UpdateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserResponseMultiError, or nil if none found.

type UpdateUserResponseMultiError

type UpdateUserResponseMultiError []error

UpdateUserResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateUserResponseMultiError) AllErrors

func (m UpdateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserResponseValidationError

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

UpdateUserResponseValidationError is the validation error returned by UpdateUserResponse.Validate if the designated constraints aren't met.

func (UpdateUserResponseValidationError) Cause

Cause function returns cause value.

func (UpdateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserResponseValidationError) Field

Field function returns field value.

func (UpdateUserResponseValidationError) Key

Key function returns key value.

func (UpdateUserResponseValidationError) Reason

Reason function returns reason value.

type User

type User struct {

	// UserID - id of user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Username - username of user
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// Email - email of user
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// FirstName - first name of user
	FirstName *string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
	// LastName - last name of user
	LastName *string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
	// MiddleName - middle name of user
	MiddleName *string `protobuf:"bytes,6,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"`
	// Enabled - flag meaning if user is disabled or not
	Enabled *bool `protobuf:"varint,7,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"`
	// AccountType - user account type.
	// Can be either federated or local
	AccountType UserAccountType `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

User - user data

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAccountType

func (x *User) GetAccountType() UserAccountType

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEnabled

func (x *User) GetEnabled() bool

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetMiddleName

func (x *User) GetMiddleName() string

func (*User) GetUserId

func (x *User) GetUserId() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserAccountType

type UserAccountType int32

UserAccountType - user account type undefined - unknown value federated - account type for users with authentication via identity provider local - account type for local users

const (
	UserAccountType_USER_ACCOUNT_TYPE_UNDEFINED UserAccountType = 0
	UserAccountType_USER_ACCOUNT_TYPE_FEDERATED UserAccountType = 1
	UserAccountType_USER_ACCOUNT_TYPE_LOCAL     UserAccountType = 2
)

func (UserAccountType) Descriptor

func (UserAccountType) Enum

func (x UserAccountType) Enum() *UserAccountType

func (UserAccountType) EnumDescriptor deprecated

func (UserAccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserAccountType.Descriptor instead.

func (UserAccountType) Number

func (UserAccountType) String

func (x UserAccountType) String() string

func (UserAccountType) Type

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

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

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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