class

GoogleDrive::FilesApi

Inherits Reference / Object

Constants

DRIVE_FILES_COPY_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_CREATE_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_DELETE_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_EMPTY_TRASH_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_EXPORT_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_GENERATE_IDS_MAX_FOR_COUNT = Int32.new("1000")
DRIVE_FILES_GENERATE_IDS_MIN_FOR_COUNT = Int32.new("1")
DRIVE_FILES_GENERATE_IDS_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_GET_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_LIST_LABELS_MAX_FOR_MAX_RESULTS = Int32.new("100")
DRIVE_FILES_LIST_LABELS_MIN_FOR_MAX_RESULTS = Int32.new("1")
DRIVE_FILES_LIST_LABELS_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_LIST_MAX_FOR_PAGE_SIZE = Int32.new("1000")
DRIVE_FILES_LIST_MIN_FOR_PAGE_SIZE = Int32.new("1")
DRIVE_FILES_LIST_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_LIST_VALID_VALUES_FOR_CORPUS = String.static_array("domain", "user")
DRIVE_FILES_MODIFY_LABELS_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_UPDATE_CONTENT_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_UPDATE_CONTENT_VALID_VALUES_FOR_UPLOAD_TYPE = String.static_array("media", "multipart", "resumable")
DRIVE_FILES_UPDATE_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_UPLOAD_VALID_VALUES_FOR_ALT = String.static_array("json", "media")
DRIVE_FILES_UPLOAD_VALID_VALUES_FOR_UPLOAD_TYPE = String.static_array("media", "multipart", "resumable")
DRIVE_FILES_WATCH_VALID_VALUES_FOR_ALT = String.static_array("json", "media")

Constructors

new(api_client : GoogleDrive::ApiClient = ApiClient.default)
Source

Instance methods

api_client
Source
api_client=(api_client : ApiClient)
Source
build_api_request_for_copy(*, file_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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_create(*, 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_delete(*, file_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, enforce_single_parent : Bool | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_empty_trash(*, 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, enforce_single_parent : Bool | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_export(*, file_id : String | Nil = nil, mime_type : 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

Source
build_api_request_for_generate_ids(*, 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, count : Int32 | Nil = nil, space : String | Nil = nil, _type : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_get(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil) : Crest::Request

@return Crest::Request

Source
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, corpora : String | Nil = nil, corpus : String | Nil = nil, drive_id : String | Nil = nil, include_items_from_all_drives : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, include_team_drive_items : Bool | Nil = nil, order_by : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, spaces : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, team_drive_id : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_list_labels(*, file_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, max_results : Int32 | Nil = nil, page_token : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_modify_labels(*, file_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, modify_labels_request : GoogleDrive::ModifyLabelsRequest | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_update(*, file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_update_content(*, upload_type : String | Nil = "media", file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, body : IO | String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_upload(*, upload_type : String | Nil = "multipart", 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, media : IO | String | Nil = nil, metadata : IO | String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_watch(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, channel : GoogleDrive::Channel | Nil = nil) : Crest::Request

@return Crest::Request

Source
client_side_validation?(*args, **options)
Source
client_side_validation?(*args, **options, &)
Source
copy(*, file_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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : GoogleDrive::File

Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. @required @param file_id [String?] The ID of the file. @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 enforce_single_parent [Bool?] Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param file [GoogleDrive::File?] @return [GoogleDrive::File]

Source
copy(*, file_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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil, &block : Crest::Response -> ) : Nil

Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. @required @param file_id [String?] The ID of the file. @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 enforce_single_parent [Bool?] Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param file [GoogleDrive::File?] @return nil

Source
copy_with_http_info(*, file_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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : Tuple(GoogleDrive::File, Int32, Hash(String, Array(String) | String))

Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. @required @param file_id [String?] The ID of the file. @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 enforce_single_parent [Bool?] Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param file [GoogleDrive::File?] @return [Tuple(GoogleDrive::File, Integer, Hash)] GoogleDrive::File, response status code and response headers

Source
create(*, 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : GoogleDrive::File

Creates a file. @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 enforce_single_parent [Bool?] Deprecated. Creating files in multiple folders is no longer supported. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param file [GoogleDrive::File?] @return [GoogleDrive::File]

Source
create(*, 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil, &block : Crest::Response -> ) : Nil

Creates a file. @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 enforce_single_parent [Bool?] Deprecated. Creating files in multiple folders is no longer supported. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param file [GoogleDrive::File?] @return nil

Source
create_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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : Tuple(GoogleDrive::File, Int32, Hash(String, Array(String) | String))

Creates a file. @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 enforce_single_parent [Bool?] Deprecated. Creating files in multiple folders is no longer supported. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param file [GoogleDrive::File?] @return [Tuple(GoogleDrive::File, Integer, Hash)] GoogleDrive::File, response status code and response headers

Source
debugging?(*args, **options)
Source
debugging?(*args, **options, &)
Source
delete(*, file_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, enforce_single_parent : Bool | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil) : Nil

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted. @required @param file_id [String?] The ID of the file. @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 enforce_single_parent [Bool?] Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @return [Nil]

Source
delete(*, file_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, enforce_single_parent : Bool | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, &block : Crest::Response -> ) : Nil

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted. @required @param file_id [String?] The ID of the file. @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 enforce_single_parent [Bool?] Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @return nil

Source
delete_with_http_info(*, file_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, enforce_single_parent : Bool | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String))

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted. @required @param file_id [String?] The ID of the file. @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 enforce_single_parent [Bool?] Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers

Source
empty_trash(*, 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, enforce_single_parent : Bool | Nil = nil) : Nil

Permanently deletes all of the user's trashed files. @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 enforce_single_parent [Bool?] Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. @return [Nil]

Source
empty_trash(*, 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, enforce_single_parent : Bool | Nil = nil, &block : Crest::Response -> ) : Nil

Permanently deletes all of the user's trashed files. @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 enforce_single_parent [Bool?] Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. @return nil

Source
empty_trash_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, enforce_single_parent : Bool | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String))

Permanently deletes all of the user's trashed files. @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 enforce_single_parent [Bool?] Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers

Source
export(*, file_id : String | Nil = nil, mime_type : 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

Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. @required @param file_id [String?] The ID of the file. @required @param mime_type [String?] The MIME type of the format requested for this export. @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]

Source
export(*, file_id : String | Nil = nil, mime_type : 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

Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. @required @param file_id [String?] The ID of the file. @required @param mime_type [String?] The MIME type of the format requested for this export. @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

Source
export_with_http_info(*, file_id : String | Nil = nil, mime_type : 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))

Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. @required @param file_id [String?] The ID of the file. @required @param mime_type [String?] The MIME type of the format requested for this export. @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

Source
generate_ids(*, 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, count : Int32 | Nil = nil, space : String | Nil = nil, _type : String | Nil = nil) : GoogleDrive::GeneratedIds

Generates a set of file IDs which can be provided in create or copy requests. @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 count [Int32?] The number of IDs to return. @optional @param space [String?] The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') @optional @param _type [String?] The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files') @return [GoogleDrive::GeneratedIds]

Source
generate_ids(*, 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, count : Int32 | Nil = nil, space : String | Nil = nil, _type : String | Nil = nil, &block : Crest::Response -> ) : Nil

Generates a set of file IDs which can be provided in create or copy requests. @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 count [Int32?] The number of IDs to return. @optional @param space [String?] The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') @optional @param _type [String?] The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files') @return nil

Source
generate_ids_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, count : Int32 | Nil = nil, space : String | Nil = nil, _type : String | Nil = nil) : Tuple(GoogleDrive::GeneratedIds, Int32, Hash(String, Array(String) | String))

Generates a set of file IDs which can be provided in create or copy requests. @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 count [Int32?] The number of IDs to return. @optional @param space [String?] The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') @optional @param _type [String?] The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files') @return [Tuple(GoogleDrive::GeneratedIds, Integer, Hash)] GoogleDrive::GeneratedIds, response status code and response headers

Source
get(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil) : GoogleDrive::File

Gets a file's metadata or content by ID. @required @param file_id [String?] The ID of the file. @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 acknowledge_abuse [Bool?] Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @return [GoogleDrive::File]

Source
get(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, &block : Crest::Response -> ) : Nil

Gets a file's metadata or content by ID. @required @param file_id [String?] The ID of the file. @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 acknowledge_abuse [Bool?] Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @return nil

Source
get_with_http_info(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil) : Tuple(GoogleDrive::File, Int32, Hash(String, Array(String) | String))

Gets a file's metadata or content by ID. @required @param file_id [String?] The ID of the file. @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 acknowledge_abuse [Bool?] Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @return [Tuple(GoogleDrive::File, Integer, Hash)] GoogleDrive::File, response status code and response headers

Source
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, corpora : String | Nil = nil, corpus : String | Nil = nil, drive_id : String | Nil = nil, include_items_from_all_drives : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, include_team_drive_items : Bool | Nil = nil, order_by : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, spaces : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, team_drive_id : String | Nil = nil) : GoogleDrive::FileList

Lists or searches files. @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 corpora [String?] Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. @optional @param corpus [String?] The source of files to list. Deprecated: use 'corpora' instead. @optional @param drive_id [String?] ID of the shared drive to search. @optional @param include_items_from_all_drives [Bool?] Whether both My Drive and shared drive items should be included in results. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param include_team_drive_items [Bool?] Deprecated use includeItemsFromAllDrives instead. @optional @param order_by [String?] A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. @optional @param page_size [Int32?] The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached. @optional @param page_token [String?] The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. @optional @param q [String?] A query for filtering the file results. See the "Search for Files" guide for supported syntax. @optional @param spaces [String?] A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param team_drive_id [String?] Deprecated use driveId instead. @return [GoogleDrive::FileList]

Source
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, corpora : String | Nil = nil, corpus : String | Nil = nil, drive_id : String | Nil = nil, include_items_from_all_drives : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, include_team_drive_items : Bool | Nil = nil, order_by : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, spaces : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, team_drive_id : String | Nil = nil, &block : Crest::Response -> ) : Nil

Lists or searches files. @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 corpora [String?] Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. @optional @param corpus [String?] The source of files to list. Deprecated: use 'corpora' instead. @optional @param drive_id [String?] ID of the shared drive to search. @optional @param include_items_from_all_drives [Bool?] Whether both My Drive and shared drive items should be included in results. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param include_team_drive_items [Bool?] Deprecated use includeItemsFromAllDrives instead. @optional @param order_by [String?] A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. @optional @param page_size [Int32?] The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached. @optional @param page_token [String?] The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. @optional @param q [String?] A query for filtering the file results. See the "Search for Files" guide for supported syntax. @optional @param spaces [String?] A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param team_drive_id [String?] Deprecated use driveId instead. @return nil

Source
list_labels(*, file_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, max_results : Int32 | Nil = nil, page_token : String | Nil = nil) : GoogleDrive::LabelList

Lists the labels on a file. @required @param file_id [String?] The ID of the file. @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 max_results [Int32?] The maximum number of labels to return per page. When not set, this defaults to 100. @optional @param page_token [String?] The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. @return [GoogleDrive::LabelList]

Source
list_labels(*, file_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, max_results : Int32 | Nil = nil, page_token : String | Nil = nil, &block : Crest::Response -> ) : Nil

Lists the labels on a file. @required @param file_id [String?] The ID of the file. @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 max_results [Int32?] The maximum number of labels to return per page. When not set, this defaults to 100. @optional @param page_token [String?] The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. @return nil

Source
list_labels_with_http_info(*, file_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, max_results : Int32 | Nil = nil, page_token : String | Nil = nil) : Tuple(GoogleDrive::LabelList, Int32, Hash(String, Array(String) | String))

Lists the labels on a file. @required @param file_id [String?] The ID of the file. @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 max_results [Int32?] The maximum number of labels to return per page. When not set, this defaults to 100. @optional @param page_token [String?] The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. @return [Tuple(GoogleDrive::LabelList, Integer, Hash)] GoogleDrive::LabelList, response status code and response headers

Source
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, corpora : String | Nil = nil, corpus : String | Nil = nil, drive_id : String | Nil = nil, include_items_from_all_drives : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, include_team_drive_items : Bool | Nil = nil, order_by : String | Nil = nil, page_size : Int32 | Nil = nil, page_token : String | Nil = nil, q : String | Nil = nil, spaces : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, team_drive_id : String | Nil = nil) : Tuple(GoogleDrive::FileList, Int32, Hash(String, Array(String) | String))

Lists or searches files. @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 corpora [String?] Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. @optional @param corpus [String?] The source of files to list. Deprecated: use 'corpora' instead. @optional @param drive_id [String?] ID of the shared drive to search. @optional @param include_items_from_all_drives [Bool?] Whether both My Drive and shared drive items should be included in results. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param include_team_drive_items [Bool?] Deprecated use includeItemsFromAllDrives instead. @optional @param order_by [String?] A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. @optional @param page_size [Int32?] The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached. @optional @param page_token [String?] The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. @optional @param q [String?] A query for filtering the file results. See the "Search for Files" guide for supported syntax. @optional @param spaces [String?] A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param team_drive_id [String?] Deprecated use driveId instead. @return [Tuple(GoogleDrive::FileList, Integer, Hash)] GoogleDrive::FileList, response status code and response headers

Source
modify_labels(*, file_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, modify_labels_request : GoogleDrive::ModifyLabelsRequest | Nil = nil) : GoogleDrive::ModifyLabelsResponse

Modifies the set of labels on a file. @required @param file_id [String?] The ID of the file for which the labels are modified. @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 modify_labels_request [GoogleDrive::ModifyLabelsRequest?] @return [GoogleDrive::ModifyLabelsResponse]

Source
modify_labels(*, file_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, modify_labels_request : GoogleDrive::ModifyLabelsRequest | Nil = nil, &block : Crest::Response -> ) : Nil

Modifies the set of labels on a file. @required @param file_id [String?] The ID of the file for which the labels are modified. @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 modify_labels_request [GoogleDrive::ModifyLabelsRequest?] @return nil

Source
modify_labels_with_http_info(*, file_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, modify_labels_request : GoogleDrive::ModifyLabelsRequest | Nil = nil) : Tuple(GoogleDrive::ModifyLabelsResponse, Int32, Hash(String, Array(String) | String))

Modifies the set of labels on a file. @required @param file_id [String?] The ID of the file for which the labels are modified. @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 modify_labels_request [GoogleDrive::ModifyLabelsRequest?] @return [Tuple(GoogleDrive::ModifyLabelsResponse, Integer, Hash)] GoogleDrive::ModifyLabelsResponse, response status code and response headers

Source
update(*, file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : GoogleDrive::File

Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. @required @param file_id [String?] The ID of the file. @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 add_parents [String?] A comma-separated list of parent IDs to add. @optional @param enforce_single_parent [Bool?] Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param remove_parents [String?] A comma-separated list of parent IDs to remove. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param file [GoogleDrive::File?] @return [GoogleDrive::File]

Source
update(*, file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil, &block : Crest::Response -> ) : Nil

Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. @required @param file_id [String?] The ID of the file. @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 add_parents [String?] A comma-separated list of parent IDs to add. @optional @param enforce_single_parent [Bool?] Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param remove_parents [String?] A comma-separated list of parent IDs to remove. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param file [GoogleDrive::File?] @return nil

Source
update_content(*, upload_type : String | Nil = "media", file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, body : IO | String | Nil = nil) : GoogleDrive::File

Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. @required @param upload_type [String?] The type of upload request to the /upload URI @required @param file_id [String?] The ID of the file. @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 add_parents [String?] A comma-separated list of parent IDs to add. @optional @param enforce_single_parent [Bool?] Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param remove_parents [String?] A comma-separated list of parent IDs to remove. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param body [::File?] @return [GoogleDrive::File]

Source
update_content(*, upload_type : String | Nil = "media", file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, body : IO | String | Nil = nil, &block : Crest::Response -> ) : Nil

Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. @required @param upload_type [String?] The type of upload request to the /upload URI @required @param file_id [String?] The ID of the file. @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 add_parents [String?] A comma-separated list of parent IDs to add. @optional @param enforce_single_parent [Bool?] Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param remove_parents [String?] A comma-separated list of parent IDs to remove. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param body [::File?] @return nil

Source
update_content_with_http_info(*, upload_type : String | Nil = "media", file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, body : IO | String | Nil = nil) : Tuple(GoogleDrive::File, Int32, Hash(String, Array(String) | String))

Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. @required @param upload_type [String?] The type of upload request to the /upload URI @required @param file_id [String?] The ID of the file. @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 add_parents [String?] A comma-separated list of parent IDs to add. @optional @param enforce_single_parent [Bool?] Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param remove_parents [String?] A comma-separated list of parent IDs to remove. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param body [::File?] @return [Tuple(GoogleDrive::File, Integer, Hash)] GoogleDrive::File, response status code and response headers

Source
update_with_http_info(*, file_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, add_parents : String | Nil = nil, enforce_single_parent : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, remove_parents : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, file : GoogleDrive::File | Nil = nil) : Tuple(GoogleDrive::File, Int32, Hash(String, Array(String) | String))

Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. @required @param file_id [String?] The ID of the file. @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 add_parents [String?] A comma-separated list of parent IDs to add. @optional @param enforce_single_parent [Bool?] Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param remove_parents [String?] A comma-separated list of parent IDs to remove. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param file [GoogleDrive::File?] @return [Tuple(GoogleDrive::File, Integer, Hash)] GoogleDrive::File, response status code and response headers

Source
upload(*, upload_type : String | Nil = "multipart", 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, media : IO | String | Nil = nil, metadata : IO | String | Nil = nil) : GoogleDrive::File

Creates a new file. @required @param upload_type [String?] The type of upload request to the /upload URI @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 enforce_single_parent [Bool?] Deprecated. Creating files in multiple folders is no longer supported. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param media [::File?] @optional @param metadata [::File?] @return [GoogleDrive::File]

Source
upload(*, upload_type : String | Nil = "multipart", 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, media : IO | String | Nil = nil, metadata : IO | String | Nil = nil, &block : Crest::Response -> ) : Nil

Creates a new file. @required @param upload_type [String?] The type of upload request to the /upload URI @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 enforce_single_parent [Bool?] Deprecated. Creating files in multiple folders is no longer supported. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param media [::File?] @optional @param metadata [::File?] @return nil

Source
upload_with_http_info(*, upload_type : String | Nil = "multipart", 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, enforce_single_parent : Bool | Nil = nil, ignore_default_visibility : Bool | Nil = nil, include_permissions_for_view : String | Nil = nil, keep_revision_forever : Bool | Nil = nil, ocr_language : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, use_content_as_indexable_text : Bool | Nil = nil, media : IO | String | Nil = nil, metadata : IO | String | Nil = nil) : Tuple(GoogleDrive::File, Int32, Hash(String, Array(String) | String))

Creates a new file. @required @param upload_type [String?] The type of upload request to the /upload URI @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 enforce_single_parent [Bool?] Deprecated. Creating files in multiple folders is no longer supported. @optional @param ignore_default_visibility [Bool?] Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param keep_revision_forever [Bool?] Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. @optional @param ocr_language [String?] A language hint for OCR processing during image import (ISO 639-1 code). @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param use_content_as_indexable_text [Bool?] Whether to use the uploaded content as indexable text. @optional @param media [::File?] @optional @param metadata [::File?] @return [Tuple(GoogleDrive::File, Integer, Hash)] GoogleDrive::File, response status code and response headers

Source
watch(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, channel : GoogleDrive::Channel | Nil = nil) : GoogleDrive::Channel

Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. @required @param file_id [String?] The ID of the file. @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 acknowledge_abuse [Bool?] Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param channel [GoogleDrive::Channel?] @return [GoogleDrive::Channel]

Source
watch(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, channel : GoogleDrive::Channel | Nil = nil, &block : Crest::Response -> ) : Nil

Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. @required @param file_id [String?] The ID of the file. @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 acknowledge_abuse [Bool?] Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param channel [GoogleDrive::Channel?] @return nil

Source
watch_with_http_info(*, file_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, acknowledge_abuse : Bool | Nil = nil, include_labels : String | Nil = nil, include_permissions_for_view : String | Nil = nil, supports_all_drives : Bool | Nil = nil, supports_team_drives : Bool | Nil = nil, channel : GoogleDrive::Channel | Nil = nil) : Tuple(GoogleDrive::Channel, Int32, Hash(String, Array(String) | String))

Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. @required @param file_id [String?] The ID of the file. @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 acknowledge_abuse [Bool?] Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. @optional @param include_labels [String?] A comma-separated list of IDs of labels to include in the labelInfo part of the response. @optional @param include_permissions_for_view [String?] Specifies which additional view's permissions to include in the response. Only 'published' is supported. @optional @param supports_all_drives [Bool?] Whether the requesting application supports both My Drives and shared drives. @optional @param supports_team_drives [Bool?] Deprecated use supportsAllDrives instead. @optional @param channel [GoogleDrive::Channel?] @return [Tuple(GoogleDrive::Channel, Integer, Hash)] GoogleDrive::Channel, response status code and response headers

Source