Packages
Google Slides API client library. Reads and writes Google Slides presentations.
Current section
Files
Jump to
Current section
Files
lib/google_api/slides/v1/model/page.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.Page do
@moduledoc """
A page in a presentation.
## Attributes
- layoutProperties (LayoutProperties): Layout specific properties. Only set if page_type = LAYOUT. Defaults to: `null`.
- masterProperties (MasterProperties): Master specific properties. Only set if page_type = MASTER. Defaults to: `null`.
- notesProperties (NotesProperties): Notes specific properties. Only set if page_type = NOTES. Defaults to: `null`.
- objectId (String): The object ID for this page. Object IDs used by Page and PageElement share the same namespace. Defaults to: `null`.
- pageElements (List[PageElement]): The page elements rendered on the page. Defaults to: `null`.
- pageProperties (PageProperties): The properties of the page. Defaults to: `null`.
- pageType (String): The type of the page. Defaults to: `null`.
- Enum - one of [SLIDE, MASTER, LAYOUT, NOTES, NOTES_MASTER]
- revisionId (String): The revision ID of the presentation containing this page. Can be used in update requests to assert that the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Defaults to: `null`.
- slideProperties (SlideProperties): Slide specific properties. Only set if page_type = SLIDE. Defaults to: `null`.
"""
defstruct [
:"layoutProperties",
:"masterProperties",
:"notesProperties",
:"objectId",
:"pageElements",
:"pageProperties",
:"pageType",
:"revisionId",
:"slideProperties"
]
end
defimpl Poison.Decoder, for: GoogleApi.Slides.V1.Model.Page do
import GoogleApi.Slides.V1.Deserializer
def decode(value, options) do
value
|> deserialize(:"layoutProperties", :struct, GoogleApi.Slides.V1.Model.LayoutProperties, options)
|> deserialize(:"masterProperties", :struct, GoogleApi.Slides.V1.Model.MasterProperties, options)
|> deserialize(:"notesProperties", :struct, GoogleApi.Slides.V1.Model.NotesProperties, options)
|> deserialize(:"pageElements", :list, GoogleApi.Slides.V1.Model.PageElement, options)
|> deserialize(:"pageProperties", :struct, GoogleApi.Slides.V1.Model.PageProperties, options)
|> deserialize(:"slideProperties", :struct, GoogleApi.Slides.V1.Model.SlideProperties, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Slides.V1.Model.Page do
def encode(value, options) do
GoogleApi.Slides.V1.Deserializer.serialize_non_nil(value, options)
end
end