Skip to content

Commit

Permalink
run codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlocke committed Sep 30, 2024
1 parent 24acd19 commit 4557c36
Show file tree
Hide file tree
Showing 12 changed files with 775 additions and 775 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,32 +124,32 @@ NS_ASSUME_NONNULL_BEGIN
/// file requests with destinations in the app folder.
///
///
/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsV2Result` object on
/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsResult` object on
/// success or a `DBFILEREQUESTSListFileRequestsError` object on failure.
///
- (DBRpcTask<DBFILEREQUESTSListFileRequestsV2Result *, DBFILEREQUESTSListFileRequestsError *> *)listV2;
- (DBRpcTask<DBFILEREQUESTSListFileRequestsResult *, DBFILEREQUESTSListFileRequestsError *> *)list;

///
/// Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return
/// file requests with destinations in the app folder.
///
/// @param limit The maximum number of file requests that should be returned per request.
///
/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsV2Result` object on
/// success or a `DBFILEREQUESTSListFileRequestsError` object on failure.
///
- (DBRpcTask<DBFILEREQUESTSListFileRequestsV2Result *, DBFILEREQUESTSListFileRequestsError *> *)listV2:
(nullable NSNumber *)limit;
- (DBRpcTask<DBFILEREQUESTSListFileRequestsV2Result *, DBFILEREQUESTSListFileRequestsError *> *)listV2;

///
/// Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return
/// file requests with destinations in the app folder.
///
/// @param limit The maximum number of file requests that should be returned per request.
///
/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsResult` object on
/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsV2Result` object on
/// success or a `DBFILEREQUESTSListFileRequestsError` object on failure.
///
- (DBRpcTask<DBFILEREQUESTSListFileRequestsResult *, DBFILEREQUESTSListFileRequestsError *> *)list;
- (DBRpcTask<DBFILEREQUESTSListFileRequestsV2Result *, DBFILEREQUESTSListFileRequestsError *> *)listV2:
(nullable NSNumber *)limit;

///
/// Once a cursor has been retrieved from `list`, use this to paginate through all file requests. The cursor must come
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ - (DBRpcTask *)get:(NSString *)id_ {
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)list {
DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSList;
return [self.client requestRpc:route arg:nil];
}

- (DBRpcTask *)listV2 {
DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSListV2;
DBFILEREQUESTSListFileRequestsArg *arg = [[DBFILEREQUESTSListFileRequestsArg alloc] initDefault];
Expand All @@ -99,11 +104,6 @@ - (DBRpcTask *)listV2:(NSNumber *)limit {
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)list {
DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSList;
return [self.client requestRpc:route arg:nil];
}

- (DBRpcTask *)listContinue:(NSString *)cursor {
DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSListContinue;
DBFILEREQUESTSListFileRequestsContinueArg *arg =
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -704,18 +704,6 @@ - (DBRpcTask *)memberSpaceLimitsSetCustomQuota:(NSArray<DBTEAMUserCustomQuotaArg
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersAddV2:(NSArray<DBTEAMMemberAddV2Arg *> *)dNewMembers {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2;
DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersAddV2:(NSArray<DBTEAMMemberAddV2Arg *> *)dNewMembers forceAsync:(NSNumber *)forceAsync {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2;
DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers forceAsync:forceAsync];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersAdd:(NSArray<DBTEAMMemberAddArg *> *)dNewMembers {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAdd;
DBTEAMMembersAddArg *arg = [[DBTEAMMembersAddArg alloc] initWithDNewMembers:dNewMembers];
Expand All @@ -728,9 +716,15 @@ - (DBRpcTask *)membersAdd:(NSArray<DBTEAMMemberAddArg *> *)dNewMembers forceAsyn
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersAddJobStatusGetV2:(NSString *)asyncJobId {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddJobStatusGetV2;
DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId];
- (DBRpcTask *)membersAddV2:(NSArray<DBTEAMMemberAddV2Arg *> *)dNewMembers {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2;
DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersAddV2:(NSArray<DBTEAMMemberAddV2Arg *> *)dNewMembers forceAsync:(NSNumber *)forceAsync {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2;
DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers forceAsync:forceAsync];
return [self.client requestRpc:route arg:arg];
}

Expand All @@ -740,9 +734,9 @@ - (DBRpcTask *)membersAddJobStatusGet:(NSString *)asyncJobId {
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersDeleteProfilePhotoV2:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersDeleteProfilePhotoV2;
DBTEAMMembersDeleteProfilePhotoArg *arg = [[DBTEAMMembersDeleteProfilePhotoArg alloc] initWithUser:user];
- (DBRpcTask *)membersAddJobStatusGetV2:(NSString *)asyncJobId {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddJobStatusGetV2;
DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId];
return [self.client requestRpc:route arg:arg];
}

Expand All @@ -752,32 +746,26 @@ - (DBRpcTask *)membersDeleteProfilePhoto:(DBTEAMUserSelectorArg *)user {
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersDeleteProfilePhotoV2:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersDeleteProfilePhotoV2;
DBTEAMMembersDeleteProfilePhotoArg *arg = [[DBTEAMMembersDeleteProfilePhotoArg alloc] initWithUser:user];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersGetAvailableTeamMemberRoles {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetAvailableTeamMemberRoles;
return [self.client requestRpc:route arg:nil];
}

- (DBRpcTask *)membersGetInfoV2:(NSArray<DBTEAMUserSelectorArg *> *)members {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetInfoV2;
DBTEAMMembersGetInfoV2Arg *arg = [[DBTEAMMembersGetInfoV2Arg alloc] initWithMembers:members];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersGetInfo:(NSArray<DBTEAMUserSelectorArg *> *)members {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetInfo;
DBTEAMMembersGetInfoArgs *arg = [[DBTEAMMembersGetInfoArgs alloc] initWithMembers:members];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersListV2 {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2;
DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initDefault];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersListV2:(NSNumber *)limit includeRemoved:(NSNumber *)includeRemoved {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2;
DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initWithLimit:limit includeRemoved:includeRemoved];
- (DBRpcTask *)membersGetInfoV2:(NSArray<DBTEAMUserSelectorArg *> *)members {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetInfoV2;
DBTEAMMembersGetInfoV2Arg *arg = [[DBTEAMMembersGetInfoV2Arg alloc] initWithMembers:members];
return [self.client requestRpc:route arg:arg];
}

Expand All @@ -793,9 +781,15 @@ - (DBRpcTask *)membersList:(NSNumber *)limit includeRemoved:(NSNumber *)includeR
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersListContinueV2:(NSString *)cursor {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListContinueV2;
DBTEAMMembersListContinueArg *arg = [[DBTEAMMembersListContinueArg alloc] initWithCursor:cursor];
- (DBRpcTask *)membersListV2 {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2;
DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initDefault];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersListV2:(NSNumber *)limit includeRemoved:(NSNumber *)includeRemoved {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2;
DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initWithLimit:limit includeRemoved:includeRemoved];
return [self.client requestRpc:route arg:arg];
}

Expand All @@ -805,6 +799,12 @@ - (DBRpcTask *)membersListContinue:(NSString *)cursor {
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersListContinueV2:(NSString *)cursor {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListContinueV2;
DBTEAMMembersListContinueArg *arg = [[DBTEAMMembersListContinueArg alloc] initWithCursor:cursor];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersMoveFormerMemberFiles:(DBTEAMUserSelectorArg *)user
transferDestId:(DBTEAMUserSelectorArg *)transferDestId
transferAdminId:(DBTEAMUserSelectorArg *)transferAdminId {
Expand Down Expand Up @@ -882,6 +882,12 @@ - (DBRpcTask *)membersSendWelcomeEmail:(DBTEAMUserSelectorArg *)userSelectorArg
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetAdminPermissions:(DBTEAMUserSelectorArg *)user dNewRole:(DBTEAMAdminTier *)dNewRole {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetAdminPermissions;
DBTEAMMembersSetPermissionsArg *arg = [[DBTEAMMembersSetPermissionsArg alloc] initWithUser:user dNewRole:dNewRole];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetAdminPermissionsV2:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetAdminPermissionsV2;
DBTEAMMembersSetPermissions2Arg *arg = [[DBTEAMMembersSetPermissions2Arg alloc] initWithUser:user];
Expand All @@ -895,26 +901,20 @@ - (DBRpcTask *)membersSetAdminPermissionsV2:(DBTEAMUserSelectorArg *)user dNewRo
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetAdminPermissions:(DBTEAMUserSelectorArg *)user dNewRole:(DBTEAMAdminTier *)dNewRole {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetAdminPermissions;
DBTEAMMembersSetPermissionsArg *arg = [[DBTEAMMembersSetPermissionsArg alloc] initWithUser:user dNewRole:dNewRole];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2;
- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile;
DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user
dNewEmail:(NSString *)dNewEmail
dNewExternalId:(NSString *)dNewExternalId
dNewGivenName:(NSString *)dNewGivenName
dNewSurname:(NSString *)dNewSurname
dNewPersistentId:(NSString *)dNewPersistentId
dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2;
- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user
dNewEmail:(NSString *)dNewEmail
dNewExternalId:(NSString *)dNewExternalId
dNewGivenName:(NSString *)dNewGivenName
dNewSurname:(NSString *)dNewSurname
dNewPersistentId:(NSString *)dNewPersistentId
dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile;
DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user
dNewEmail:dNewEmail
dNewExternalId:dNewExternalId
Expand All @@ -925,20 +925,20 @@ - (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile;
- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2;
DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user
dNewEmail:(NSString *)dNewEmail
dNewExternalId:(NSString *)dNewExternalId
dNewGivenName:(NSString *)dNewGivenName
dNewSurname:(NSString *)dNewSurname
dNewPersistentId:(NSString *)dNewPersistentId
dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile;
- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user
dNewEmail:(NSString *)dNewEmail
dNewExternalId:(NSString *)dNewExternalId
dNewGivenName:(NSString *)dNewGivenName
dNewSurname:(NSString *)dNewSurname
dNewPersistentId:(NSString *)dNewPersistentId
dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2;
DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user
dNewEmail:dNewEmail
dNewExternalId:dNewExternalId
Expand All @@ -949,14 +949,14 @@ - (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetProfilePhotoV2:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhotoV2;
- (DBRpcTask *)membersSetProfilePhoto:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhoto;
DBTEAMMembersSetProfilePhotoArg *arg = [[DBTEAMMembersSetProfilePhotoArg alloc] initWithUser:user photo:photo];
return [self.client requestRpc:route arg:arg];
}

- (DBRpcTask *)membersSetProfilePhoto:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhoto;
- (DBRpcTask *)membersSetProfilePhotoV2:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo {
DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhotoV2;
DBTEAMMembersSetProfilePhotoArg *arg = [[DBTEAMMembersSetProfilePhotoArg alloc] initWithUser:user photo:photo];
return [self.client requestRpc:route arg:arg];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ NS_ASSUME_NONNULL_BEGIN
/// Accessor method for the get route object.
+ (DBRoute *)DBFILEREQUESTSGet;

/// Accessor method for the listV2 route object.
+ (DBRoute *)DBFILEREQUESTSListV2;

/// Accessor method for the list route object.
+ (DBRoute *)DBFILEREQUESTSList;

/// Accessor method for the listV2 route object.
+ (DBRoute *)DBFILEREQUESTSListV2;

/// Accessor method for the listContinue route object.
+ (DBRoute *)DBFILEREQUESTSListContinue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ @implementation DBFILEREQUESTSRouteObjects
static DBRoute *DBFILEREQUESTSDelete_;
static DBRoute *DBFILEREQUESTSDeleteAllClosed;
static DBRoute *DBFILEREQUESTSGet;
static DBRoute *DBFILEREQUESTSListV2;
static DBRoute *DBFILEREQUESTSList;
static DBRoute *DBFILEREQUESTSListV2;
static DBRoute *DBFILEREQUESTSListContinue;
static DBRoute *DBFILEREQUESTSUpdate;

Expand Down Expand Up @@ -126,22 +126,6 @@ + (DBRoute *)DBFILEREQUESTSGet {
}
}

+ (DBRoute *)DBFILEREQUESTSListV2 {
@synchronized(lockObj) {
if (!DBFILEREQUESTSListV2) {
DBFILEREQUESTSListV2 = [[DBRoute alloc] init:@"list_v2"
namespace_:@"file_requests"
deprecated:@NO
resultType:[DBFILEREQUESTSListFileRequestsV2Result class]
errorType:[DBFILEREQUESTSListFileRequestsError class]
attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"}
dataStructSerialBlock:nil
dataStructDeserialBlock:nil];
}
return DBFILEREQUESTSListV2;
}
}

+ (DBRoute *)DBFILEREQUESTSList {
@synchronized(lockObj) {
if (!DBFILEREQUESTSList) {
Expand All @@ -158,6 +142,22 @@ + (DBRoute *)DBFILEREQUESTSList {
}
}

+ (DBRoute *)DBFILEREQUESTSListV2 {
@synchronized(lockObj) {
if (!DBFILEREQUESTSListV2) {
DBFILEREQUESTSListV2 = [[DBRoute alloc] init:@"list_v2"
namespace_:@"file_requests"
deprecated:@NO
resultType:[DBFILEREQUESTSListFileRequestsV2Result class]
errorType:[DBFILEREQUESTSListFileRequestsError class]
attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"}
dataStructSerialBlock:nil
dataStructDeserialBlock:nil];
}
return DBFILEREQUESTSListV2;
}
}

+ (DBRoute *)DBFILEREQUESTSListContinue {
@synchronized(lockObj) {
if (!DBFILEREQUESTSListContinue) {
Expand Down
Loading

0 comments on commit 4557c36

Please sign in to comment.