# 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`. - addDimensionGroup (AddDimensionGroupRequest): Creates a group over the specified range. 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`. - createDeveloperMetadata (CreateDeveloperMetadataRequest): Creates new developer metadata 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`. - deleteDeveloperMetadata (DeleteDeveloperMetadataRequest): Deletes developer metadata Defaults to: `null`. - deleteDimension (DeleteDimensionRequest): Deletes rows or columns in a sheet. Defaults to: `null`. - deleteDimensionGroup (DeleteDimensionGroupRequest): Deletes a group over the specified range. 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`. - updateDeveloperMetadata (UpdateDeveloperMetadataRequest): Updates an existing developer metadata entry Defaults to: `null`. - updateDimensionGroup (UpdateDimensionGroupRequest): Updates the state of the specified group. 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`. """ @type t :: %__MODULE__{ addBanding: GoogleApi.Sheets.V4.Model.AddBandingRequest.t(), addChart: GoogleApi.Sheets.V4.Model.AddChartRequest.t(), addConditionalFormatRule: GoogleApi.Sheets.V4.Model.AddConditionalFormatRuleRequest.t(), addDimensionGroup: GoogleApi.Sheets.V4.Model.AddDimensionGroupRequest.t(), addFilterView: GoogleApi.Sheets.V4.Model.AddFilterViewRequest.t(), addNamedRange: GoogleApi.Sheets.V4.Model.AddNamedRangeRequest.t(), addProtectedRange: GoogleApi.Sheets.V4.Model.AddProtectedRangeRequest.t(), addSheet: GoogleApi.Sheets.V4.Model.AddSheetRequest.t(), appendCells: GoogleApi.Sheets.V4.Model.AppendCellsRequest.t(), appendDimension: GoogleApi.Sheets.V4.Model.AppendDimensionRequest.t(), autoFill: GoogleApi.Sheets.V4.Model.AutoFillRequest.t(), autoResizeDimensions: GoogleApi.Sheets.V4.Model.AutoResizeDimensionsRequest.t(), clearBasicFilter: GoogleApi.Sheets.V4.Model.ClearBasicFilterRequest.t(), copyPaste: GoogleApi.Sheets.V4.Model.CopyPasteRequest.t(), createDeveloperMetadata: GoogleApi.Sheets.V4.Model.CreateDeveloperMetadataRequest.t(), cutPaste: GoogleApi.Sheets.V4.Model.CutPasteRequest.t(), deleteBanding: GoogleApi.Sheets.V4.Model.DeleteBandingRequest.t(), deleteConditionalFormatRule: GoogleApi.Sheets.V4.Model.DeleteConditionalFormatRuleRequest.t(), deleteDeveloperMetadata: GoogleApi.Sheets.V4.Model.DeleteDeveloperMetadataRequest.t(), deleteDimension: GoogleApi.Sheets.V4.Model.DeleteDimensionRequest.t(), deleteDimensionGroup: GoogleApi.Sheets.V4.Model.DeleteDimensionGroupRequest.t(), deleteEmbeddedObject: GoogleApi.Sheets.V4.Model.DeleteEmbeddedObjectRequest.t(), deleteFilterView: GoogleApi.Sheets.V4.Model.DeleteFilterViewRequest.t(), deleteNamedRange: GoogleApi.Sheets.V4.Model.DeleteNamedRangeRequest.t(), deleteProtectedRange: GoogleApi.Sheets.V4.Model.DeleteProtectedRangeRequest.t(), deleteRange: GoogleApi.Sheets.V4.Model.DeleteRangeRequest.t(), deleteSheet: GoogleApi.Sheets.V4.Model.DeleteSheetRequest.t(), duplicateFilterView: GoogleApi.Sheets.V4.Model.DuplicateFilterViewRequest.t(), duplicateSheet: GoogleApi.Sheets.V4.Model.DuplicateSheetRequest.t(), findReplace: GoogleApi.Sheets.V4.Model.FindReplaceRequest.t(), insertDimension: GoogleApi.Sheets.V4.Model.InsertDimensionRequest.t(), insertRange: GoogleApi.Sheets.V4.Model.InsertRangeRequest.t(), mergeCells: GoogleApi.Sheets.V4.Model.MergeCellsRequest.t(), moveDimension: GoogleApi.Sheets.V4.Model.MoveDimensionRequest.t(), pasteData: GoogleApi.Sheets.V4.Model.PasteDataRequest.t(), randomizeRange: GoogleApi.Sheets.V4.Model.RandomizeRangeRequest.t(), repeatCell: GoogleApi.Sheets.V4.Model.RepeatCellRequest.t(), setBasicFilter: GoogleApi.Sheets.V4.Model.SetBasicFilterRequest.t(), setDataValidation: GoogleApi.Sheets.V4.Model.SetDataValidationRequest.t(), sortRange: GoogleApi.Sheets.V4.Model.SortRangeRequest.t(), textToColumns: GoogleApi.Sheets.V4.Model.TextToColumnsRequest.t(), unmergeCells: GoogleApi.Sheets.V4.Model.UnmergeCellsRequest.t(), updateBanding: GoogleApi.Sheets.V4.Model.UpdateBandingRequest.t(), updateBorders: GoogleApi.Sheets.V4.Model.UpdateBordersRequest.t(), updateCells: GoogleApi.Sheets.V4.Model.UpdateCellsRequest.t(), updateChartSpec: GoogleApi.Sheets.V4.Model.UpdateChartSpecRequest.t(), updateConditionalFormatRule: GoogleApi.Sheets.V4.Model.UpdateConditionalFormatRuleRequest.t(), updateDeveloperMetadata: GoogleApi.Sheets.V4.Model.UpdateDeveloperMetadataRequest.t(), updateDimensionGroup: GoogleApi.Sheets.V4.Model.UpdateDimensionGroupRequest.t(), updateDimensionProperties: GoogleApi.Sheets.V4.Model.UpdateDimensionPropertiesRequest.t(), updateEmbeddedObjectPosition: GoogleApi.Sheets.V4.Model.UpdateEmbeddedObjectPositionRequest.t(), updateFilterView: GoogleApi.Sheets.V4.Model.UpdateFilterViewRequest.t(), updateNamedRange: GoogleApi.Sheets.V4.Model.UpdateNamedRangeRequest.t(), updateProtectedRange: GoogleApi.Sheets.V4.Model.UpdateProtectedRangeRequest.t(), updateSheetProperties: GoogleApi.Sheets.V4.Model.UpdateSheetPropertiesRequest.t(), updateSpreadsheetProperties: GoogleApi.Sheets.V4.Model.UpdateSpreadsheetPropertiesRequest.t() } defstruct [ :addBanding, :addChart, :addConditionalFormatRule, :addDimensionGroup, :addFilterView, :addNamedRange, :addProtectedRange, :addSheet, :appendCells, :appendDimension, :autoFill, :autoResizeDimensions, :clearBasicFilter, :copyPaste, :createDeveloperMetadata, :cutPaste, :deleteBanding, :deleteConditionalFormatRule, :deleteDeveloperMetadata, :deleteDimension, :deleteDimensionGroup, :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, :updateDeveloperMetadata, :updateDimensionGroup, :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( :addDimensionGroup, :struct, GoogleApi.Sheets.V4.Model.AddDimensionGroupRequest, 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( :createDeveloperMetadata, :struct, GoogleApi.Sheets.V4.Model.CreateDeveloperMetadataRequest, 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( :deleteDeveloperMetadata, :struct, GoogleApi.Sheets.V4.Model.DeleteDeveloperMetadataRequest, options ) |> deserialize( :deleteDimension, :struct, GoogleApi.Sheets.V4.Model.DeleteDimensionRequest, options ) |> deserialize( :deleteDimensionGroup, :struct, GoogleApi.Sheets.V4.Model.DeleteDimensionGroupRequest, 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( :updateDeveloperMetadata, :struct, GoogleApi.Sheets.V4.Model.UpdateDeveloperMetadataRequest, options ) |> deserialize( :updateDimensionGroup, :struct, GoogleApi.Sheets.V4.Model.UpdateDimensionGroupRequest, 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