Class: Google::Apis::DocsV1::InsertPersonRequest

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

Overview

Inserts a person mention.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InsertPersonRequest

Returns a new instance of InsertPersonRequest.



2758
2759
2760
# File 'lib/google/apis/docs_v1/classes.rb', line 2758

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

Instance Attribute Details

#end_of_segment_locationGoogle::Apis::DocsV1::EndOfSegmentLocation

Location at the end of a body, header, footer or footnote. The location is immediately before the last newline in the document segment. Corresponds to the JSON property endOfSegmentLocation



2746
2747
2748
# File 'lib/google/apis/docs_v1/classes.rb', line 2746

def end_of_segment_location
  @end_of_segment_location
end

#locationGoogle::Apis::DocsV1::Location

A particular location in the document. Corresponds to the JSON property location



2751
2752
2753
# File 'lib/google/apis/docs_v1/classes.rb', line 2751

def location
  @location
end

#person_propertiesGoogle::Apis::DocsV1::PersonProperties

Properties specific to a linked Person. Corresponds to the JSON property personProperties



2756
2757
2758
# File 'lib/google/apis/docs_v1/classes.rb', line 2756

def person_properties
  @person_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2763
2764
2765
2766
2767
# File 'lib/google/apis/docs_v1/classes.rb', line 2763

def update!(**args)
  @end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
  @location = args[:location] if args.key?(:location)
  @person_properties = args[:person_properties] if args.key?(:person_properties)
end