Autogenerated update (2018-11-20)

Update:
- driveactivity_v2
- sheets_v4
- slides_v1
This commit is contained in:
Google APIs committed 2018-11-20 00:36:40 +00:00
1 parent 919e8d0241
commit 7752e65977
7 files changed
+217 -11

No files matched your search

+2 -2
View File
@@ -20,12 +20,12 @@ module Google
module Apis
# Drive Activity API
#
#
# Provides a historical view of activity in Google Drive.
#
# @see https://developers.google.com/drive/activity/
module DriveactivityV2
VERSION = 'V2'
REVISION = '20181113'
REVISION = '20181116'
# View and add to the activity record of files in your Google Drive
AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity'
@@ -22,7 +22,7 @@ module Google
module DriveactivityV2
# Drive Activity API
#
#
# Provides a historical view of activity in Google Drive.
#
# @example
# require 'google/apis/driveactivity_v2'
+4 -4
View File
@@ -25,18 +25,18 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20180727'
REVISION = '20181116'
# View and manage the files in your Google Drive
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View and manage Google Drive files and folders that you have opened or created with this app
AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
# View the files in your Google Drive
# See and download all your Google Drive files
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# View and manage your spreadsheets in Google Drive
# See, edit, create, and delete your spreadsheets in Google Drive
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
# View your Google Spreadsheets
+4 -4
View File
@@ -25,15 +25,15 @@ module Google
# @see https://developers.google.com/slides/
module SlidesV1
VERSION = 'V1'
REVISION = '20181108'
REVISION = '20181116'
# View and manage the files in your Google Drive
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View and manage Google Drive files and folders that you have opened or created with this app
AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
# View the files in your Google Drive
# See and download all your Google Drive files
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# View and manage your Google Slides presentations
@@ -42,7 +42,7 @@ module Google
# View your Google Slides presentations
AUTH_PRESENTATIONS_READONLY = 'https://www.googleapis.com/auth/presentations.readonly'
# View and manage your spreadsheets in Google Drive
# See, edit, create, and delete your spreadsheets in Google Drive
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
# View your Google Spreadsheets
+141
View File
@@ -361,6 +361,19 @@ module Google
class CreateLineRequest
include Google::Apis::Core::Hashable
# The category of line to be created.
# The exact line type created is
# determined based on the category and how it's routed to connect to other
# page elements.
# If you specify both a `category` and a `line_category`, the `category`
# takes precedence.
# If you do not specify a value for `category`, but specify a value for
# `line_category`, then the specified `line_category` value is used.
# If you do not specify either, then STRAIGHT is used.
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# Common properties for a page element.
# Note: When you initially create a
# PageElement, the API may modify
@@ -393,6 +406,7 @@ module Google
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@element_properties = args[:element_properties] if args.key?(:element_properties)
@line_category = args[:line_category] if args.key?(:line_category)
@object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
@@ -1546,6 +1560,14 @@ module Google
class Line
include Google::Apis::Core::Hashable
# The category of the line.
# It matches the `category` specified in CreateLineRequest, and can be updated
# with
# UpdateLineCategoryRequest.
# Corresponds to the JSON property `lineCategory`
# @return [String]
attr_accessor :line_category
# The properties of the Line.
# When unset, these fields default to values that match the appearance of
# new lines created in the Slides editor.
@@ -1564,11 +1586,49 @@ module Google
# Update properties of this object
def update!(**args)
@line_category = args[:line_category] if args.key?(:line_category)
@line_properties = args[:line_properties] if args.key?(:line_properties)
@line_type = args[:line_type] if args.key?(:line_type)
end
end
# The properties for one end of a Line
# connection.
class LineConnection
include Google::Apis::Core::Hashable
# The object ID of the connected page element.
# Some page elements, such as groups, tables, and lines
# do not have connection sites and therefore cannot be connected to a
# connector line.
# Corresponds to the JSON property `connectedObjectId`
# @return [String]
attr_accessor :connected_object_id
# The index of the connection site on the connected page element.
# In most cases, it corresponds to the predefined connection site index from
# the ECMA-376 standard. More information on those connection sites can be
# found in the description of the "cnx" attribute in section 20.1.9.9 and
# Annex H. "Predefined DrawingML Shape and Text Geometries" of "Office Open
# XML File Formats-Fundamentals and Markup Language Reference", part 1 of
# [ECMA-376 5th edition]
# (http://www.ecma-international.org/publications/standards/Ecma-376.htm).
# The position of each connection site can also be viewed from Slides editor.
# Corresponds to the JSON property `connectionSiteIndex`
# @return [Fixnum]
attr_accessor :connection_site_index
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@connected_object_id = args[:connected_object_id] if args.key?(:connected_object_id)
@connection_site_index = args[:connection_site_index] if args.key?(:connection_site_index)
end
end
# The fill of the line.
class LineFill
include Google::Apis::Core::Hashable
@@ -1607,6 +1667,12 @@ module Google
# @return [String]
attr_accessor :end_arrow
# The properties for one end of a Line
# connection.
# Corresponds to the JSON property `endConnection`
# @return [Google::Apis::SlidesV1::LineConnection]
attr_accessor :end_connection
# The fill of the line.
# Corresponds to the JSON property `lineFill`
# @return [Google::Apis::SlidesV1::LineFill]
@@ -1622,6 +1688,12 @@ module Google
# @return [String]
attr_accessor :start_arrow
# The properties for one end of a Line
# connection.
# Corresponds to the JSON property `startConnection`
# @return [Google::Apis::SlidesV1::LineConnection]
attr_accessor :start_connection
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `weight`
# @return [Google::Apis::SlidesV1::Dimension]
@@ -1635,9 +1707,11 @@ module Google
def update!(**args)
@dash_style = args[:dash_style] if args.key?(:dash_style)
@end_arrow = args[:end_arrow] if args.key?(:end_arrow)
@end_connection = args[:end_connection] if args.key?(:end_connection)
@line_fill = args[:line_fill] if args.key?(:line_fill)
@link = args[:link] if args.key?(:link)
@start_arrow = args[:start_arrow] if args.key?(:start_arrow)
@start_connection = args[:start_connection] if args.key?(:start_connection)
@weight = args[:weight] if args.key?(:weight)
end
end
@@ -2972,6 +3046,12 @@ module Google
# @return [Google::Apis::SlidesV1::ReplaceImageRequest]
attr_accessor :replace_image
# Reroutes a line such that it's connected at the
# two closest connection sites on the connected page elements.
# Corresponds to the JSON property `rerouteLine`
# @return [Google::Apis::SlidesV1::RerouteLineRequest]
attr_accessor :reroute_line
# Ungroups objects, such as groups.
# Corresponds to the JSON property `ungroupObjects`
# @return [Google::Apis::SlidesV1::UngroupObjectsRequest]
@@ -2987,6 +3067,11 @@ module Google
# @return [Google::Apis::SlidesV1::UpdateImagePropertiesRequest]
attr_accessor :update_image_properties
# Updates the category of a line.
# Corresponds to the JSON property `updateLineCategory`
# @return [Google::Apis::SlidesV1::UpdateLineCategoryRequest]
attr_accessor :update_line_category
# Updates the properties of a Line.
# Corresponds to the JSON property `updateLineProperties`
# @return [Google::Apis::SlidesV1::UpdateLinePropertiesRequest]
@@ -3095,9 +3180,11 @@ module Google
@replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
@replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
@replace_image = args[:replace_image] if args.key?(:replace_image)
@reroute_line = args[:reroute_line] if args.key?(:reroute_line)
@ungroup_objects = args[:ungroup_objects] if args.key?(:ungroup_objects)
@unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells)
@update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
@update_line_category = args[:update_line_category] if args.key?(:update_line_category)
@update_line_properties = args[:update_line_properties] if args.key?(:update_line_properties)
@update_page_element_alt_text = args[:update_page_element_alt_text] if args.key?(:update_page_element_alt_text)
@update_page_element_transform = args[:update_page_element_transform] if args.key?(:update_page_element_transform)
@@ -3115,6 +3202,29 @@ module Google
end
end
# Reroutes a line such that it's connected at the
# two closest connection sites on the connected page elements.
class RerouteLineRequest
include Google::Apis::Core::Hashable
# The object ID of the line to reroute.
# Only a line with a category
# indicating it is a "connector" can be rerouted. The start and end
# connections of the line must be on different page elements.
# Corresponds to the JSON property `objectId`
# @return [String]
attr_accessor :object_id_prop
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
end
end
# A single response from an update.
class Response
include Google::Apis::Core::Hashable
@@ -4448,6 +4558,37 @@ module Google
end
end
# Updates the category of a line.
class UpdateLineCategoryRequest
include Google::Apis::Core::Hashable
# The line category to update to.
# The exact line type is determined based
# on the category to update to and how it's routed to connect to other page
# elements.
# Corresponds to the JSON property `lineCategory`
# @return [String]
attr_accessor :line_category
# The object ID of the line the update is applied to.
# Only a line with a category
# indicating it is a "connector" can be updated.
# The line may be rerouted after updating its category.
# Corresponds to the JSON property `objectId`
# @return [String]
attr_accessor :object_id_prop
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_category = args[:line_category] if args.key?(:line_category)
@object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
end
end
# Updates the properties of a Line.
class UpdateLinePropertiesRequest
include Google::Apis::Core::Hashable
@@ -280,6 +280,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LineConnection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LineFill
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -472,6 +478,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RerouteLineRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Response
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -682,6 +694,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpdateLineCategoryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateLinePropertiesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -889,6 +907,7 @@ module Google
class CreateLineRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
property :line_category, as: 'lineCategory'
@@ -1202,12 +1221,21 @@ module Google
class Line
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_category, as: 'lineCategory'
property :line_properties, as: 'lineProperties', class: Google::Apis::SlidesV1::LineProperties, decorator: Google::Apis::SlidesV1::LineProperties::Representation
property :line_type, as: 'lineType'
end
end
class LineConnection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :connected_object_id, as: 'connectedObjectId'
property :connection_site_index, as: 'connectionSiteIndex'
end
end
class LineFill
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1221,11 +1249,15 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :dash_style, as: 'dashStyle'
property :end_arrow, as: 'endArrow'
property :end_connection, as: 'endConnection', class: Google::Apis::SlidesV1::LineConnection, decorator: Google::Apis::SlidesV1::LineConnection::Representation
property :line_fill, as: 'lineFill', class: Google::Apis::SlidesV1::LineFill, decorator: Google::Apis::SlidesV1::LineFill::Representation
property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
property :start_arrow, as: 'startArrow'
property :start_connection, as: 'startConnection', class: Google::Apis::SlidesV1::LineConnection, decorator: Google::Apis::SlidesV1::LineConnection::Representation
property :weight, as: 'weight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
end
@@ -1599,12 +1631,16 @@ module Google
property :replace_image, as: 'replaceImage', class: Google::Apis::SlidesV1::ReplaceImageRequest, decorator: Google::Apis::SlidesV1::ReplaceImageRequest::Representation
property :reroute_line, as: 'rerouteLine', class: Google::Apis::SlidesV1::RerouteLineRequest, decorator: Google::Apis::SlidesV1::RerouteLineRequest::Representation
property :ungroup_objects, as: 'ungroupObjects', class: Google::Apis::SlidesV1::UngroupObjectsRequest, decorator: Google::Apis::SlidesV1::UngroupObjectsRequest::Representation
property :unmerge_table_cells, as: 'unmergeTableCells', class: Google::Apis::SlidesV1::UnmergeTableCellsRequest, decorator: Google::Apis::SlidesV1::UnmergeTableCellsRequest::Representation
property :update_image_properties, as: 'updateImageProperties', class: Google::Apis::SlidesV1::UpdateImagePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateImagePropertiesRequest::Representation
property :update_line_category, as: 'updateLineCategory', class: Google::Apis::SlidesV1::UpdateLineCategoryRequest, decorator: Google::Apis::SlidesV1::UpdateLineCategoryRequest::Representation
property :update_line_properties, as: 'updateLineProperties', class: Google::Apis::SlidesV1::UpdateLinePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateLinePropertiesRequest::Representation
property :update_page_element_alt_text, as: 'updatePageElementAltText', class: Google::Apis::SlidesV1::UpdatePageElementAltTextRequest, decorator: Google::Apis::SlidesV1::UpdatePageElementAltTextRequest::Representation
@@ -1636,6 +1672,13 @@ module Google
end
end
class RerouteLineRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :object_id_prop, as: 'objectId'
end
end
class Response
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2025,6 +2068,14 @@ module Google
end
end
class UpdateLineCategoryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_category, as: 'lineCategory'
property :object_id_prop, as: 'objectId'
end
end
class UpdateLinePropertiesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation