Current section

Files

Jump to
google_api_slides lib google_api slides v1 model response.ex
Raw

lib/google_api/slides/v1/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.Slides.V1.Model.Response do
@moduledoc """
A single response from an update.
## Attributes
- createImage (CreateImageResponse): The result of creating an image. Defaults to: `null`.
- createLine (CreateLineResponse): The result of creating a line. Defaults to: `null`.
- createShape (CreateShapeResponse): The result of creating a shape. Defaults to: `null`.
- createSheetsChart (CreateSheetsChartResponse): The result of creating a Google Sheets chart. Defaults to: `null`.
- createSlide (CreateSlideResponse): The result of creating a slide. Defaults to: `null`.
- createTable (CreateTableResponse): The result of creating a table. Defaults to: `null`.
- createVideo (CreateVideoResponse): The result of creating a video. Defaults to: `null`.
- duplicateObject (DuplicateObjectResponse): The result of duplicating an object. Defaults to: `null`.
- replaceAllShapesWithImage (ReplaceAllShapesWithImageResponse): The result of replacing all shapes matching some criteria with an image. Defaults to: `null`.
- replaceAllShapesWithSheetsChart (ReplaceAllShapesWithSheetsChartResponse): The result of replacing all shapes matching some criteria with a Google Sheets chart. Defaults to: `null`.
- replaceAllText (ReplaceAllTextResponse): The result of replacing text. Defaults to: `null`.
"""
defstruct [
:"createImage",
:"createLine",
:"createShape",
:"createSheetsChart",
:"createSlide",
:"createTable",
:"createVideo",
:"duplicateObject",
:"replaceAllShapesWithImage",
:"replaceAllShapesWithSheetsChart",
:"replaceAllText"
]
end
defimpl Poison.Decoder, for: GoogleApi.Slides.V1.Model.Response do
import GoogleApi.Slides.V1.Deserializer
def decode(value, options) do
value
|> deserialize(:"createImage", :struct, GoogleApi.Slides.V1.Model.CreateImageResponse, options)
|> deserialize(:"createLine", :struct, GoogleApi.Slides.V1.Model.CreateLineResponse, options)
|> deserialize(:"createShape", :struct, GoogleApi.Slides.V1.Model.CreateShapeResponse, options)
|> deserialize(:"createSheetsChart", :struct, GoogleApi.Slides.V1.Model.CreateSheetsChartResponse, options)
|> deserialize(:"createSlide", :struct, GoogleApi.Slides.V1.Model.CreateSlideResponse, options)
|> deserialize(:"createTable", :struct, GoogleApi.Slides.V1.Model.CreateTableResponse, options)
|> deserialize(:"createVideo", :struct, GoogleApi.Slides.V1.Model.CreateVideoResponse, options)
|> deserialize(:"duplicateObject", :struct, GoogleApi.Slides.V1.Model.DuplicateObjectResponse, options)
|> deserialize(:"replaceAllShapesWithImage", :struct, GoogleApi.Slides.V1.Model.ReplaceAllShapesWithImageResponse, options)
|> deserialize(:"replaceAllShapesWithSheetsChart", :struct, GoogleApi.Slides.V1.Model.ReplaceAllShapesWithSheetsChartResponse, options)
|> deserialize(:"replaceAllText", :struct, GoogleApi.Slides.V1.Model.ReplaceAllTextResponse, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Slides.V1.Model.Response do
def encode(value, options) do
GoogleApi.Slides.V1.Deserializer.serialize_non_nil(value, options)
end
end