Class: Google::Apis::SlidesV1::Page

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

A page in a presentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Page

Returns a new instance of Page



3981
3982
3983
# File 'generated/google/apis/slides_v1/classes.rb', line 3981

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#layout_propertiesGoogle::Apis::SlidesV1::LayoutProperties

The properties of Page are only relevant for pages with page_type LAYOUT. Corresponds to the JSON property layoutProperties



3926
3927
3928
# File 'generated/google/apis/slides_v1/classes.rb', line 3926

def layout_properties
  @layout_properties
end

#notes_propertiesGoogle::Apis::SlidesV1::NotesProperties

The properties of Page that are only relevant for pages with page_type NOTES. Corresponds to the JSON property notesProperties



3937
3938
3939
# File 'generated/google/apis/slides_v1/classes.rb', line 3937

def notes_properties
  @notes_properties
end

#object_id_propString

The object ID for this page. Object IDs used by Page and PageElement share the same namespace. Corresponds to the JSON property objectId

Returns:

  • (String)


3964
3965
3966
# File 'generated/google/apis/slides_v1/classes.rb', line 3964

def object_id_prop
  @object_id_prop
end

#page_elementsArray<Google::Apis::SlidesV1::PageElement>

The page elements rendered on the page. Corresponds to the JSON property pageElements



3931
3932
3933
# File 'generated/google/apis/slides_v1/classes.rb', line 3931

def page_elements
  @page_elements
end

#page_propertiesGoogle::Apis::SlidesV1::PageProperties

The properties of the Page. The page will inherit properties from the parent page. Depending on the page type the hierarchy is defined in either SlideProperties or LayoutProperties. Corresponds to the JSON property pageProperties



3957
3958
3959
# File 'generated/google/apis/slides_v1/classes.rb', line 3957

def page_properties
  @page_properties
end

#page_typeString

The type of the page. Corresponds to the JSON property pageType

Returns:

  • (String)


3942
3943
3944
# File 'generated/google/apis/slides_v1/classes.rb', line 3942

def page_type
  @page_type
end

#revision_idString

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. Corresponds to the JSON property revisionId

Returns:

  • (String)


3979
3980
3981
# File 'generated/google/apis/slides_v1/classes.rb', line 3979

def revision_id
  @revision_id
end

#slide_propertiesGoogle::Apis::SlidesV1::SlideProperties

The properties of Page that are only relevant for pages with page_type SLIDE. Corresponds to the JSON property slideProperties



3948
3949
3950
# File 'generated/google/apis/slides_v1/classes.rb', line 3948

def slide_properties
  @slide_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
# File 'generated/google/apis/slides_v1/classes.rb', line 3986

def update!(**args)
  @layout_properties = args[:layout_properties] if args.key?(:layout_properties)
  @page_elements = args[:page_elements] if args.key?(:page_elements)
  @notes_properties = args[:notes_properties] if args.key?(:notes_properties)
  @page_type = args[:page_type] if args.key?(:page_type)
  @slide_properties = args[:slide_properties] if args.key?(:slide_properties)
  @page_properties = args[:page_properties] if args.key?(:page_properties)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end