generated/google/apis/drive_v3/classes.rb in google-api-client-0.37.3 vs generated/google/apis/drive_v3/classes.rb in google-api-client-0.38.0
- old
+ new
@@ -1190,10 +1190,16 @@
# Information about a Drive user.
# Corresponds to the JSON property `sharingUser`
# @return [Google::Apis::DriveV3::User]
attr_accessor :sharing_user
+ # Shortcut file details. Only populated for shortcut files, which have the
+ # mimeType field set to application/vnd.google-apps.shortcut.
+ # Corresponds to the JSON property `shortcutDetails`
+ # @return [Google::Apis::DriveV3::File::ShortcutDetails]
+ attr_accessor :shortcut_details
+
# The size of the file's content in bytes. This is only applicable to files with
# binary content in Google Drive.
# Corresponds to the JSON property `size`
# @return [Fixnum]
attr_accessor :size
@@ -1335,10 +1341,11 @@
@properties = args[:properties] if args.key?(:properties)
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
@shared = args[:shared] if args.key?(:shared)
@shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
@sharing_user = args[:sharing_user] if args.key?(:sharing_user)
+ @shortcut_details = args[:shortcut_details] if args.key?(:shortcut_details)
@size = args[:size] if args.key?(:size)
@spaces = args[:spaces] if args.key?(:spaces)
@starred = args[:starred] if args.key?(:starred)
@team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@@ -1366,10 +1373,17 @@
# Corresponds to the JSON property `canAddChildren`
# @return [Boolean]
attr_accessor :can_add_children
alias_method :can_add_children?, :can_add_children
+ # Whether the current user can add a parent for the item without removing an
+ # existing parent in the same request. Not populated for shared drive files.
+ # Corresponds to the JSON property `canAddMyDriveParent`
+ # @return [Boolean]
+ attr_accessor :can_add_my_drive_parent
+ alias_method :can_add_my_drive_parent?, :can_add_my_drive_parent
+
# Whether the current user can change the copyRequiresWriterPermission
# restriction of this file.
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermission`
# @return [Boolean]
attr_accessor :can_change_copy_requires_writer_permission
@@ -1530,10 +1544,17 @@
# Corresponds to the JSON property `canRemoveChildren`
# @return [Boolean]
attr_accessor :can_remove_children
alias_method :can_remove_children?, :can_remove_children
+ # Whether the current user can remove a parent from the item without adding
+ # another parent in the same request. Not populated for shared drive files.
+ # Corresponds to the JSON property `canRemoveMyDriveParent`
+ # @return [Boolean]
+ attr_accessor :can_remove_my_drive_parent
+ alias_method :can_remove_my_drive_parent?, :can_remove_my_drive_parent
+
# Whether the current user can rename this file.
# Corresponds to the JSON property `canRename`
# @return [Boolean]
attr_accessor :can_rename
alias_method :can_rename?, :can_rename
@@ -1568,10 +1589,11 @@
end
# Update properties of this object
def update!(**args)
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
+ @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
@can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
@can_comment = args[:can_comment] if args.key?(:can_comment)
@can_copy = args[:can_copy] if args.key?(:can_copy)
@can_delete = args[:can_delete] if args.key?(:can_delete)
@@ -1592,10 +1614,11 @@
@can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
@can_read_drive = args[:can_read_drive] if args.key?(:can_read_drive)
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
@can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
+ @can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
@can_rename = args[:can_rename] if args.key?(:can_rename)
@can_share = args[:can_share] if args.key?(:can_share)
@can_trash = args[:can_trash] if args.key?(:can_trash)
@can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
@can_untrash = args[:can_untrash] if args.key?(:can_untrash)
@@ -1736,11 +1759,12 @@
# The metering mode used to create the photo.
# Corresponds to the JSON property `meteringMode`
# @return [String]
attr_accessor :metering_mode
- # The rotation in clockwise degrees from the image's original orientation.
+ # The number of clockwise 90 degree rotations applied from the image's original
+ # orientation.
# Corresponds to the JSON property `rotation`
# @return [Fixnum]
attr_accessor :rotation
# The type of sensor used to create the photo.
@@ -1827,10 +1851,38 @@
@longitude = args[:longitude] if args.key?(:longitude)
end
end
end
+ # Shortcut file details. Only populated for shortcut files, which have the
+ # mimeType field set to application/vnd.google-apps.shortcut.
+ class ShortcutDetails
+ include Google::Apis::Core::Hashable
+
+ # The ID of the file that this shortcut points to.
+ # Corresponds to the JSON property `targetId`
+ # @return [String]
+ attr_accessor :target_id
+
+ # The MIME type of the file that this shortcut points to. The value of this
+ # field is a snapshot of the target's MIME type, captured when the shortcut is
+ # created.
+ # Corresponds to the JSON property `targetMimeType`
+ # @return [String]
+ attr_accessor :target_mime_type
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @target_id = args[:target_id] if args.key?(:target_id)
+ @target_mime_type = args[:target_mime_type] if args.key?(:target_mime_type)
+ end
+ end
+
# Additional metadata about video media. This may not be available immediately
# upon upload.
class VideoMediaMetadata
include Google::Apis::Core::Hashable
@@ -2074,10 +2126,10 @@
# @return [Boolean]
attr_accessor :inherited
alias_method :inherited?, :inherited
# The ID of the item from which this permission is inherited. This is an output-
- # only field and is only populated for members of the shared drive.
+ # only field.
# Corresponds to the JSON property `inheritedFrom`
# @return [String]
attr_accessor :inherited_from
# The permission type for this user. While new values may be added in future,