OLD | NEW |
1 library googleapis.admin.directory_v1; | 1 library googleapis.admin.directory_v1; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 74 matching lines...) Loading... |
85 GroupsResourceApi get groups => new GroupsResourceApi(_requester); | 85 GroupsResourceApi get groups => new GroupsResourceApi(_requester); |
86 MembersResourceApi get members => new MembersResourceApi(_requester); | 86 MembersResourceApi get members => new MembersResourceApi(_requester); |
87 MobiledevicesResourceApi get mobiledevices => new MobiledevicesResourceApi(_re
quester); | 87 MobiledevicesResourceApi get mobiledevices => new MobiledevicesResourceApi(_re
quester); |
88 NotificationsResourceApi get notifications => new NotificationsResourceApi(_re
quester); | 88 NotificationsResourceApi get notifications => new NotificationsResourceApi(_re
quester); |
89 OrgunitsResourceApi get orgunits => new OrgunitsResourceApi(_requester); | 89 OrgunitsResourceApi get orgunits => new OrgunitsResourceApi(_requester); |
90 SchemasResourceApi get schemas => new SchemasResourceApi(_requester); | 90 SchemasResourceApi get schemas => new SchemasResourceApi(_requester); |
91 TokensResourceApi get tokens => new TokensResourceApi(_requester); | 91 TokensResourceApi get tokens => new TokensResourceApi(_requester); |
92 UsersResourceApi get users => new UsersResourceApi(_requester); | 92 UsersResourceApi get users => new UsersResourceApi(_requester); |
93 VerificationCodesResourceApi get verificationCodes => new VerificationCodesRes
ourceApi(_requester); | 93 VerificationCodesResourceApi get verificationCodes => new VerificationCodesRes
ourceApi(_requester); |
94 | 94 |
95 AdminApi(http.Client client) : | 95 AdminApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "admin/directory/v1/"}) : |
96 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "admin/directory/v1/"); | 96 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
97 } | 97 } |
98 | 98 |
99 | 99 |
100 /** Not documented yet. */ | 100 /** Not documented yet. */ |
101 class AspsResourceApi { | 101 class AspsResourceApi { |
102 final common_internal.ApiRequester _requester; | 102 final common_internal.ApiRequester _requester; |
103 | 103 |
104 AspsResourceApi(common_internal.ApiRequester client) : | 104 AspsResourceApi(common_internal.ApiRequester client) : |
105 _requester = client; | 105 _requester = client; |
106 | 106 |
(...skipping 5632 matching lines...) Loading... |
5739 | 5739 |
5740 /** User's last login time. (Read-only) */ | 5740 /** User's last login time. (Read-only) */ |
5741 core.DateTime lastLoginTime; | 5741 core.DateTime lastLoginTime; |
5742 | 5742 |
5743 /** User's name */ | 5743 /** User's name */ |
5744 UserName name; | 5744 UserName name; |
5745 | 5745 |
5746 /** List of non editable aliases (Read-only) */ | 5746 /** List of non editable aliases (Read-only) */ |
5747 core.List<core.String> nonEditableAliases; | 5747 core.List<core.String> nonEditableAliases; |
5748 | 5748 |
| 5749 /** |
| 5750 * Not documented yet. |
| 5751 * |
| 5752 * The values for Object must be JSON objects. It can consist of `num`, |
| 5753 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 5754 */ |
| 5755 core.Object notes; |
| 5756 |
5749 /** OrgUnit of User */ | 5757 /** OrgUnit of User */ |
5750 core.String orgUnitPath; | 5758 core.String orgUnitPath; |
5751 | 5759 |
5752 /** | 5760 /** |
5753 * Not documented yet. | 5761 * Not documented yet. |
5754 * | 5762 * |
5755 * The values for Object must be JSON objects. It can consist of `num`, | 5763 * The values for Object must be JSON objects. It can consist of `num`, |
5756 * `String`, `bool` and `null` as well as `Map` and `List` values. | 5764 * `String`, `bool` and `null` as well as `Map` and `List` values. |
5757 */ | 5765 */ |
5758 core.Object organizations; | 5766 core.Object organizations; |
(...skipping 22 matching lines...) Loading... |
5781 | 5789 |
5782 /** Indicates if user is suspended */ | 5790 /** Indicates if user is suspended */ |
5783 core.bool suspended; | 5791 core.bool suspended; |
5784 | 5792 |
5785 /** Suspension reason if user is suspended (Read-only) */ | 5793 /** Suspension reason if user is suspended (Read-only) */ |
5786 core.String suspensionReason; | 5794 core.String suspensionReason; |
5787 | 5795 |
5788 /** Photo Url of the user (Read-only) */ | 5796 /** Photo Url of the user (Read-only) */ |
5789 core.String thumbnailPhotoUrl; | 5797 core.String thumbnailPhotoUrl; |
5790 | 5798 |
| 5799 /** |
| 5800 * Not documented yet. |
| 5801 * |
| 5802 * The values for Object must be JSON objects. It can consist of `num`, |
| 5803 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 5804 */ |
| 5805 core.Object websites; |
| 5806 |
5791 | 5807 |
5792 User(); | 5808 User(); |
5793 | 5809 |
5794 User.fromJson(core.Map _json) { | 5810 User.fromJson(core.Map _json) { |
5795 if (_json.containsKey("addresses")) { | 5811 if (_json.containsKey("addresses")) { |
5796 addresses = _json["addresses"]; | 5812 addresses = _json["addresses"]; |
5797 } | 5813 } |
5798 if (_json.containsKey("agreedToTerms")) { | 5814 if (_json.containsKey("agreedToTerms")) { |
5799 agreedToTerms = _json["agreedToTerms"]; | 5815 agreedToTerms = _json["agreedToTerms"]; |
5800 } | 5816 } |
(...skipping 53 matching lines...) Loading... |
5854 } | 5870 } |
5855 if (_json.containsKey("lastLoginTime")) { | 5871 if (_json.containsKey("lastLoginTime")) { |
5856 lastLoginTime = core.DateTime.parse(_json["lastLoginTime"]); | 5872 lastLoginTime = core.DateTime.parse(_json["lastLoginTime"]); |
5857 } | 5873 } |
5858 if (_json.containsKey("name")) { | 5874 if (_json.containsKey("name")) { |
5859 name = new UserName.fromJson(_json["name"]); | 5875 name = new UserName.fromJson(_json["name"]); |
5860 } | 5876 } |
5861 if (_json.containsKey("nonEditableAliases")) { | 5877 if (_json.containsKey("nonEditableAliases")) { |
5862 nonEditableAliases = _json["nonEditableAliases"]; | 5878 nonEditableAliases = _json["nonEditableAliases"]; |
5863 } | 5879 } |
| 5880 if (_json.containsKey("notes")) { |
| 5881 notes = _json["notes"]; |
| 5882 } |
5864 if (_json.containsKey("orgUnitPath")) { | 5883 if (_json.containsKey("orgUnitPath")) { |
5865 orgUnitPath = _json["orgUnitPath"]; | 5884 orgUnitPath = _json["orgUnitPath"]; |
5866 } | 5885 } |
5867 if (_json.containsKey("organizations")) { | 5886 if (_json.containsKey("organizations")) { |
5868 organizations = _json["organizations"]; | 5887 organizations = _json["organizations"]; |
5869 } | 5888 } |
5870 if (_json.containsKey("password")) { | 5889 if (_json.containsKey("password")) { |
5871 password = _json["password"]; | 5890 password = _json["password"]; |
5872 } | 5891 } |
5873 if (_json.containsKey("phones")) { | 5892 if (_json.containsKey("phones")) { |
5874 phones = _json["phones"]; | 5893 phones = _json["phones"]; |
5875 } | 5894 } |
5876 if (_json.containsKey("primaryEmail")) { | 5895 if (_json.containsKey("primaryEmail")) { |
5877 primaryEmail = _json["primaryEmail"]; | 5896 primaryEmail = _json["primaryEmail"]; |
5878 } | 5897 } |
5879 if (_json.containsKey("relations")) { | 5898 if (_json.containsKey("relations")) { |
5880 relations = _json["relations"]; | 5899 relations = _json["relations"]; |
5881 } | 5900 } |
5882 if (_json.containsKey("suspended")) { | 5901 if (_json.containsKey("suspended")) { |
5883 suspended = _json["suspended"]; | 5902 suspended = _json["suspended"]; |
5884 } | 5903 } |
5885 if (_json.containsKey("suspensionReason")) { | 5904 if (_json.containsKey("suspensionReason")) { |
5886 suspensionReason = _json["suspensionReason"]; | 5905 suspensionReason = _json["suspensionReason"]; |
5887 } | 5906 } |
5888 if (_json.containsKey("thumbnailPhotoUrl")) { | 5907 if (_json.containsKey("thumbnailPhotoUrl")) { |
5889 thumbnailPhotoUrl = _json["thumbnailPhotoUrl"]; | 5908 thumbnailPhotoUrl = _json["thumbnailPhotoUrl"]; |
5890 } | 5909 } |
| 5910 if (_json.containsKey("websites")) { |
| 5911 websites = _json["websites"]; |
| 5912 } |
5891 } | 5913 } |
5892 | 5914 |
5893 core.Map toJson() { | 5915 core.Map toJson() { |
5894 var _json = new core.Map(); | 5916 var _json = new core.Map(); |
5895 if (addresses != null) { | 5917 if (addresses != null) { |
5896 _json["addresses"] = addresses; | 5918 _json["addresses"] = addresses; |
5897 } | 5919 } |
5898 if (agreedToTerms != null) { | 5920 if (agreedToTerms != null) { |
5899 _json["agreedToTerms"] = agreedToTerms; | 5921 _json["agreedToTerms"] = agreedToTerms; |
5900 } | 5922 } |
(...skipping 53 matching lines...) Loading... |
5954 } | 5976 } |
5955 if (lastLoginTime != null) { | 5977 if (lastLoginTime != null) { |
5956 _json["lastLoginTime"] = (lastLoginTime).toIso8601String(); | 5978 _json["lastLoginTime"] = (lastLoginTime).toIso8601String(); |
5957 } | 5979 } |
5958 if (name != null) { | 5980 if (name != null) { |
5959 _json["name"] = (name).toJson(); | 5981 _json["name"] = (name).toJson(); |
5960 } | 5982 } |
5961 if (nonEditableAliases != null) { | 5983 if (nonEditableAliases != null) { |
5962 _json["nonEditableAliases"] = nonEditableAliases; | 5984 _json["nonEditableAliases"] = nonEditableAliases; |
5963 } | 5985 } |
| 5986 if (notes != null) { |
| 5987 _json["notes"] = notes; |
| 5988 } |
5964 if (orgUnitPath != null) { | 5989 if (orgUnitPath != null) { |
5965 _json["orgUnitPath"] = orgUnitPath; | 5990 _json["orgUnitPath"] = orgUnitPath; |
5966 } | 5991 } |
5967 if (organizations != null) { | 5992 if (organizations != null) { |
5968 _json["organizations"] = organizations; | 5993 _json["organizations"] = organizations; |
5969 } | 5994 } |
5970 if (password != null) { | 5995 if (password != null) { |
5971 _json["password"] = password; | 5996 _json["password"] = password; |
5972 } | 5997 } |
5973 if (phones != null) { | 5998 if (phones != null) { |
5974 _json["phones"] = phones; | 5999 _json["phones"] = phones; |
5975 } | 6000 } |
5976 if (primaryEmail != null) { | 6001 if (primaryEmail != null) { |
5977 _json["primaryEmail"] = primaryEmail; | 6002 _json["primaryEmail"] = primaryEmail; |
5978 } | 6003 } |
5979 if (relations != null) { | 6004 if (relations != null) { |
5980 _json["relations"] = relations; | 6005 _json["relations"] = relations; |
5981 } | 6006 } |
5982 if (suspended != null) { | 6007 if (suspended != null) { |
5983 _json["suspended"] = suspended; | 6008 _json["suspended"] = suspended; |
5984 } | 6009 } |
5985 if (suspensionReason != null) { | 6010 if (suspensionReason != null) { |
5986 _json["suspensionReason"] = suspensionReason; | 6011 _json["suspensionReason"] = suspensionReason; |
5987 } | 6012 } |
5988 if (thumbnailPhotoUrl != null) { | 6013 if (thumbnailPhotoUrl != null) { |
5989 _json["thumbnailPhotoUrl"] = thumbnailPhotoUrl; | 6014 _json["thumbnailPhotoUrl"] = thumbnailPhotoUrl; |
5990 } | 6015 } |
| 6016 if (websites != null) { |
| 6017 _json["websites"] = websites; |
| 6018 } |
5991 return _json; | 6019 return _json; |
5992 } | 6020 } |
5993 } | 6021 } |
| 6022 |
| 6023 |
| 6024 /** JSON template for About (notes) of a user in Directory API. */ |
| 6025 class UserAbout { |
| 6026 /** |
| 6027 * About entry can have a type which indicates the content type. It can either |
| 6028 * be plain or html. By default, notes contents are assumed to contain plain |
| 6029 * text. |
| 6030 */ |
| 6031 core.String contentType; |
| 6032 |
| 6033 /** Actual value of notes. */ |
| 6034 core.String value; |
| 6035 |
| 6036 |
| 6037 UserAbout(); |
| 6038 |
| 6039 UserAbout.fromJson(core.Map _json) { |
| 6040 if (_json.containsKey("contentType")) { |
| 6041 contentType = _json["contentType"]; |
| 6042 } |
| 6043 if (_json.containsKey("value")) { |
| 6044 value = _json["value"]; |
| 6045 } |
| 6046 } |
| 6047 |
| 6048 core.Map toJson() { |
| 6049 var _json = new core.Map(); |
| 6050 if (contentType != null) { |
| 6051 _json["contentType"] = contentType; |
| 6052 } |
| 6053 if (value != null) { |
| 6054 _json["value"] = value; |
| 6055 } |
| 6056 return _json; |
| 6057 } |
| 6058 } |
5994 | 6059 |
5995 | 6060 |
5996 /** JSON template for address. */ | 6061 /** JSON template for address. */ |
5997 class UserAddress { | 6062 class UserAddress { |
5998 /** Country. */ | 6063 /** Country. */ |
5999 core.String country; | 6064 core.String country; |
6000 | 6065 |
6001 /** Country code. */ | 6066 /** Country code. */ |
6002 core.String countryCode; | 6067 core.String countryCode; |
6003 | 6068 |
(...skipping 760 matching lines...) Loading... |
6764 core.Map toJson() { | 6829 core.Map toJson() { |
6765 var _json = new core.Map(); | 6830 var _json = new core.Map(); |
6766 if (orgUnitPath != null) { | 6831 if (orgUnitPath != null) { |
6767 _json["orgUnitPath"] = orgUnitPath; | 6832 _json["orgUnitPath"] = orgUnitPath; |
6768 } | 6833 } |
6769 return _json; | 6834 return _json; |
6770 } | 6835 } |
6771 } | 6836 } |
6772 | 6837 |
6773 | 6838 |
| 6839 /** JSON template for a website entry. */ |
| 6840 class UserWebsite { |
| 6841 /** Custom Type. */ |
| 6842 core.String customType; |
| 6843 |
| 6844 /** If this is user's primary website or not. */ |
| 6845 core.bool primary; |
| 6846 |
| 6847 /** |
| 6848 * Each entry can have a type which indicates standard types of that entry. |
| 6849 * For example website could be of home, work, blog etc. In addition to the |
| 6850 * standard type, an entry can have a custom type and can give it any name. |
| 6851 * Such types should have the CUSTOM value as type and also have a customType |
| 6852 * value. |
| 6853 */ |
| 6854 core.String type; |
| 6855 |
| 6856 /** Website. */ |
| 6857 core.String value; |
| 6858 |
| 6859 |
| 6860 UserWebsite(); |
| 6861 |
| 6862 UserWebsite.fromJson(core.Map _json) { |
| 6863 if (_json.containsKey("customType")) { |
| 6864 customType = _json["customType"]; |
| 6865 } |
| 6866 if (_json.containsKey("primary")) { |
| 6867 primary = _json["primary"]; |
| 6868 } |
| 6869 if (_json.containsKey("type")) { |
| 6870 type = _json["type"]; |
| 6871 } |
| 6872 if (_json.containsKey("value")) { |
| 6873 value = _json["value"]; |
| 6874 } |
| 6875 } |
| 6876 |
| 6877 core.Map toJson() { |
| 6878 var _json = new core.Map(); |
| 6879 if (customType != null) { |
| 6880 _json["customType"] = customType; |
| 6881 } |
| 6882 if (primary != null) { |
| 6883 _json["primary"] = primary; |
| 6884 } |
| 6885 if (type != null) { |
| 6886 _json["type"] = type; |
| 6887 } |
| 6888 if (value != null) { |
| 6889 _json["value"] = value; |
| 6890 } |
| 6891 return _json; |
| 6892 } |
| 6893 } |
| 6894 |
| 6895 |
6774 /** JSON response template for List Users operation in Apps Directory API. */ | 6896 /** JSON response template for List Users operation in Apps Directory API. */ |
6775 class Users { | 6897 class Users { |
6776 /** ETag of the resource. */ | 6898 /** ETag of the resource. */ |
6777 core.String etag; | 6899 core.String etag; |
6778 | 6900 |
6779 /** Kind of resource this is. */ | 6901 /** Kind of resource this is. */ |
6780 core.String kind; | 6902 core.String kind; |
6781 | 6903 |
6782 /** Token used to access next page of this result. */ | 6904 /** Token used to access next page of this result. */ |
6783 core.String nextPageToken; | 6905 core.String nextPageToken; |
(...skipping 146 matching lines...) Loading... |
6930 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7052 _json["items"] = items.map((value) => (value).toJson()).toList(); |
6931 } | 7053 } |
6932 if (kind != null) { | 7054 if (kind != null) { |
6933 _json["kind"] = kind; | 7055 _json["kind"] = kind; |
6934 } | 7056 } |
6935 return _json; | 7057 return _json; |
6936 } | 7058 } |
6937 } | 7059 } |
6938 | 7060 |
6939 | 7061 |
OLD | NEW |