Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Docs client #10948

Merged
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
2 changes: 1 addition & 1 deletion clients/docs/lib/google_api/docs/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Docs.V1 do
API client metadata for GoogleApi.Docs.V1.
"""

@discovery_revision "20221004"
@discovery_revision "20240305"

def discovery_revision(), do: @discovery_revision
end
3 changes: 3 additions & 0 deletions clients/docs/lib/google_api/docs/v1/model/document_style.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule GoogleApi.Docs.V1.Model.DocumentStyle do
* `evenPageHeaderId` (*type:* `String.t`, *default:* `nil`) - The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there's no even page header. This property is read-only.
* `firstPageFooterId` (*type:* `String.t`, *default:* `nil`) - The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there's no first page footer. This property is read-only.
* `firstPageHeaderId` (*type:* `String.t`, *default:* `nil`) - The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there's no first page header. This property is read-only.
* `flipPageOrientation` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape.
* `marginBottom` (*type:* `GoogleApi.Docs.V1.Model.Dimension.t`, *default:* `nil`) - The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles.
* `marginFooter` (*type:* `GoogleApi.Docs.V1.Model.Dimension.t`, *default:* `nil`) - The amount of space between the bottom of the page and the contents of the footer.
* `marginHeader` (*type:* `GoogleApi.Docs.V1.Model.Dimension.t`, *default:* `nil`) - The amount of space between the top of the page and the contents of the header.
Expand All @@ -51,6 +52,7 @@ defmodule GoogleApi.Docs.V1.Model.DocumentStyle do
:evenPageHeaderId => String.t() | nil,
:firstPageFooterId => String.t() | nil,
:firstPageHeaderId => String.t() | nil,
:flipPageOrientation => boolean() | nil,
:marginBottom => GoogleApi.Docs.V1.Model.Dimension.t() | nil,
:marginFooter => GoogleApi.Docs.V1.Model.Dimension.t() | nil,
:marginHeader => GoogleApi.Docs.V1.Model.Dimension.t() | nil,
Expand All @@ -71,6 +73,7 @@ defmodule GoogleApi.Docs.V1.Model.DocumentStyle do
field(:evenPageHeaderId)
field(:firstPageFooterId)
field(:firstPageHeaderId)
field(:flipPageOrientation)
field(:marginBottom, as: GoogleApi.Docs.V1.Model.Dimension)
field(:marginFooter, as: GoogleApi.Docs.V1.Model.Dimension)
field(:marginHeader, as: GoogleApi.Docs.V1.Model.Dimension)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState do
* `evenPageHeaderIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to even_page_header_id.
* `firstPageFooterIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to first_page_footer_id.
* `firstPageHeaderIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to first_page_header_id.
* `flipPageOrientationSuggested` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if there was a suggested change to flip_page_orientation.
* `marginBottomSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_bottom.
* `marginFooterSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_footer.
* `marginHeaderSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_header.
Expand All @@ -52,6 +53,7 @@ defmodule GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState do
:evenPageHeaderIdSuggested => boolean() | nil,
:firstPageFooterIdSuggested => boolean() | nil,
:firstPageHeaderIdSuggested => boolean() | nil,
:flipPageOrientationSuggested => boolean() | nil,
:marginBottomSuggested => boolean() | nil,
:marginFooterSuggested => boolean() | nil,
:marginHeaderSuggested => boolean() | nil,
Expand All @@ -72,6 +74,7 @@ defmodule GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState do
field(:evenPageHeaderIdSuggested)
field(:firstPageFooterIdSuggested)
field(:firstPageHeaderIdSuggested)
field(:flipPageOrientationSuggested)
field(:marginBottomSuggested)
field(:marginFooterSuggested)
field(:marginHeaderSuggested)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule GoogleApi.Docs.V1.Model.InsertInlineImageRequest do
* `endOfSegmentLocation` (*type:* `GoogleApi.Docs.V1.Model.EndOfSegmentLocation.t`, *default:* `nil`) - Inserts the text at the end of a header, footer or the document body. Inline images cannot be inserted inside a footnote.
* `location` (*type:* `GoogleApi.Docs.V1.Model.Location.t`, *default:* `nil`) - Inserts the image at a specific index in the document. The image must be inserted inside the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between the table and its preceding paragraph). Inline images cannot be inserted inside a footnote or equation.
* `objectSize` (*type:* `GoogleApi.Docs.V1.Model.Size.t`, *default:* `nil`) - The size that the image should appear as in the document. This property is optional and the final size of the image in the document is determined by the following rules: * If neither width nor height is specified, then a default size of the image is calculated based on its resolution. * If one dimension is specified then the other dimension is calculated to preserve the aspect ratio of the image. * If both width and height are specified, the image is scaled to fit within the provided dimensions while maintaining its aspect ratio.
* `uri` (*type:* `String.t`, *default:* `nil`) - The image URI. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URI can be at most 2 kB in length. The URI itself is saved with the image, and exposed via the ImageProperties.content_uri field.
* `uri` (*type:* `String.t`, *default:* `nil`) - The image URI. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. The provided URI must be publicly accessible and at most 2 kB in length. The URI itself is saved with the image, and exposed via the ImageProperties.content_uri field.
"""

use GoogleApi.Gax.ModelBase
Expand Down
3 changes: 3 additions & 0 deletions clients/docs/lib/google_api/docs/v1/model/section_style.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ defmodule GoogleApi.Docs.V1.Model.SectionStyle do
* `evenPageHeaderId` (*type:* `String.t`, *default:* `nil`) - The ID of the header used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the headers on even pages in the section. If it is false, the headers on even pages use the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_header_id. This property is read-only.
* `firstPageFooterId` (*type:* `String.t`, *default:* `nil`) - The ID of the footer used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the footer on the first page of the section. If it's false, the footer on the first page of the section uses the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_footer_id. This property is read-only.
* `firstPageHeaderId` (*type:* `String.t`, *default:* `nil`) - The ID of the header used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the header on the first page of the section. If it's false, the header on the first page of the section uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_header_id. This property is read-only.
* `flipPageOrientation` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether to flip the dimensions of DocumentStyle's page_size for this section, which allows changing the page orientation between portrait and landscape. If unset, the value inherits from DocumentStyle's flip_page_orientation. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.
* `marginBottom` (*type:* `GoogleApi.Docs.V1.Model.Dimension.t`, *default:* `nil`) - The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.
* `marginFooter` (*type:* `GoogleApi.Docs.V1.Model.Dimension.t`, *default:* `nil`) - The footer margin of the section. If unset, the value defaults to margin_footer from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a footer margin is being respected for this section When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.
* `marginHeader` (*type:* `GoogleApi.Docs.V1.Model.Dimension.t`, *default:* `nil`) - The header margin of the section. If unset, the value defaults to margin_header from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a header margin is being respected for this section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.
Expand All @@ -53,6 +54,7 @@ defmodule GoogleApi.Docs.V1.Model.SectionStyle do
:evenPageHeaderId => String.t() | nil,
:firstPageFooterId => String.t() | nil,
:firstPageHeaderId => String.t() | nil,
:flipPageOrientation => boolean() | nil,
:marginBottom => GoogleApi.Docs.V1.Model.Dimension.t() | nil,
:marginFooter => GoogleApi.Docs.V1.Model.Dimension.t() | nil,
:marginHeader => GoogleApi.Docs.V1.Model.Dimension.t() | nil,
Expand All @@ -73,6 +75,7 @@ defmodule GoogleApi.Docs.V1.Model.SectionStyle do
field(:evenPageHeaderId)
field(:firstPageFooterId)
field(:firstPageHeaderId)
field(:flipPageOrientation)
field(:marginBottom, as: GoogleApi.Docs.V1.Model.Dimension)
field(:marginFooter, as: GoogleApi.Docs.V1.Model.Dimension)
field(:marginHeader, as: GoogleApi.Docs.V1.Model.Dimension)
Expand Down
Loading