class Google::Directory
- Google::Directory
- Reference
- Object
Included Modules
Defined in:
directory/directory.crdirectory/group/group.cr
directory/group/group_query.cr
directory/member.cr
directory/user/address.cr
directory/user/email.cr
directory/user/gender.cr
directory/user/language.cr
directory/user/name.cr
directory/user/organization.cr
directory/user/phone.cr
directory/user/posix_account.cr
directory/user/relation.cr
directory/user/user.cr
directory/user/user_query.cr
Constructors
Instance Method Summary
- #groups(response : HTTP::Client::Response)
- #groups(user_id = nil, **opts)
-
#groups_request(user_id = nil, **opts)
https://developers.google.com/admin-sdk/directory/v1/reference/groups/list
- #lookup(response : HTTP::Client::Response)
- #lookup(user_id)
-
#lookup_request(user_id)
https://developers.google.com/admin-sdk/directory/v1/reference/users/get
- #members(response : HTTP::Client::Response)
- #members(group_id : String, include_indirect : Bool = true, role : Role | Nil = nil)
-
#members_request(group_id : String, include_indirect : Bool = true, role : Role | Nil = nil)
https://developers.google.com/admin-sdk/directory/reference/rest/v1/members/list
- #users(response : HTTP::Client::Response)
- #users(query = nil, limit = 500, **opts)
-
#users_request(query = nil, limit = 500, **opts)
API details: https://developers.google.com/admin-sdk/directory/v1/reference/users/list
Constructor Detail
def self.new(auth : Google::Auth | Google::FileAuth | String, domain : String, projection : String = "full", view_type : String = "admin_view", user_agent : String | Nil = nil)
#
Instance Method Detail
def groups_request(user_id = nil, **opts)
#
https://developers.google.com/admin-sdk/directory/v1/reference/groups/list
def lookup_request(user_id)
#
https://developers.google.com/admin-sdk/directory/v1/reference/users/get
https://developers.google.com/admin-sdk/directory/reference/rest/v1/members/list
API details: https://developers.google.com/admin-sdk/directory/v1/reference/users/list