Documentation ¶
Index ¶
- type AFWUpdateStateParams
- type AFWUpdateTenantParams
- type AddDeviceToGroupParams
- type AddDomainToTenantParams
- type AddPolicyToGroupParams
- type AndroidForWorkEnrollmentState
- type Application
- type ApplicationTarget
- type Certificate
- type CreateDeviceParams
- type CreateObjectParams
- type CreateRawCertParams
- type DBTX
- type DeleteApplicationParams
- type DeleteDomainParams
- type DeleteGroupParams
- type DeletePolicyParams
- type DeleteUserInTenantParams
- type Device
- type DeviceOwnership
- type DeviceState
- type EventLog
- type GetApplicationParams
- type GetApplicationRow
- type GetApplicationTargetsParams
- type GetApplicationTargetsRow
- type GetApplicationsParams
- type GetApplicationsRow
- type GetDeviceForManagementRow
- type GetDeviceGroupsParams
- type GetDeviceGroupsRow
- type GetDeviceParams
- type GetDevicePoliciesRow
- type GetDeviceRow
- type GetDevicesInGroupParams
- type GetDevicesInGroupRow
- type GetDevicesParams
- type GetDevicesRow
- type GetGroupParams
- type GetGroupRow
- type GetGroupsParams
- type GetGroupsRow
- type GetObjectParams
- type GetObjectRow
- type GetPoliciesInGroupParams
- type GetPoliciesInGroupRow
- type GetPoliciesParams
- type GetPoliciesRow
- type GetPolicyGroupsParams
- type GetPolicyGroupsRow
- type GetPolicyParams
- type GetPolicyRow
- type GetRawCertRow
- type GetTenantDomainParams
- type GetTenantDomainRow
- type GetTenantDomainsRow
- type GetTenantRow
- type GetUserPermissionLevelForTenantParams
- type GetUserRow
- type GetUserSecureRow
- type GetUserTenantsRow
- type GetUsersInTenantByQueryParams
- type GetUsersInTenantByQueryRow
- type GetUsersInTenantParams
- type GetUsersInTenantRow
- type Group
- type GroupDevice
- type GroupPolicy
- type ManagementProtocol
- type ManagementScope
- type NewApplicationParams
- type NewGlobalUserParams
- type NewGroupParams
- type NewPolicyParams
- type NewTenantParams
- type NewUserFromAzureADParams
- type NewUserParams
- type Object
- type Operation
- type Policy
- type Queries
- func (q *Queries) AFWCreateState(ctx context.Context) (string, error)
- func (q *Queries) AFWGetAndRemoveState(ctx context.Context, id string) (null.String, error)
- func (q *Queries) AFWUpdateState(ctx context.Context, arg AFWUpdateStateParams) error
- func (q *Queries) AFWUpdateTenant(ctx context.Context, arg AFWUpdateTenantParams) error
- func (q *Queries) AddDeviceToGroup(ctx context.Context, arg AddDeviceToGroupParams) error
- func (q *Queries) AddDomainToTenant(ctx context.Context, arg AddDomainToTenantParams) (string, error)
- func (q *Queries) AddPolicyToGroup(ctx context.Context, arg AddPolicyToGroupParams) error
- func (q *Queries) Close() error
- func (q *Queries) CreateDevice(ctx context.Context, arg CreateDeviceParams) (string, error)
- func (q *Queries) CreateObject(ctx context.Context, arg CreateObjectParams) error
- func (q *Queries) CreateRawCert(ctx context.Context, arg CreateRawCertParams) error
- func (q *Queries) DeleteApplication(ctx context.Context, arg DeleteApplicationParams) error
- func (q *Queries) DeleteDomain(ctx context.Context, arg DeleteDomainParams) error
- func (q *Queries) DeleteGroup(ctx context.Context, arg DeleteGroupParams) error
- func (q *Queries) DeletePolicy(ctx context.Context, arg DeletePolicyParams) error
- func (q *Queries) DeleteUser(ctx context.Context, upn string) error
- func (q *Queries) DeleteUserInTenant(ctx context.Context, arg DeleteUserInTenantParams) error
- func (q *Queries) GetApplication(ctx context.Context, arg GetApplicationParams) (GetApplicationRow, error)
- func (q *Queries) GetApplicationTargets(ctx context.Context, arg GetApplicationTargetsParams) ([]GetApplicationTargetsRow, error)
- func (q *Queries) GetApplications(ctx context.Context, arg GetApplicationsParams) ([]GetApplicationsRow, error)
- func (q *Queries) GetDevice(ctx context.Context, arg GetDeviceParams) (GetDeviceRow, error)
- func (q *Queries) GetDeviceForManagement(ctx context.Context, udid string) (GetDeviceForManagementRow, error)
- func (q *Queries) GetDeviceGroups(ctx context.Context, arg GetDeviceGroupsParams) ([]GetDeviceGroupsRow, error)
- func (q *Queries) GetDevicePolicies(ctx context.Context, deviceID string) ([]GetDevicePoliciesRow, error)
- func (q *Queries) GetDevices(ctx context.Context, arg GetDevicesParams) ([]GetDevicesRow, error)
- func (q *Queries) GetDevicesInGroup(ctx context.Context, arg GetDevicesInGroupParams) ([]GetDevicesInGroupRow, error)
- func (q *Queries) GetDevicesWithPolicy(ctx context.Context, policyID string) ([]string, error)
- func (q *Queries) GetGroup(ctx context.Context, arg GetGroupParams) (GetGroupRow, error)
- func (q *Queries) GetGroups(ctx context.Context, arg GetGroupsParams) ([]GetGroupsRow, error)
- func (q *Queries) GetObject(ctx context.Context, arg GetObjectParams) (GetObjectRow, error)
- func (q *Queries) GetPolicies(ctx context.Context, arg GetPoliciesParams) ([]GetPoliciesRow, error)
- func (q *Queries) GetPoliciesInGroup(ctx context.Context, arg GetPoliciesInGroupParams) ([]GetPoliciesInGroupRow, error)
- func (q *Queries) GetPolicy(ctx context.Context, arg GetPolicyParams) (GetPolicyRow, error)
- func (q *Queries) GetPolicyGroups(ctx context.Context, arg GetPolicyGroupsParams) ([]GetPolicyGroupsRow, error)
- func (q *Queries) GetRawCert(ctx context.Context, id string) (GetRawCertRow, error)
- func (q *Queries) GetTenant(ctx context.Context, id string) (GetTenantRow, error)
- func (q *Queries) GetTenantDomain(ctx context.Context, arg GetTenantDomainParams) (GetTenantDomainRow, error)
- func (q *Queries) GetTenantDomains(ctx context.Context, tenantID string) ([]GetTenantDomainsRow, error)
- func (q *Queries) GetUser(ctx context.Context, upn string) (GetUserRow, error)
- func (q *Queries) GetUserCount(ctx context.Context) (int64, error)
- func (q *Queries) GetUserPermissionLevelForTenant(ctx context.Context, arg GetUserPermissionLevelForTenantParams) (UserPermissionLevel, error)
- func (q *Queries) GetUserSecure(ctx context.Context, upn string) (GetUserSecureRow, error)
- func (q *Queries) GetUserTenants(ctx context.Context, userUpn string) ([]GetUserTenantsRow, error)
- func (q *Queries) GetUsersInTenant(ctx context.Context, arg GetUsersInTenantParams) ([]GetUsersInTenantRow, error)
- func (q *Queries) GetUsersInTenantByQuery(ctx context.Context, arg GetUsersInTenantByQueryParams) ([]GetUsersInTenantByQueryRow, error)
- func (q *Queries) NewApplication(ctx context.Context, arg NewApplicationParams) (string, error)
- func (q *Queries) NewGlobalUser(ctx context.Context, arg NewGlobalUserParams) error
- func (q *Queries) NewGroup(ctx context.Context, arg NewGroupParams) (string, error)
- func (q *Queries) NewPolicy(ctx context.Context, arg NewPolicyParams) (string, error)
- func (q *Queries) NewTenant(ctx context.Context, arg NewTenantParams) (string, error)
- func (q *Queries) NewUser(ctx context.Context, arg NewUserParams) error
- func (q *Queries) NewUserFromAzureAD(ctx context.Context, arg NewUserFromAzureADParams) error
- func (q *Queries) RemoveDeviceFromGroup(ctx context.Context, arg RemoveDeviceFromGroupParams) error
- func (q *Queries) RemovePolicyFromGroup(ctx context.Context, arg RemovePolicyFromGroupParams) error
- func (q *Queries) RemoveUserFromTenant(ctx context.Context, arg RemoveUserFromTenantParams) error
- func (q *Queries) ScopeUserToTenant(ctx context.Context, arg ScopeUserToTenantParams) error
- func (q *Queries) UpdateApplication(ctx context.Context, arg UpdateApplicationParams) error
- func (q *Queries) UpdateDevice(ctx context.Context, arg UpdateDeviceParams) error
- func (q *Queries) UpdateDomain(ctx context.Context, arg UpdateDomainParams) error
- func (q *Queries) UpdateGroup(ctx context.Context, arg UpdateGroupParams) error
- func (q *Queries) UpdateObject(ctx context.Context, arg UpdateObjectParams) error
- func (q *Queries) UpdatePolicy(ctx context.Context, arg UpdatePolicyParams) error
- func (q *Queries) UpdateTenant(ctx context.Context, arg UpdateTenantParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) UpdateUserInTenant(ctx context.Context, arg UpdateUserInTenantParams) (string, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RemoveDeviceFromGroupParams
- type RemovePolicyFromGroupParams
- type RemoveUserFromTenantParams
- type ScopeUserToTenantParams
- type Tenant
- type TenantDomain
- type TenantUser
- type UpdateApplicationParams
- type UpdateDeviceParams
- type UpdateDomainParams
- type UpdateGroupParams
- type UpdateObjectParams
- type UpdatePolicyParams
- type UpdateTenantParams
- type UpdateUserInTenantParams
- type UpdateUserParams
- type User
- type UserPermissionLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AFWUpdateStateParams ¶
type AFWUpdateTenantParams ¶
type AddDeviceToGroupParams ¶
type AddDomainToTenantParams ¶
type AddPolicyToGroupParams ¶
type Application ¶
type ApplicationTarget ¶
type Certificate ¶
type CreateDeviceParams ¶
type CreateDeviceParams struct { TenantID string `json:"tenant_id"` Protocol ManagementProtocol `json:"protocol"` Scope ManagementScope `json:"scope"` State DeviceState `json:"state"` Udid string `json:"udid"` Name null.String `json:"name"` SerialNumber null.String `json:"serial_number"` ModelManufacturer null.String `json:"model_manufacturer"` Model null.String `json:"model"` OsMajor null.String `json:"os_major"` OsMinor null.String `json:"os_minor"` Owner null.String `json:"owner"` Ownership DeviceOwnership `json:"ownership"` AzureDid null.String `json:"azure_did"` }
type CreateObjectParams ¶
type CreateRawCertParams ¶
type DeleteApplicationParams ¶
type DeleteDomainParams ¶
type DeleteGroupParams ¶
type DeletePolicyParams ¶
type Device ¶
type Device struct { ID string `json:"id"` TenantID string `json:"tenant_id"` Protocol ManagementProtocol `json:"protocol"` Scope ManagementScope `json:"scope"` State DeviceState `json:"state"` Udid string `json:"udid"` Name null.String `json:"name"` Description null.String `json:"description"` SerialNumber null.String `json:"serial_number"` ModelManufacturer null.String `json:"model_manufacturer"` Model null.String `json:"model"` OsMajor null.String `json:"os_major"` OsMinor null.String `json:"os_minor"` Owner null.String `json:"owner"` Ownership DeviceOwnership `json:"ownership"` AzureDid null.String `json:"azure_did"` Lastseen sql.NullTime `json:"lastseen"` EnrolledAt time.Time `json:"enrolled_at"` }
type DeviceOwnership ¶
type DeviceOwnership string
const ( DeviceOwnershipCorporate DeviceOwnership = "corporate" DeviceOwnershipPersonal DeviceOwnership = "personal" )
func (*DeviceOwnership) Scan ¶
func (e *DeviceOwnership) Scan(src interface{}) error
type DeviceState ¶
type DeviceState string
const ( DeviceStateDeploying DeviceState = "deploying" DeviceStateManaged DeviceState = "managed" DeviceStateUserUnenrolled DeviceState = "user_unenrolled" DeviceStateDisabled DeviceState = "disabled" DeviceStateMissing DeviceState = "missing" )
func (*DeviceState) Scan ¶
func (e *DeviceState) Scan(src interface{}) error
type EventLog ¶
type EventLog struct { EventID int32 `json:"event_id"` TableName string `json:"table_name"` ResourceID null.String `json:"resource_id"` TenantID null.String `json:"tenant_id"` UserUpn null.String `json:"user_upn"` Time time.Time `json:"time"` Operation Operation `json:"operation"` ExistingValue json.RawMessage `json:"existing_value"` }
type GetApplicationParams ¶
type GetApplicationRow ¶
type GetApplicationsParams ¶
type GetApplicationsRow ¶
type GetDeviceForManagementRow ¶
type GetDeviceForManagementRow struct { ID string `json:"id"` TenantID string `json:"tenant_id"` Protocol ManagementProtocol `json:"protocol"` Scope ManagementScope `json:"scope"` State DeviceState `json:"state"` Name null.String `json:"name"` SerialNumber null.String `json:"serial_number"` ModelManufacturer null.String `json:"model_manufacturer"` Model null.String `json:"model"` OsMajor null.String `json:"os_major"` OsMinor null.String `json:"os_minor"` Owner null.String `json:"owner"` Ownership DeviceOwnership `json:"ownership"` AzureDid null.String `json:"azure_did"` }
type GetDeviceGroupsParams ¶
type GetDeviceGroupsRow ¶
type GetDeviceParams ¶
type GetDevicePoliciesRow ¶
type GetDeviceRow ¶
type GetDeviceRow struct { ID string `json:"id"` Protocol ManagementProtocol `json:"protocol"` Scope ManagementScope `json:"scope"` State DeviceState `json:"state"` Name null.String `json:"name"` SerialNumber null.String `json:"serial_number"` ModelManufacturer null.String `json:"model_manufacturer"` Model null.String `json:"model"` OsMajor null.String `json:"os_major"` OsMinor null.String `json:"os_minor"` Owner null.String `json:"owner"` Ownership DeviceOwnership `json:"ownership"` AzureDid null.String `json:"azure_did"` EnrolledAt time.Time `json:"enrolled_at"` Lastseen sql.NullTime `json:"lastseen"` }
type GetDevicesInGroupParams ¶
type GetDevicesInGroupRow ¶
type GetDevicesParams ¶
type GetDevicesRow ¶
type GetGroupParams ¶
type GetGroupRow ¶
type GetGroupsParams ¶
type GetGroupsRow ¶
type GetObjectParams ¶
type GetObjectRow ¶
type GetPoliciesInGroupRow ¶
type GetPoliciesParams ¶
type GetPoliciesRow ¶
type GetPolicyGroupsParams ¶
type GetPolicyGroupsRow ¶
type GetPolicyParams ¶
type GetPolicyRow ¶
type GetRawCertRow ¶
type GetTenantDomainParams ¶
type GetTenantDomainRow ¶
type GetTenantDomainsRow ¶
type GetTenantRow ¶
type GetUserRow ¶
type GetUserSecureRow ¶
type GetUserTenantsRow ¶
type GetUsersInTenantParams ¶
type GetUsersInTenantRow ¶
type GroupDevice ¶
type GroupPolicy ¶
type ManagementProtocol ¶
type ManagementProtocol string
const ( ManagementProtocolWindows ManagementProtocol = "windows" ManagementProtocolAgent ManagementProtocol = "agent" ManagementProtocolApple ManagementProtocol = "apple" ManagementProtocolAndroid ManagementProtocol = "android" )
func (*ManagementProtocol) Scan ¶
func (e *ManagementProtocol) Scan(src interface{}) error
type ManagementScope ¶
type ManagementScope string
const ( ManagementScopeDevice ManagementScope = "device" ManagementScopeAfwProfile ManagementScope = "afw_profile" ManagementScopeUser ManagementScope = "user" )
func (*ManagementScope) Scan ¶
func (e *ManagementScope) Scan(src interface{}) error
type NewApplicationParams ¶
type NewGlobalUserParams ¶
type NewGroupParams ¶
type NewPolicyParams ¶
type NewTenantParams ¶
type NewUserParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AFWCreateState ¶
func (*Queries) AFWGetAndRemoveState ¶
------ Android For Work Enrollment State
func (*Queries) AFWUpdateState ¶
func (q *Queries) AFWUpdateState(ctx context.Context, arg AFWUpdateStateParams) error
func (*Queries) AFWUpdateTenant ¶
func (q *Queries) AFWUpdateTenant(ctx context.Context, arg AFWUpdateTenantParams) error
func (*Queries) AddDeviceToGroup ¶
func (q *Queries) AddDeviceToGroup(ctx context.Context, arg AddDeviceToGroupParams) error
func (*Queries) AddDomainToTenant ¶
func (*Queries) AddPolicyToGroup ¶
func (q *Queries) AddPolicyToGroup(ctx context.Context, arg AddPolicyToGroupParams) error
func (*Queries) CreateDevice ¶
------ Device Actions
func (*Queries) CreateObject ¶
func (q *Queries) CreateObject(ctx context.Context, arg CreateObjectParams) error
func (*Queries) CreateRawCert ¶
func (q *Queries) CreateRawCert(ctx context.Context, arg CreateRawCertParams) error
func (*Queries) DeleteApplication ¶
func (q *Queries) DeleteApplication(ctx context.Context, arg DeleteApplicationParams) error
func (*Queries) DeleteDomain ¶
func (q *Queries) DeleteDomain(ctx context.Context, arg DeleteDomainParams) error
func (*Queries) DeleteGroup ¶
func (q *Queries) DeleteGroup(ctx context.Context, arg DeleteGroupParams) error
func (*Queries) DeletePolicy ¶
func (q *Queries) DeletePolicy(ctx context.Context, arg DeletePolicyParams) error
func (*Queries) DeleteUserInTenant ¶
func (q *Queries) DeleteUserInTenant(ctx context.Context, arg DeleteUserInTenantParams) error
func (*Queries) GetApplication ¶
func (q *Queries) GetApplication(ctx context.Context, arg GetApplicationParams) (GetApplicationRow, error)
func (*Queries) GetApplicationTargets ¶
func (q *Queries) GetApplicationTargets(ctx context.Context, arg GetApplicationTargetsParams) ([]GetApplicationTargetsRow, error)
func (*Queries) GetApplications ¶
func (q *Queries) GetApplications(ctx context.Context, arg GetApplicationsParams) ([]GetApplicationsRow, error)
func (*Queries) GetDevice ¶
func (q *Queries) GetDevice(ctx context.Context, arg GetDeviceParams) (GetDeviceRow, error)
func (*Queries) GetDeviceForManagement ¶
func (*Queries) GetDeviceGroups ¶
func (q *Queries) GetDeviceGroups(ctx context.Context, arg GetDeviceGroupsParams) ([]GetDeviceGroupsRow, error)
func (*Queries) GetDevicePolicies ¶
func (*Queries) GetDevices ¶
func (q *Queries) GetDevices(ctx context.Context, arg GetDevicesParams) ([]GetDevicesRow, error)
func (*Queries) GetDevicesInGroup ¶
func (q *Queries) GetDevicesInGroup(ctx context.Context, arg GetDevicesInGroupParams) ([]GetDevicesInGroupRow, error)
func (*Queries) GetDevicesWithPolicy ¶
func (*Queries) GetGroup ¶
func (q *Queries) GetGroup(ctx context.Context, arg GetGroupParams) (GetGroupRow, error)
func (*Queries) GetGroups ¶
func (q *Queries) GetGroups(ctx context.Context, arg GetGroupsParams) ([]GetGroupsRow, error)
func (*Queries) GetObject ¶
func (q *Queries) GetObject(ctx context.Context, arg GetObjectParams) (GetObjectRow, error)
------ Object Actions
func (*Queries) GetPolicies ¶
func (q *Queries) GetPolicies(ctx context.Context, arg GetPoliciesParams) ([]GetPoliciesRow, error)
func (*Queries) GetPoliciesInGroup ¶
func (q *Queries) GetPoliciesInGroup(ctx context.Context, arg GetPoliciesInGroupParams) ([]GetPoliciesInGroupRow, error)
func (*Queries) GetPolicy ¶
func (q *Queries) GetPolicy(ctx context.Context, arg GetPolicyParams) (GetPolicyRow, error)
func (*Queries) GetPolicyGroups ¶
func (q *Queries) GetPolicyGroups(ctx context.Context, arg GetPolicyGroupsParams) ([]GetPolicyGroupsRow, error)
func (*Queries) GetRawCert ¶
------ Certificates
func (*Queries) GetTenantDomain ¶
func (q *Queries) GetTenantDomain(ctx context.Context, arg GetTenantDomainParams) (GetTenantDomainRow, error)
func (*Queries) GetTenantDomains ¶
func (*Queries) GetUserCount ¶
DO NOT RUN THIS FILE. It is used along with sqlc to generate type safe Go from SQL
func (*Queries) GetUserPermissionLevelForTenant ¶
func (q *Queries) GetUserPermissionLevelForTenant(ctx context.Context, arg GetUserPermissionLevelForTenantParams) (UserPermissionLevel, error)
func (*Queries) GetUserSecure ¶
func (*Queries) GetUserTenants ¶
func (*Queries) GetUsersInTenant ¶
func (q *Queries) GetUsersInTenant(ctx context.Context, arg GetUsersInTenantParams) ([]GetUsersInTenantRow, error)
func (*Queries) GetUsersInTenantByQuery ¶
func (q *Queries) GetUsersInTenantByQuery(ctx context.Context, arg GetUsersInTenantByQueryParams) ([]GetUsersInTenantByQueryRow, error)
Once https://github.com/kyleconroy/sqlc/issues/778 is fixed change query to (including the ByQuery one): SELECT upn, fullname, azuread_oid FROM users INNER JOIN tenant_users ON users.upn = tenant_users.user_upn WHERE tenant_users.tenant_id = $1 UNION ALL SELECT upn, fullname, azuread_oid FROM users WHERE tenant_id = $1;
func (*Queries) NewApplication ¶
------ Application Actions
func (*Queries) NewGlobalUser ¶
func (q *Queries) NewGlobalUser(ctx context.Context, arg NewGlobalUserParams) error
func (*Queries) NewUser ¶
func (q *Queries) NewUser(ctx context.Context, arg NewUserParams) error
------ User
func (*Queries) NewUserFromAzureAD ¶
func (q *Queries) NewUserFromAzureAD(ctx context.Context, arg NewUserFromAzureADParams) error
func (*Queries) RemoveDeviceFromGroup ¶
func (q *Queries) RemoveDeviceFromGroup(ctx context.Context, arg RemoveDeviceFromGroupParams) error
func (*Queries) RemovePolicyFromGroup ¶
func (q *Queries) RemovePolicyFromGroup(ctx context.Context, arg RemovePolicyFromGroupParams) error
func (*Queries) RemoveUserFromTenant ¶
func (q *Queries) RemoveUserFromTenant(ctx context.Context, arg RemoveUserFromTenantParams) error
func (*Queries) ScopeUserToTenant ¶
func (q *Queries) ScopeUserToTenant(ctx context.Context, arg ScopeUserToTenantParams) error
func (*Queries) UpdateApplication ¶
func (q *Queries) UpdateApplication(ctx context.Context, arg UpdateApplicationParams) error
func (*Queries) UpdateDevice ¶
func (q *Queries) UpdateDevice(ctx context.Context, arg UpdateDeviceParams) error
func (*Queries) UpdateDomain ¶
func (q *Queries) UpdateDomain(ctx context.Context, arg UpdateDomainParams) error
func (*Queries) UpdateGroup ¶
func (q *Queries) UpdateGroup(ctx context.Context, arg UpdateGroupParams) error
func (*Queries) UpdateObject ¶
func (q *Queries) UpdateObject(ctx context.Context, arg UpdateObjectParams) error
func (*Queries) UpdatePolicy ¶
func (q *Queries) UpdatePolicy(ctx context.Context, arg UpdatePolicyParams) error
func (*Queries) UpdateTenant ¶
func (q *Queries) UpdateTenant(ctx context.Context, arg UpdateTenantParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
func (*Queries) UpdateUserInTenant ¶
type ScopeUserToTenantParams ¶
type ScopeUserToTenantParams struct { UserUpn string `json:"user_upn"` TenantID string `json:"tenant_id"` PermissionLevel UserPermissionLevel `json:"permission_level"` }
type Tenant ¶
type Tenant struct { ID string `json:"id"` DisplayName null.String `json:"display_name"` PrimaryDomain string `json:"primary_domain"` Email null.String `json:"email"` Phone null.String `json:"phone"` Description null.String `json:"description"` AfwEnterpriseID null.String `json:"afw_enterprise_id"` }
type TenantDomain ¶
type TenantUser ¶
type TenantUser struct { UserUpn string `json:"user_upn"` TenantID string `json:"tenant_id"` PermissionLevel UserPermissionLevel `json:"permission_level"` }
type UpdateApplicationParams ¶
type UpdateDeviceParams ¶
type UpdateDomainParams ¶
type UpdateGroupParams ¶
type UpdateObjectParams ¶
type UpdatePolicyParams ¶
type UpdateTenantParams ¶
type UpdateUserParams ¶
type User ¶
type User struct { UPN string `json:"upn"` Fullname null.String `json:"fullname"` Disabled bool `json:"disabled"` Password null.String `json:"password"` PasswordExpiry sql.NullTime `json:"password_expiry"` MfaToken null.String `json:"mfa_token"` AzureadOid null.String `json:"azuread_oid"` TenantID null.String `json:"tenant_id"` }
type UserPermissionLevel ¶
type UserPermissionLevel string
const ( UserPermissionLevelUser UserPermissionLevel = "user" UserPermissionLevelAdministrator UserPermissionLevel = "administrator" )
func (*UserPermissionLevel) Scan ¶
func (e *UserPermissionLevel) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.