diff --git a/api_names_out.yaml b/api_names_out.yaml index 644242280..cd0a63564 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -83728,6 +83728,7 @@ "/slides:v1/CreateImageResponse": create_image_response "/slides:v1/CreateImageResponse/objectId": object_id_prop "/slides:v1/CreateLineRequest": create_line_request +"/slides:v1/CreateLineRequest/category": category "/slides:v1/CreateLineRequest/elementProperties": element_properties "/slides:v1/CreateLineRequest/lineCategory": line_category "/slides:v1/CreateLineRequest/objectId": object_id_prop @@ -83854,16 +83855,22 @@ "/slides:v1/LayoutReference/layoutId": layout_id "/slides:v1/LayoutReference/predefinedLayout": predefined_layout "/slides:v1/Line": line +"/slides:v1/Line/lineCategory": line_category "/slides:v1/Line/lineProperties": line_properties "/slides:v1/Line/lineType": line_type +"/slides:v1/LineConnection": line_connection +"/slides:v1/LineConnection/connectedObjectId": connected_object_id +"/slides:v1/LineConnection/connectionSiteIndex": connection_site_index "/slides:v1/LineFill": line_fill "/slides:v1/LineFill/solidFill": solid_fill "/slides:v1/LineProperties": line_properties "/slides:v1/LineProperties/dashStyle": dash_style "/slides:v1/LineProperties/endArrow": end_arrow +"/slides:v1/LineProperties/endConnection": end_connection "/slides:v1/LineProperties/lineFill": line_fill "/slides:v1/LineProperties/link": link "/slides:v1/LineProperties/startArrow": start_arrow +"/slides:v1/LineProperties/startConnection": start_connection "/slides:v1/LineProperties/weight": weight "/slides:v1/Link": link "/slides:v1/Link/pageObjectId": page_object_id @@ -84025,9 +84032,11 @@ "/slides:v1/Request/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart "/slides:v1/Request/replaceAllText": replace_all_text "/slides:v1/Request/replaceImage": replace_image +"/slides:v1/Request/rerouteLine": reroute_line "/slides:v1/Request/ungroupObjects": ungroup_objects "/slides:v1/Request/unmergeTableCells": unmerge_table_cells "/slides:v1/Request/updateImageProperties": update_image_properties +"/slides:v1/Request/updateLineCategory": update_line_category "/slides:v1/Request/updateLineProperties": update_line_properties "/slides:v1/Request/updatePageElementAltText": update_page_element_alt_text "/slides:v1/Request/updatePageElementTransform": update_page_element_transform @@ -84042,6 +84051,8 @@ "/slides:v1/Request/updateTableRowProperties": update_table_row_properties "/slides:v1/Request/updateTextStyle": update_text_style "/slides:v1/Request/updateVideoProperties": update_video_properties +"/slides:v1/RerouteLineRequest": reroute_line_request +"/slides:v1/RerouteLineRequest/objectId": object_id_prop "/slides:v1/Response": response "/slides:v1/Response/createImage": create_image "/slides:v1/Response/createLine": create_line @@ -84200,6 +84211,9 @@ "/slides:v1/UpdateImagePropertiesRequest/fields": fields "/slides:v1/UpdateImagePropertiesRequest/imageProperties": image_properties "/slides:v1/UpdateImagePropertiesRequest/objectId": object_id_prop +"/slides:v1/UpdateLineCategoryRequest": update_line_category_request +"/slides:v1/UpdateLineCategoryRequest/lineCategory": line_category +"/slides:v1/UpdateLineCategoryRequest/objectId": object_id_prop "/slides:v1/UpdateLinePropertiesRequest": update_line_properties_request "/slides:v1/UpdateLinePropertiesRequest/fields": fields "/slides:v1/UpdateLinePropertiesRequest/lineProperties": line_properties diff --git a/generated/google/apis/driveactivity_v2.rb b/generated/google/apis/driveactivity_v2.rb index 991570e94..15a3069c2 100644 --- a/generated/google/apis/driveactivity_v2.rb +++ b/generated/google/apis/driveactivity_v2.rb @@ -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' diff --git a/generated/google/apis/driveactivity_v2/service.rb b/generated/google/apis/driveactivity_v2/service.rb index ecc2248a6..a5d280789 100644 --- a/generated/google/apis/driveactivity_v2/service.rb +++ b/generated/google/apis/driveactivity_v2/service.rb @@ -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' diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 5b9326c61..ecda4497e 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -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 diff --git a/generated/google/apis/slides_v1.rb b/generated/google/apis/slides_v1.rb index 2b8bcf781..184316aa3 100644 --- a/generated/google/apis/slides_v1.rb +++ b/generated/google/apis/slides_v1.rb @@ -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 diff --git a/generated/google/apis/slides_v1/classes.rb b/generated/google/apis/slides_v1/classes.rb index b5f36897b..b8301b41e 100644 --- a/generated/google/apis/slides_v1/classes.rb +++ b/generated/google/apis/slides_v1/classes.rb @@ -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 diff --git a/generated/google/apis/slides_v1/representations.rb b/generated/google/apis/slides_v1/representations.rb index 141a321bb..446355d3e 100644 --- a/generated/google/apis/slides_v1/representations.rb +++ b/generated/google/apis/slides_v1/representations.rb @@ -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