Skip to content

Commit b9a6fa6

Browse files
feat: Automated regeneration of docs v1 client (googleapis#25153)
Auto-created at 2025-12-07 10:52:32 +0000 using the toys pull request generator.
1 parent 0963d0c commit b9a6fa6

File tree

5 files changed

+159
-2
lines changed

5 files changed

+159
-2
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244024,6 +244024,13 @@
244024244024
"/docs:v1/CropPropertiesSuggestionState/offsetLeftSuggested": offset_left_suggested
244025244025
"/docs:v1/CropPropertiesSuggestionState/offsetRightSuggested": offset_right_suggested
244026244026
"/docs:v1/CropPropertiesSuggestionState/offsetTopSuggested": offset_top_suggested
244027+
"/docs:v1/DateElementProperties": date_element_properties
244028+
"/docs:v1/DateElementProperties/dateFormat": date_format
244029+
"/docs:v1/DateElementProperties/displayText": display_text
244030+
"/docs:v1/DateElementProperties/locale": locale
244031+
"/docs:v1/DateElementProperties/timeFormat": time_format
244032+
"/docs:v1/DateElementProperties/timeZoneId": time_zone_id
244033+
"/docs:v1/DateElementProperties/timestamp": timestamp
244027244034
"/docs:v1/DeleteContentRangeRequest": delete_content_range_request
244028244035
"/docs:v1/DeleteContentRangeRequest/range": range
244029244036
"/docs:v1/DeleteFooterRequest": delete_footer_request
@@ -244255,6 +244262,10 @@
244255244262
"/docs:v1/InlineObjectProperties/embeddedObject": embedded_object
244256244263
"/docs:v1/InlineObjectPropertiesSuggestionState": inline_object_properties_suggestion_state
244257244264
"/docs:v1/InlineObjectPropertiesSuggestionState/embeddedObjectSuggestionState": embedded_object_suggestion_state
244265+
"/docs:v1/InsertDateRequest": insert_date_request
244266+
"/docs:v1/InsertDateRequest/dateElementProperties": date_element_properties
244267+
"/docs:v1/InsertDateRequest/endOfSegmentLocation": end_of_segment_location
244268+
"/docs:v1/InsertDateRequest/location": location
244258244269
"/docs:v1/InsertInlineImageRequest": insert_inline_image_request
244259244270
"/docs:v1/InsertInlineImageRequest/endOfSegmentLocation": end_of_segment_location
244260244271
"/docs:v1/InsertInlineImageRequest/location": location
@@ -244524,6 +244535,7 @@
244524244535
"/docs:v1/Request/deletePositionedObject": delete_positioned_object
244525244536
"/docs:v1/Request/deleteTableColumn": delete_table_column
244526244537
"/docs:v1/Request/deleteTableRow": delete_table_row
244538+
"/docs:v1/Request/insertDate": insert_date
244527244539
"/docs:v1/Request/insertInlineImage": insert_inline_image
244528244540
"/docs:v1/Request/insertPageBreak": insert_page_break
244529244541
"/docs:v1/Request/insertPerson": insert_person

generated/google-apis-docs_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-docs_v1
22

3+
### v0.39.0 (2025-12-07)
4+
5+
* Regenerated from discovery document revision 20251124
6+
37
### v0.38.0 (2025-11-16)
48

59
* Regenerated from discovery document revision 20251110

generated/google-apis-docs_v1/lib/google/apis/docs_v1/classes.rb

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,71 @@ def update!(**args)
692692
end
693693
end
694694

695+
# Properties of a DateElement.
696+
class DateElementProperties
697+
include Google::Apis::Core::Hashable
698+
699+
# Determines how the date part of the DateElement will be displayed in the
700+
# document. If unset, the default value is
701+
# DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be
702+
# formatted as `MMM d, y` in `en_US`, or locale specific equivalent.
703+
# Corresponds to the JSON property `dateFormat`
704+
# @return [String]
705+
attr_accessor :date_format
706+
707+
# Output only. Indicates how the DateElement is displayed in the document.
708+
# Corresponds to the JSON property `displayText`
709+
# @return [String]
710+
attr_accessor :display_text
711+
712+
# The locale of the document, as defined by the Unicode Common Locale Data
713+
# Repository (CLDR) project. For example, `en_US`. If unset, the default locale
714+
# is `en_US`.
715+
# Corresponds to the JSON property `locale`
716+
# @return [String]
717+
attr_accessor :locale
718+
719+
# Determines how the time part of the DateElement will be displayed in the
720+
# document. If unset, the default value is TIME_FORMAT_DISABLED, indicating no
721+
# time should be shown.
722+
# Corresponds to the JSON property `timeFormat`
723+
# @return [String]
724+
attr_accessor :time_format
725+
726+
# The time zone of the DateElement, as defined by the Unicode Common Locale Data
727+
# Repository (CLDR) project. For example, `America/New York`. If unset, the
728+
# default time zone is `etc/UTC`.
729+
# Corresponds to the JSON property `timeZoneId`
730+
# @return [String]
731+
attr_accessor :time_zone_id
732+
733+
# The point in time to represent, in seconds and nanoseconds since Unix epoch:
734+
# January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. If
735+
# time_zone_id is set, the timestamp is adjusted according to the time zone. For
736+
# example, a timestamp of `18000` with a date format of `DATE_FORMAT_ISO8601`
737+
# and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as `1970-01-01
738+
# 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`,
739+
# time format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/
740+
# New_York` will instead be `1970-01-01 12:00 AM`.
741+
# Corresponds to the JSON property `timestamp`
742+
# @return [String]
743+
attr_accessor :timestamp
744+
745+
def initialize(**args)
746+
update!(**args)
747+
end
748+
749+
# Update properties of this object
750+
def update!(**args)
751+
@date_format = args[:date_format] if args.key?(:date_format)
752+
@display_text = args[:display_text] if args.key?(:display_text)
753+
@locale = args[:locale] if args.key?(:locale)
754+
@time_format = args[:time_format] if args.key?(:time_format)
755+
@time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id)
756+
@timestamp = args[:timestamp] if args.key?(:timestamp)
757+
end
758+
end
759+
695760
# Deletes content from the document.
696761
class DeleteContentRangeRequest
697762
include Google::Apis::Core::Hashable
@@ -2354,6 +2419,38 @@ def update!(**args)
23542419
end
23552420
end
23562421

2422+
# Inserts a date at the specified location.
2423+
class InsertDateRequest
2424+
include Google::Apis::Core::Hashable
2425+
2426+
# Properties of a DateElement.
2427+
# Corresponds to the JSON property `dateElementProperties`
2428+
# @return [Google::Apis::DocsV1::DateElementProperties]
2429+
attr_accessor :date_element_properties
2430+
2431+
# Location at the end of a body, header, footer or footnote. The location is
2432+
# immediately before the last newline in the document segment.
2433+
# Corresponds to the JSON property `endOfSegmentLocation`
2434+
# @return [Google::Apis::DocsV1::EndOfSegmentLocation]
2435+
attr_accessor :end_of_segment_location
2436+
2437+
# A particular location in the document.
2438+
# Corresponds to the JSON property `location`
2439+
# @return [Google::Apis::DocsV1::Location]
2440+
attr_accessor :location
2441+
2442+
def initialize(**args)
2443+
update!(**args)
2444+
end
2445+
2446+
# Update properties of this object
2447+
def update!(**args)
2448+
@date_element_properties = args[:date_element_properties] if args.key?(:date_element_properties)
2449+
@end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
2450+
@location = args[:location] if args.key?(:location)
2451+
end
2452+
end
2453+
23572454
# Inserts an InlineObject containing an image at the given location.
23582455
class InsertInlineImageRequest
23592456
include Google::Apis::Core::Hashable
@@ -4465,6 +4562,11 @@ class Request
44654562
# @return [Google::Apis::DocsV1::DeleteTableRowRequest]
44664563
attr_accessor :delete_table_row
44674564

4565+
# Inserts a date at the specified location.
4566+
# Corresponds to the JSON property `insertDate`
4567+
# @return [Google::Apis::DocsV1::InsertDateRequest]
4568+
attr_accessor :insert_date
4569+
44684570
# Inserts an InlineObject containing an image at the given location.
44694571
# Corresponds to the JSON property `insertInlineImage`
44704572
# @return [Google::Apis::DocsV1::InsertInlineImageRequest]
@@ -4598,6 +4700,7 @@ def update!(**args)
45984700
@delete_positioned_object = args[:delete_positioned_object] if args.key?(:delete_positioned_object)
45994701
@delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
46004702
@delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
4703+
@insert_date = args[:insert_date] if args.key?(:insert_date)
46014704
@insert_inline_image = args[:insert_inline_image] if args.key?(:insert_inline_image)
46024705
@insert_page_break = args[:insert_page_break] if args.key?(:insert_page_break)
46034706
@insert_person = args[:insert_person] if args.key?(:insert_person)

generated/google-apis-docs_v1/lib/google/apis/docs_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DocsV1
1818
# Version of the google-apis-docs_v1 gem
19-
GEM_VERSION = "0.38.0"
19+
GEM_VERSION = "0.39.0"
2020

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

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251110"
25+
REVISION = "20251124"
2626
end
2727
end
2828
end

generated/google-apis-docs_v1/lib/google/apis/docs_v1/representations.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
154154
include Google::Apis::Core::JsonObjectSupport
155155
end
156156

157+
class DateElementProperties
158+
class Representation < Google::Apis::Core::JsonRepresentation; end
159+
160+
include Google::Apis::Core::JsonObjectSupport
161+
end
162+
157163
class DeleteContentRangeRequest
158164
class Representation < Google::Apis::Core::JsonRepresentation; end
159165

@@ -358,6 +364,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
358364
include Google::Apis::Core::JsonObjectSupport
359365
end
360366

367+
class InsertDateRequest
368+
class Representation < Google::Apis::Core::JsonRepresentation; end
369+
370+
include Google::Apis::Core::JsonObjectSupport
371+
end
372+
361373
class InsertInlineImageRequest
362374
class Representation < Google::Apis::Core::JsonRepresentation; end
363375

@@ -1177,6 +1189,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
11771189
end
11781190
end
11791191

1192+
class DateElementProperties
1193+
# @private
1194+
class Representation < Google::Apis::Core::JsonRepresentation
1195+
property :date_format, as: 'dateFormat'
1196+
property :display_text, as: 'displayText'
1197+
property :locale, as: 'locale'
1198+
property :time_format, as: 'timeFormat'
1199+
property :time_zone_id, as: 'timeZoneId'
1200+
property :timestamp, as: 'timestamp'
1201+
end
1202+
end
1203+
11801204
class DeleteContentRangeRequest
11811205
# @private
11821206
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1615,6 +1639,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
16151639
end
16161640
end
16171641

1642+
class InsertDateRequest
1643+
# @private
1644+
class Representation < Google::Apis::Core::JsonRepresentation
1645+
property :date_element_properties, as: 'dateElementProperties', class: Google::Apis::DocsV1::DateElementProperties, decorator: Google::Apis::DocsV1::DateElementProperties::Representation
1646+
1647+
property :end_of_segment_location, as: 'endOfSegmentLocation', class: Google::Apis::DocsV1::EndOfSegmentLocation, decorator: Google::Apis::DocsV1::EndOfSegmentLocation::Representation
1648+
1649+
property :location, as: 'location', class: Google::Apis::DocsV1::Location, decorator: Google::Apis::DocsV1::Location::Representation
1650+
1651+
end
1652+
end
1653+
16181654
class InsertInlineImageRequest
16191655
# @private
16201656
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2198,6 +2234,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
21982234

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

2237+
property :insert_date, as: 'insertDate', class: Google::Apis::DocsV1::InsertDateRequest, decorator: Google::Apis::DocsV1::InsertDateRequest::Representation
2238+
22012239
property :insert_inline_image, as: 'insertInlineImage', class: Google::Apis::DocsV1::InsertInlineImageRequest, decorator: Google::Apis::DocsV1::InsertInlineImageRequest::Representation
22022240

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

0 commit comments

Comments
 (0)