Current section

Files

Jump to
google_api_sheets lib google_api sheets v4 model response.ex
Raw

lib/google_api/sheets/v4/model/response.ex

# 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`.
- addDimensionGroup (AddDimensionGroupResponse): A reply from adding a dimension group. 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`.
- createDeveloperMetadata (CreateDeveloperMetadataResponse): A reply from creating a developer metadata entry. Defaults to: `null`.
- deleteConditionalFormatRule (DeleteConditionalFormatRuleResponse): A reply from deleting a conditional format rule. Defaults to: `null`.
- deleteDeveloperMetadata (DeleteDeveloperMetadataResponse): A reply from deleting a developer metadata entry. Defaults to: `null`.
- deleteDimensionGroup (DeleteDimensionGroupResponse): A reply from deleting a dimension group. 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`.
- updateDeveloperMetadata (UpdateDeveloperMetadataResponse): A reply from updating a developer metadata entry. Defaults to: `null`.
- updateEmbeddedObjectPosition (UpdateEmbeddedObjectPositionResponse): A reply from updating an embedded object's position. Defaults to: `null`.
"""
@type t :: %__MODULE__{
addBanding: GoogleApi.Sheets.V4.Model.AddBandingResponse.t(),
addChart: GoogleApi.Sheets.V4.Model.AddChartResponse.t(),
addDimensionGroup: GoogleApi.Sheets.V4.Model.AddDimensionGroupResponse.t(),
addFilterView: GoogleApi.Sheets.V4.Model.AddFilterViewResponse.t(),
addNamedRange: GoogleApi.Sheets.V4.Model.AddNamedRangeResponse.t(),
addProtectedRange: GoogleApi.Sheets.V4.Model.AddProtectedRangeResponse.t(),
addSheet: GoogleApi.Sheets.V4.Model.AddSheetResponse.t(),
createDeveloperMetadata: GoogleApi.Sheets.V4.Model.CreateDeveloperMetadataResponse.t(),
deleteConditionalFormatRule:
GoogleApi.Sheets.V4.Model.DeleteConditionalFormatRuleResponse.t(),
deleteDeveloperMetadata: GoogleApi.Sheets.V4.Model.DeleteDeveloperMetadataResponse.t(),
deleteDimensionGroup: GoogleApi.Sheets.V4.Model.DeleteDimensionGroupResponse.t(),
duplicateFilterView: GoogleApi.Sheets.V4.Model.DuplicateFilterViewResponse.t(),
duplicateSheet: GoogleApi.Sheets.V4.Model.DuplicateSheetResponse.t(),
findReplace: GoogleApi.Sheets.V4.Model.FindReplaceResponse.t(),
updateConditionalFormatRule:
GoogleApi.Sheets.V4.Model.UpdateConditionalFormatRuleResponse.t(),
updateDeveloperMetadata: GoogleApi.Sheets.V4.Model.UpdateDeveloperMetadataResponse.t(),
updateEmbeddedObjectPosition:
GoogleApi.Sheets.V4.Model.UpdateEmbeddedObjectPositionResponse.t()
}
defstruct [
:addBanding,
:addChart,
:addDimensionGroup,
:addFilterView,
:addNamedRange,
:addProtectedRange,
:addSheet,
:createDeveloperMetadata,
:deleteConditionalFormatRule,
:deleteDeveloperMetadata,
:deleteDimensionGroup,
:duplicateFilterView,
:duplicateSheet,
:findReplace,
:updateConditionalFormatRule,
:updateDeveloperMetadata,
: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(
:addDimensionGroup,
:struct,
GoogleApi.Sheets.V4.Model.AddDimensionGroupResponse,
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(
:createDeveloperMetadata,
:struct,
GoogleApi.Sheets.V4.Model.CreateDeveloperMetadataResponse,
options
)
|> deserialize(
:deleteConditionalFormatRule,
:struct,
GoogleApi.Sheets.V4.Model.DeleteConditionalFormatRuleResponse,
options
)
|> deserialize(
:deleteDeveloperMetadata,
:struct,
GoogleApi.Sheets.V4.Model.DeleteDeveloperMetadataResponse,
options
)
|> deserialize(
:deleteDimensionGroup,
:struct,
GoogleApi.Sheets.V4.Model.DeleteDimensionGroupResponse,
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(
:updateDeveloperMetadata,
:struct,
GoogleApi.Sheets.V4.Model.UpdateDeveloperMetadataResponse,
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