class GoogleDrive::TeamdrivesApi

Defined in:

google_drive/api/teamdrives_api.cr

Constant Summary

DRIVE_TEAMDRIVES_CREATE_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_TEAMDRIVES_DELETE_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_TEAMDRIVES_GET_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_TEAMDRIVES_LIST_MAX_FOR_PAGE_SIZE = Int32.new("100")
DRIVE_TEAMDRIVES_LIST_MIN_FOR_PAGE_SIZE = Int32.new("1")
DRIVE_TEAMDRIVES_LIST_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_TEAMDRIVES_UPDATE_VALID_VALUES_FOR_ALT = String.static_array("json", "media")

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : GoogleDrive::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_create(*, request_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_delete(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_get(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list(*, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_update(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation(*args, **options) #

[View source]
def client_side_validation(*args, **options, &) #

[View source]
def create(*, request_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil) : GoogleDrive::TeamDrive #

Deprecated use drives.create instead. @required @param request_id [String?] An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param team_drive [GoogleDrive::TeamDrive?] @return [GoogleDrive::TeamDrive]


[View source]
def create(*, request_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil, &block : Crest::Response -> ) : Nil #

Deprecated use drives.create instead. @required @param request_id [String?] An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param team_drive [GoogleDrive::TeamDrive?] @return nil


[View source]
def create_with_http_info(*, request_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil) : Tuple(GoogleDrive::TeamDrive, Int32, Hash(String, Array(String) | String)) #

Deprecated use drives.create instead. @required @param request_id [String?] An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param team_drive [GoogleDrive::TeamDrive?] @return [Tuple(GoogleDrive::TeamDrive, Integer, Hash)] GoogleDrive::TeamDrive, response status code and response headers


[View source]
def debugging(*args, **options) #

[View source]
def debugging(*args, **options, &) #

[View source]
def delete(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil) : Nil #

Deprecated use drives.delete instead. @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @return [Nil]


[View source]
def delete(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Deprecated use drives.delete instead. @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @return nil


[View source]
def delete_with_http_info(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String)) #

Deprecated use drives.delete instead. @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers


[View source]
def get(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil) : GoogleDrive::TeamDrive #

Deprecated use drives.get instead. @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. @return [GoogleDrive::TeamDrive]


[View source]
def get(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil, &block : Crest::Response -> ) : Nil #

Deprecated use drives.get instead. @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. @return nil


[View source]
def get_with_http_info(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil) : Tuple(GoogleDrive::TeamDrive, Int32, Hash(String, Array(String) | String)) #

Deprecated use drives.get instead. @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. @return [Tuple(GoogleDrive::TeamDrive, Integer, Hash)] GoogleDrive::TeamDrive, response status code and response headers


[View source]
def list(*, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil) : GoogleDrive::TeamDriveList #

Deprecated use drives.list instead. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param page_size [Int32?] Maximum number of Team Drives to return. @optional @param page_token [String?] Page token for Team Drives. @optional @param q [String?] Query string for searching Team Drives. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned. @return [GoogleDrive::TeamDriveList]


[View source]
def list(*, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil, &block : Crest::Response -> ) : Nil #

Deprecated use drives.list instead. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param page_size [Int32?] Maximum number of Team Drives to return. @optional @param page_token [String?] Page token for Team Drives. @optional @param q [String?] Query string for searching Team Drives. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned. @return nil


[View source]
def list_with_http_info(*, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil) : Tuple(GoogleDrive::TeamDriveList, Int32, Hash(String, Array(String) | String)) #

Deprecated use drives.list instead. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param page_size [Int32?] Maximum number of Team Drives to return. @optional @param page_token [String?] Page token for Team Drives. @optional @param q [String?] Query string for searching Team Drives. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned. @return [Tuple(GoogleDrive::TeamDriveList, Integer, Hash)] GoogleDrive::TeamDriveList, response status code and response headers


[View source]
def update(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil) : GoogleDrive::TeamDrive #

Deprecated use drives.update instead @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. @optional @param team_drive [GoogleDrive::TeamDrive?] @return [GoogleDrive::TeamDrive]


[View source]
def update(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil, &block : Crest::Response -> ) : Nil #

Deprecated use drives.update instead @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. @optional @param team_drive [GoogleDrive::TeamDrive?] @return nil


[View source]
def update_with_http_info(*, team_drive_id : String | Nil = nil, alt : String | Nil = "json", fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, user_ip : String | Nil = nil, use_domain_admin_access : Bool | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil) : Tuple(GoogleDrive::TeamDrive, Int32, Hash(String, Array(String) | String)) #

Deprecated use drives.update instead @required @param team_drive_id [String?] The ID of the Team Drive @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param use_domain_admin_access [Bool?] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. @optional @param team_drive [GoogleDrive::TeamDrive?] @return [Tuple(GoogleDrive::TeamDrive, Integer, Hash)] GoogleDrive::TeamDrive, response status code and response headers


[View source]