# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Slides.V1.Model.Request do @moduledoc """ A single kind of update to apply to a presentation. ## Attributes - createImage (CreateImageRequest): Creates an image. Defaults to: `null`. - createLine (CreateLineRequest): Creates a line. Defaults to: `null`. - createParagraphBullets (CreateParagraphBulletsRequest): Creates bullets for paragraphs. Defaults to: `null`. - createShape (CreateShapeRequest): Creates a new shape. Defaults to: `null`. - createSheetsChart (CreateSheetsChartRequest): Creates an embedded Google Sheets chart. Defaults to: `null`. - createSlide (CreateSlideRequest): Creates a new slide. Defaults to: `null`. - createTable (CreateTableRequest): Creates a new table. Defaults to: `null`. - createVideo (CreateVideoRequest): Creates a video. Defaults to: `null`. - deleteObject (DeleteObjectRequest): Deletes a page or page element from the presentation. Defaults to: `null`. - deleteParagraphBullets (DeleteParagraphBulletsRequest): Deletes bullets from paragraphs. Defaults to: `null`. - deleteTableColumn (DeleteTableColumnRequest): Deletes a column from a table. Defaults to: `null`. - deleteTableRow (DeleteTableRowRequest): Deletes a row from a table. Defaults to: `null`. - deleteText (DeleteTextRequest): Deletes text from a shape or a table cell. Defaults to: `null`. - duplicateObject (DuplicateObjectRequest): Duplicates a slide or page element. Defaults to: `null`. - insertTableColumns (InsertTableColumnsRequest): Inserts columns into a table. Defaults to: `null`. - insertTableRows (InsertTableRowsRequest): Inserts rows into a table. Defaults to: `null`. - insertText (InsertTextRequest): Inserts text into a shape or table cell. Defaults to: `null`. - refreshSheetsChart (RefreshSheetsChartRequest): Refreshes a Google Sheets chart. Defaults to: `null`. - replaceAllShapesWithImage (ReplaceAllShapesWithImageRequest): Replaces all shapes matching some criteria with an image. Defaults to: `null`. - replaceAllShapesWithSheetsChart (ReplaceAllShapesWithSheetsChartRequest): Replaces all shapes matching some criteria with a Google Sheets chart. Defaults to: `null`. - replaceAllText (ReplaceAllTextRequest): Replaces all instances of specified text. Defaults to: `null`. - updateImageProperties (UpdateImagePropertiesRequest): Updates the properties of an Image. Defaults to: `null`. - updateLineProperties (UpdateLinePropertiesRequest): Updates the properties of a Line. Defaults to: `null`. - updatePageElementTransform (UpdatePageElementTransformRequest): Updates the transform of a page element. Defaults to: `null`. - updatePageProperties (UpdatePagePropertiesRequest): Updates the properties of a Page. Defaults to: `null`. - updateParagraphStyle (UpdateParagraphStyleRequest): Updates the styling of paragraphs within a Shape or Table. Defaults to: `null`. - updateShapeProperties (UpdateShapePropertiesRequest): Updates the properties of a Shape. Defaults to: `null`. - updateSlidesPosition (UpdateSlidesPositionRequest): Updates the position of a set of slides in the presentation. Defaults to: `null`. - updateTableCellProperties (UpdateTableCellPropertiesRequest): Updates the properties of a TableCell. Defaults to: `null`. - updateTextStyle (UpdateTextStyleRequest): Updates the styling of text within a Shape or Table. Defaults to: `null`. - updateVideoProperties (UpdateVideoPropertiesRequest): Updates the properties of a Video. Defaults to: `null`. """ defstruct [ :"createImage", :"createLine", :"createParagraphBullets", :"createShape", :"createSheetsChart", :"createSlide", :"createTable", :"createVideo", :"deleteObject", :"deleteParagraphBullets", :"deleteTableColumn", :"deleteTableRow", :"deleteText", :"duplicateObject", :"insertTableColumns", :"insertTableRows", :"insertText", :"refreshSheetsChart", :"replaceAllShapesWithImage", :"replaceAllShapesWithSheetsChart", :"replaceAllText", :"updateImageProperties", :"updateLineProperties", :"updatePageElementTransform", :"updatePageProperties", :"updateParagraphStyle", :"updateShapeProperties", :"updateSlidesPosition", :"updateTableCellProperties", :"updateTextStyle", :"updateVideoProperties" ] end defimpl Poison.Decoder, for: GoogleApi.Slides.V1.Model.Request do import GoogleApi.Slides.V1.Deserializer def decode(value, options) do value |> deserialize(:"createImage", :struct, GoogleApi.Slides.V1.Model.CreateImageRequest, options) |> deserialize(:"createLine", :struct, GoogleApi.Slides.V1.Model.CreateLineRequest, options) |> deserialize(:"createParagraphBullets", :struct, GoogleApi.Slides.V1.Model.CreateParagraphBulletsRequest, options) |> deserialize(:"createShape", :struct, GoogleApi.Slides.V1.Model.CreateShapeRequest, options) |> deserialize(:"createSheetsChart", :struct, GoogleApi.Slides.V1.Model.CreateSheetsChartRequest, options) |> deserialize(:"createSlide", :struct, GoogleApi.Slides.V1.Model.CreateSlideRequest, options) |> deserialize(:"createTable", :struct, GoogleApi.Slides.V1.Model.CreateTableRequest, options) |> deserialize(:"createVideo", :struct, GoogleApi.Slides.V1.Model.CreateVideoRequest, options) |> deserialize(:"deleteObject", :struct, GoogleApi.Slides.V1.Model.DeleteObjectRequest, options) |> deserialize(:"deleteParagraphBullets", :struct, GoogleApi.Slides.V1.Model.DeleteParagraphBulletsRequest, options) |> deserialize(:"deleteTableColumn", :struct, GoogleApi.Slides.V1.Model.DeleteTableColumnRequest, options) |> deserialize(:"deleteTableRow", :struct, GoogleApi.Slides.V1.Model.DeleteTableRowRequest, options) |> deserialize(:"deleteText", :struct, GoogleApi.Slides.V1.Model.DeleteTextRequest, options) |> deserialize(:"duplicateObject", :struct, GoogleApi.Slides.V1.Model.DuplicateObjectRequest, options) |> deserialize(:"insertTableColumns", :struct, GoogleApi.Slides.V1.Model.InsertTableColumnsRequest, options) |> deserialize(:"insertTableRows", :struct, GoogleApi.Slides.V1.Model.InsertTableRowsRequest, options) |> deserialize(:"insertText", :struct, GoogleApi.Slides.V1.Model.InsertTextRequest, options) |> deserialize(:"refreshSheetsChart", :struct, GoogleApi.Slides.V1.Model.RefreshSheetsChartRequest, options) |> deserialize(:"replaceAllShapesWithImage", :struct, GoogleApi.Slides.V1.Model.ReplaceAllShapesWithImageRequest, options) |> deserialize(:"replaceAllShapesWithSheetsChart", :struct, GoogleApi.Slides.V1.Model.ReplaceAllShapesWithSheetsChartRequest, options) |> deserialize(:"replaceAllText", :struct, GoogleApi.Slides.V1.Model.ReplaceAllTextRequest, options) |> deserialize(:"updateImageProperties", :struct, GoogleApi.Slides.V1.Model.UpdateImagePropertiesRequest, options) |> deserialize(:"updateLineProperties", :struct, GoogleApi.Slides.V1.Model.UpdateLinePropertiesRequest, options) |> deserialize(:"updatePageElementTransform", :struct, GoogleApi.Slides.V1.Model.UpdatePageElementTransformRequest, options) |> deserialize(:"updatePageProperties", :struct, GoogleApi.Slides.V1.Model.UpdatePagePropertiesRequest, options) |> deserialize(:"updateParagraphStyle", :struct, GoogleApi.Slides.V1.Model.UpdateParagraphStyleRequest, options) |> deserialize(:"updateShapeProperties", :struct, GoogleApi.Slides.V1.Model.UpdateShapePropertiesRequest, options) |> deserialize(:"updateSlidesPosition", :struct, GoogleApi.Slides.V1.Model.UpdateSlidesPositionRequest, options) |> deserialize(:"updateTableCellProperties", :struct, GoogleApi.Slides.V1.Model.UpdateTableCellPropertiesRequest, options) |> deserialize(:"updateTextStyle", :struct, GoogleApi.Slides.V1.Model.UpdateTextStyleRequest, options) |> deserialize(:"updateVideoProperties", :struct, GoogleApi.Slides.V1.Model.UpdateVideoPropertiesRequest, options) end end defimpl Poison.Encoder, for: GoogleApi.Slides.V1.Model.Request do def encode(value, options) do GoogleApi.Slides.V1.Deserializer.serialize_non_nil(value, options) end end