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
22 changes: 22 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245450,13 +245450,31 @@
"/docs:v1/CropPropertiesSuggestionState/offsetLeftSuggested": offset_left_suggested
"/docs:v1/CropPropertiesSuggestionState/offsetRightSuggested": offset_right_suggested
"/docs:v1/CropPropertiesSuggestionState/offsetTopSuggested": offset_top_suggested
"/docs:v1/DateElement": date_element
"/docs:v1/DateElement/dateElementProperties": date_element_properties
"/docs:v1/DateElement/dateId": date_id
"/docs:v1/DateElement/suggestedDateElementPropertiesChanges": suggested_date_element_properties_changes
"/docs:v1/DateElement/suggestedDateElementPropertiesChanges/suggested_date_element_properties_change": suggested_date_element_properties_change
"/docs:v1/DateElement/suggestedDeletionIds": suggested_deletion_ids
"/docs:v1/DateElement/suggestedDeletionIds/suggested_deletion_id": suggested_deletion_id
"/docs:v1/DateElement/suggestedInsertionIds": suggested_insertion_ids
"/docs:v1/DateElement/suggestedInsertionIds/suggested_insertion_id": suggested_insertion_id
"/docs:v1/DateElement/suggestedTextStyleChanges": suggested_text_style_changes
"/docs:v1/DateElement/suggestedTextStyleChanges/suggested_text_style_change": suggested_text_style_change
"/docs:v1/DateElement/textStyle": text_style
"/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/DateElementPropertiesSuggestionState": date_element_properties_suggestion_state
"/docs:v1/DateElementPropertiesSuggestionState/dateFormatSuggested": date_format_suggested
"/docs:v1/DateElementPropertiesSuggestionState/localeSuggested": locale_suggested
"/docs:v1/DateElementPropertiesSuggestionState/timeFormatSuggested": time_format_suggested
"/docs:v1/DateElementPropertiesSuggestionState/timeZoneIdSuggested": time_zone_id_suggested
"/docs:v1/DateElementPropertiesSuggestionState/timestampSuggested": timestamp_suggested
"/docs:v1/DeleteContentRangeRequest": delete_content_range_request
"/docs:v1/DeleteContentRangeRequest/range": range
"/docs:v1/DeleteFooterRequest": delete_footer_request
Expand Down Expand Up @@ -245832,6 +245850,7 @@
"/docs:v1/ParagraphElement": paragraph_element
"/docs:v1/ParagraphElement/autoText": auto_text
"/docs:v1/ParagraphElement/columnBreak": column_break
"/docs:v1/ParagraphElement/dateElement": date_element
"/docs:v1/ParagraphElement/endIndex": end_index
"/docs:v1/ParagraphElement/equation": equation
"/docs:v1/ParagraphElement/footnoteReference": footnote_reference
Expand Down Expand Up @@ -246069,6 +246088,9 @@
"/docs:v1/SuggestedBullet": suggested_bullet
"/docs:v1/SuggestedBullet/bullet": bullet
"/docs:v1/SuggestedBullet/bulletSuggestionState": bullet_suggestion_state
"/docs:v1/SuggestedDateElementProperties": suggested_date_element_properties
"/docs:v1/SuggestedDateElementProperties/dateElementProperties": date_element_properties
"/docs:v1/SuggestedDateElementProperties/dateElementPropertiesSuggestionState": date_element_properties_suggestion_state
"/docs:v1/SuggestedDocumentStyle": suggested_document_style
"/docs:v1/SuggestedDocumentStyle/documentStyle": document_style
"/docs:v1/SuggestedDocumentStyle/documentStyleSuggestionState": document_style_suggestion_state
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.40.0 (2025-12-21)

* Regenerated from discovery document revision 20251215

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

* Regenerated from discovery document revision 20251124
Expand Down
152 changes: 152 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,75 @@ def update!(**args)
end
end

# A date instance mentioned in a document.
class DateElement
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

# Output only. The unique ID of this date.
# Corresponds to the JSON property `dateId`
# @return [String]
attr_accessor :date_id

# The suggested changes to the date element properties, keyed by suggestion ID.
# Corresponds to the JSON property `suggestedDateElementPropertiesChanges`
# @return [Hash<String,Google::Apis::DocsV1::SuggestedDateElementProperties>]
attr_accessor :suggested_date_element_properties_changes

# IDs for suggestions that remove this date from the document. A DateElement
# might have multiple deletion IDs if, for example, multiple users suggest
# deleting it. If empty, then this date isn't suggested for deletion.
# Corresponds to the JSON property `suggestedDeletionIds`
# @return [Array<String>]
attr_accessor :suggested_deletion_ids

# IDs for suggestions that insert this date into the document. A DateElement
# might have multiple insertion IDs if it's a nested suggested change (a
# suggestion within a suggestion made by a different user, for example). If
# empty, then this date isn't a suggested insertion.
# Corresponds to the JSON property `suggestedInsertionIds`
# @return [Array<String>]
attr_accessor :suggested_insertion_ids

# The suggested text style changes to this DateElement, keyed by suggestion ID.
# Corresponds to the JSON property `suggestedTextStyleChanges`
# @return [Hash<String,Google::Apis::DocsV1::SuggestedTextStyle>]
attr_accessor :suggested_text_style_changes

# Represents the styling that can be applied to text. Inherited text styles are
# represented as unset fields in this message. A text style's parent depends on
# where the text style is defined: * The TextStyle of text in a Paragraph
# inherits from the paragraph's corresponding named style type. * The TextStyle
# on a named style inherits from the normal text named style. * The TextStyle of
# the normal text named style inherits from the default text style in the Docs
# editor. * The TextStyle on a Paragraph element that's contained in a table may
# inherit its text style from the table style. If the text style does not
# inherit from a parent, unsetting fields will revert the style to a value
# matching the defaults in the Docs editor.
# Corresponds to the JSON property `textStyle`
# @return [Google::Apis::DocsV1::TextStyle]
attr_accessor :text_style

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)
@date_id = args[:date_id] if args.key?(:date_id)
@suggested_date_element_properties_changes = args[:suggested_date_element_properties_changes] if args.key?(:suggested_date_element_properties_changes)
@suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids)
@suggested_insertion_ids = args[:suggested_insertion_ids] if args.key?(:suggested_insertion_ids)
@suggested_text_style_changes = args[:suggested_text_style_changes] if args.key?(:suggested_text_style_changes)
@text_style = args[:text_style] if args.key?(:text_style)
end
end

# Properties of a DateElement.
class DateElementProperties
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -757,6 +826,56 @@ def update!(**args)
end
end

# A mask that indicates which of the fields on the base DateElementProperties
# have been changed in this suggestion. For any field set to true, there's a new
# suggested value.
class DateElementPropertiesSuggestionState
include Google::Apis::Core::Hashable

# Indicates if there was a suggested change to date_format.
# Corresponds to the JSON property `dateFormatSuggested`
# @return [Boolean]
attr_accessor :date_format_suggested
alias_method :date_format_suggested?, :date_format_suggested

# Indicates if there was a suggested change to locale.
# Corresponds to the JSON property `localeSuggested`
# @return [Boolean]
attr_accessor :locale_suggested
alias_method :locale_suggested?, :locale_suggested

# Indicates if there was a suggested change to time_format.
# Corresponds to the JSON property `timeFormatSuggested`
# @return [Boolean]
attr_accessor :time_format_suggested
alias_method :time_format_suggested?, :time_format_suggested

# Indicates if there was a suggested change to time_zone_id.
# Corresponds to the JSON property `timeZoneIdSuggested`
# @return [Boolean]
attr_accessor :time_zone_id_suggested
alias_method :time_zone_id_suggested?, :time_zone_id_suggested

# Indicates if there was a suggested change to timestamp.
# Corresponds to the JSON property `timestampSuggested`
# @return [Boolean]
attr_accessor :timestamp_suggested
alias_method :timestamp_suggested?, :timestamp_suggested

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

# Update properties of this object
def update!(**args)
@date_format_suggested = args[:date_format_suggested] if args.key?(:date_format_suggested)
@locale_suggested = args[:locale_suggested] if args.key?(:locale_suggested)
@time_format_suggested = args[:time_format_suggested] if args.key?(:time_format_suggested)
@time_zone_id_suggested = args[:time_zone_id_suggested] if args.key?(:time_zone_id_suggested)
@timestamp_suggested = args[:timestamp_suggested] if args.key?(:timestamp_suggested)
end
end

# Deletes content from the document.
class DeleteContentRangeRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -3586,6 +3705,11 @@ class ParagraphElement
# @return [Google::Apis::DocsV1::ColumnBreak]
attr_accessor :column_break

# A date instance mentioned in a document.
# Corresponds to the JSON property `dateElement`
# @return [Google::Apis::DocsV1::DateElement]
attr_accessor :date_element

# The zero-base end index of this paragraph element, exclusive, in UTF-16 code
# units.
# Corresponds to the JSON property `endIndex`
Expand Down Expand Up @@ -3649,6 +3773,7 @@ def initialize(**args)
def update!(**args)
@auto_text = args[:auto_text] if args.key?(:auto_text)
@column_break = args[:column_break] if args.key?(:column_break)
@date_element = args[:date_element] if args.key?(:date_element)
@end_index = args[:end_index] if args.key?(:end_index)
@equation = args[:equation] if args.key?(:equation)
@footnote_reference = args[:footnote_reference] if args.key?(:footnote_reference)
Expand Down Expand Up @@ -5422,6 +5547,33 @@ def update!(**args)
end
end

# A suggested change to a DateElementProperties.
class SuggestedDateElementProperties
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

# A mask that indicates which of the fields on the base DateElementProperties
# have been changed in this suggestion. For any field set to true, there's a new
# suggested value.
# Corresponds to the JSON property `dateElementPropertiesSuggestionState`
# @return [Google::Apis::DocsV1::DateElementPropertiesSuggestionState]
attr_accessor :date_element_properties_suggestion_state

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)
@date_element_properties_suggestion_state = args[:date_element_properties_suggestion_state] if args.key?(:date_element_properties_suggestion_state)
end
end

# A suggested change to the DocumentStyle.
class SuggestedDocumentStyle
include Google::Apis::Core::Hashable
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.39.0"
GEM_VERSION = "0.40.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 = "20251124"
REVISION = "20251215"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class DateElement
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 DateElementPropertiesSuggestionState
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 @@ -754,6 +766,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

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

class DateElement
# @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 :date_id, as: 'dateId'
hash :suggested_date_element_properties_changes, as: 'suggestedDateElementPropertiesChanges', class: Google::Apis::DocsV1::SuggestedDateElementProperties, decorator: Google::Apis::DocsV1::SuggestedDateElementProperties::Representation

collection :suggested_deletion_ids, as: 'suggestedDeletionIds'
collection :suggested_insertion_ids, as: 'suggestedInsertionIds'
hash :suggested_text_style_changes, as: 'suggestedTextStyleChanges', class: Google::Apis::DocsV1::SuggestedTextStyle, decorator: Google::Apis::DocsV1::SuggestedTextStyle::Representation

property :text_style, as: 'textStyle', class: Google::Apis::DocsV1::TextStyle, decorator: Google::Apis::DocsV1::TextStyle::Representation

end
end

class DateElementProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -1201,6 +1236,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class DateElementPropertiesSuggestionState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_format_suggested, as: 'dateFormatSuggested'
property :locale_suggested, as: 'localeSuggested'
property :time_format_suggested, as: 'timeFormatSuggested'
property :time_zone_id_suggested, as: 'timeZoneIdSuggested'
property :timestamp_suggested, as: 'timestampSuggested'
end
end

class DeleteContentRangeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1982,6 +2028,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :column_break, as: 'columnBreak', class: Google::Apis::DocsV1::ColumnBreak, decorator: Google::Apis::DocsV1::ColumnBreak::Representation

property :date_element, as: 'dateElement', class: Google::Apis::DocsV1::DateElement, decorator: Google::Apis::DocsV1::DateElement::Representation

property :end_index, as: 'endIndex'
property :equation, as: 'equation', class: Google::Apis::DocsV1::Equation, decorator: Google::Apis::DocsV1::Equation::Representation

Expand Down Expand Up @@ -2470,6 +2518,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SuggestedDateElementProperties
# @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 :date_element_properties_suggestion_state, as: 'dateElementPropertiesSuggestionState', class: Google::Apis::DocsV1::DateElementPropertiesSuggestionState, decorator: Google::Apis::DocsV1::DateElementPropertiesSuggestionState::Representation

end
end

class SuggestedDocumentStyle
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down