# 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.Response do @moduledoc """ A single response from an update. ## Attributes - addBanding (AddBandingResponse): A reply from adding a banded range. Defaults to: `null`. - addChart (AddChartResponse): A reply from adding a chart. Defaults to: `null`. - addFilterView (AddFilterViewResponse): A reply from adding a filter view. Defaults to: `null`. - addNamedRange (AddNamedRangeResponse): A reply from adding a named range. Defaults to: `null`. - addProtectedRange (AddProtectedRangeResponse): A reply from adding a protected range. Defaults to: `null`. - addSheet (AddSheetResponse): A reply from adding a sheet. Defaults to: `null`. - deleteConditionalFormatRule (DeleteConditionalFormatRuleResponse): A reply from deleting a conditional format rule. Defaults to: `null`. - duplicateFilterView (DuplicateFilterViewResponse): A reply from duplicating a filter view. Defaults to: `null`. - duplicateSheet (DuplicateSheetResponse): A reply from duplicating a sheet. Defaults to: `null`. - findReplace (FindReplaceResponse): A reply from doing a find/replace. Defaults to: `null`. - updateConditionalFormatRule (UpdateConditionalFormatRuleResponse): A reply from updating a conditional format rule. Defaults to: `null`. - updateEmbeddedObjectPosition (UpdateEmbeddedObjectPositionResponse): A reply from updating an embedded object's position. Defaults to: `null`. """ defstruct [ :"addBanding", :"addChart", :"addFilterView", :"addNamedRange", :"addProtectedRange", :"addSheet", :"deleteConditionalFormatRule", :"duplicateFilterView", :"duplicateSheet", :"findReplace", :"updateConditionalFormatRule", :"updateEmbeddedObjectPosition" ] end defimpl Poison.Decoder, for: GoogleApi.Sheets.V4.Model.Response do import GoogleApi.Sheets.V4.Deserializer def decode(value, options) do value |> deserialize(:"addBanding", :struct, GoogleApi.Sheets.V4.Model.AddBandingResponse, options) |> deserialize(:"addChart", :struct, GoogleApi.Sheets.V4.Model.AddChartResponse, options) |> deserialize(:"addFilterView", :struct, GoogleApi.Sheets.V4.Model.AddFilterViewResponse, options) |> deserialize(:"addNamedRange", :struct, GoogleApi.Sheets.V4.Model.AddNamedRangeResponse, options) |> deserialize(:"addProtectedRange", :struct, GoogleApi.Sheets.V4.Model.AddProtectedRangeResponse, options) |> deserialize(:"addSheet", :struct, GoogleApi.Sheets.V4.Model.AddSheetResponse, options) |> deserialize(:"deleteConditionalFormatRule", :struct, GoogleApi.Sheets.V4.Model.DeleteConditionalFormatRuleResponse, options) |> deserialize(:"duplicateFilterView", :struct, GoogleApi.Sheets.V4.Model.DuplicateFilterViewResponse, options) |> deserialize(:"duplicateSheet", :struct, GoogleApi.Sheets.V4.Model.DuplicateSheetResponse, options) |> deserialize(:"findReplace", :struct, GoogleApi.Sheets.V4.Model.FindReplaceResponse, options) |> deserialize(:"updateConditionalFormatRule", :struct, GoogleApi.Sheets.V4.Model.UpdateConditionalFormatRuleResponse, options) |> deserialize(:"updateEmbeddedObjectPosition", :struct, GoogleApi.Sheets.V4.Model.UpdateEmbeddedObjectPositionResponse, options) end end defimpl Poison.Encoder, for: GoogleApi.Sheets.V4.Model.Response do def encode(value, options) do GoogleApi.Sheets.V4.Deserializer.serialize_non_nil(value, options) end end