Documentation ¶
Index ¶
- Variables
- func NewAccountsServiceEndpoints() []*api.Endpoint
- func NewGroupsServiceEndpoints() []*api.Endpoint
- func RegisterAccountsServiceHandler(s server.Server, hdlr AccountsServiceHandler, opts ...server.HandlerOption) error
- func RegisterAccountsServiceWeb(r chi.Router, i AccountsServiceHandler, ...)
- func RegisterGroupsServiceHandler(s server.Server, hdlr GroupsServiceHandler, opts ...server.HandlerOption) error
- func RegisterGroupsServiceWeb(r chi.Router, i GroupsServiceHandler, ...)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAccountEnabled() bool
- func (x *Account) GetCreatedDateTime() *timestamp.Timestamp
- func (x *Account) GetCreationType() string
- func (x *Account) GetDeletedDateTime() *timestamp.Timestamp
- func (x *Account) GetDescription() string
- func (x *Account) GetDisplayName() string
- func (x *Account) GetExternalUserState() string
- func (x *Account) GetExternalUserStateChangeDateTime() *timestamp.Timestamp
- func (x *Account) GetGidNumber() int64
- func (x *Account) GetId() string
- func (x *Account) GetIdentities() []*Identities
- func (x *Account) GetIsResourceAccount() bool
- func (x *Account) GetMail() string
- func (x *Account) GetMemberOf() []*Group
- func (x *Account) GetOnPremisesDistinguishedName() string
- func (x *Account) GetOnPremisesDomainName() string
- func (x *Account) GetOnPremisesImmutableId() string
- func (x *Account) GetOnPremisesLastSyncDateTime() *timestamp.Timestamp
- func (x *Account) GetOnPremisesProvisioningErrors() []*OnPremisesProvisioningError
- func (x *Account) GetOnPremisesSamAccountName() string
- func (x *Account) GetOnPremisesSecurityIdentifier() string
- func (x *Account) GetOnPremisesSyncEnabled() bool
- func (x *Account) GetOnPremisesUserPrincipalName() string
- func (x *Account) GetPasswordProfile() *PasswordProfile
- func (x *Account) GetPreferredName() string
- func (x *Account) GetRefreshTokensValidFromDateTime() *timestamp.Timestamp
- func (x *Account) GetSignInSessionsValidFromDateTime() *timestamp.Timestamp
- func (x *Account) GetUidNumber() int64
- func (m *Account) MarshalJSON() ([]byte, error)
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) UnmarshalJSON(b []byte) error
- type AccountsService
- type AccountsServiceHandler
- type AddMemberRequest
- func (*AddMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddMemberRequest) GetAccountId() string
- func (x *AddMemberRequest) GetGroupId() string
- func (m *AddMemberRequest) MarshalJSON() ([]byte, error)
- func (*AddMemberRequest) ProtoMessage()
- func (x *AddMemberRequest) ProtoReflect() protoreflect.Message
- func (x *AddMemberRequest) Reset()
- func (x *AddMemberRequest) String() string
- func (m *AddMemberRequest) UnmarshalJSON(b []byte) error
- type BleveAccount
- type BleveGroup
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRequest) GetAccount() *Account
- func (m *CreateAccountRequest) MarshalJSON() ([]byte, error)
- func (*CreateAccountRequest) ProtoMessage()
- func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRequest) Reset()
- func (x *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) UnmarshalJSON(b []byte) error
- type CreateGroupRequest
- func (*CreateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupRequest) GetGroup() *Group
- func (m *CreateGroupRequest) MarshalJSON() ([]byte, error)
- func (*CreateGroupRequest) ProtoMessage()
- func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGroupRequest) Reset()
- func (x *CreateGroupRequest) String() string
- func (m *CreateGroupRequest) UnmarshalJSON(b []byte) error
- type DeleteAccountRequest
- func (*DeleteAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAccountRequest) GetId() string
- func (m *DeleteAccountRequest) MarshalJSON() ([]byte, error)
- func (*DeleteAccountRequest) ProtoMessage()
- func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAccountRequest) Reset()
- func (x *DeleteAccountRequest) String() string
- func (m *DeleteAccountRequest) UnmarshalJSON(b []byte) error
- type DeleteGroupRequest
- func (*DeleteGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGroupRequest) GetId() string
- func (m *DeleteGroupRequest) MarshalJSON() ([]byte, error)
- func (*DeleteGroupRequest) ProtoMessage()
- func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGroupRequest) Reset()
- func (x *DeleteGroupRequest) String() string
- func (m *DeleteGroupRequest) UnmarshalJSON(b []byte) error
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRequest) GetId() string
- func (m *GetAccountRequest) MarshalJSON() ([]byte, error)
- func (*GetAccountRequest) ProtoMessage()
- func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountRequest) Reset()
- func (x *GetAccountRequest) String() string
- func (m *GetAccountRequest) UnmarshalJSON(b []byte) error
- type GetGroupRequest
- func (*GetGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGroupRequest) GetId() string
- func (m *GetGroupRequest) MarshalJSON() ([]byte, error)
- func (*GetGroupRequest) ProtoMessage()
- func (x *GetGroupRequest) ProtoReflect() protoreflect.Message
- func (x *GetGroupRequest) Reset()
- func (x *GetGroupRequest) String() string
- func (m *GetGroupRequest) UnmarshalJSON(b []byte) error
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreatedDateTime() *timestamp.Timestamp
- func (x *Group) GetDeletedDateTime() *timestamp.Timestamp
- func (x *Group) GetDescription() string
- func (x *Group) GetDisplayName() string
- func (x *Group) GetExpirationDateTime() *timestamp.Timestamp
- func (x *Group) GetGidNumber() int64
- func (x *Group) GetHideFromAddressLists() bool
- func (x *Group) GetId() string
- func (x *Group) GetMembers() []*Account
- func (x *Group) GetOnPremisesDistinguishedName() string
- func (x *Group) GetOnPremisesDomainName() string
- func (x *Group) GetOnPremisesImmutableId() string
- func (x *Group) GetOnPremisesLastSyncDateTime() string
- func (x *Group) GetOnPremisesNetBiosName() string
- func (x *Group) GetOnPremisesProvisioningErrors() []*OnPremisesProvisioningError
- func (x *Group) GetOnPremisesSamAccountName() string
- func (x *Group) GetOnPremisesSecurityIdentifier() string
- func (x *Group) GetOnPremisesSyncEnabled() bool
- func (x *Group) GetOwners() []*Account
- func (x *Group) GetVisibility() string
- func (m *Group) MarshalJSON() ([]byte, error)
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- func (m *Group) UnmarshalJSON(b []byte) error
- type GroupsService
- type GroupsServiceHandler
- type Identities
- func (*Identities) Descriptor() ([]byte, []int)deprecated
- func (x *Identities) GetIssuer() string
- func (x *Identities) GetIssuerAssignedId() string
- func (x *Identities) GetSignInType() string
- func (m *Identities) MarshalJSON() ([]byte, error)
- func (*Identities) ProtoMessage()
- func (x *Identities) ProtoReflect() protoreflect.Message
- func (x *Identities) Reset()
- func (x *Identities) String() string
- func (m *Identities) UnmarshalJSON(b []byte) error
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsRequest) GetFieldMask() *field_mask.FieldMask
- func (x *ListAccountsRequest) GetPageSize() int32
- func (x *ListAccountsRequest) GetPageToken() string
- func (x *ListAccountsRequest) GetQuery() string
- func (m *ListAccountsRequest) MarshalJSON() ([]byte, error)
- func (*ListAccountsRequest) ProtoMessage()
- func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAccountsRequest) Reset()
- func (x *ListAccountsRequest) String() string
- func (m *ListAccountsRequest) UnmarshalJSON(b []byte) error
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsResponse) GetAccounts() []*Account
- func (x *ListAccountsResponse) GetNextPageToken() string
- func (m *ListAccountsResponse) MarshalJSON() ([]byte, error)
- func (*ListAccountsResponse) ProtoMessage()
- func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAccountsResponse) Reset()
- func (x *ListAccountsResponse) String() string
- func (m *ListAccountsResponse) UnmarshalJSON(b []byte) error
- type ListGroupsRequest
- func (*ListGroupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsRequest) GetFieldMask() *field_mask.FieldMask
- func (x *ListGroupsRequest) GetPageSize() int32
- func (x *ListGroupsRequest) GetPageToken() string
- func (x *ListGroupsRequest) GetQuery() string
- func (m *ListGroupsRequest) MarshalJSON() ([]byte, error)
- func (*ListGroupsRequest) ProtoMessage()
- func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message
- func (x *ListGroupsRequest) Reset()
- func (x *ListGroupsRequest) String() string
- func (m *ListGroupsRequest) UnmarshalJSON(b []byte) error
- type ListGroupsResponse
- func (*ListGroupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsResponse) GetGroups() []*Group
- func (x *ListGroupsResponse) GetNextPageToken() string
- func (m *ListGroupsResponse) MarshalJSON() ([]byte, error)
- func (*ListGroupsResponse) ProtoMessage()
- func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message
- func (x *ListGroupsResponse) Reset()
- func (x *ListGroupsResponse) String() string
- func (m *ListGroupsResponse) UnmarshalJSON(b []byte) error
- type ListMembersRequest
- func (*ListMembersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMembersRequest) GetFieldMask() *field_mask.FieldMask
- func (x *ListMembersRequest) GetId() string
- func (x *ListMembersRequest) GetPageSize() int32
- func (x *ListMembersRequest) GetPageToken() string
- func (x *ListMembersRequest) GetQuery() string
- func (m *ListMembersRequest) MarshalJSON() ([]byte, error)
- func (*ListMembersRequest) ProtoMessage()
- func (x *ListMembersRequest) ProtoReflect() protoreflect.Message
- func (x *ListMembersRequest) Reset()
- func (x *ListMembersRequest) String() string
- func (m *ListMembersRequest) UnmarshalJSON(b []byte) error
- type ListMembersResponse
- func (*ListMembersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMembersResponse) GetMembers() []*Account
- func (x *ListMembersResponse) GetNextPageToken() string
- func (m *ListMembersResponse) MarshalJSON() ([]byte, error)
- func (*ListMembersResponse) ProtoMessage()
- func (x *ListMembersResponse) ProtoReflect() protoreflect.Message
- func (x *ListMembersResponse) Reset()
- func (x *ListMembersResponse) String() string
- func (m *ListMembersResponse) UnmarshalJSON(b []byte) error
- type MockAccountsService
- func (m MockAccountsService) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...client.CallOption) (*Account, error)
- func (m MockAccountsService) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error)
- func (m MockAccountsService) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...client.CallOption) (*Account, error)
- func (m MockAccountsService) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...client.CallOption) (*ListAccountsResponse, error)
- func (m MockAccountsService) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...client.CallOption) (*Account, error)
- type OnPremisesProvisioningError
- func (*OnPremisesProvisioningError) Descriptor() ([]byte, []int)deprecated
- func (x *OnPremisesProvisioningError) GetCategory() string
- func (x *OnPremisesProvisioningError) GetOccurredDateTime() *timestamp.Timestamp
- func (x *OnPremisesProvisioningError) GetPropertyCausingError() string
- func (x *OnPremisesProvisioningError) GetValue() string
- func (m *OnPremisesProvisioningError) MarshalJSON() ([]byte, error)
- func (*OnPremisesProvisioningError) ProtoMessage()
- func (x *OnPremisesProvisioningError) ProtoReflect() protoreflect.Message
- func (x *OnPremisesProvisioningError) Reset()
- func (x *OnPremisesProvisioningError) String() string
- func (m *OnPremisesProvisioningError) UnmarshalJSON(b []byte) error
- type PasswordProfile
- func (*PasswordProfile) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordProfile) GetForceChangePasswordNextSignIn() bool
- func (x *PasswordProfile) GetForceChangePasswordNextSignInWithMfa() bool
- func (x *PasswordProfile) GetLastPasswordChangeDateTime() *timestamp.Timestamp
- func (x *PasswordProfile) GetPassword() string
- func (x *PasswordProfile) GetPasswordPolicies() []string
- func (m *PasswordProfile) MarshalJSON() ([]byte, error)
- func (*PasswordProfile) ProtoMessage()
- func (x *PasswordProfile) ProtoReflect() protoreflect.Message
- func (x *PasswordProfile) Reset()
- func (x *PasswordProfile) String() string
- func (m *PasswordProfile) UnmarshalJSON(b []byte) error
- type RemoveMemberRequest
- func (*RemoveMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveMemberRequest) GetAccountId() string
- func (x *RemoveMemberRequest) GetGroupId() string
- func (m *RemoveMemberRequest) MarshalJSON() ([]byte, error)
- func (*RemoveMemberRequest) ProtoMessage()
- func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveMemberRequest) Reset()
- func (x *RemoveMemberRequest) String() string
- func (m *RemoveMemberRequest) UnmarshalJSON(b []byte) error
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountRequest) GetAccount() *Account
- func (x *UpdateAccountRequest) GetUpdateMask() *field_mask.FieldMask
- func (m *UpdateAccountRequest) MarshalJSON() ([]byte, error)
- func (*UpdateAccountRequest) ProtoMessage()
- func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountRequest) Reset()
- func (x *UpdateAccountRequest) String() string
- func (m *UpdateAccountRequest) UnmarshalJSON(b []byte) error
- type UpdateGroupRequest
- func (*UpdateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGroupRequest) GetGroup() *Group
- func (x *UpdateGroupRequest) GetUpdateMask() *field_mask.FieldMask
- func (m *UpdateGroupRequest) MarshalJSON() ([]byte, error)
- func (*UpdateGroupRequest) ProtoMessage()
- func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGroupRequest) Reset()
- func (x *UpdateGroupRequest) String() string
- func (m *UpdateGroupRequest) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var AccountJSONMarshaler = new(jsonpb.Marshaler)
AccountJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Account. This struct is safe to replace or modify but should not be done so concurrently.
var AccountJSONUnmarshaler = new(jsonpb.Unmarshaler)
AccountJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Account. This struct is safe to replace or modify but should not be done so concurrently.
var AddMemberRequestJSONMarshaler = new(jsonpb.Marshaler)
AddMemberRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of AddMemberRequest. This struct is safe to replace or modify but should not be done so concurrently.
var AddMemberRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
AddMemberRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of AddMemberRequest. This struct is safe to replace or modify but should not be done so concurrently.
var CreateAccountRequestJSONMarshaler = new(jsonpb.Marshaler)
CreateAccountRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of CreateAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var CreateAccountRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
CreateAccountRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of CreateAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var CreateGroupRequestJSONMarshaler = new(jsonpb.Marshaler)
CreateGroupRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of CreateGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var CreateGroupRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
CreateGroupRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of CreateGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var DeleteAccountRequestJSONMarshaler = new(jsonpb.Marshaler)
DeleteAccountRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of DeleteAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var DeleteAccountRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
DeleteAccountRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of DeleteAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var DeleteGroupRequestJSONMarshaler = new(jsonpb.Marshaler)
DeleteGroupRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of DeleteGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var DeleteGroupRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
DeleteGroupRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of DeleteGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var File_accounts_proto protoreflect.FileDescriptor
var GetAccountRequestJSONMarshaler = new(jsonpb.Marshaler)
GetAccountRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of GetAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var GetAccountRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
GetAccountRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of GetAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var GetGroupRequestJSONMarshaler = new(jsonpb.Marshaler)
GetGroupRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of GetGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var GetGroupRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
GetGroupRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of GetGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var GroupJSONMarshaler = new(jsonpb.Marshaler)
GroupJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Group. This struct is safe to replace or modify but should not be done so concurrently.
var GroupJSONUnmarshaler = new(jsonpb.Unmarshaler)
GroupJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Group. This struct is safe to replace or modify but should not be done so concurrently.
var IdentitiesJSONMarshaler = new(jsonpb.Marshaler)
IdentitiesJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Identities. This struct is safe to replace or modify but should not be done so concurrently.
var IdentitiesJSONUnmarshaler = new(jsonpb.Unmarshaler)
IdentitiesJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Identities. This struct is safe to replace or modify but should not be done so concurrently.
var ListAccountsRequestJSONMarshaler = new(jsonpb.Marshaler)
ListAccountsRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ListAccountsRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ListAccountsRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
ListAccountsRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ListAccountsRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ListAccountsResponseJSONMarshaler = new(jsonpb.Marshaler)
ListAccountsResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ListAccountsResponse. This struct is safe to replace or modify but should not be done so concurrently.
var ListAccountsResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
ListAccountsResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ListAccountsResponse. This struct is safe to replace or modify but should not be done so concurrently.
var ListGroupsRequestJSONMarshaler = new(jsonpb.Marshaler)
ListGroupsRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ListGroupsRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ListGroupsRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
ListGroupsRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ListGroupsRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ListGroupsResponseJSONMarshaler = new(jsonpb.Marshaler)
ListGroupsResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ListGroupsResponse. This struct is safe to replace or modify but should not be done so concurrently.
var ListGroupsResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
ListGroupsResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ListGroupsResponse. This struct is safe to replace or modify but should not be done so concurrently.
var ListMembersRequestJSONMarshaler = new(jsonpb.Marshaler)
ListMembersRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ListMembersRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ListMembersRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
ListMembersRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ListMembersRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ListMembersResponseJSONMarshaler = new(jsonpb.Marshaler)
ListMembersResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ListMembersResponse. This struct is safe to replace or modify but should not be done so concurrently.
var ListMembersResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
ListMembersResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ListMembersResponse. This struct is safe to replace or modify but should not be done so concurrently.
var OnPremisesProvisioningErrorJSONMarshaler = new(jsonpb.Marshaler)
OnPremisesProvisioningErrorJSONMarshaler describes the default jsonpb.Marshaler used by all instances of OnPremisesProvisioningError. This struct is safe to replace or modify but should not be done so concurrently.
var OnPremisesProvisioningErrorJSONUnmarshaler = new(jsonpb.Unmarshaler)
OnPremisesProvisioningErrorJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of OnPremisesProvisioningError. This struct is safe to replace or modify but should not be done so concurrently.
var PasswordProfileJSONMarshaler = new(jsonpb.Marshaler)
PasswordProfileJSONMarshaler describes the default jsonpb.Marshaler used by all instances of PasswordProfile. This struct is safe to replace or modify but should not be done so concurrently.
var PasswordProfileJSONUnmarshaler = new(jsonpb.Unmarshaler)
PasswordProfileJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of PasswordProfile. This struct is safe to replace or modify but should not be done so concurrently.
var RemoveMemberRequestJSONMarshaler = new(jsonpb.Marshaler)
RemoveMemberRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of RemoveMemberRequest. This struct is safe to replace or modify but should not be done so concurrently.
var RemoveMemberRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
RemoveMemberRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of RemoveMemberRequest. This struct is safe to replace or modify but should not be done so concurrently.
var UpdateAccountRequestJSONMarshaler = new(jsonpb.Marshaler)
UpdateAccountRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of UpdateAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var UpdateAccountRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
UpdateAccountRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of UpdateAccountRequest. This struct is safe to replace or modify but should not be done so concurrently.
var UpdateGroupRequestJSONMarshaler = new(jsonpb.Marshaler)
UpdateGroupRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of UpdateGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
var UpdateGroupRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
UpdateGroupRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of UpdateGroupRequest. This struct is safe to replace or modify but should not be done so concurrently.
Functions ¶
func RegisterAccountsServiceHandler ¶
func RegisterAccountsServiceHandler(s server.Server, hdlr AccountsServiceHandler, opts ...server.HandlerOption) error
func RegisterGroupsServiceHandler ¶
func RegisterGroupsServiceHandler(s server.Server, hdlr GroupsServiceHandler, opts ...server.HandlerOption) error
Types ¶
type Account ¶
type Account struct { // The unique identifier for the user. Key. Not nullable. Non reassignable. Read-only. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // *true* if the account is enabled; otherwise, *false*. This property is required when a user is created. Supports $filter. AccountEnabled bool `protobuf:"varint,2,opt,name=account_enabled,json=accountEnabled,proto3" json:"account_enabled,omitempty"` // A resource account is also known as a /disabled user object/ in Azure AD, and can be used to represent resources in general. // In Exchange it might be used to represent conference rooms, for example, and allow them to have a phone number. // You could give printers or machines with a sync client resource accounts as well. // A resource account can be homed in Microsoft 365 or on premises using Skype for Business Server 2019. // *true* if the user is a resource account; otherwise, *false*. Null value should be considered false. IsResourceAccount bool `protobuf:"varint,3,opt,name=is_resource_account,json=isResourceAccount,proto3" json:"is_resource_account,omitempty"` // Indicates whether the account was created as // - a regular school or work account ("" / emptystring), // - a local account, fully managed by ocis (LocalAccount), includes synced accounts or // - an external account (Invitation), // - self-service sign-up using email verification (EmailVerified). Read-only. CreationType string `protobuf:"bytes,4,opt,name=creation_type,json=creationType,proto3" json:"creation_type,omitempty"` // Represents the identities that can be used to sign in to this account. // An identity can be provided by OCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account. // May contain multiple items with the same signInType value. Supports $filter. Identities []*Identities `protobuf:"bytes,5,rep,name=identities,proto3" json:"identities,omitempty"` // The name displayed in the address book for the account. // This is usually the combination of the user's first name, middle initial and last name. // This property is required when a user is created and it cannot be cleared during updates. // Supports $filter and $orderby. // posixaccount MUST cn DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The username // posixaccount MUST uid PreferredName string `protobuf:"bytes,7,opt,name=preferred_name,json=preferredName,proto3" json:"preferred_name,omitempty"` // TODO rename to on_premise_? or move to extension? see https://docs.microsoft.com/en-us/graph/extensibility-open-users // used for exposing the user using ldap // posixaccount MUST uidnumber UidNumber int64 `protobuf:"varint,8,opt,name=uid_number,json=uidNumber,proto3" json:"uid_number,omitempty"` // used for exposing the user using ldap // posixaccount MUST gidnumber GidNumber int64 `protobuf:"varint,9,opt,name=gid_number,json=gidNumber,proto3" json:"gid_number,omitempty"` // The SMTP address for the user, for example, "jeff@contoso.onmicrosoft.com". Read-Only. Supports $filter. // inetorgperson MAY mail Mail string `protobuf:"bytes,10,opt,name=mail,proto3" json:"mail,omitempty"` // A description, useful for resource accounts // posixaccount MAY description Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"` // Specifies the password profile for the user. // The profile contains the user’s password. This property is required when a user is created. // The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. // By default, a strong password is required. // posixaccount MAY authPassword PasswordProfile *PasswordProfile `protobuf:"bytes,12,opt,name=password_profile,json=passwordProfile,proto3" json:"password_profile,omitempty"` // The groups, directory roles and administrative units that the user is a member of. Read-only. Nullable. // should we only respond with repeated strings of ids? no clients should a proper filter mask! MemberOf []*Group `protobuf:"bytes,13,rep,name=memberOf,proto3" json:"memberOf,omitempty"` // The created date of the account object. CreatedDateTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=created_date_time,json=createdDateTime,proto3" json:"created_date_time,omitempty"` // The date and time the user was deleted. Returned only on $select. DeletedDateTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=deleted_date_time,json=deletedDateTime,proto3" json:"deleted_date_time,omitempty"` // *true* if this object is synced from an on-premises directory; // *false* if this object was originally synced from an on-premises directory but is no longer synced; // null if this object has never been synced from an on-premises directory (default). Read-only OnPremisesSyncEnabled bool `` /* 130-byte string literal not displayed */ // This property is used to associate an on-premises LDAP user to the ocis account object. // This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property. // Important: The $ and _ characters cannot be used when specifying this property. Supports $filter. OnPremisesImmutableId string `` /* 129-byte string literal not displayed */ // Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. OnPremisesSecurityIdentifier string `` /* 150-byte string literal not displayed */ // Contains the on-premises LDAP `distinguished name` or `DN`. // The property is only populated for customers who are synchronizing their on-premises directory to ocis-accounts. Read-only. OnPremisesDistinguishedName string `` /* 147-byte string literal not displayed */ // Contains the on-premises `samAccountName` synchronized from the on-premises directory. // The property is only populated for customers who are synchronizing their on-premises directory to ocis-accounts. Read-only. OnPremisesSamAccountName string `` /* 140-byte string literal not displayed */ // Contains the on-premises `domainFQDN`, also called `dnsDomainName` synchronized from the on-premises directory // The property is only populated for customers who are synchronizing their on-premises directory to ocis-accounts. Read-only. OnPremisesDomainName string `` /* 126-byte string literal not displayed */ // Contains the on-premises userPrincipalName synchronized from the on-premises directory. // The property is only populated for customers who are synchronizing their on-premises directory to ocis-accounts. Read-only. OnPremisesUserPrincipalName string `` /* 149-byte string literal not displayed */ // Indicates the last time at which the object was synced with the on-premises directory; Read-only. OnPremisesLastSyncDateTime *timestamp.Timestamp `` /* 148-byte string literal not displayed */ // Errors when using synchronization during provisioning. OnPremisesProvisioningErrors []*OnPremisesProvisioningError `` /* 150-byte string literal not displayed */ // For an external user invited to the tenant using the invitation API, this property represents the invited user's invitation status. // For invited users, the state can be `PendingAcceptance` or `Accepted`, or "" / emptystring for all other users. // Returned only on $select. Supports $filter with the supported values. For example: $filter=externalUserState eq 'PendingAcceptance'. ExternalUserState string `protobuf:"bytes,40,opt,name=external_user_state,json=externalUserState,proto3" json:"external_user_state,omitempty"` // Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. ExternalUserStateChangeDateTime *timestamp.Timestamp `` /* 163-byte string literal not displayed */ // Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get // an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). // If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. // Returned only on $select. Read-only. Use invalidateAllRefreshTokens to reset. RefreshTokensValidFromDateTime *timestamp.Timestamp `` /* 160-byte string literal not displayed */ // Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get // an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). // If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. // Read-only. Use revokeSignInSessions to reset. SignInSessionsValidFromDateTime *timestamp.Timestamp `` /* 165-byte string literal not displayed */ // contains filtered or unexported fields }
Account follows the properties of the ms graph api user resuorce. See https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties
func (*Account) Descriptor
deprecated
func (*Account) GetAccountEnabled ¶
func (*Account) GetCreatedDateTime ¶
func (*Account) GetCreationType ¶
func (*Account) GetDeletedDateTime ¶
func (*Account) GetDescription ¶
func (*Account) GetDisplayName ¶
func (*Account) GetExternalUserState ¶
func (*Account) GetExternalUserStateChangeDateTime ¶
func (*Account) GetGidNumber ¶
func (*Account) GetIdentities ¶
func (x *Account) GetIdentities() []*Identities
func (*Account) GetIsResourceAccount ¶
func (*Account) GetMemberOf ¶
func (*Account) GetOnPremisesDistinguishedName ¶
func (*Account) GetOnPremisesDomainName ¶
func (*Account) GetOnPremisesImmutableId ¶
func (*Account) GetOnPremisesLastSyncDateTime ¶
func (*Account) GetOnPremisesProvisioningErrors ¶
func (x *Account) GetOnPremisesProvisioningErrors() []*OnPremisesProvisioningError
func (*Account) GetOnPremisesSamAccountName ¶
func (*Account) GetOnPremisesSecurityIdentifier ¶
func (*Account) GetOnPremisesSyncEnabled ¶
func (*Account) GetOnPremisesUserPrincipalName ¶
func (*Account) GetPasswordProfile ¶
func (x *Account) GetPasswordProfile() *PasswordProfile
func (*Account) GetPreferredName ¶
func (*Account) GetRefreshTokensValidFromDateTime ¶
func (*Account) GetSignInSessionsValidFromDateTime ¶
func (*Account) GetUidNumber ¶
func (*Account) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type AccountsService ¶
type AccountsService interface { // Lists accounts ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...client.CallOption) (*ListAccountsResponse, error) // Gets an account GetAccount(ctx context.Context, in *GetAccountRequest, opts ...client.CallOption) (*Account, error) // Creates an account CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...client.CallOption) (*Account, error) // Updates an account UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...client.CallOption) (*Account, error) // Deletes an account DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error) }
func NewAccountsService ¶
func NewAccountsService(name string, c client.Client) AccountsService
type AccountsServiceHandler ¶
type AccountsServiceHandler interface { // Lists accounts ListAccounts(context.Context, *ListAccountsRequest, *ListAccountsResponse) error // Gets an account GetAccount(context.Context, *GetAccountRequest, *Account) error // Creates an account CreateAccount(context.Context, *CreateAccountRequest, *Account) error // Updates an account UpdateAccount(context.Context, *UpdateAccountRequest, *Account) error // Deletes an account DeleteAccount(context.Context, *DeleteAccountRequest, *empty.Empty) error }
type AddMemberRequest ¶
type AddMemberRequest struct { // The id of the group to add a member to GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The account id to add AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*AddMemberRequest) Descriptor
deprecated
func (*AddMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddMemberRequest.ProtoReflect.Descriptor instead.
func (*AddMemberRequest) GetAccountId ¶
func (x *AddMemberRequest) GetAccountId() string
func (*AddMemberRequest) GetGroupId ¶
func (x *AddMemberRequest) GetGroupId() string
func (*AddMemberRequest) MarshalJSON ¶
func (m *AddMemberRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*AddMemberRequest) ProtoMessage ¶
func (*AddMemberRequest) ProtoMessage()
func (*AddMemberRequest) ProtoReflect ¶
func (x *AddMemberRequest) ProtoReflect() protoreflect.Message
func (*AddMemberRequest) Reset ¶
func (x *AddMemberRequest) Reset()
func (*AddMemberRequest) String ¶
func (x *AddMemberRequest) String() string
func (*AddMemberRequest) UnmarshalJSON ¶
func (m *AddMemberRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type BleveAccount ¶
BleveAccount wraps the generated Account and adds a bleve type that is used to distinguish documents in the index
type BleveGroup ¶
BleveGroup wraps the generated Group and adds a bleve type that is used to distinguish documents in the index
type CreateAccountRequest ¶
type CreateAccountRequest struct { // The account resource to create Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountRequest) Descriptor
deprecated
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.
func (*CreateAccountRequest) GetAccount ¶
func (x *CreateAccountRequest) GetAccount() *Account
func (*CreateAccountRequest) MarshalJSON ¶
func (m *CreateAccountRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) ProtoReflect ¶
func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateAccountRequest) Reset ¶
func (x *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (x *CreateAccountRequest) String() string
func (*CreateAccountRequest) UnmarshalJSON ¶
func (m *CreateAccountRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type CreateGroupRequest ¶
type CreateGroupRequest struct { // The account resource to create Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupRequest) Descriptor
deprecated
func (*CreateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupRequest) GetGroup ¶
func (x *CreateGroupRequest) GetGroup() *Group
func (*CreateGroupRequest) MarshalJSON ¶
func (m *CreateGroupRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*CreateGroupRequest) ProtoMessage ¶
func (*CreateGroupRequest) ProtoMessage()
func (*CreateGroupRequest) ProtoReflect ¶
func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateGroupRequest) Reset ¶
func (x *CreateGroupRequest) Reset()
func (*CreateGroupRequest) String ¶
func (x *CreateGroupRequest) String() string
func (*CreateGroupRequest) UnmarshalJSON ¶
func (m *CreateGroupRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type DeleteAccountRequest ¶
type DeleteAccountRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAccountRequest) Descriptor
deprecated
func (*DeleteAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.
func (*DeleteAccountRequest) GetId ¶
func (x *DeleteAccountRequest) GetId() string
func (*DeleteAccountRequest) MarshalJSON ¶
func (m *DeleteAccountRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*DeleteAccountRequest) ProtoMessage ¶
func (*DeleteAccountRequest) ProtoMessage()
func (*DeleteAccountRequest) ProtoReflect ¶
func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
func (*DeleteAccountRequest) Reset ¶
func (x *DeleteAccountRequest) Reset()
func (*DeleteAccountRequest) String ¶
func (x *DeleteAccountRequest) String() string
func (*DeleteAccountRequest) UnmarshalJSON ¶
func (m *DeleteAccountRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type DeleteGroupRequest ¶
type DeleteGroupRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteGroupRequest) Descriptor
deprecated
func (*DeleteGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupRequest) GetId ¶
func (x *DeleteGroupRequest) GetId() string
func (*DeleteGroupRequest) MarshalJSON ¶
func (m *DeleteGroupRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*DeleteGroupRequest) ProtoMessage ¶
func (*DeleteGroupRequest) ProtoMessage()
func (*DeleteGroupRequest) ProtoReflect ¶
func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupRequest) Reset ¶
func (x *DeleteGroupRequest) Reset()
func (*DeleteGroupRequest) String ¶
func (x *DeleteGroupRequest) String() string
func (*DeleteGroupRequest) UnmarshalJSON ¶
func (m *DeleteGroupRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type GetAccountRequest ¶
type GetAccountRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetId ¶
func (x *GetAccountRequest) GetId() string
func (*GetAccountRequest) MarshalJSON ¶
func (m *GetAccountRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
func (*GetAccountRequest) UnmarshalJSON ¶
func (m *GetAccountRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type GetGroupRequest ¶
type GetGroupRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetGroupRequest) Descriptor
deprecated
func (*GetGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.
func (*GetGroupRequest) GetId ¶
func (x *GetGroupRequest) GetId() string
func (*GetGroupRequest) MarshalJSON ¶
func (m *GetGroupRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*GetGroupRequest) ProtoMessage ¶
func (*GetGroupRequest) ProtoMessage()
func (*GetGroupRequest) ProtoReflect ¶
func (x *GetGroupRequest) ProtoReflect() protoreflect.Message
func (*GetGroupRequest) Reset ¶
func (x *GetGroupRequest) Reset()
func (*GetGroupRequest) String ¶
func (x *GetGroupRequest) String() string
func (*GetGroupRequest) UnmarshalJSON ¶
func (m *GetGroupRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type Group ¶
type Group struct { // The unique identifier for the group. // Returned by default. Inherited from directoryObject. Key. Not nullable. Read-only. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The display name for the group. This property is required when a group is created and cannot be cleared during updates. // Returned by default. Supports $filter and $orderby. // groupofnames MUST cn DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // groupofnames MUST/MAY member // Users, contacts, and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for security groups and mail-enabled security groups), DELETE (supported only for security groups) Read-only. Nullable. // TODO accounts (users) only for now, we can add groups with the dedicated message using oneof construct later Members []*Account `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` // groupofnames MAY businessCategory // groupofnames MAY o // groupofnames MAY ou // groupofnames MAY owner, SINGLE-VALUE but there might be multiple owners Owners []*Account `protobuf:"bytes,4,rep,name=owners,proto3" json:"owners,omitempty"` // An optional description for the group. Returned by default. // groupofnames MAY description Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // used for exposing the user using ldap // posixgroup MUST gidnumber GidNumber int64 `protobuf:"varint,6,opt,name=gid_number,json=gidNumber,proto3" json:"gid_number,omitempty"` // Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is created // Returned by default. Read-only. CreatedDateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_date_time,json=createdDateTime,proto3" json:"created_date_time,omitempty"` // For some Azure Active Directory objects (user, group, application), if the object is deleted, it is first logically deleted, and this property is updated with the date and time when the object was deleted. Otherwise this property is null. If the object is restored, this property is updated to null. // Returned by default. Read-only. DeletedDateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=deleted_date_time,json=deletedDateTime,proto3" json:"deleted_date_time,omitempty"` // Timestamp of when the group is set to expire. The value cannot be modified and is automatically populated when the group is created. // Returned by default. Read-only. ExpirationDateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=expiration_date_time,json=expirationDateTime,proto3" json:"expiration_date_time,omitempty"` // True if the group is not displayed in certain parts of the Outlook user interface: // in the Address Book, in address lists for selecting message recipients, and in the Browse Groups dialog for searching groups; false otherwise. Default value is false. // Returned only on $select. HideFromAddressLists bool `` /* 127-byte string literal not displayed */ // Specifies the visibility of an Office 365 group. Possible values are: Private, Public, or Hiddenmembership; blank values are treated as public. See group visibility options to learn more. // Visibility can be set only when a group is created; it is not editable. // Returned by default. Visibility string `protobuf:"bytes,11,opt,name=visibility,proto3" json:"visibility,omitempty"` // *true* if this group is synced from an on-premises directory; // *false* if this group was originally synced from an on-premises directory but is no longer synced; // null if this object has never been synced from an on-premises directory (default). // Returned by default. Read-only. Supports $filter. OnPremisesSyncEnabled bool `` /* 130-byte string literal not displayed */ // This property is used to associate an on-premises LDAP user to the ocis account object. // This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property. // Important: The $ and _ characters cannot be used when specifying this property. Supports $filter. OnPremisesImmutableId string `` /* 129-byte string literal not displayed */ // Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud. Returned by default. Read-only. OnPremisesSecurityIdentifier string `` /* 150-byte string literal not displayed */ // Contains the on-premises LDAP `distinguished name` or `DN`. // The property is only populated for customers who are synchronizing their on-premises directory to ocis-accounts. Read-only. OnPremisesDistinguishedName string `` /* 147-byte string literal not displayed */ // Contains the on-premises `samAccountName` synchronized from the on-premises directory. // The property is only populated for customers who are synchronizing their on-premises directory to ocis-accounts. Returned by default. Read-only. OnPremisesSamAccountName string `` /* 140-byte string literal not displayed */ // Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. // Returned by default. Read-only. OnPremisesDomainName string `` /* 126-byte string literal not displayed */ // Contains the on-premises netBios name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. // Returned by default. Read-only. OnPremisesNetBiosName string `` /* 131-byte string literal not displayed */ // Indicates the last time at which the group was synced with the on-premises directory. // Returned by default. Read-only. Supports $filter. OnPremisesLastSyncDateTime string `` /* 148-byte string literal not displayed */ // Errors when using synchronization during provisioning. OnPremisesProvisioningErrors []*OnPremisesProvisioningError `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedDateTime ¶
func (*Group) GetDeletedDateTime ¶
func (*Group) GetDescription ¶
func (*Group) GetDisplayName ¶
func (*Group) GetExpirationDateTime ¶
func (*Group) GetGidNumber ¶
func (*Group) GetHideFromAddressLists ¶
func (*Group) GetMembers ¶
func (*Group) GetOnPremisesDistinguishedName ¶
func (*Group) GetOnPremisesDomainName ¶
func (*Group) GetOnPremisesImmutableId ¶
func (*Group) GetOnPremisesLastSyncDateTime ¶
func (*Group) GetOnPremisesNetBiosName ¶
func (*Group) GetOnPremisesProvisioningErrors ¶
func (x *Group) GetOnPremisesProvisioningErrors() []*OnPremisesProvisioningError
func (*Group) GetOnPremisesSamAccountName ¶
func (*Group) GetOnPremisesSecurityIdentifier ¶
func (*Group) GetOnPremisesSyncEnabled ¶
func (*Group) GetVisibility ¶
func (*Group) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
func (*Group) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type GroupsService ¶
type GroupsService interface { // Lists groups ListGroups(ctx context.Context, in *ListGroupsRequest, opts ...client.CallOption) (*ListGroupsResponse, error) // Gets an groups GetGroup(ctx context.Context, in *GetGroupRequest, opts ...client.CallOption) (*Group, error) // Creates a group CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...client.CallOption) (*Group, error) // Updates a group UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...client.CallOption) (*Group, error) // Deletes a group DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*empty.Empty, error) // group:addmember https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http AddMember(ctx context.Context, in *AddMemberRequest, opts ...client.CallOption) (*Group, error) // group:removemember https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0 RemoveMember(ctx context.Context, in *RemoveMemberRequest, opts ...client.CallOption) (*Group, error) // group:listmembers https://docs.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0 ListMembers(ctx context.Context, in *ListMembersRequest, opts ...client.CallOption) (*ListMembersResponse, error) }
func NewGroupsService ¶
func NewGroupsService(name string, c client.Client) GroupsService
type GroupsServiceHandler ¶
type GroupsServiceHandler interface { // Lists groups ListGroups(context.Context, *ListGroupsRequest, *ListGroupsResponse) error // Gets an groups GetGroup(context.Context, *GetGroupRequest, *Group) error // Creates a group CreateGroup(context.Context, *CreateGroupRequest, *Group) error // Updates a group UpdateGroup(context.Context, *UpdateGroupRequest, *Group) error // Deletes a group DeleteGroup(context.Context, *DeleteGroupRequest, *empty.Empty) error // group:addmember https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http AddMember(context.Context, *AddMemberRequest, *Group) error // group:removemember https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0 RemoveMember(context.Context, *RemoveMemberRequest, *Group) error // group:listmembers https://docs.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0 ListMembers(context.Context, *ListMembersRequest, *ListMembersResponse) error }
type Identities ¶
type Identities struct { // Specifies the user sign-in types in your directory, such as `emailAddress`, `userName` or `federated`. // Here, federated represents a unique identifier for a user from an issuer, that can be in any format chosen by the issuer. // Additional validation is enforced on *issuer_assigned_id* when the sign-in type is set to `emailAddress` or `userName`. // This property can also be set to any custom string. SignInType string `protobuf:"bytes,1,opt,name=sign_in_type,json=signInType,proto3" json:"sign_in_type,omitempty"` // Specifies the issuer of the identity, for example facebook.com. // For local accounts (where signInType is not federated), this property is // the local B2C tenant default domain name, for example contoso.onmicrosoft.com. // For external users from other Azure AD organization, this will be the domain of // the federated organization, for example contoso.com. // Supports $filter. 512 character limit. Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // Specifies the unique identifier assigned to the user by the issuer. The combination of *issuer* and *issuerAssignedId* must be unique within the organization. Represents the sign-in name for the user, when signInType is set to emailAddress or userName (also known as local accounts). // When *signInType* is set to: // * `emailAddress`, (or starts with `emailAddress` like `emailAddress1`) *issuerAssignedId* must be a valid email address // * `userName`, issuer_assigned_id must be a valid local part of an email address // Supports $filter. 512 character limit. IssuerAssignedId string `protobuf:"bytes,3,opt,name=issuer_assigned_id,json=issuerAssignedId,proto3" json:"issuer_assigned_id,omitempty"` // contains filtered or unexported fields }
Identities Represents an identity used to sign in to a user account. An identity can be provided by ocis, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account. This enables the user to sign in to the user account with any of those associated identities. They are also used to keep a history of old usernames.
func (*Identities) Descriptor
deprecated
func (*Identities) Descriptor() ([]byte, []int)
Deprecated: Use Identities.ProtoReflect.Descriptor instead.
func (*Identities) GetIssuer ¶
func (x *Identities) GetIssuer() string
func (*Identities) GetIssuerAssignedId ¶
func (x *Identities) GetIssuerAssignedId() string
func (*Identities) GetSignInType ¶
func (x *Identities) GetSignInType() string
func (*Identities) MarshalJSON ¶
func (m *Identities) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Identities) ProtoMessage ¶
func (*Identities) ProtoMessage()
func (*Identities) ProtoReflect ¶
func (x *Identities) ProtoReflect() protoreflect.Message
func (*Identities) Reset ¶
func (x *Identities) Reset()
func (*Identities) String ¶
func (x *Identities) String() string
func (*Identities) UnmarshalJSON ¶
func (m *Identities) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ListAccountsRequest ¶
type ListAccountsRequest struct { // Optional. The maximum number of accounts to return in the response PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to `Get` // that indicates from where search should continue PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Used to specify a subset of fields that should be // returned by a get operation or modified by an update operation. FieldMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // Optional. Search criteria used to select the accounts to return. // If no search criteria is specified then all accounts will be // returned // // TODO update query language // Query expressions can be used to restrict results based upon // the account properties where the operators `=`, `NOT`, `AND` and `OR` // can be used along with the suffix wildcard symbol `*`. // // The string properties in a query expression should use escaped quotes // for values that include whitespace to prevent unexpected behavior. // // Some example queries are: // // * Query `display_name=Th*` returns accounts whose display_name // starts with "Th" // * Query `email=foo@example.com` returns accounts with // `email` set to `foo@example.com` // * Query `display_name=\\"Test String\\"` returns accounts with // display names that include both "Test" and "String" Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsRequest) Descriptor
deprecated
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
func (*ListAccountsRequest) GetFieldMask ¶
func (x *ListAccountsRequest) GetFieldMask() *field_mask.FieldMask
func (*ListAccountsRequest) GetPageSize ¶
func (x *ListAccountsRequest) GetPageSize() int32
func (*ListAccountsRequest) GetPageToken ¶
func (x *ListAccountsRequest) GetPageToken() string
func (*ListAccountsRequest) GetQuery ¶
func (x *ListAccountsRequest) GetQuery() string
func (*ListAccountsRequest) MarshalJSON ¶
func (m *ListAccountsRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) ProtoReflect ¶
func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
func (*ListAccountsRequest) Reset ¶
func (x *ListAccountsRequest) Reset()
func (*ListAccountsRequest) String ¶
func (x *ListAccountsRequest) String() string
func (*ListAccountsRequest) UnmarshalJSON ¶
func (m *ListAccountsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ListAccountsResponse ¶
type ListAccountsResponse struct { // The field name should match the noun "accounts" in the method name. There // will be a maximum number of items returned based on the page_size field // in the request Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsResponse) Descriptor
deprecated
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
func (*ListAccountsResponse) GetAccounts ¶
func (x *ListAccountsResponse) GetAccounts() []*Account
func (*ListAccountsResponse) GetNextPageToken ¶
func (x *ListAccountsResponse) GetNextPageToken() string
func (*ListAccountsResponse) MarshalJSON ¶
func (m *ListAccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) ProtoReflect ¶
func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
func (*ListAccountsResponse) Reset ¶
func (x *ListAccountsResponse) Reset()
func (*ListAccountsResponse) String ¶
func (x *ListAccountsResponse) String() string
func (*ListAccountsResponse) UnmarshalJSON ¶
func (m *ListAccountsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ListGroupsRequest ¶
type ListGroupsRequest struct { // Optional. The maximum number of groups to return in the response PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to `Get` // that indicates from where search should continue PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Used to specify a subset of fields that should be // returned by a get operation or modified by an update operation. FieldMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // Optional. Search criteria used to select the groups to return. // If no search criteria is specified then all groups will be // returned // // TODO update query language // Query expressions can be used to restrict results based upon // the account properties where the operators `=`, `NOT`, `AND` and `OR` // can be used along with the suffix wildcard symbol `*`. // // The string properties in a query expression should use escaped quotes // for values that include whitespace to prevent unexpected behavior. // // Some example queries are: // // * Query `display_name=Th*` returns accounts whose display_name // starts with "Th" // * Query `display_name=\\"Test String\\"` returns groups with // display names that include both "Test" and "String" Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*ListGroupsRequest) Descriptor
deprecated
func (*ListGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListGroupsRequest) GetFieldMask ¶
func (x *ListGroupsRequest) GetFieldMask() *field_mask.FieldMask
func (*ListGroupsRequest) GetPageSize ¶
func (x *ListGroupsRequest) GetPageSize() int32
func (*ListGroupsRequest) GetPageToken ¶
func (x *ListGroupsRequest) GetPageToken() string
func (*ListGroupsRequest) GetQuery ¶
func (x *ListGroupsRequest) GetQuery() string
func (*ListGroupsRequest) MarshalJSON ¶
func (m *ListGroupsRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ListGroupsRequest) ProtoMessage ¶
func (*ListGroupsRequest) ProtoMessage()
func (*ListGroupsRequest) ProtoReflect ¶
func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message
func (*ListGroupsRequest) Reset ¶
func (x *ListGroupsRequest) Reset()
func (*ListGroupsRequest) String ¶
func (x *ListGroupsRequest) String() string
func (*ListGroupsRequest) UnmarshalJSON ¶
func (m *ListGroupsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ListGroupsResponse ¶
type ListGroupsResponse struct { // The field name should match the noun "group" in the method name. There // will be a maximum number of items returned based on the page_size field // in the request Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListGroupsResponse) Descriptor
deprecated
func (*ListGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListGroupsResponse) GetGroups ¶
func (x *ListGroupsResponse) GetGroups() []*Group
func (*ListGroupsResponse) GetNextPageToken ¶
func (x *ListGroupsResponse) GetNextPageToken() string
func (*ListGroupsResponse) MarshalJSON ¶
func (m *ListGroupsResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ListGroupsResponse) ProtoMessage ¶
func (*ListGroupsResponse) ProtoMessage()
func (*ListGroupsResponse) ProtoReflect ¶
func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message
func (*ListGroupsResponse) Reset ¶
func (x *ListGroupsResponse) Reset()
func (*ListGroupsResponse) String ¶
func (x *ListGroupsResponse) String() string
func (*ListGroupsResponse) UnmarshalJSON ¶
func (m *ListGroupsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ListMembersRequest ¶
type ListMembersRequest struct { PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to `Get` // that indicates from where search should continue PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Used to specify a subset of fields that should be // returned by a get operation or modified by an update operation. FieldMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // Optional. Search criteria used to select the groups to return. // If no search criteria is specified then all groups will be // returned // // TODO update query language // Query expressions can be used to restrict results based upon // the account properties where the operators `=`, `NOT`, `AND` and `OR` // can be used along with the suffix wildcard symbol `*`. // // The string properties in a query expression should use escaped quotes // for values that include whitespace to prevent unexpected behavior. // // Some example queries are: // // * Query `display_name=Th*` returns accounts whose display_name // starts with "Th" // * Query `display_name=\\"Test String\\"` returns groups with // display names that include both "Test" and "String" Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` // The id of the group to list members from Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ListMembersRequest) Descriptor
deprecated
func (*ListMembersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMembersRequest.ProtoReflect.Descriptor instead.
func (*ListMembersRequest) GetFieldMask ¶
func (x *ListMembersRequest) GetFieldMask() *field_mask.FieldMask
func (*ListMembersRequest) GetId ¶
func (x *ListMembersRequest) GetId() string
func (*ListMembersRequest) GetPageSize ¶
func (x *ListMembersRequest) GetPageSize() int32
func (*ListMembersRequest) GetPageToken ¶
func (x *ListMembersRequest) GetPageToken() string
func (*ListMembersRequest) GetQuery ¶
func (x *ListMembersRequest) GetQuery() string
func (*ListMembersRequest) MarshalJSON ¶
func (m *ListMembersRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ListMembersRequest) ProtoMessage ¶
func (*ListMembersRequest) ProtoMessage()
func (*ListMembersRequest) ProtoReflect ¶
func (x *ListMembersRequest) ProtoReflect() protoreflect.Message
func (*ListMembersRequest) Reset ¶
func (x *ListMembersRequest) Reset()
func (*ListMembersRequest) String ¶
func (x *ListMembersRequest) String() string
func (*ListMembersRequest) UnmarshalJSON ¶
func (m *ListMembersRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ListMembersResponse ¶
type ListMembersResponse struct { // The field name should match the noun "members" in the method name. There // will be a maximum number of items returned based on the page_size field // in the request Members []*Account `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListMembersResponse) Descriptor
deprecated
func (*ListMembersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMembersResponse.ProtoReflect.Descriptor instead.
func (*ListMembersResponse) GetMembers ¶
func (x *ListMembersResponse) GetMembers() []*Account
func (*ListMembersResponse) GetNextPageToken ¶
func (x *ListMembersResponse) GetNextPageToken() string
func (*ListMembersResponse) MarshalJSON ¶
func (m *ListMembersResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ListMembersResponse) ProtoMessage ¶
func (*ListMembersResponse) ProtoMessage()
func (*ListMembersResponse) ProtoReflect ¶
func (x *ListMembersResponse) ProtoReflect() protoreflect.Message
func (*ListMembersResponse) Reset ¶
func (x *ListMembersResponse) Reset()
func (*ListMembersResponse) String ¶
func (x *ListMembersResponse) String() string
func (*ListMembersResponse) UnmarshalJSON ¶
func (m *ListMembersResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type MockAccountsService ¶
type MockAccountsService struct { ListFunc func(ctx context.Context, in *ListAccountsRequest, opts ...client.CallOption) (*ListAccountsResponse, error) GetFunc func(ctx context.Context, in *GetAccountRequest, opts ...client.CallOption) (*Account, error) CreateFunc func(ctx context.Context, in *CreateAccountRequest, opts ...client.CallOption) (*Account, error) UpdateFunc func(ctx context.Context, in *UpdateAccountRequest, opts ...client.CallOption) (*Account, error) DeleteFunc func(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error) }
MockAccountsService can be used to write tests
To creata a mock overwrite the functions of an instance like this:
```go
func mockAccSvc(retErr bool) proto.AccountsService { if retErr { return &proto.MockAccountsService{ ListFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { return nil, fmt.Errorf("error returned by mockAccountsService LIST") }, } } return &proto.MockAccountsService{ ListFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { return &proto.ListAccountsResponse{ Accounts: []*proto.Account{ { Id: "yay", }, }, }, nil }, } }
```
func (MockAccountsService) CreateAccount ¶
func (m MockAccountsService) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...client.CallOption) (*Account, error)
CreateAccount will panic if the function has been called, but not mocked
func (MockAccountsService) DeleteAccount ¶
func (m MockAccountsService) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error)
DeleteAccount will panic if the function has been called, but not mocked
func (MockAccountsService) GetAccount ¶
func (m MockAccountsService) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...client.CallOption) (*Account, error)
GetAccount will panic if the function has been called, but not mocked
func (MockAccountsService) ListAccounts ¶
func (m MockAccountsService) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...client.CallOption) (*ListAccountsResponse, error)
ListAccounts will panic if the function has been called, but not mocked
func (MockAccountsService) UpdateAccount ¶
func (m MockAccountsService) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...client.CallOption) (*Account, error)
UpdateAccount will panic if the function has been called, but not mocked
type OnPremisesProvisioningError ¶
type OnPremisesProvisioningError struct { // Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property. Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` // The date and time at which the error occurred. OccurredDateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=occurred_date_time,json=occurredDateTime,proto3" json:"occurred_date_time,omitempty"` // Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress PropertyCausingError string `protobuf:"bytes,3,opt,name=property_causing_error,json=propertyCausingError,proto3" json:"property_causing_error,omitempty"` // Value of the property causing the error. Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*OnPremisesProvisioningError) Descriptor
deprecated
func (*OnPremisesProvisioningError) Descriptor() ([]byte, []int)
Deprecated: Use OnPremisesProvisioningError.ProtoReflect.Descriptor instead.
func (*OnPremisesProvisioningError) GetCategory ¶
func (x *OnPremisesProvisioningError) GetCategory() string
func (*OnPremisesProvisioningError) GetOccurredDateTime ¶
func (x *OnPremisesProvisioningError) GetOccurredDateTime() *timestamp.Timestamp
func (*OnPremisesProvisioningError) GetPropertyCausingError ¶
func (x *OnPremisesProvisioningError) GetPropertyCausingError() string
func (*OnPremisesProvisioningError) GetValue ¶
func (x *OnPremisesProvisioningError) GetValue() string
func (*OnPremisesProvisioningError) MarshalJSON ¶
func (m *OnPremisesProvisioningError) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*OnPremisesProvisioningError) ProtoMessage ¶
func (*OnPremisesProvisioningError) ProtoMessage()
func (*OnPremisesProvisioningError) ProtoReflect ¶
func (x *OnPremisesProvisioningError) ProtoReflect() protoreflect.Message
func (*OnPremisesProvisioningError) Reset ¶
func (x *OnPremisesProvisioningError) Reset()
func (*OnPremisesProvisioningError) String ¶
func (x *OnPremisesProvisioningError) String() string
func (*OnPremisesProvisioningError) UnmarshalJSON ¶
func (m *OnPremisesProvisioningError) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type PasswordProfile ¶
type PasswordProfile struct { // The password for the user. This property is required when a user is created. // It can be updated, but the user will be required to change the password on the next login. // The password must satisfy minimum requirements as specified by the user’s passwordPolicies property. By default, a strong password is required. Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` // The time when this account last changed their password. LastPasswordChangeDateTime *timestamp.Timestamp `` /* 145-byte string literal not displayed */ // Specifies password policies for the user. //This value is an enumeration with one possible value being “DisableStrongPassword”, which allows weaker passwords than the default policy to be specified. // “DisablePasswordExpiration” can also be specified. PasswordPolicies []string `protobuf:"bytes,3,rep,name=password_policies,json=passwordPolicies,proto3" json:"password_policies,omitempty"` // *true* if the user must change her password on the next login; otherwise false. ForceChangePasswordNextSignIn bool `` /* 157-byte string literal not displayed */ // If *true*, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. ForceChangePasswordNextSignInWithMfa bool `` /* 182-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PasswordProfile) Descriptor
deprecated
func (*PasswordProfile) Descriptor() ([]byte, []int)
Deprecated: Use PasswordProfile.ProtoReflect.Descriptor instead.
func (*PasswordProfile) GetForceChangePasswordNextSignIn ¶
func (x *PasswordProfile) GetForceChangePasswordNextSignIn() bool
func (*PasswordProfile) GetForceChangePasswordNextSignInWithMfa ¶
func (x *PasswordProfile) GetForceChangePasswordNextSignInWithMfa() bool
func (*PasswordProfile) GetLastPasswordChangeDateTime ¶
func (x *PasswordProfile) GetLastPasswordChangeDateTime() *timestamp.Timestamp
func (*PasswordProfile) GetPassword ¶
func (x *PasswordProfile) GetPassword() string
func (*PasswordProfile) GetPasswordPolicies ¶
func (x *PasswordProfile) GetPasswordPolicies() []string
func (*PasswordProfile) MarshalJSON ¶
func (m *PasswordProfile) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*PasswordProfile) ProtoMessage ¶
func (*PasswordProfile) ProtoMessage()
func (*PasswordProfile) ProtoReflect ¶
func (x *PasswordProfile) ProtoReflect() protoreflect.Message
func (*PasswordProfile) Reset ¶
func (x *PasswordProfile) Reset()
func (*PasswordProfile) String ¶
func (x *PasswordProfile) String() string
func (*PasswordProfile) UnmarshalJSON ¶
func (m *PasswordProfile) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type RemoveMemberRequest ¶
type RemoveMemberRequest struct { // The id of the group to remove a member from GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The account id to remove AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveMemberRequest) Descriptor
deprecated
func (*RemoveMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveMemberRequest.ProtoReflect.Descriptor instead.
func (*RemoveMemberRequest) GetAccountId ¶
func (x *RemoveMemberRequest) GetAccountId() string
func (*RemoveMemberRequest) GetGroupId ¶
func (x *RemoveMemberRequest) GetGroupId() string
func (*RemoveMemberRequest) MarshalJSON ¶
func (m *RemoveMemberRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*RemoveMemberRequest) ProtoMessage ¶
func (*RemoveMemberRequest) ProtoMessage()
func (*RemoveMemberRequest) ProtoReflect ¶
func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message
func (*RemoveMemberRequest) Reset ¶
func (x *RemoveMemberRequest) Reset()
func (*RemoveMemberRequest) String ¶
func (x *RemoveMemberRequest) String() string
func (*RemoveMemberRequest) UnmarshalJSON ¶
func (m *RemoveMemberRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type UpdateAccountRequest ¶
type UpdateAccountRequest struct { // The account resource which replaces the resource on the server Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateAccountRequest) Descriptor
deprecated
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountRequest) GetAccount ¶
func (x *UpdateAccountRequest) GetAccount() *Account
func (*UpdateAccountRequest) GetUpdateMask ¶
func (x *UpdateAccountRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateAccountRequest) MarshalJSON ¶
func (m *UpdateAccountRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) ProtoReflect ¶
func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountRequest) Reset ¶
func (x *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String ¶
func (x *UpdateAccountRequest) String() string
func (*UpdateAccountRequest) UnmarshalJSON ¶
func (m *UpdateAccountRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type UpdateGroupRequest ¶
type UpdateGroupRequest struct { // The group resource which replaces the resource on the server Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateGroupRequest) Descriptor
deprecated
func (*UpdateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateGroupRequest) GetGroup ¶
func (x *UpdateGroupRequest) GetGroup() *Group
func (*UpdateGroupRequest) GetUpdateMask ¶
func (x *UpdateGroupRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateGroupRequest) MarshalJSON ¶
func (m *UpdateGroupRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*UpdateGroupRequest) ProtoMessage ¶
func (*UpdateGroupRequest) ProtoMessage()
func (*UpdateGroupRequest) ProtoReflect ¶
func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message
func (*UpdateGroupRequest) Reset ¶
func (x *UpdateGroupRequest) Reset()
func (*UpdateGroupRequest) String ¶
func (x *UpdateGroupRequest) String() string
func (*UpdateGroupRequest) UnmarshalJSON ¶
func (m *UpdateGroupRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.