@@ -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 )
0 commit comments