Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243651,6 +243651,13 @@
"/docs:v1/CropPropertiesSuggestionState/offsetLeftSuggested": offset_left_suggested
"/docs:v1/CropPropertiesSuggestionState/offsetRightSuggested": offset_right_suggested
"/docs:v1/CropPropertiesSuggestionState/offsetTopSuggested": offset_top_suggested
"/docs:v1/DateElementProperties": date_element_properties
"/docs:v1/DateElementProperties/dateFormat": date_format
"/docs:v1/DateElementProperties/displayText": display_text
"/docs:v1/DateElementProperties/locale": locale
"/docs:v1/DateElementProperties/timeFormat": time_format
"/docs:v1/DateElementProperties/timeZoneId": time_zone_id
"/docs:v1/DateElementProperties/timestamp": timestamp
"/docs:v1/DeleteContentRangeRequest": delete_content_range_request
"/docs:v1/DeleteContentRangeRequest/range": range
"/docs:v1/DeleteFooterRequest": delete_footer_request
Expand Down Expand Up @@ -243882,6 +243889,10 @@
"/docs:v1/InlineObjectProperties/embeddedObject": embedded_object
"/docs:v1/InlineObjectPropertiesSuggestionState": inline_object_properties_suggestion_state
"/docs:v1/InlineObjectPropertiesSuggestionState/embeddedObjectSuggestionState": embedded_object_suggestion_state
"/docs:v1/InsertDateRequest": insert_date_request
"/docs:v1/InsertDateRequest/dateElementProperties": date_element_properties
"/docs:v1/InsertDateRequest/endOfSegmentLocation": end_of_segment_location
"/docs:v1/InsertDateRequest/location": location
"/docs:v1/InsertInlineImageRequest": insert_inline_image_request
"/docs:v1/InsertInlineImageRequest/endOfSegmentLocation": end_of_segment_location
"/docs:v1/InsertInlineImageRequest/location": location
Expand Down Expand Up @@ -244151,6 +244162,7 @@
"/docs:v1/Request/deletePositionedObject": delete_positioned_object
"/docs:v1/Request/deleteTableColumn": delete_table_column
"/docs:v1/Request/deleteTableRow": delete_table_row
"/docs:v1/Request/insertDate": insert_date
"/docs:v1/Request/insertInlineImage": insert_inline_image
"/docs:v1/Request/insertPageBreak": insert_page_break
"/docs:v1/Request/insertPerson": insert_person
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-docs_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-docs_v1

### v0.39.0 (2025-12-07)

* Regenerated from discovery document revision 20251124

### v0.38.0 (2025-11-16)

* Regenerated from discovery document revision 20251110
Expand Down
103 changes: 103 additions & 0 deletions generated/google-apis-docs_v1/lib/google/apis/docs_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,71 @@ def update!(**args)
end
end

# Properties of a DateElement.
class DateElementProperties
include Google::Apis::Core::Hashable

# Determines how the date part of the DateElement will be displayed in the
# document. If unset, the default value is
# DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be
# formatted as `MMM d, y` in `en_US`, or locale specific equivalent.
# Corresponds to the JSON property `dateFormat`
# @return [String]
attr_accessor :date_format

# Output only. Indicates how the DateElement is displayed in the document.
# Corresponds to the JSON property `displayText`
# @return [String]
attr_accessor :display_text

# The locale of the document, as defined by the Unicode Common Locale Data
# Repository (CLDR) project. For example, `en_US`. If unset, the default locale
# is `en_US`.
# Corresponds to the JSON property `locale`
# @return [String]
attr_accessor :locale

# Determines how the time part of the DateElement will be displayed in the
# document. If unset, the default value is TIME_FORMAT_DISABLED, indicating no
# time should be shown.
# Corresponds to the JSON property `timeFormat`
# @return [String]
attr_accessor :time_format

# The time zone of the DateElement, as defined by the Unicode Common Locale Data
# Repository (CLDR) project. For example, `America/New York`. If unset, the
# default time zone is `etc/UTC`.
# Corresponds to the JSON property `timeZoneId`
# @return [String]
attr_accessor :time_zone_id

# The point in time to represent, in seconds and nanoseconds since Unix epoch:
# January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. If
# time_zone_id is set, the timestamp is adjusted according to the time zone. For
# example, a timestamp of `18000` with a date format of `DATE_FORMAT_ISO8601`
# and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as `1970-01-01
# 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`,
# time format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/
# New_York` will instead be `1970-01-01 12:00 AM`.
# Corresponds to the JSON property `timestamp`
# @return [String]
attr_accessor :timestamp

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

# Update properties of this object
def update!(**args)
@date_format = args[:date_format] if args.key?(:date_format)
@display_text = args[:display_text] if args.key?(:display_text)
@locale = args[:locale] if args.key?(:locale)
@time_format = args[:time_format] if args.key?(:time_format)
@time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id)
@timestamp = args[:timestamp] if args.key?(:timestamp)
end
end

# Deletes content from the document.
class DeleteContentRangeRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2354,6 +2419,38 @@ def update!(**args)
end
end

# Inserts a date at the specified location.
class InsertDateRequest
include Google::Apis::Core::Hashable

# Properties of a DateElement.
# Corresponds to the JSON property `dateElementProperties`
# @return [Google::Apis::DocsV1::DateElementProperties]
attr_accessor :date_element_properties

# 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`
# @return [Google::Apis::DocsV1::EndOfSegmentLocation]
attr_accessor :end_of_segment_location

# A particular location in the document.
# Corresponds to the JSON property `location`
# @return [Google::Apis::DocsV1::Location]
attr_accessor :location

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

# Update properties of this object
def update!(**args)
@date_element_properties = args[:date_element_properties] if args.key?(:date_element_properties)
@end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
@location = args[:location] if args.key?(:location)
end
end

# Inserts an InlineObject containing an image at the given location.
class InsertInlineImageRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -4465,6 +4562,11 @@ class Request
# @return [Google::Apis::DocsV1::DeleteTableRowRequest]
attr_accessor :delete_table_row

# Inserts a date at the specified location.
# Corresponds to the JSON property `insertDate`
# @return [Google::Apis::DocsV1::InsertDateRequest]
attr_accessor :insert_date

# Inserts an InlineObject containing an image at the given location.
# Corresponds to the JSON property `insertInlineImage`
# @return [Google::Apis::DocsV1::InsertInlineImageRequest]
Expand Down Expand Up @@ -4598,6 +4700,7 @@ def update!(**args)
@delete_positioned_object = args[:delete_positioned_object] if args.key?(:delete_positioned_object)
@delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
@delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
@insert_date = args[:insert_date] if args.key?(:insert_date)
@insert_inline_image = args[:insert_inline_image] if args.key?(:insert_inline_image)
@insert_page_break = args[:insert_page_break] if args.key?(:insert_page_break)
@insert_person = args[:insert_person] if args.key?(:insert_person)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DocsV1
# Version of the google-apis-docs_v1 gem
GEM_VERSION = "0.38.0"
GEM_VERSION = "0.39.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20251110"
REVISION = "20251124"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class DateElementProperties
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class DeleteContentRangeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -358,6 +364,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class InsertDateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class InsertInlineImageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1177,6 +1189,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class DateElementProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_format, as: 'dateFormat'
property :display_text, as: 'displayText'
property :locale, as: 'locale'
property :time_format, as: 'timeFormat'
property :time_zone_id, as: 'timeZoneId'
property :timestamp, as: 'timestamp'
end
end

class DeleteContentRangeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1615,6 +1639,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class InsertDateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_element_properties, as: 'dateElementProperties', class: Google::Apis::DocsV1::DateElementProperties, decorator: Google::Apis::DocsV1::DateElementProperties::Representation

property :end_of_segment_location, as: 'endOfSegmentLocation', class: Google::Apis::DocsV1::EndOfSegmentLocation, decorator: Google::Apis::DocsV1::EndOfSegmentLocation::Representation

property :location, as: 'location', class: Google::Apis::DocsV1::Location, decorator: Google::Apis::DocsV1::Location::Representation

end
end

class InsertInlineImageRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -2198,6 +2234,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :delete_table_row, as: 'deleteTableRow', class: Google::Apis::DocsV1::DeleteTableRowRequest, decorator: Google::Apis::DocsV1::DeleteTableRowRequest::Representation

property :insert_date, as: 'insertDate', class: Google::Apis::DocsV1::InsertDateRequest, decorator: Google::Apis::DocsV1::InsertDateRequest::Representation

property :insert_inline_image, as: 'insertInlineImage', class: Google::Apis::DocsV1::InsertInlineImageRequest, decorator: Google::Apis::DocsV1::InsertInlineImageRequest::Representation

property :insert_page_break, as: 'insertPageBreak', class: Google::Apis::DocsV1::InsertPageBreakRequest, decorator: Google::Apis::DocsV1::InsertPageBreakRequest::Representation
Expand Down