Skip to content

Commit d404fe7

Browse files
committed
Supported Authorization API, includes GrantUserPermission, RevokeUserPermission, ListDatabaseUserPermssions, ListUserPermissions.
1 parent 5869411 commit d404fe7

File tree

3 files changed

+170
-1
lines changed

3 files changed

+170
-1
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 1.8.17 - 2019-12-20
4+
- Supported Authorization API, includes GrantUserPermission, RevokeUserPermission, ListDatabaseUserPermssions, ListUserPermissions.
5+
- Supported Database or Table Metadata synchronization API, includes SyncInstanceMeta, SyncDatabaseMeta.
6+
- Supported Database or Table Owner set up API.
7+
- Supported GetUser API to get information of one DMS user.
8+
- Supported set Dingding mobile number with RegisterUser API.
9+
10+
311
## 1.8.16 - 2019-12-20
412
- Supported Search stream predict task list use modelId for IVISION.
513

src/DmsEnterprise/V20181101/DmsEnterpriseApiResolver.php

+161
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,28 @@
2525
* @method GetLogicDatabase getLogicDatabase(array $options = [])
2626
* @method GetOpLog getOpLog(array $options = [])
2727
* @method GetOrderBaseInfo getOrderBaseInfo(array $options = [])
28+
* @method GetUser getUser(array $options = [])
29+
* @method GrantUserPermission grantUserPermission(array $options = [])
2830
* @method ListColumns listColumns(array $options = [])
2931
* @method ListDatabases listDatabases(array $options = [])
32+
* @method ListDatabaseUserPermssions listDatabaseUserPermssions(array $options = [])
3033
* @method ListIndexes listIndexes(array $options = [])
3134
* @method ListInstances listInstances(array $options = [])
3235
* @method ListLogicDatabases listLogicDatabases(array $options = [])
3336
* @method ListLogicTables listLogicTables(array $options = [])
3437
* @method ListOrders listOrders(array $options = [])
3538
* @method ListTables listTables(array $options = [])
39+
* @method ListUserPermissions listUserPermissions(array $options = [])
3640
* @method ListUsers listUsers(array $options = [])
3741
* @method RegisterInstance registerInstance(array $options = [])
3842
* @method RegisterUser registerUser(array $options = [])
43+
* @method RevokeUserPermission revokeUserPermission(array $options = [])
3944
* @method SearchDatabase searchDatabase(array $options = [])
4045
* @method SearchTable searchTable(array $options = [])
46+
* @method SetOwners setOwners(array $options = [])
4147
* @method SubmitOrderApproval submitOrderApproval(array $options = [])
48+
* @method SyncDatabaseMeta syncDatabaseMeta(array $options = [])
49+
* @method SyncInstanceMeta syncInstanceMeta(array $options = [])
4250
* @method UpdateInstance updateInstance(array $options = [])
4351
* @method UpdateUser updateUser(array $options = [])
4452
*/
@@ -354,6 +362,45 @@ public function withOrderId($value)
354362
}
355363
}
356364

365+
/**
366+
* @method string getUid()
367+
* @method $this withUid($value)
368+
* @method string getUserId()
369+
* @method $this withUserId($value)
370+
* @method string getTid()
371+
* @method $this withTid($value)
372+
*/
373+
class GetUser extends Rpc
374+
{
375+
376+
/** @var string */
377+
public $method = 'GET';
378+
}
379+
380+
/**
381+
* @method string getPermTypes()
382+
* @method $this withPermTypes($value)
383+
* @method string getDsType()
384+
* @method $this withDsType($value)
385+
* @method string getExpireDate()
386+
* @method $this withExpireDate($value)
387+
* @method string getUserId()
388+
* @method $this withUserId($value)
389+
* @method string getTid()
390+
* @method $this withTid($value)
391+
* @method string getDbId()
392+
* @method $this withDbId($value)
393+
* @method string getTableId()
394+
* @method $this withTableId($value)
395+
* @method string getLogic()
396+
* @method $this withLogic($value)
397+
* @method string getTableName()
398+
* @method $this withTableName($value)
399+
*/
400+
class GrantUserPermission extends Rpc
401+
{
402+
}
403+
357404
/**
358405
* @method string getTableId()
359406
* @method $this withTableId($value)
@@ -386,6 +433,29 @@ class ListDatabases extends Rpc
386433
public $method = 'GET';
387434
}
388435

436+
/**
437+
* @method string getPermType()
438+
* @method $this withPermType($value)
439+
* @method string getDbId()
440+
* @method $this withDbId($value)
441+
* @method string getPageSize()
442+
* @method $this withPageSize($value)
443+
* @method string getLogic()
444+
* @method $this withLogic($value)
445+
* @method string getTid()
446+
* @method $this withTid($value)
447+
* @method string getPageNumber()
448+
* @method $this withPageNumber($value)
449+
* @method string getUserName()
450+
* @method $this withUserName($value)
451+
*/
452+
class ListDatabaseUserPermssions extends Rpc
453+
{
454+
455+
/** @var string */
456+
public $method = 'GET';
457+
}
458+
389459
/**
390460
* @method string getTableId()
391461
* @method $this withTableId($value)
@@ -510,6 +580,33 @@ class ListTables extends Rpc
510580
public $method = 'GET';
511581
}
512582

583+
/**
584+
* @method string getUserId()
585+
* @method $this withUserId($value)
586+
* @method string getTid()
587+
* @method $this withTid($value)
588+
* @method string getPageNumber()
589+
* @method $this withPageNumber($value)
590+
* @method string getPermType()
591+
* @method $this withPermType($value)
592+
* @method string getDatabaseName()
593+
* @method $this withDatabaseName($value)
594+
* @method string getEnvType()
595+
* @method $this withEnvType($value)
596+
* @method string getDbType()
597+
* @method $this withDbType($value)
598+
* @method string getPageSize()
599+
* @method $this withPageSize($value)
600+
* @method string getLogic()
601+
* @method $this withLogic($value)
602+
*/
603+
class ListUserPermissions extends Rpc
604+
{
605+
606+
/** @var string */
607+
public $method = 'GET';
608+
}
609+
513610
/**
514611
* @method string getUserState()
515612
* @method $this withUserState($value)
@@ -586,13 +683,39 @@ class RegisterInstance extends Rpc
586683
* @method $this withUid($value)
587684
* @method string getUserNick()
588685
* @method $this withUserNick($value)
686+
* @method string getMobile()
687+
* @method $this withMobile($value)
589688
* @method string getTid()
590689
* @method $this withTid($value)
591690
*/
592691
class RegisterUser extends Rpc
593692
{
594693
}
595694

695+
/**
696+
* @method string getPermTypes()
697+
* @method $this withPermTypes($value)
698+
* @method string getUserAccessId()
699+
* @method $this withUserAccessId($value)
700+
* @method string getDsType()
701+
* @method $this withDsType($value)
702+
* @method string getUserId()
703+
* @method $this withUserId($value)
704+
* @method string getTid()
705+
* @method $this withTid($value)
706+
* @method string getDbId()
707+
* @method $this withDbId($value)
708+
* @method string getTableId()
709+
* @method $this withTableId($value)
710+
* @method string getLogic()
711+
* @method $this withLogic($value)
712+
* @method string getTableName()
713+
* @method $this withTableName($value)
714+
*/
715+
class RevokeUserPermission extends Rpc
716+
{
717+
}
718+
596719
/**
597720
* @method string getSearchKey()
598721
* @method $this withSearchKey($value)
@@ -641,6 +764,20 @@ class SearchTable extends Rpc
641764
public $method = 'GET';
642765
}
643766

767+
/**
768+
* @method string getResourceId()
769+
* @method $this withResourceId($value)
770+
* @method string getOwnerIds()
771+
* @method $this withOwnerIds($value)
772+
* @method string getOwnerType()
773+
* @method $this withOwnerType($value)
774+
* @method string getTid()
775+
* @method $this withTid($value)
776+
*/
777+
class SetOwners extends Rpc
778+
{
779+
}
780+
644781
/**
645782
* @method string getOrderId()
646783
* @method $this withOrderId($value)
@@ -651,6 +788,30 @@ class SubmitOrderApproval extends Rpc
651788
{
652789
}
653790

791+
/**
792+
* @method string getDbId()
793+
* @method $this withDbId($value)
794+
* @method string getLogic()
795+
* @method $this withLogic($value)
796+
* @method string getTid()
797+
* @method $this withTid($value)
798+
*/
799+
class SyncDatabaseMeta extends Rpc
800+
{
801+
}
802+
803+
/**
804+
* @method string getInstanceId()
805+
* @method $this withInstanceId($value)
806+
* @method string getIgnoreTable()
807+
* @method $this withIgnoreTable($value)
808+
* @method string getTid()
809+
* @method $this withTid($value)
810+
*/
811+
class SyncInstanceMeta extends Rpc
812+
{
813+
}
814+
654815
/**
655816
* @method string getSafeRuleId()
656817
* @method $this withSafeRuleId($value)

src/Release.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Release
1616
/**
1717
* Version of the SDK
1818
*/
19-
const VERSION = '1.8.16';
19+
const VERSION = '1.8.17';
2020

2121
/**
2222
* @param Event $event

0 commit comments

Comments
 (0)