Versions in this module Expand all Collapse all v10 v10.0.0 Feb 3, 2025 Changes in this version + const GainAccessUsers + const LostAccessUsers + var ErrAccessibleGroups = errors.New("list accessible groups") + var ErrBlockUsers = errors.New("block users") + var ErrCreateAPIClient = errors.New("create api client") + var ErrCreateCIDRBlock = errors.New("create CIDR block") + var ErrCreateCredential = errors.New("create credential") + var ErrCreateGroup = errors.New("create group") + var ErrCreateRole = errors.New("create a role") + var ErrCreateUser = errors.New("create user") + var ErrDeactivateCredential = errors.New("deactivate credential") + var ErrDeactivateCredentials = errors.New("deactivate credentials") + var ErrDeleteAPIClient = errors.New("delete api client") + var ErrDeleteCIDRBlock = errors.New("delete CIDR block") + var ErrDeleteCredential = errors.New("delete credential") + var ErrDeleteRole = errors.New("delete a role") + var ErrDisableIPAllowlist = errors.New("disable ip allowlist") + var ErrEnableIPAllowlist = errors.New("enable ip allowlist") + var ErrGetAPIClient = errors.New("get api client") + var ErrGetCIDRBlock = errors.New("get CIDR block") + var ErrGetCredential = errors.New("get credential") + var ErrGetGroup = errors.New("get group") + var ErrGetIPAllowlistStatus = errors.New("get ip allowlist status") + var ErrGetPasswordPolicy = errors.New("get password policy") + var ErrGetProperty = errors.New("get property") + var ErrGetRole = errors.New("get a role") + var ErrGetUser = errors.New("get user") + var ErrListAPIClients = errors.New("list api clients") + var ErrListAccountSwitchKeys = errors.New("list account switch keys") + var ErrListAffectedUsers = errors.New("list affected users") + var ErrListAllowedAPIs = errors.New("list allowed APIs") + var ErrListAllowedCPCodes = errors.New("list allowed CP codes") + var ErrListAuthorizedUsers = errors.New("list authorized users") + var ErrListBlockedProperties = errors.New("list blocked properties") + var ErrListCIDRBlocks = errors.New("list CIDR blocks") + var ErrListCredentials = errors.New("list credentials") + var ErrListGrantableRoles = errors.New("list grantable roles") + var ErrListGroups = errors.New("list groups") + var ErrListProducts = errors.New("list products") + var ErrListProperties = errors.New("list properties") + var ErrListRoles = errors.New("list roles") + var ErrListStates = errors.New("list states") + var ErrListTimeoutPolicies = errors.New("list timeout policies") + var ErrListUsers = errors.New("list users") + var ErrListUsersForProperty = errors.New("list users for property") + var ErrLockAPIClient = errors.New("lock api client") + var ErrLockUser = errors.New("lock user") + var ErrMapPropertyIDToName = errors.New("map property by id") + var ErrMapPropertyNameToID = errors.New("map property by name") + var ErrMoveGroup = errors.New("move group") + var ErrMoveProperty = errors.New("move property") + var ErrNoProperty = errors.New("no such property") + var ErrRemoveGroup = errors.New("remove group") + var ErrRemoveUser = errors.New("remove user") + var ErrResetMFA = errors.New("reset user's authentication method") + var ErrResetUserPassword = errors.New("reset user password") + var ErrSetUserPassword = errors.New("set user password") + var ErrStructValidation = errors.New("struct validation") + var ErrSupportedContactTypes = errors.New("supported contact types") + var ErrSupportedCountries = errors.New("supported countries") + var ErrSupportedLanguages = errors.New("supported languages") + var ErrSupportedTimezones = errors.New("supported timezones") + var ErrUnlockAPIClient = errors.New("unlock api client") + var ErrUnlockUser = errors.New("unlock user") + var ErrUpdateAPIClient = errors.New("update api client") + var ErrUpdateBlockedProperties = errors.New("update blocked properties") + var ErrUpdateCIDRBlock = errors.New("update CIDR block") + var ErrUpdateCredential = errors.New("update credential") + var ErrUpdateGroupName = errors.New("update group name") + var ErrUpdateMFA = errors.New("update user's authentication method") + var ErrUpdateRole = errors.New("update a role") + var ErrUpdateUserAuthGrants = errors.New("update user auth grants") + var ErrUpdateUserInfo = errors.New("update user info") + var ErrUpdateUserNotifications = errors.New("update user notifications") + var ErrValidateCIDRBlock = errors.New("validate CIDR block") + type API struct + APIID int64 + APIName string + AccessLevel AccessLevel + Description string + DocumentationURL string + Endpoint string + func (a API) Validate() error + type APIAccess struct + APIs []API + AllAccessibleAPIs bool + func (a APIAccess) Validate() error + type APIClient struct + AccessToken string + ActiveCredentialCount int64 + AllowAccountSwitch bool + AuthorizedUsers []string + CanAutoCreateCredential bool + ClientDescription string + ClientID string + ClientName string + ClientType ClientType + CreatedBy string + CreatedDate time.Time + IsLocked bool + NotificationEmails []string + ServiceConsumerToken string + type APIClientActions struct + DeactivateAll bool + Delete bool + Edit bool + EditAPIs bool + EditAuth bool + EditGroups bool + EditIPAcl bool + EditSwitchAccount bool + Lock bool + Transfer bool + Unlock bool + type APIClientCredential struct + Actions CredentialActions + ClientToken string + CreatedOn time.Time + CredentialID int64 + Description string + ExpiresOn time.Time + Status CredentialStatus + type AccessLevel string + const ReadOnlyLevel + const ReadWriteLevel + type AccessibleGroup struct + GroupID int64 + GroupName string + IsBlocked bool + RoleDescription string + RoleID int64 + RoleName string + SubGroups []AccessibleSubGroup + type AccessibleSubGroup struct + GroupID int64 + GroupName string + ParentGroupID int64 + SubGroups []AccessibleSubGroup + type AccountSwitchKey struct + AccountName string + AccountSwitchKey string + type AllowedAPI struct + APIID int64 + APIName string + AccessLevels []AccessLevel + Description string + DocumentationURL string + Endpoint string + HasAccess bool + ServiceProviderID int64 + type AllowedCPCodesGroup struct + GroupID int64 + GroupName string + IsBlocked bool + ParentGroupID int64 + RoleDescription string + RoleID int64 + RoleName string + SubGroups []AllowedCPCodesGroup + type AuthGrant struct + GroupID int64 + GroupName string + IsBlocked bool + RoleDescription string + RoleID *int + RoleName string + Subgroups []AuthGrant + func (r AuthGrant) Validate() error + type AuthGrantRequest struct + GroupID int64 + IsBlocked bool + RoleID *int + Subgroups []AuthGrantRequest + type Authentication string + const MFAAuthentication + const NoneAuthentication + const TFAAuthentication + func (a Authentication) Validate() error + type AuthorizedUser struct + Email string + FirstName string + LastName string + UIIdentityID string + Username string + type BlockUserItem struct + UIIdentityID string + func (r BlockUserItem) Validate() error + type BlockUsersRequest struct + Body BlockUsersRequestBody + PropertyID int64 + func (r BlockUsersRequest) Validate() error + type BlockUsersRequestBody []BlockUserItem + type BlockUsersResponse []UsersForProperty + type CIDRActions struct + Delete bool + Edit bool + type CIDRBlock struct + Actions *CIDRActions + CIDRBlock string + CIDRBlockID int64 + Comments *string + CreatedBy string + CreatedDate time.Time + Enabled bool + ModifiedBy string + ModifiedDate time.Time + type CPCodeAccess struct + AllCurrentAndNewCPCodes bool + CPCodes []int64 + func (ca CPCodeAccess) Validate() error + type ClientFunc func(sess session.Session, opts ...Option) IAM + type ClientGroup struct + GroupID int64 + GroupName string + IsBlocked bool + ParentGroupID int64 + RoleDescription string + RoleID int64 + RoleName string + Subgroups []ClientGroup + func (cg ClientGroup) Validate() error + type ClientType string + const ClientClientType + const ServiceAccountClientType + const UserClientType + func (c ClientType) Validate() error + type CreateAPIClientCredential struct + Actions CredentialActions + ClientSecret string + ClientToken string + CreatedOn time.Time + CredentialID int64 + Description string + ExpiresOn time.Time + Status CredentialStatus + type CreateAPIClientRequest struct + APIAccess APIAccess + AllowAccountSwitch bool + AuthorizedUsers []string + CanAutoCreateCredential bool + ClientDescription string + ClientName string + ClientType ClientType + CreateCredential bool + GroupAccess GroupAccess + IPACL *IPACL + NotificationEmails []string + PurgeOptions *PurgeOptions + func (r CreateAPIClientRequest) Validate() error + type CreateAPIClientResponse struct + APIAccess APIAccess + AccessToken string + Actions *APIClientActions + ActiveCredentialCount int64 + AllowAccountSwitch bool + AuthorizedUsers []string + BaseURL string + CanAutoCreateCredential bool + ClientDescription string + ClientID string + ClientName string + ClientType ClientType + CreatedBy string + CreatedDate time.Time + Credentials []CreateAPIClientCredential + GroupAccess GroupAccess + IPACL IPACL + IsLocked bool + NotificationEmails []string + PurgeOptions PurgeOptions + ServiceProviderID int64 + type CreateCIDRBlockRequest struct + CIDRBlock string + Comments *string + Enabled bool + func (r CreateCIDRBlockRequest) Validate() error + type CreateCIDRBlockResponse CIDRBlock + type CreateCredentialRequest struct + ClientID string + type CreateCredentialResponse struct + ClientSecret string + ClientToken string + CreatedOn time.Time + CredentialID int64 + Description string + ExpiresOn time.Time + Status CredentialStatus + type CreateRoleRequest RoleRequest + func (r CreateRoleRequest) Validate() error + type CreateUserRequest struct + AuthGrants []AuthGrantRequest + Notifications *UserNotifications + SendEmail bool + func (r CreateUserRequest) Validate() error + type Credential struct + Actions *CredentialActions + ClientToken string + CreatedOn time.Time + CredentialID int64 + Description string + ExpiresOn time.Time + MaxAllowedExpiry time.Time + Status CredentialStatus + type CredentialActions struct + Activate bool + Deactivate bool + Delete bool + EditDescription bool + EditExpiration bool + type CredentialStatus string + const CredentialActive + const CredentialDeleted + const CredentialInactive + func (c CredentialStatus) Validate() error + type DeactivateCredentialRequest struct + ClientID string + CredentialID int64 + func (r DeactivateCredentialRequest) Validate() error + type DeactivateCredentialsRequest struct + ClientID string + type DeleteAPIClientRequest struct + ClientID string + type DeleteCIDRBlockRequest struct + CIDRBlockID int64 + func (r DeleteCIDRBlockRequest) Validate() error + type DeleteCredentialRequest struct + ClientID string + CredentialID int64 + func (r DeleteCredentialRequest) Validate() error + type DeleteRoleRequest struct + ID int64 + func (r DeleteRoleRequest) Validate() error + type Error struct + BehaviorName string + Detail string + ErrorLocation string + Errors json.RawMessage + HTTPStatus int + Instance string + StatusCode int + Title string + Type string + Warnings json.RawMessage + func (e *Error) Error() string + func (e *Error) Is(target error) bool + type GetAPIClientRequest struct + APIAccess bool + Actions bool + ClientID string + Credentials bool + GroupAccess bool + IPACL bool + type GetAPIClientResponse struct + APIAccess APIAccess + AccessToken string + Actions *APIClientActions + ActiveCredentialCount int64 + AllowAccountSwitch bool + AuthorizedUsers []string + BaseURL string + CanAutoCreateCredential bool + ClientDescription string + ClientID string + ClientName string + ClientType ClientType + CreatedBy string + CreatedDate time.Time + Credentials []APIClientCredential + GroupAccess GroupAccess + IPACL IPACL + IsLocked bool + NotificationEmails []string + PurgeOptions PurgeOptions + ServiceProviderID int64 + type GetCIDRBlockRequest struct + Actions bool + CIDRBlockID int64 + func (r GetCIDRBlockRequest) Validate() error + type GetCIDRBlockResponse CIDRBlock + type GetCredentialRequest struct + Actions bool + ClientID string + CredentialID int64 + func (r GetCredentialRequest) Validate() error + type GetCredentialResponse Credential + type GetGroupRequest struct + Actions bool + GroupID int64 + func (r GetGroupRequest) Validate() error + type GetIPAllowlistStatusResponse struct + Enabled bool + type GetPasswordPolicyResponse struct + CaseDiff int64 + MaxRepeating int64 + MinDigits int64 + MinLength int64 + MinLetters int64 + MinNonAlpha int64 + MinReuse int64 + PwClass string + RotateFrequency int64 + type GetPropertyRequest struct + GroupID int64 + PropertyID int64 + func (r GetPropertyRequest) Validate() error + type GetPropertyResponse struct + ARLConfigFile string + CreatedBy string + CreatedDate time.Time + GroupID int64 + GroupName string + ModifiedBy string + ModifiedDate time.Time + PropertyID int64 + PropertyName string + type GetRoleRequest struct + Actions bool + GrantedRoles bool + ID int64 + Users bool + func (r GetRoleRequest) Validate() error + type GetUserRequest struct + Actions bool + AuthGrants bool + IdentityID string + Notifications bool + func (r GetUserRequest) Validate() error + type GrantedRoleID struct + ID int64 + type Group struct + Actions *GroupActions + CreatedBy string + CreatedDate time.Time + GroupID int64 + GroupName string + ModifiedBy string + ModifiedDate time.Time + ParentGroupID int64 + SubGroups []Group + type GroupAccess struct + CloneAuthorizedUserGroups bool + Groups []ClientGroup + func (ga GroupAccess) Validate() error + type GroupActions struct + Delete bool + Edit bool + type GroupRequest struct + GroupID int64 + GroupName string + func (r GroupRequest) Validate() error + type GroupUser struct + AccountID string + Email string + FirstName string + IdentityID string + LastLoginDate time.Time + LastName string + UserName string + type IAM interface + BlockUsers func(context.Context, BlockUsersRequest) (*BlockUsersResponse, error) + CreateAPIClient func(ctx context.Context, params CreateAPIClientRequest) (*CreateAPIClientResponse, error) + CreateCIDRBlock func(context.Context, CreateCIDRBlockRequest) (*CreateCIDRBlockResponse, error) + CreateCredential func(context.Context, CreateCredentialRequest) (*CreateCredentialResponse, error) + CreateGroup func(context.Context, GroupRequest) (*Group, error) + CreateRole func(context.Context, CreateRoleRequest) (*Role, error) + CreateUser func(context.Context, CreateUserRequest) (*User, error) + DeactivateCredential func(context.Context, DeactivateCredentialRequest) error + DeactivateCredentials func(context.Context, DeactivateCredentialsRequest) error + DeleteAPIClient func(ctx context.Context, params DeleteAPIClientRequest) error + DeleteCIDRBlock func(context.Context, DeleteCIDRBlockRequest) error + DeleteCredential func(context.Context, DeleteCredentialRequest) error + DeleteRole func(context.Context, DeleteRoleRequest) error + DisableIPAllowlist func(context.Context) error + EnableIPAllowlist func(context.Context) error + GetAPIClient func(ctx context.Context, params GetAPIClientRequest) (*GetAPIClientResponse, error) + GetCIDRBlock func(context.Context, GetCIDRBlockRequest) (*GetCIDRBlockResponse, error) + GetCredential func(context.Context, GetCredentialRequest) (*GetCredentialResponse, error) + GetGroup func(context.Context, GetGroupRequest) (*Group, error) + GetIPAllowlistStatus func(context.Context) (*GetIPAllowlistStatusResponse, error) + GetPasswordPolicy func(ctx context.Context) (*GetPasswordPolicyResponse, error) + GetProperty func(context.Context, GetPropertyRequest) (*GetPropertyResponse, error) + GetRole func(context.Context, GetRoleRequest) (*Role, error) + GetUser func(context.Context, GetUserRequest) (*User, error) + ListAPIClients func(ctx context.Context, params ListAPIClientsRequest) (ListAPIClientsResponse, error) + ListAccessibleGroups func(context.Context, ListAccessibleGroupsRequest) (ListAccessibleGroupsResponse, error) + ListAccountSwitchKeys func(context.Context, ListAccountSwitchKeysRequest) (ListAccountSwitchKeysResponse, error) + ListAffectedUsers func(context.Context, ListAffectedUsersRequest) ([]GroupUser, error) + ListAllowedAPIs func(context.Context, ListAllowedAPIsRequest) (ListAllowedAPIsResponse, error) + ListAllowedCPCodes func(context.Context, ListAllowedCPCodesRequest) (ListAllowedCPCodesResponse, error) + ListAuthorizedUsers func(context.Context) (ListAuthorizedUsersResponse, error) + ListBlockedProperties func(context.Context, ListBlockedPropertiesRequest) ([]int64, error) + ListCIDRBlocks func(context.Context, ListCIDRBlocksRequest) (ListCIDRBlocksResponse, error) + ListCredentials func(context.Context, ListCredentialsRequest) (ListCredentialsResponse, error) + ListGrantableRoles func(context.Context) ([]RoleGrantedRole, error) + ListGroups func(context.Context, ListGroupsRequest) ([]Group, error) + ListProducts func(context.Context) ([]string, error) + ListProperties func(context.Context, ListPropertiesRequest) (ListPropertiesResponse, error) + ListRoles func(context.Context, ListRolesRequest) ([]Role, error) + ListStates func(context.Context, ListStatesRequest) ([]string, error) + ListTimeoutPolicies func(context.Context) ([]TimeoutPolicy, error) + ListUsers func(context.Context, ListUsersRequest) ([]UserListItem, error) + ListUsersForProperty func(context.Context, ListUsersForPropertyRequest) (ListUsersForPropertyResponse, error) + LockAPIClient func(ctx context.Context, params LockAPIClientRequest) (*LockAPIClientResponse, error) + LockUser func(context.Context, LockUserRequest) error + MapPropertyIDToName func(context.Context, MapPropertyIDToNameRequest) (*string, error) + MoveGroup func(context.Context, MoveGroupRequest) error + MoveProperty func(context.Context, MovePropertyRequest) error + RemoveGroup func(context.Context, RemoveGroupRequest) error + RemoveUser func(context.Context, RemoveUserRequest) error + ResetMFA func(context.Context, ResetMFARequest) error + ResetUserPassword func(context.Context, ResetUserPasswordRequest) (*ResetUserPasswordResponse, error) + SetUserPassword func(context.Context, SetUserPasswordRequest) error + SupportedContactTypes func(context.Context) ([]string, error) + SupportedCountries func(context.Context) ([]string, error) + SupportedLanguages func(context.Context) ([]string, error) + SupportedTimezones func(context.Context) ([]Timezone, error) + UnlockAPIClient func(ctx context.Context, params UnlockAPIClientRequest) (*UnlockAPIClientResponse, error) + UnlockUser func(context.Context, UnlockUserRequest) error + UpdateAPIClient func(ctx context.Context, params UpdateAPIClientRequest) (*UpdateAPIClientResponse, error) + UpdateBlockedProperties func(context.Context, UpdateBlockedPropertiesRequest) ([]int64, error) + UpdateCIDRBlock func(context.Context, UpdateCIDRBlockRequest) (*UpdateCIDRBlockResponse, error) + UpdateCredential func(context.Context, UpdateCredentialRequest) (*UpdateCredentialResponse, error) + UpdateGroupName func(context.Context, GroupRequest) (*Group, error) + UpdateMFA func(context.Context, UpdateMFARequest) error + UpdateRole func(context.Context, UpdateRoleRequest) (*Role, error) + UpdateUserAuthGrants func(context.Context, UpdateUserAuthGrantsRequest) ([]AuthGrant, error) + UpdateUserInfo func(context.Context, UpdateUserInfoRequest) (*UserBasicInfo, error) + UpdateUserNotifications func(context.Context, UpdateUserNotificationsRequest) (*UserNotifications, error) + ValidateCIDRBlock func(context.Context, ValidateCIDRBlockRequest) error + func Client(sess session.Session, opts ...Option) IAM + type IPACL struct + CIDR []string + Enable bool + type ListAPIClientsActions struct + DeactivateAll bool + Delete bool + Edit bool + Lock bool + Transfer bool + Unlock bool + type ListAPIClientsItem struct + AccessToken string + Actions *ListAPIClientsActions + ActiveCredentialCount int64 + AllowAccountSwitch bool + AuthorizedUsers []string + CanAutoCreateCredential bool + ClientDescription string + ClientID string + ClientName string + ClientType ClientType + CreatedBy string + CreatedDate time.Time + IsLocked bool + NotificationEmails []string + ServiceConsumerToken string + type ListAPIClientsRequest struct + Actions bool + type ListAPIClientsResponse []ListAPIClientsItem + type ListAccessibleGroupsRequest struct + UserName string + func (r ListAccessibleGroupsRequest) Validate() error + type ListAccessibleGroupsResponse []AccessibleGroup + type ListAccountSwitchKeysRequest struct + ClientID string + Search string + type ListAccountSwitchKeysResponse []AccountSwitchKey + type ListAffectedUsersRequest struct + DestinationGroupID int64 + SourceGroupID int64 + UserType string + func (r ListAffectedUsersRequest) Validate() error + type ListAllowedAPIsRequest struct + AllowAccountSwitch bool + ClientType ClientType + UserName string + func (r ListAllowedAPIsRequest) Validate() error + type ListAllowedAPIsResponse []AllowedAPI + type ListAllowedCPCodesRequest struct + Body ListAllowedCPCodesRequestBody + UserName string + func (r ListAllowedCPCodesRequest) Validate() error + type ListAllowedCPCodesRequestBody struct + ClientType ClientType + Groups []AllowedCPCodesGroup + func (r ListAllowedCPCodesRequestBody) Validate() error + type ListAllowedCPCodesResponse []ListAllowedCPCodesResponseItem + type ListAllowedCPCodesResponseItem struct + Name string + Value int + type ListAuthorizedUsersResponse []AuthorizedUser + type ListBlockedPropertiesRequest struct + GroupID int64 + IdentityID string + func (r ListBlockedPropertiesRequest) Validate() error + type ListCIDRBlocksRequest struct + Actions bool + type ListCIDRBlocksResponse []CIDRBlock + type ListCredentialsRequest struct + Actions bool + ClientID string + type ListCredentialsResponse []Credential + type ListGroupsRequest struct + Actions bool + type ListPropertiesRequest struct + Actions bool + GroupID int64 + type ListPropertiesResponse []Property + type ListRolesRequest struct + Actions bool + GroupID *int64 + IgnoreContext bool + Users bool + type ListStatesRequest struct + Country string + func (r ListStatesRequest) Validate() error + type ListUsersForPropertyRequest struct + PropertyID int64 + UserType PropertyUserType + func (r ListUsersForPropertyRequest) Validate() error + type ListUsersForPropertyResponse []UsersForProperty + type ListUsersRequest struct + Actions bool + AuthGrants bool + GroupID *int64 + type LockAPIClientRequest struct + ClientID string + type LockAPIClientResponse APIClient + type LockUserRequest struct + IdentityID string + func (r LockUserRequest) Validate() error + type MapPropertyIDToNameRequest struct + GroupID int64 + PropertyID int64 + func (r MapPropertyIDToNameRequest) Validate() error + type MapPropertyNameToIDRequest string + type Mock struct + func (m *Mock) BlockUsers(ctx context.Context, request BlockUsersRequest) (*BlockUsersResponse, error) + func (m *Mock) CreateAPIClient(ctx context.Context, request CreateAPIClientRequest) (*CreateAPIClientResponse, error) + func (m *Mock) CreateCIDRBlock(ctx context.Context, request CreateCIDRBlockRequest) (*CreateCIDRBlockResponse, error) + func (m *Mock) CreateCredential(ctx context.Context, request CreateCredentialRequest) (*CreateCredentialResponse, error) + func (m *Mock) CreateGroup(ctx context.Context, request GroupRequest) (*Group, error) + func (m *Mock) CreateRole(ctx context.Context, request CreateRoleRequest) (*Role, error) + func (m *Mock) CreateUser(ctx context.Context, request CreateUserRequest) (*User, error) + func (m *Mock) DeactivateCredential(ctx context.Context, request DeactivateCredentialRequest) error + func (m *Mock) DeactivateCredentials(ctx context.Context, request DeactivateCredentialsRequest) error + func (m *Mock) DeleteAPIClient(ctx context.Context, request DeleteAPIClientRequest) error + func (m *Mock) DeleteCIDRBlock(ctx context.Context, request DeleteCIDRBlockRequest) error + func (m *Mock) DeleteCredential(ctx context.Context, request DeleteCredentialRequest) error + func (m *Mock) DeleteRole(ctx context.Context, request DeleteRoleRequest) error + func (m *Mock) DisableIPAllowlist(ctx context.Context) error + func (m *Mock) EnableIPAllowlist(ctx context.Context) error + func (m *Mock) GetAPIClient(ctx context.Context, request GetAPIClientRequest) (*GetAPIClientResponse, error) + func (m *Mock) GetCIDRBlock(ctx context.Context, request GetCIDRBlockRequest) (*GetCIDRBlockResponse, error) + func (m *Mock) GetCredential(ctx context.Context, request GetCredentialRequest) (*GetCredentialResponse, error) + func (m *Mock) GetGroup(ctx context.Context, request GetGroupRequest) (*Group, error) + func (m *Mock) GetIPAllowlistStatus(ctx context.Context) (*GetIPAllowlistStatusResponse, error) + func (m *Mock) GetPasswordPolicy(ctx context.Context) (*GetPasswordPolicyResponse, error) + func (m *Mock) GetProperty(ctx context.Context, request GetPropertyRequest) (*GetPropertyResponse, error) + func (m *Mock) GetRole(ctx context.Context, request GetRoleRequest) (*Role, error) + func (m *Mock) GetUser(ctx context.Context, request GetUserRequest) (*User, error) + func (m *Mock) ListAPIClients(ctx context.Context, request ListAPIClientsRequest) (ListAPIClientsResponse, error) + func (m *Mock) ListAccessibleGroups(ctx context.Context, request ListAccessibleGroupsRequest) (ListAccessibleGroupsResponse, error) + func (m *Mock) ListAccountSwitchKeys(ctx context.Context, request ListAccountSwitchKeysRequest) (ListAccountSwitchKeysResponse, error) + func (m *Mock) ListAffectedUsers(ctx context.Context, request ListAffectedUsersRequest) ([]GroupUser, error) + func (m *Mock) ListAllowedAPIs(ctx context.Context, request ListAllowedAPIsRequest) (ListAllowedAPIsResponse, error) + func (m *Mock) ListAllowedCPCodes(ctx context.Context, params ListAllowedCPCodesRequest) (ListAllowedCPCodesResponse, error) + func (m *Mock) ListAuthorizedUsers(ctx context.Context) (ListAuthorizedUsersResponse, error) + func (m *Mock) ListBlockedProperties(ctx context.Context, request ListBlockedPropertiesRequest) ([]int64, error) + func (m *Mock) ListCIDRBlocks(ctx context.Context, request ListCIDRBlocksRequest) (ListCIDRBlocksResponse, error) + func (m *Mock) ListCredentials(ctx context.Context, request ListCredentialsRequest) (ListCredentialsResponse, error) + func (m *Mock) ListGrantableRoles(ctx context.Context) ([]RoleGrantedRole, error) + func (m *Mock) ListGroups(ctx context.Context, request ListGroupsRequest) ([]Group, error) + func (m *Mock) ListProducts(ctx context.Context) ([]string, error) + func (m *Mock) ListProperties(ctx context.Context, request ListPropertiesRequest) (ListPropertiesResponse, error) + func (m *Mock) ListRoles(ctx context.Context, request ListRolesRequest) ([]Role, error) + func (m *Mock) ListStates(ctx context.Context, request ListStatesRequest) ([]string, error) + func (m *Mock) ListTimeoutPolicies(ctx context.Context) ([]TimeoutPolicy, error) + func (m *Mock) ListUsers(ctx context.Context, request ListUsersRequest) ([]UserListItem, error) + func (m *Mock) ListUsersForProperty(ctx context.Context, request ListUsersForPropertyRequest) (ListUsersForPropertyResponse, error) + func (m *Mock) LockAPIClient(ctx context.Context, request LockAPIClientRequest) (*LockAPIClientResponse, error) + func (m *Mock) LockUser(ctx context.Context, request LockUserRequest) error + func (m *Mock) MapPropertyIDToName(ctx context.Context, request MapPropertyIDToNameRequest) (*string, error) + func (m *Mock) MapPropertyNameToID(ctx context.Context, request MapPropertyNameToIDRequest) (*int64, error) + func (m *Mock) MoveGroup(ctx context.Context, request MoveGroupRequest) error + func (m *Mock) MoveProperty(ctx context.Context, request MovePropertyRequest) error + func (m *Mock) RemoveGroup(ctx context.Context, request RemoveGroupRequest) error + func (m *Mock) RemoveUser(ctx context.Context, request RemoveUserRequest) error + func (m *Mock) ResetMFA(ctx context.Context, request ResetMFARequest) error + func (m *Mock) ResetUserPassword(ctx context.Context, request ResetUserPasswordRequest) (*ResetUserPasswordResponse, error) + func (m *Mock) SetUserPassword(ctx context.Context, request SetUserPasswordRequest) error + func (m *Mock) SupportedContactTypes(ctx context.Context) ([]string, error) + func (m *Mock) SupportedCountries(ctx context.Context) ([]string, error) + func (m *Mock) SupportedLanguages(ctx context.Context) ([]string, error) + func (m *Mock) SupportedTimezones(ctx context.Context) ([]Timezone, error) + func (m *Mock) UnlockAPIClient(ctx context.Context, request UnlockAPIClientRequest) (*UnlockAPIClientResponse, error) + func (m *Mock) UnlockUser(ctx context.Context, request UnlockUserRequest) error + func (m *Mock) UpdateAPIClient(ctx context.Context, request UpdateAPIClientRequest) (*UpdateAPIClientResponse, error) + func (m *Mock) UpdateBlockedProperties(ctx context.Context, request UpdateBlockedPropertiesRequest) ([]int64, error) + func (m *Mock) UpdateCIDRBlock(ctx context.Context, request UpdateCIDRBlockRequest) (*UpdateCIDRBlockResponse, error) + func (m *Mock) UpdateCredential(ctx context.Context, request UpdateCredentialRequest) (*UpdateCredentialResponse, error) + func (m *Mock) UpdateGroupName(ctx context.Context, request GroupRequest) (*Group, error) + func (m *Mock) UpdateMFA(ctx context.Context, request UpdateMFARequest) error + func (m *Mock) UpdateRole(ctx context.Context, request UpdateRoleRequest) (*Role, error) + func (m *Mock) UpdateUserAuthGrants(ctx context.Context, request UpdateUserAuthGrantsRequest) ([]AuthGrant, error) + func (m *Mock) UpdateUserInfo(ctx context.Context, request UpdateUserInfoRequest) (*UserBasicInfo, error) + func (m *Mock) UpdateUserNotifications(ctx context.Context, request UpdateUserNotificationsRequest) (*UserNotifications, error) + func (m *Mock) ValidateCIDRBlock(ctx context.Context, request ValidateCIDRBlockRequest) error + type MoveGroupRequest struct + DestinationGroupID int64 + SourceGroupID int64 + func (r MoveGroupRequest) Validate() error + type MovePropertyRequest struct + Body MovePropertyRequestBody + PropertyID int64 + func (r MovePropertyRequest) Validate() error + type MovePropertyRequestBody struct + DestinationGroupID int64 + SourceGroupID int64 + func (r MovePropertyRequestBody) Validate() error + type Option func(*iam) + type Property struct + Actions PropertyActions + GroupID int64 + GroupName string + PropertyID int64 + PropertyName string + PropertyTypeDescription string + type PropertyActions struct + Move bool + type PropertyUserType string + const PropertyUserTypeAll + const PropertyUserTypeAssigned + const PropertyUserTypeBlocked + func (p PropertyUserType) Validate() error + type PurgeOptions struct + CPCodeAccess CPCodeAccess + CanPurgeByCPCode bool + CanPurgeByCacheTag bool + func (po PurgeOptions) Validate() error + type RemoveGroupRequest struct + GroupID int64 + func (r RemoveGroupRequest) Validate() error + type RemoveUserRequest struct + IdentityID string + func (r RemoveUserRequest) Validate() error + type ResetMFARequest struct + IdentityID string + type ResetUserPasswordRequest struct + IdentityID string + SendEmail bool + func (r ResetUserPasswordRequest) Validate() error + type ResetUserPasswordResponse struct + NewPassword string + type Role struct + Actions *RoleAction + CreatedBy string + CreatedDate time.Time + GrantedRoles []RoleGrantedRole + ModifiedBy string + ModifiedDate time.Time + RoleDescription string + RoleID int64 + RoleName string + RoleType RoleType + Users []RoleUser + type RoleAction struct + Delete bool + Edit bool + type RoleGrantedRole struct + Description string + RoleID int64 + RoleName string + type RoleRequest struct + Description string + GrantedRoles []GrantedRoleID + Name string + type RoleType string + var RoleTypeCustom RoleType = "custom" + var RoleTypeStandard RoleType = "standard" + type RoleUser struct + AccountID string + Email string + FirstName string + LastLoginDate time.Time + LastName string + UIIdentityID string + type SetUserPasswordRequest struct + IdentityID string + NewPassword string + func (r SetUserPasswordRequest) Validate() error + type TimeoutPolicy struct + Name string + Value int64 + type Timezone struct + Description string + Offset string + Posix string + Timezone string + type UnlockAPIClientRequest struct + ClientID string + func (r UnlockAPIClientRequest) Validate() error + type UnlockAPIClientResponse APIClient + type UnlockUserRequest struct + IdentityID string + func (r UnlockUserRequest) Validate() error + type UpdateAPIClientRequest struct + Body UpdateAPIClientRequestBody + ClientID string + func (r UpdateAPIClientRequest) Validate() error + type UpdateAPIClientRequestBody struct + APIAccess APIAccess + AllowAccountSwitch bool + AuthorizedUsers []string + CanAutoCreateCredential bool + ClientDescription string + ClientName string + ClientType ClientType + GroupAccess GroupAccess + IPACL *IPACL + NotificationEmails []string + PurgeOptions *PurgeOptions + func (r UpdateAPIClientRequestBody) Validate() error + type UpdateAPIClientResponse GetAPIClientResponse + type UpdateBlockedPropertiesRequest struct + GroupID int64 + IdentityID string + Properties []int64 + func (r UpdateBlockedPropertiesRequest) Validate() error + type UpdateCIDRBlockRequest struct + Body UpdateCIDRBlockRequestBody + CIDRBlockID int64 + func (r UpdateCIDRBlockRequest) Validate() error + type UpdateCIDRBlockRequestBody struct + CIDRBlock string + Comments *string + Enabled bool + func (r UpdateCIDRBlockRequestBody) Validate() error + type UpdateCIDRBlockResponse CIDRBlock + type UpdateCredentialRequest struct + Body UpdateCredentialRequestBody + ClientID string + CredentialID int64 + func (r UpdateCredentialRequest) Validate() error + type UpdateCredentialRequestBody struct + Description string + ExpiresOn time.Time + Status CredentialStatus + func (r UpdateCredentialRequestBody) Validate() error + type UpdateCredentialResponse struct + Description *string + ExpiresOn time.Time + Status CredentialStatus + type UpdateMFARequest struct + IdentityID string + Value Authentication + func (r UpdateMFARequest) Validate() error + type UpdateRoleRequest struct + ID int64 + func (r UpdateRoleRequest) Validate() error + type UpdateUserAuthGrantsRequest struct + AuthGrants []AuthGrantRequest + IdentityID string + func (r UpdateUserAuthGrantsRequest) Validate() error + type UpdateUserInfoRequest struct + IdentityID string + User UserBasicInfo + func (r UpdateUserInfoRequest) Validate() error + type UpdateUserNotificationsRequest struct + IdentityID string + Notifications *UserNotifications + func (r UpdateUserNotificationsRequest) Validate() error + type User struct + AccountID string + Actions *UserActions + AdditionalAuthenticationConfigured bool + AuthGrants []AuthGrant + EmailUpdatePending bool + IdentityID string + IsLocked bool + LastLoginDate time.Time + Notifications UserNotifications + PasswordExpiryDate time.Time + TFAConfigured bool + UserStatus string + type UserActions struct + APIClient bool + CanEditMFA bool + CanEditNone bool + CanEditTFA bool + CanGenerateBypassCode bool + Delete bool + Edit bool + EditProfile bool + EditRole bool + IsCloneable bool + ResetPassword bool + ThirdPartyAccess bool + type UserBasicInfo struct + AdditionalAuthentication Authentication + Address string + City string + ContactType string + Country string + Email string + FirstName string + JobTitle string + LastName string + MobilePhone string + Phone string + PreferredLanguage string + SecondaryEmail string + SessionTimeOut *int + State string + TFAEnabled bool + TimeZone string + UserName string + ZipCode string + type UserListItem struct + AccountID string + Actions *UserActions + AdditionalAuthentication Authentication + AdditionalAuthenticationConfigured bool + AuthGrants []AuthGrant + Email string + FirstName string + IdentityID string + IsLocked bool + LastLoginDate time.Time + LastName string + TFAConfigured bool + TFAEnabled bool + UserName string + type UserNotificationOptions struct + APIClientCredentialExpiry bool + NewUser bool + PasswordExpiry bool + Proactive []string + Upgrade []string + type UserNotifications struct + EnableEmail bool + Options UserNotificationOptions + type UsersForProperty struct + FirstName string + IsBlocked bool + LastName string + UIIdentityID string + UIUserName string + type ValidateCIDRBlockRequest struct + CIDRBlock string + func (r ValidateCIDRBlockRequest) Validate() error Other modules containing this package github.com/akamai/AkamaiOPEN-edgegrid-golang/v2 github.com/akamai/AkamaiOPEN-edgegrid-golang/v3 github.com/akamai/AkamaiOPEN-edgegrid-golang/v4 github.com/akamai/AkamaiOPEN-edgegrid-golang/v5 github.com/akamai/AkamaiOPEN-edgegrid-golang/v6 github.com/akamai/AkamaiOPEN-edgegrid-golang/v7 github.com/akamai/AkamaiOPEN-edgegrid-golang/v8 github.com/akamai/AkamaiOPEN-edgegrid-golang/v9