DBTEAMMembersSetPermissionsArg
Objective-C
@interface DBTEAMMembersSetPermissionsArg : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMMembersSetPermissionsArg : NSObject, DBSerializable, NSCopying
The MembersSetPermissionsArg
struct.
Exactly one of team_member_id, email, or external_id must be provided to identify the user account.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Identity of user whose role will be set.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMUserSelectorArg *_Nonnull user;
Swift
var user: DBTEAMUserSelectorArg { get }
-
The new role of the member.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMAdminTier *_Nonnull dNewRole;
Swift
var dNewRole: DBTEAMAdminTier { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithUser:(nonnull DBTEAMUserSelectorArg *)user dNewRole:(nonnull DBTEAMAdminTier *)dNewRole;
Swift
init(user: DBTEAMUserSelectorArg, dNewRole: DBTEAMAdminTier)
Parameters
user
Identity of user whose role will be set.
dNewRole
The new role of the member.
Return Value
An initialized instance.