# 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.Sheets.V4.Model.Request do @moduledoc """ A single kind of update to apply to a spreadsheet. ## Attributes - addBanding (AddBandingRequest): Adds a new banded range Defaults to: `null`. - addChart (AddChartRequest): Adds a chart. Defaults to: `null`. - addConditionalFormatRule (AddConditionalFormatRuleRequest): Adds a new conditional format rule. Defaults to: `null`. - addFilterView (AddFilterViewRequest): Adds a filter view. Defaults to: `null`. - addNamedRange (AddNamedRangeRequest): Adds a named range. Defaults to: `null`. - addProtectedRange (AddProtectedRangeRequest): Adds a protected range. Defaults to: `null`. - addSheet (AddSheetRequest): Adds a sheet. Defaults to: `null`. - appendCells (AppendCellsRequest): Appends cells after the last row with data in a sheet. Defaults to: `null`. - appendDimension (AppendDimensionRequest): Appends dimensions to the end of a sheet. Defaults to: `null`. - autoFill (AutoFillRequest): Automatically fills in more data based on existing data. Defaults to: `null`. - autoResizeDimensions (AutoResizeDimensionsRequest): Automatically resizes one or more dimensions based on the contents of the cells in that dimension. Defaults to: `null`. - clearBasicFilter (ClearBasicFilterRequest): Clears the basic filter on a sheet. Defaults to: `null`. - copyPaste (CopyPasteRequest): Copies data from one area and pastes it to another. Defaults to: `null`. - cutPaste (CutPasteRequest): Cuts data from one area and pastes it to another. Defaults to: `null`. - deleteBanding (DeleteBandingRequest): Removes a banded range Defaults to: `null`. - deleteConditionalFormatRule (DeleteConditionalFormatRuleRequest): Deletes an existing conditional format rule. Defaults to: `null`. - deleteDimension (DeleteDimensionRequest): Deletes rows or columns in a sheet. Defaults to: `null`. - deleteEmbeddedObject (DeleteEmbeddedObjectRequest): Deletes an embedded object (e.g, chart, image) in a sheet. Defaults to: `null`. - deleteFilterView (DeleteFilterViewRequest): Deletes a filter view from a sheet. Defaults to: `null`. - deleteNamedRange (DeleteNamedRangeRequest): Deletes a named range. Defaults to: `null`. - deleteProtectedRange (DeleteProtectedRangeRequest): Deletes a protected range. Defaults to: `null`. - deleteRange (DeleteRangeRequest): Deletes a range of cells from a sheet, shifting the remaining cells. Defaults to: `null`. - deleteSheet (DeleteSheetRequest): Deletes a sheet. Defaults to: `null`. - duplicateFilterView (DuplicateFilterViewRequest): Duplicates a filter view. Defaults to: `null`. - duplicateSheet (DuplicateSheetRequest): Duplicates a sheet. Defaults to: `null`. - findReplace (FindReplaceRequest): Finds and replaces occurrences of some text with other text. Defaults to: `null`. - insertDimension (InsertDimensionRequest): Inserts new rows or columns in a sheet. Defaults to: `null`. - insertRange (InsertRangeRequest): Inserts new cells in a sheet, shifting the existing cells. Defaults to: `null`. - mergeCells (MergeCellsRequest): Merges cells together. Defaults to: `null`. - moveDimension (MoveDimensionRequest): Moves rows or columns to another location in a sheet. Defaults to: `null`. - pasteData (PasteDataRequest): Pastes data (HTML or delimited) into a sheet. Defaults to: `null`. - randomizeRange (RandomizeRangeRequest): Randomizes the order of the rows in a range. Defaults to: `null`. - repeatCell (RepeatCellRequest): Repeats a single cell across a range. Defaults to: `null`. - setBasicFilter (SetBasicFilterRequest): Sets the basic filter on a sheet. Defaults to: `null`. - setDataValidation (SetDataValidationRequest): Sets data validation for one or more cells. Defaults to: `null`. - sortRange (SortRangeRequest): Sorts data in a range. Defaults to: `null`. - textToColumns (TextToColumnsRequest): Converts a column of text into many columns of text. Defaults to: `null`. - unmergeCells (UnmergeCellsRequest): Unmerges merged cells. Defaults to: `null`. - updateBanding (UpdateBandingRequest): Updates a banded range Defaults to: `null`. - updateBorders (UpdateBordersRequest): Updates the borders in a range of cells. Defaults to: `null`. - updateCells (UpdateCellsRequest): Updates many cells at once. Defaults to: `null`. - updateChartSpec (UpdateChartSpecRequest): Updates a chart's specifications. Defaults to: `null`. - updateConditionalFormatRule (UpdateConditionalFormatRuleRequest): Updates an existing conditional format rule. Defaults to: `null`. - updateDimensionProperties (UpdateDimensionPropertiesRequest): Updates dimensions' properties. Defaults to: `null`. - updateEmbeddedObjectPosition (UpdateEmbeddedObjectPositionRequest): Updates an embedded object's (e.g. chart, image) position. Defaults to: `null`. - updateFilterView (UpdateFilterViewRequest): Updates the properties of a filter view. Defaults to: `null`. - updateNamedRange (UpdateNamedRangeRequest): Updates a named range. Defaults to: `null`. - updateProtectedRange (UpdateProtectedRangeRequest): Updates a protected range. Defaults to: `null`. - updateSheetProperties (UpdateSheetPropertiesRequest): Updates a sheet's properties. Defaults to: `null`. - updateSpreadsheetProperties (UpdateSpreadsheetPropertiesRequest): Updates the spreadsheet's properties. Defaults to: `null`. """ defstruct [ :"addBanding", :"addChart", :"addConditionalFormatRule", :"addFilterView", :"addNamedRange", :"addProtectedRange", :"addSheet", :"appendCells", :"appendDimension", :"autoFill", :"autoResizeDimensions", :"clearBasicFilter", :"copyPaste", :"cutPaste", :"deleteBanding", :"deleteConditionalFormatRule", :"deleteDimension", :"deleteEmbeddedObject", :"deleteFilterView", :"deleteNamedRange", :"deleteProtectedRange", :"deleteRange", :"deleteSheet", :"duplicateFilterView", :"duplicateSheet", :"findReplace", :"insertDimension", :"insertRange", :"mergeCells", :"moveDimension", :"pasteData", :"randomizeRange", :"repeatCell", :"setBasicFilter", :"setDataValidation", :"sortRange", :"textToColumns", :"unmergeCells", :"updateBanding", :"updateBorders", :"updateCells", :"updateChartSpec", :"updateConditionalFormatRule", :"updateDimensionProperties", :"updateEmbeddedObjectPosition", :"updateFilterView", :"updateNamedRange", :"updateProtectedRange", :"updateSheetProperties", :"updateSpreadsheetProperties" ] end defimpl Poison.Decoder, for: GoogleApi.Sheets.V4.Model.Request do import GoogleApi.Sheets.V4.Deserializer def decode(value, options) do value |> deserialize(:"addBanding", :struct, GoogleApi.Sheets.V4.Model.AddBandingRequest, options) |> deserialize(:"addChart", :struct, GoogleApi.Sheets.V4.Model.AddChartRequest, options) |> deserialize(:"addConditionalFormatRule", :struct, GoogleApi.Sheets.V4.Model.AddConditionalFormatRuleRequest, options) |> deserialize(:"addFilterView", :struct, GoogleApi.Sheets.V4.Model.AddFilterViewRequest, options) |> deserialize(:"addNamedRange", :struct, GoogleApi.Sheets.V4.Model.AddNamedRangeRequest, options) |> deserialize(:"addProtectedRange", :struct, GoogleApi.Sheets.V4.Model.AddProtectedRangeRequest, options) |> deserialize(:"addSheet", :struct, GoogleApi.Sheets.V4.Model.AddSheetRequest, options) |> deserialize(:"appendCells", :struct, GoogleApi.Sheets.V4.Model.AppendCellsRequest, options) |> deserialize(:"appendDimension", :struct, GoogleApi.Sheets.V4.Model.AppendDimensionRequest, options) |> deserialize(:"autoFill", :struct, GoogleApi.Sheets.V4.Model.AutoFillRequest, options) |> deserialize(:"autoResizeDimensions", :struct, GoogleApi.Sheets.V4.Model.AutoResizeDimensionsRequest, options) |> deserialize(:"clearBasicFilter", :struct, GoogleApi.Sheets.V4.Model.ClearBasicFilterRequest, options) |> deserialize(:"copyPaste", :struct, GoogleApi.Sheets.V4.Model.CopyPasteRequest, options) |> deserialize(:"cutPaste", :struct, GoogleApi.Sheets.V4.Model.CutPasteRequest, options) |> deserialize(:"deleteBanding", :struct, GoogleApi.Sheets.V4.Model.DeleteBandingRequest, options) |> deserialize(:"deleteConditionalFormatRule", :struct, GoogleApi.Sheets.V4.Model.DeleteConditionalFormatRuleRequest, options) |> deserialize(:"deleteDimension", :struct, GoogleApi.Sheets.V4.Model.DeleteDimensionRequest, options) |> deserialize(:"deleteEmbeddedObject", :struct, GoogleApi.Sheets.V4.Model.DeleteEmbeddedObjectRequest, options) |> deserialize(:"deleteFilterView", :struct, GoogleApi.Sheets.V4.Model.DeleteFilterViewRequest, options) |> deserialize(:"deleteNamedRange", :struct, GoogleApi.Sheets.V4.Model.DeleteNamedRangeRequest, options) |> deserialize(:"deleteProtectedRange", :struct, GoogleApi.Sheets.V4.Model.DeleteProtectedRangeRequest, options) |> deserialize(:"deleteRange", :struct, GoogleApi.Sheets.V4.Model.DeleteRangeRequest, options) |> deserialize(:"deleteSheet", :struct, GoogleApi.Sheets.V4.Model.DeleteSheetRequest, options) |> deserialize(:"duplicateFilterView", :struct, GoogleApi.Sheets.V4.Model.DuplicateFilterViewRequest, options) |> deserialize(:"duplicateSheet", :struct, GoogleApi.Sheets.V4.Model.DuplicateSheetRequest, options) |> deserialize(:"findReplace", :struct, GoogleApi.Sheets.V4.Model.FindReplaceRequest, options) |> deserialize(:"insertDimension", :struct, GoogleApi.Sheets.V4.Model.InsertDimensionRequest, options) |> deserialize(:"insertRange", :struct, GoogleApi.Sheets.V4.Model.InsertRangeRequest, options) |> deserialize(:"mergeCells", :struct, GoogleApi.Sheets.V4.Model.MergeCellsRequest, options) |> deserialize(:"moveDimension", :struct, GoogleApi.Sheets.V4.Model.MoveDimensionRequest, options) |> deserialize(:"pasteData", :struct, GoogleApi.Sheets.V4.Model.PasteDataRequest, options) |> deserialize(:"randomizeRange", :struct, GoogleApi.Sheets.V4.Model.RandomizeRangeRequest, options) |> deserialize(:"repeatCell", :struct, GoogleApi.Sheets.V4.Model.RepeatCellRequest, options) |> deserialize(:"setBasicFilter", :struct, GoogleApi.Sheets.V4.Model.SetBasicFilterRequest, options) |> deserialize(:"setDataValidation", :struct, GoogleApi.Sheets.V4.Model.SetDataValidationRequest, options) |> deserialize(:"sortRange", :struct, GoogleApi.Sheets.V4.Model.SortRangeRequest, options) |> deserialize(:"textToColumns", :struct, GoogleApi.Sheets.V4.Model.TextToColumnsRequest, options) |> deserialize(:"unmergeCells", :struct, GoogleApi.Sheets.V4.Model.UnmergeCellsRequest, options) |> deserialize(:"updateBanding", :struct, GoogleApi.Sheets.V4.Model.UpdateBandingRequest, options) |> deserialize(:"updateBorders", :struct, GoogleApi.Sheets.V4.Model.UpdateBordersRequest, options) |> deserialize(:"updateCells", :struct, GoogleApi.Sheets.V4.Model.UpdateCellsRequest, options) |> deserialize(:"updateChartSpec", :struct, GoogleApi.Sheets.V4.Model.UpdateChartSpecRequest, options) |> deserialize(:"updateConditionalFormatRule", :struct, GoogleApi.Sheets.V4.Model.UpdateConditionalFormatRuleRequest, options) |> deserialize(:"updateDimensionProperties", :struct, GoogleApi.Sheets.V4.Model.UpdateDimensionPropertiesRequest, options) |> deserialize(:"updateEmbeddedObjectPosition", :struct, GoogleApi.Sheets.V4.Model.UpdateEmbeddedObjectPositionRequest, options) |> deserialize(:"updateFilterView", :struct, GoogleApi.Sheets.V4.Model.UpdateFilterViewRequest, options) |> deserialize(:"updateNamedRange", :struct, GoogleApi.Sheets.V4.Model.UpdateNamedRangeRequest, options) |> deserialize(:"updateProtectedRange", :struct, GoogleApi.Sheets.V4.Model.UpdateProtectedRangeRequest, options) |> deserialize(:"updateSheetProperties", :struct, GoogleApi.Sheets.V4.Model.UpdateSheetPropertiesRequest, options) |> deserialize(:"updateSpreadsheetProperties", :struct, GoogleApi.Sheets.V4.Model.UpdateSpreadsheetPropertiesRequest, options) end end defimpl Poison.Encoder, for: GoogleApi.Sheets.V4.Model.Request do def encode(value, options) do GoogleApi.Sheets.V4.Deserializer.serialize_non_nil(value, options) end end