Class: Google::Apis::SlidesV1::UpdatePageElementAltTextRequest

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

Updates the alt text title and/or description of a page element.

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) ⇒ UpdatePageElementAltTextRequest

Returns a new instance of UpdatePageElementAltTextRequest



4496
4497
4498
# File 'generated/google/apis/slides_v1/classes.rb', line 4496

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

Instance Attribute Details

#descriptionString

The updated alt text description of the page element. If unset the existing value will be maintained. The description is exposed to screen readers and other accessibility interfaces. Only use human readable values related to the content of the page element. Corresponds to the JSON property description

Returns:

  • (String)


4481
4482
4483
# File 'generated/google/apis/slides_v1/classes.rb', line 4481

def description
  @description
end

#object_id_propString

The object ID of the page element the updates are applied to. Corresponds to the JSON property objectId

Returns:

  • (String)


4486
4487
4488
# File 'generated/google/apis/slides_v1/classes.rb', line 4486

def object_id_prop
  @object_id_prop
end

#titleString

The updated alt text title of the page element. If unset the existing value will be maintained. The title is exposed to screen readers and other accessibility interfaces. Only use human readable values related to the content of the page element. Corresponds to the JSON property title

Returns:

  • (String)


4494
4495
4496
# File 'generated/google/apis/slides_v1/classes.rb', line 4494

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4501
4502
4503
4504
4505
# File 'generated/google/apis/slides_v1/classes.rb', line 4501

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @title = args[:title] if args.key?(:title)
end