Documentation ¶
Index ¶
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCountry() string
- func (m *Address) GetFormatted() string
- func (m *Address) GetLocality() string
- func (m *Address) GetPostalCode() string
- func (m *Address) GetPrimary() bool
- func (m *Address) GetRef() string
- func (m *Address) GetRegion() string
- func (m *Address) GetStreetAddress() string
- func (m *Address) GetType() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)
- func (m *Attribute) GetDisplay() string
- func (m *Attribute) GetExtensionVerified() bool
- func (m *Attribute) GetPrimary() bool
- func (m *Attribute) GetRef() string
- func (m *Attribute) GetType() string
- func (m *Attribute) GetValue() string
- func (*Attribute) ProtoMessage()
- func (m *Attribute) Reset()
- func (m *Attribute) String() string
- func (m *Attribute) XXX_DiscardUnknown()
- func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attribute) XXX_Merge(src proto.Message)
- func (m *Attribute) XXX_Size() int
- func (m *Attribute) XXX_Unmarshal(b []byte) error
- type EnterpriseUserExtension
- func (*EnterpriseUserExtension) Descriptor() ([]byte, []int)
- func (m *EnterpriseUserExtension) GetCostCenter() string
- func (m *EnterpriseUserExtension) GetDepartment() string
- func (m *EnterpriseUserExtension) GetDivision() string
- func (m *EnterpriseUserExtension) GetEmployeeNumber() string
- func (m *EnterpriseUserExtension) GetManager() *Manager
- func (m *EnterpriseUserExtension) GetOrganization() string
- func (*EnterpriseUserExtension) ProtoMessage()
- func (m *EnterpriseUserExtension) Reset()
- func (m *EnterpriseUserExtension) String() string
- func (m *EnterpriseUserExtension) XXX_DiscardUnknown()
- func (m *EnterpriseUserExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnterpriseUserExtension) XXX_Merge(src proto.Message)
- func (m *EnterpriseUserExtension) XXX_Size() int
- func (m *EnterpriseUserExtension) XXX_Unmarshal(b []byte) error
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)
- func (m *ListUsersResponse) GetItemsPerPage() uint32
- func (m *ListUsersResponse) GetResources() []*User
- func (m *ListUsersResponse) GetSchemas() []string
- func (m *ListUsersResponse) GetStartIndex() uint32
- func (m *ListUsersResponse) GetTotalResults() uint32
- func (*ListUsersResponse) ProtoMessage()
- func (m *ListUsersResponse) Reset()
- func (m *ListUsersResponse) String() string
- func (m *ListUsersResponse) XXX_DiscardUnknown()
- func (m *ListUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListUsersResponse) XXX_Merge(src proto.Message)
- func (m *ListUsersResponse) XXX_Size() int
- func (m *ListUsersResponse) XXX_Unmarshal(b []byte) error
- type Manager
- func (*Manager) Descriptor() ([]byte, []int)
- func (m *Manager) GetDisplayName() string
- func (m *Manager) GetRef() string
- func (m *Manager) GetValue() string
- func (*Manager) ProtoMessage()
- func (m *Manager) Reset()
- func (m *Manager) String() string
- func (m *Manager) XXX_DiscardUnknown()
- func (m *Manager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Manager) XXX_Merge(src proto.Message)
- func (m *Manager) XXX_Size() int
- func (m *Manager) XXX_Unmarshal(b []byte) error
- type Name
- func (*Name) Descriptor() ([]byte, []int)
- func (m *Name) GetFamilyName() string
- func (m *Name) GetFormatted() string
- func (m *Name) GetGivenName() string
- func (m *Name) GetHonorificPrefix() string
- func (m *Name) GetHonorificSuffix() string
- func (m *Name) GetMiddleName() string
- func (*Name) ProtoMessage()
- func (m *Name) Reset()
- func (m *Name) String() string
- func (m *Name) XXX_DiscardUnknown()
- func (m *Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Name) XXX_Merge(src proto.Message)
- func (m *Name) XXX_Size() int
- func (m *Name) XXX_Unmarshal(b []byte) error
- type Patch
- func (*Patch) Descriptor() ([]byte, []int)
- func (m *Patch) GetOperations() []*Patch_Operation
- func (m *Patch) GetSchemas() []string
- func (*Patch) ProtoMessage()
- func (m *Patch) Reset()
- func (m *Patch) String() string
- func (m *Patch) XXX_DiscardUnknown()
- func (m *Patch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Patch) XXX_Merge(src proto.Message)
- func (m *Patch) XXX_Size() int
- func (m *Patch) XXX_Unmarshal(b []byte) error
- type Patch_Operation
- func (*Patch_Operation) Descriptor() ([]byte, []int)
- func (m *Patch_Operation) GetOp() string
- func (m *Patch_Operation) GetPath() string
- func (m *Patch_Operation) GetValue() string
- func (*Patch_Operation) ProtoMessage()
- func (m *Patch_Operation) Reset()
- func (m *Patch_Operation) String() string
- func (m *Patch_Operation) XXX_DiscardUnknown()
- func (m *Patch_Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Patch_Operation) XXX_Merge(src proto.Message)
- func (m *Patch_Operation) XXX_Size() int
- func (m *Patch_Operation) XXX_Unmarshal(b []byte) error
- type ResourceMetadata
- func (*ResourceMetadata) Descriptor() ([]byte, []int)
- func (m *ResourceMetadata) GetCreated() string
- func (m *ResourceMetadata) GetLastModified() string
- func (m *ResourceMetadata) GetLocation() string
- func (m *ResourceMetadata) GetResourceType() string
- func (m *ResourceMetadata) GetVersion() string
- func (*ResourceMetadata) ProtoMessage()
- func (m *ResourceMetadata) Reset()
- func (m *ResourceMetadata) String() string
- func (m *ResourceMetadata) XXX_DiscardUnknown()
- func (m *ResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceMetadata) XXX_Merge(src proto.Message)
- func (m *ResourceMetadata) XXX_Size() int
- func (m *ResourceMetadata) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetActive() bool
- func (m *User) GetAddresses() []*Address
- func (m *User) GetDisplayName() string
- func (m *User) GetEmails() []*Attribute
- func (m *User) GetEnterpriseExtension() *EnterpriseUserExtension
- func (m *User) GetEntitlements() []*Attribute
- func (m *User) GetExternalId() string
- func (m *User) GetGroups() []*Attribute
- func (m *User) GetId() string
- func (m *User) GetIms() []*Attribute
- func (m *User) GetLocale() string
- func (m *User) GetMeta() *ResourceMetadata
- func (m *User) GetName() *Name
- func (m *User) GetNickName() string
- func (m *User) GetPassword() string
- func (m *User) GetPhoneNumbers() []*Attribute
- func (m *User) GetPhotos() []*Attribute
- func (m *User) GetPreferredLanguage() string
- func (m *User) GetProfileUrl() string
- func (m *User) GetRoles() []*Attribute
- func (m *User) GetSchemas() []string
- func (m *User) GetTimezone() string
- func (m *User) GetTitle() string
- func (m *User) GetUserName() string
- func (m *User) GetUserType() string
- func (m *User) GetX509Certificates() []*Attribute
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { // A label indicating the attribute's function, e.g., "work" or "home". Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // A Boolean value indicating the 'primary' or preferred attribute // value for this attribute, e.g., the preferred mailing address or // the primary email address. The primary attribute value "true" // MUST appear no more than once. If not specified, the value of // "primary" SHALL be assumed to be "false". Primary bool `protobuf:"varint,2,opt,name=primary,proto3" json:"primary,omitempty"` // The reference URI of a target resource, if the attribute is a // reference. URIs are canonicalized per Section 6.2 of [RFC3986]. // While the representation of a resource may vary in different SCIM // protocol API versions (see Section 3.13 of [RFC7644]), URIs for // SCIM resources with an API version SHALL be considered comparable // to URIs without a version or with a different version. For // example, "https://example.com/Users/12345" is equivalent to // "https://example.com/v2/Users/12345". Ref string `protobuf:"bytes,3,opt,name=ref,json=$ref,proto3" json:"ref,omitempty"` // The full mailing address, formatted for display or use // with a mailing label. This attribute MAY contain newlines. Formatted string `protobuf:"bytes,4,opt,name=formatted,proto3" json:"formatted,omitempty"` // The full street address component, which may include house number, street // name, P.O. box, and multi-line extended street address information. This // attribute MAY contain newlines. StreetAddress string `protobuf:"bytes,5,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` // The city or locality component. Locality string `protobuf:"bytes,6,opt,name=locality,proto3" json:"locality,omitempty"` // The state or region component. Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` // The zipcode or postal code component. PostalCode string `protobuf:"bytes,8,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` // The country name component. When specified the value MUST be in ISO 3166-1 // alpha 2 "short" code format; e.g., the United States and Sweden are "US" // and "SE", respectively. Country string `protobuf:"bytes,9,opt,name=country,proto3" json:"country,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A physical mailing address for this User.
func (*Address) Descriptor ¶
func (*Address) GetCountry ¶
func (*Address) GetFormatted ¶
func (*Address) GetLocality ¶
func (*Address) GetPostalCode ¶
func (*Address) GetPrimary ¶
func (*Address) GetStreetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type Attribute ¶
type Attribute struct { // A label indicating the attribute's function, e.g., "work" or "home". Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // A Boolean value indicating the 'primary' or preferred attribute // value for this attribute, e.g., the preferred mailing address or // the primary email address. The primary attribute value "true" // MUST appear no more than once. If not specified, the value of // "primary" SHALL be assumed to be "false". Primary bool `protobuf:"varint,2,opt,name=primary,proto3" json:"primary,omitempty"` // A human-readable name, primarily used for display purposes and // having a mutability of "immutable". Display string `protobuf:"bytes,3,opt,name=display,proto3" json:"display,omitempty"` // The attribute's significant value, e.g., email address, phone number. Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // The reference URI of a target resource, if the attribute is a // reference. URIs are canonicalized per Section 6.2 of [RFC3986]. // While the representation of a resource may vary in different SCIM // protocol API versions (see Section 3.13 of [RFC7644]), URIs for // SCIM resources with an API version SHALL be considered comparable // to URIs without a version or with a different version. For // example, "https://example.com/Users/12345" is equivalent to // "https://example.com/v2/Users/12345". Ref string `protobuf:"bytes,5,opt,name=ref,json=$ref,proto3" json:"ref,omitempty"` // CUSTOM EXTENSION. The attribute's value has been verified via a trusted // source or a trusted protocol as evidence that this attribute's value // belongs to the user. ExtensionVerified bool `protobuf:"varint,6,opt,name=extension_verified,json=verified,proto3" json:"extension_verified,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Attribute encodes https://tools.ietf.org/html/rfc7643#section-2.4
func (*Attribute) Descriptor ¶
func (*Attribute) GetDisplay ¶
func (*Attribute) GetExtensionVerified ¶
func (*Attribute) GetPrimary ¶
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) XXX_DiscardUnknown ¶
func (m *Attribute) XXX_DiscardUnknown()
func (*Attribute) XXX_Marshal ¶
func (*Attribute) XXX_Unmarshal ¶
type EnterpriseUserExtension ¶
type EnterpriseUserExtension struct { // Numeric or alphanumeric identifier assigned to a person, typically based on // order of hire or association with an organization. EmployeeNumber string `protobuf:"bytes,1,opt,name=employee_number,json=employeeNumber,proto3" json:"employee_number,omitempty"` // Identifies the name of a cost center. CostCenter string `protobuf:"bytes,2,opt,name=cost_center,json=costCenter,proto3" json:"cost_center,omitempty"` // Identifies the name of an organization. Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` // Identifies the name of a division. Division string `protobuf:"bytes,5,opt,name=division,proto3" json:"division,omitempty"` // Identifies the name of a department. Department string `protobuf:"bytes,6,opt,name=department,proto3" json:"department,omitempty"` // Represents organizational hierarchy by referencing another User. Manager *Manager `protobuf:"bytes,7,opt,name=manager,proto3" json:"manager,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This SCIM extension defines attributes commonly used in representing users that belong to, or act on behalf of a business or enterprise. See: https://tools.ietf.org/html/rfc7643#section-4.3
func (*EnterpriseUserExtension) Descriptor ¶
func (*EnterpriseUserExtension) Descriptor() ([]byte, []int)
func (*EnterpriseUserExtension) GetCostCenter ¶
func (m *EnterpriseUserExtension) GetCostCenter() string
func (*EnterpriseUserExtension) GetDepartment ¶
func (m *EnterpriseUserExtension) GetDepartment() string
func (*EnterpriseUserExtension) GetDivision ¶
func (m *EnterpriseUserExtension) GetDivision() string
func (*EnterpriseUserExtension) GetEmployeeNumber ¶
func (m *EnterpriseUserExtension) GetEmployeeNumber() string
func (*EnterpriseUserExtension) GetManager ¶
func (m *EnterpriseUserExtension) GetManager() *Manager
func (*EnterpriseUserExtension) GetOrganization ¶
func (m *EnterpriseUserExtension) GetOrganization() string
func (*EnterpriseUserExtension) ProtoMessage ¶
func (*EnterpriseUserExtension) ProtoMessage()
func (*EnterpriseUserExtension) Reset ¶
func (m *EnterpriseUserExtension) Reset()
func (*EnterpriseUserExtension) String ¶
func (m *EnterpriseUserExtension) String() string
func (*EnterpriseUserExtension) XXX_DiscardUnknown ¶
func (m *EnterpriseUserExtension) XXX_DiscardUnknown()
func (*EnterpriseUserExtension) XXX_Marshal ¶
func (m *EnterpriseUserExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnterpriseUserExtension) XXX_Merge ¶
func (m *EnterpriseUserExtension) XXX_Merge(src proto.Message)
func (*EnterpriseUserExtension) XXX_Size ¶
func (m *EnterpriseUserExtension) XXX_Size() int
func (*EnterpriseUserExtension) XXX_Unmarshal ¶
func (m *EnterpriseUserExtension) XXX_Unmarshal(b []byte) error
type ListUsersResponse ¶
type ListUsersResponse struct { // List of SCIM User resources. Resources []*User `protobuf:"bytes,1,rep,name=resources,json=Resources,proto3" json:"resources,omitempty"` // Index of the first element of the page. StartIndex uint32 `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` // Number of items in current page. ItemsPerPage uint32 `protobuf:"varint,3,opt,name=items_per_page,json=itemsPerPage,proto3" json:"items_per_page,omitempty"` // Number of results matched for this query. TotalResults uint32 `protobuf:"varint,4,opt,name=total_results,json=totalResults,proto3" json:"total_results,omitempty"` // The schemas attribute is an array of Strings which allows introspection of // the supported schema version for a SCIM representation as well any schema // extensions supported by that representation. Each String value must be a // unique URI. This specification defines URIs for User, Group, and a standard // "enterprise" extension. All representations of SCIM schema MUST include a // non-zero value array with value(s) of the URIs supported by that // representation. Duplicate values MUST NOT be included. Value order is not // specified and MUST not impact behavior. REQUIRED. Schemas []string `protobuf:"bytes,5,rep,name=schemas,proto3" json:"schemas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for ListUsers per https://tools.ietf.org/html/rfc7644#section-3.4.2
func (*ListUsersResponse) Descriptor ¶
func (*ListUsersResponse) Descriptor() ([]byte, []int)
func (*ListUsersResponse) GetItemsPerPage ¶
func (m *ListUsersResponse) GetItemsPerPage() uint32
func (*ListUsersResponse) GetResources ¶
func (m *ListUsersResponse) GetResources() []*User
func (*ListUsersResponse) GetSchemas ¶
func (m *ListUsersResponse) GetSchemas() []string
func (*ListUsersResponse) GetStartIndex ¶
func (m *ListUsersResponse) GetStartIndex() uint32
func (*ListUsersResponse) GetTotalResults ¶
func (m *ListUsersResponse) GetTotalResults() uint32
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) Reset ¶
func (m *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (m *ListUsersResponse) String() string
func (*ListUsersResponse) XXX_DiscardUnknown ¶
func (m *ListUsersResponse) XXX_DiscardUnknown()
func (*ListUsersResponse) XXX_Marshal ¶
func (m *ListUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListUsersResponse) XXX_Merge ¶
func (m *ListUsersResponse) XXX_Merge(src proto.Message)
func (*ListUsersResponse) XXX_Size ¶
func (m *ListUsersResponse) XXX_Size() int
func (*ListUsersResponse) XXX_Unmarshal ¶
func (m *ListUsersResponse) XXX_Unmarshal(b []byte) error
type Manager ¶
type Manager struct { // The "id" of the SCIM resource representing the user's manager. // RECOMMENDED. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // The URI of the SCIM resource representing the User's manager. RECOMMENDED. Ref string `protobuf:"bytes,2,opt,name=ref,json=$ref,proto3" json:"ref,omitempty"` // The displayName of the user's manager. This attribute is OPTIONAL, and // mutability is "readOnly". DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A complex type that optionally allows service providers to represent organizational hierarchy by referencing the "id" attribute of another User.
func (*Manager) Descriptor ¶
func (*Manager) GetDisplayName ¶
func (*Manager) ProtoMessage ¶
func (*Manager) ProtoMessage()
func (*Manager) XXX_DiscardUnknown ¶
func (m *Manager) XXX_DiscardUnknown()
func (*Manager) XXX_Marshal ¶
func (*Manager) XXX_Unmarshal ¶
type Name ¶
type Name struct { // The full name, including all middle names, titles, and suffixes as // appropriate, formatted for display (e.g., "Ms. Barbara Jane Jensen, III"). Formatted string `protobuf:"bytes,1,opt,name=formatted,proto3" json:"formatted,omitempty"` // The family name of the User, or "Last Name" in most Western languages (e.g. // Jensen given the full name Ms. Barbara Jane Jensen, III.). FamilyName string `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` // The given name of the User, or "First Name" in most Western languages (e.g. // Barbara given the full name Ms. Barbara Jane Jensen, III.). GivenName string `protobuf:"bytes,3,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` // The middle name(s) of the User (e.g., "Jane" given the full name // "Ms. Barbara Jane Jensen, III"). MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` // The honorific prefix(es) of the User, or title in most Western languages // (e.g., "Ms." given the full name "Ms. Barbara Jane Jensen, III"). HonorificPrefix string `protobuf:"bytes,5,opt,name=honorific_prefix,json=honorificPrefix,proto3" json:"honorific_prefix,omitempty"` // The honorific suffix(es) of the User, or suffix in most Western languages // (e.g., "III" given the full name "Ms. Barbara Jane Jensen, III"). HonorificSuffix string `protobuf:"bytes,6,opt,name=honorific_suffix,json=honorificSuffix,proto3" json:"honorific_suffix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Name of the user.
func (*Name) Descriptor ¶
func (*Name) GetFamilyName ¶
func (*Name) GetFormatted ¶
func (*Name) GetGivenName ¶
func (*Name) GetHonorificPrefix ¶
func (*Name) GetHonorificSuffix ¶
func (*Name) GetMiddleName ¶
func (*Name) ProtoMessage ¶
func (*Name) ProtoMessage()
func (*Name) XXX_DiscardUnknown ¶
func (m *Name) XXX_DiscardUnknown()
func (*Name) XXX_Unmarshal ¶
type Patch ¶
type Patch struct { // The schemas attribute is an array of Strings which allows introspection of // the supported schema version for a SCIM representation as well any schema // extensions supported by that representation. Each String value must be a // unique URI. This specification defines URIs for User, Group, and a standard // "enterprise" extension. All representations of SCIM schema MUST include a // non-zero value array with value(s) of the URIs supported by that // representation. Duplicate values MUST NOT be included. Value order is not // specified and MUST not impact behavior. REQUIRED. Schemas []string `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"` // A batch of operations to perform as part of a PATCH. Operations []*Patch_Operation `protobuf:"bytes,2,rep,name=operations,json=Operations,proto3" json:"operations,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PATCH request operation as per https://tools.ietf.org/html/rfc7644#section-3.5.2.
func (*Patch) Descriptor ¶
func (*Patch) GetOperations ¶
func (m *Patch) GetOperations() []*Patch_Operation
func (*Patch) GetSchemas ¶
func (*Patch) ProtoMessage ¶
func (*Patch) ProtoMessage()
func (*Patch) XXX_DiscardUnknown ¶
func (m *Patch) XXX_DiscardUnknown()
func (*Patch) XXX_Marshal ¶
func (*Patch) XXX_Unmarshal ¶
type Patch_Operation ¶
type Patch_Operation struct { // Operation objects MUST have exactly one "op" member, whose value // indicates the operation to perform. Its value MUST be one of "add", // "remove", "replace", "move", "copy", or "test"; other values are // errors. Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"` // Objects MUST have exactly one "path" member. That member's value is a // string containing a JSON-Pointer value [RFC6901] that references a // location within the target document (the "target location") where the // operation is performed. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The value to patch related to the given operation and path. Not supplied // if operation is "remove". Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
JavaScript Object Notation (JSON) Patch [RFC6902].
func (*Patch_Operation) Descriptor ¶
func (*Patch_Operation) Descriptor() ([]byte, []int)
func (*Patch_Operation) GetOp ¶
func (m *Patch_Operation) GetOp() string
func (*Patch_Operation) GetPath ¶
func (m *Patch_Operation) GetPath() string
func (*Patch_Operation) GetValue ¶
func (m *Patch_Operation) GetValue() string
func (*Patch_Operation) ProtoMessage ¶
func (*Patch_Operation) ProtoMessage()
func (*Patch_Operation) Reset ¶
func (m *Patch_Operation) Reset()
func (*Patch_Operation) String ¶
func (m *Patch_Operation) String() string
func (*Patch_Operation) XXX_DiscardUnknown ¶
func (m *Patch_Operation) XXX_DiscardUnknown()
func (*Patch_Operation) XXX_Marshal ¶
func (m *Patch_Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Patch_Operation) XXX_Merge ¶
func (m *Patch_Operation) XXX_Merge(src proto.Message)
func (*Patch_Operation) XXX_Size ¶
func (m *Patch_Operation) XXX_Size() int
func (*Patch_Operation) XXX_Unmarshal ¶
func (m *Patch_Operation) XXX_Unmarshal(b []byte) error
type ResourceMetadata ¶
type ResourceMetadata struct { // The name of the resource type of the resource. This attribute has a // mutability of "readOnly" and "caseExact" as "true". ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // The DateTime the Resource was added to the Service Provider. Created string `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"` // The most recent DateTime that the details of this resource were updated at // the service provider. If this resource has never been modified since its // initial creation, the value MUST be the same as the value of "created". LastModified string `protobuf:"bytes,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` // The URI of the resource being returned. This value MUST be the same as // the "Content-Location" HTTP response header (see Section 3.1.4.2 of // [RFC7231]). Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` // The version of the resource being returned. This value must be the same // as the entity-tag (ETag) HTTP response header (see Sections 2.1 and 2.3 of // [RFC7232]). This attribute has "caseExact" as "true". Service provider // support for this attribute is optional and subject to the service // provider's support for versioning (see Section 3.14 of [RFC7644]). If a // service provider provides "version" (entity-tag) for a // representation and the generation of that entity-tag does not // satisfy all of the characteristics of a strong validator (see // Section 2.1 of [RFC7232]), then the origin server MUST mark the // "version" (entity-tag) as weak by prefixing its opaque value // with "W/" (case sensitive). Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Metadata about the resource.
func (*ResourceMetadata) Descriptor ¶
func (*ResourceMetadata) Descriptor() ([]byte, []int)
func (*ResourceMetadata) GetCreated ¶
func (m *ResourceMetadata) GetCreated() string
func (*ResourceMetadata) GetLastModified ¶
func (m *ResourceMetadata) GetLastModified() string
func (*ResourceMetadata) GetLocation ¶
func (m *ResourceMetadata) GetLocation() string
func (*ResourceMetadata) GetResourceType ¶
func (m *ResourceMetadata) GetResourceType() string
func (*ResourceMetadata) GetVersion ¶
func (m *ResourceMetadata) GetVersion() string
func (*ResourceMetadata) ProtoMessage ¶
func (*ResourceMetadata) ProtoMessage()
func (*ResourceMetadata) Reset ¶
func (m *ResourceMetadata) Reset()
func (*ResourceMetadata) String ¶
func (m *ResourceMetadata) String() string
func (*ResourceMetadata) XXX_DiscardUnknown ¶
func (m *ResourceMetadata) XXX_DiscardUnknown()
func (*ResourceMetadata) XXX_Marshal ¶
func (m *ResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceMetadata) XXX_Merge ¶
func (m *ResourceMetadata) XXX_Merge(src proto.Message)
func (*ResourceMetadata) XXX_Size ¶
func (m *ResourceMetadata) XXX_Size() int
func (*ResourceMetadata) XXX_Unmarshal ¶
func (m *ResourceMetadata) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { // The schemas attribute is an array of Strings which allows introspection of // the supported schema version for a SCIM representation as well any schema // extensions supported by that representation. Each String value must be a // unique URI. This specification defines URIs for User, Group, and a standard // "enterprise" extension. All representations of SCIM schema MUST include a // non-zero value array with value(s) of the URIs supported by that // representation. Duplicate values MUST NOT be included. Value order is not // specified and MUST not impact behavior. REQUIRED. Schemas []string `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"` // Unique identifier for the SCIM Resource as defined by the Service Provider. // This is returned when the resource is created. // Each representation of the Resource MUST include a non-empty id value. This // identifier MUST be unique across the Service Provider's entire set of // Resources. It MUST be a stable, non-reassignable identifier that does not // change when the same Resource is returned in subsequent requests. The value // of the id attribute is always issued by the Service Provider and MUST never // be specified by the Service Consumer. bulkId: is a reserved keyword and // MUST NOT be used in the unique identifier. REQUIRED and READ-ONLY. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // An identifier for the Resource as defined by the Service Consumer. The // externalId may simplify identification of the Resource between Service // Consumer and Service provider by allowing the Consumer to refer to the // Resource with its own identifier, obviating the need to store a local // mapping between the local identifier of the Resource and the identifier // used by the Service Provider. Each Resource MAY include a non-empty // externalId value. The value of the externalId attribute is always issued be // the Service Consumer and can never be specified by the Service Provider. // The Service Provider MUST always interpret the externalId as scoped to the // Service Consumer's tenant. ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` // A complex attribute containing resource metadata. All sub-attributes are // OPTIONAL. Meta *ResourceMetadata `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` // Unique identifier for the User, typically used by the user to directly // authenticate to the service provider. Often displayed to the user // as their unique identifier within the system (as opposed to id or // externalId, which are generally opaque and not user-friendly identifiers). // Each User MUST include a non-empty userName value. This identifier MUST be // unique across the Service Consumer's entire set of Users. REQUIRED. UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` // The components of the User's real name. Providers MAY return just the full // name as a single string in the formatted sub-attribute, or they MAY return // just the individual component attributes using the other sub-attributes, or // they MAY return both. If both variants are returned, they SHOULD be // describing the same name, with the formatted name indicating how the // component attributes should be combined. Name *Name `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // The name of the User, suitable for display to end-users. The name SHOULD // be the full name of the User being described, if known. DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The casual way to address the user in real life, e.g., 'Bob' or 'Bobby' // instead of 'Robert'. This attribute SHOULD NOT be used to represent a // User's username (e.g., 'bjensen' or 'mpepperidge'). NickName string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` // A fully qualified URL to a page representing the User's online profile. ProfileUrl string `protobuf:"bytes,9,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"` // The user's title, such as "Vice President." Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` // Used to identify the relationship between the organization and the // user. Typical values used might be "Contractor", "Employee", // "Intern", "Temp", "External", and "Unknown", but any value may be // used. UserType string `protobuf:"bytes,11,opt,name=user_type,json=userType,proto3" json:"user_type,omitempty"` // Indicates the user's preferred written or spoken languages and is // generally used for selecting a localized user interface. The // value indicates the set of natural languages that are preferred. // The format of the value is the same as the HTTP Accept-Language // header field (not including "Accept-Language:") and is specified // in Section 5.3.5 of [RFC7231]. The intent of this value is to // enable cloud applications to perform matching of language tags // [RFC4647] to the user's language preferences, regardless of what // may be indicated by a user agent (which might be shared), or in an // interaction that does not involve a user (such as in a delegated // OAuth 2.0 [RFC6749] style interaction) where normal HTTP // Accept-Language header negotiation cannot take place. PreferredLanguage string `protobuf:"bytes,12,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` // Used to indicate the User's default location for purposes of // localizing such items as currency, date time format, or numerical // representations. A valid value is a language tag as defined in // [RFC5646]. Computer languages are explicitly excluded. // // A language tag is a sequence of one or more case-insensitive // sub-tags, each separated by a hyphen character ("-", %x2D). For // backward compatibility, servers MAY accept tags separated by an // underscore character ("_", %x5F). In most cases, a language tag // consists of a primary language sub-tag that identifies a broad // family of related languages (e.g., "en" = English) and that is // optionally followed by a series of sub-tags that refine or narrow // that language's range (e.g., "en-CA" = the variety of English as // communicated in Canada). Whitespace is not allowed within a // language tag. Example tags include: // // fr, en-US, es-419, az-Arab, x-pig-latin, man-Nkoo-GN // // See [RFC5646] for further information. Locale string `protobuf:"bytes,13,opt,name=locale,proto3" json:"locale,omitempty"` // The User's time zone, in IANA Time Zone database format [RFC6557], // also known as the "Olson" time zone database format [Olson-TZ] // (e.g., "America/Los_Angeles"). Timezone string `protobuf:"bytes,14,opt,name=timezone,proto3" json:"timezone,omitempty"` // A Boolean value indicating the User's administrative status. The definitive // meaning of this attribute is determined by the Service Provider though a // value of true infers the User is, for example, able to login while a value // of false implies the User's account has been suspended. Active bool `protobuf:"varint,15,opt,name=active,proto3" json:"active,omitempty"` // UNUSED but present for completeness. Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"` // E-mail addresses for the User. The value SHOULD be canonicalized by the // Service Provider, e.g. bjensen@example.com instead of bjensen@EXAMPLE.COM. // Canonical Type values of work, home, and other. Emails []*Attribute `protobuf:"bytes,17,rep,name=emails,proto3" json:"emails,omitempty"` // Phone numbers for the User. The value SHOULD be canonicalized by the // Service Provider according to format in RFC3966 e.g. 'tel:+1-201-555-0123'. // Canonical Type values of work, home, mobile, fax, pager and other. PhoneNumbers []*Attribute `protobuf:"bytes,18,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"` // Instant messaging address for the User. No official canonicalization rules // exist for all instant messaging addresses, but Service Providers SHOULD, // when appropriate, remove all whitespace and convert the address to // lowercase. Instead of the standard Canonical Values for type, this // attribute defines the following Canonical Values to represent currently // popular IM services: gtalk, icq, xmpp, msn, skype, qq. Ims []*Attribute `protobuf:"bytes,19,rep,name=ims,proto3" json:"ims,omitempty"` // A URI that is a uniform resource locator (as defined in // Section 1.1.3 of [RFC3986]) that points to a resource location // representing the user's image. The resource MUST be a file (e.g., // a GIF, JPEG, or PNG image file) rather than a web page containing // an image. Service providers MAY return the same image in // different sizes, although it is recognized that no standard for // describing images of various sizes currently exists. Note that // this attribute SHOULD NOT be used to send down arbitrary photos // taken by this user; instead, profile photos of the user that are // suitable for display when describing the user should be sent. // Instead of the standard canonical values for type, this attribute // defines the following canonical values to represent popular photo // sizes: "photo" and "thumbnail". Photos []*Attribute `protobuf:"bytes,20,rep,name=photos,proto3" json:"photos,omitempty"` // Physical mailing addresses for this User. Canonical Type Values of work, // home, and other. Addresses []*Address `protobuf:"bytes,21,rep,name=addresses,proto3" json:"addresses,omitempty"` // A list of groups to which the user belongs, either through direct // membership, through nested groups, or dynamically calculated. Groups []*Attribute `protobuf:"bytes,22,rep,name=groups,proto3" json:"groups,omitempty"` // A list of entitlements for the user that represent a thing the // user has. An entitlement may be an additional right to a thing, // object, or service. No vocabulary or syntax is specified; service // providers and clients are expected to encode sufficient // information in the value so as to accurately and without ambiguity // determine what the user has access to. This value has no // canonical types, although a type may be useful as a means to scope // entitlements. Entitlements []*Attribute `protobuf:"bytes,23,rep,name=entitlements,proto3" json:"entitlements,omitempty"` // A list of roles for the user that collectively represent who the // user is, e.g., "Student", "Faculty". No vocabulary or syntax is // specified, although it is expected that a role value is a String // or label representing a collection of entitlements. This value // has no canonical types. Roles []*Attribute `protobuf:"bytes,24,rep,name=roles,proto3" json:"roles,omitempty"` // A list of certificates associated with the resource (e.g., a // User). Each value contains exactly one DER-encoded X.509 // certificate (see Section 4 of [RFC5280]), which MUST be base64 // encoded per Section 4 of [RFC4648]. A single value MUST NOT // contain multiple certificates and so does not contain the encoding // "SEQUENCE OF Certificate" in any guise. X509Certificates []*Attribute `protobuf:"bytes,25,rep,name=x509_certificates,json=x509Certificates,proto3" json:"x509_certificates,omitempty"` // Attributes commonly used in representing users that belong to, or act on // behalf of a business or enterprise. EnterpriseExtension *EnterpriseUserExtension `` /* 158-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SCIM representation of a 'User' as per https://tools.ietf.org/html/rfc7643#section-4.1
func (*User) Descriptor ¶
func (*User) GetAddresses ¶
func (*User) GetDisplayName ¶
func (*User) GetEnterpriseExtension ¶
func (m *User) GetEnterpriseExtension() *EnterpriseUserExtension
func (*User) GetEntitlements ¶
func (*User) GetExternalId ¶
func (*User) GetMeta ¶
func (m *User) GetMeta() *ResourceMetadata
func (*User) GetNickName ¶
func (*User) GetPassword ¶
func (*User) GetPhoneNumbers ¶
func (*User) GetPreferredLanguage ¶
func (*User) GetProfileUrl ¶
func (*User) GetSchemas ¶
func (*User) GetTimezone ¶
func (*User) GetUserName ¶
func (*User) GetUserType ¶
func (*User) GetX509Certificates ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()