google-apis-docs_v1 0.12.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8775b2408eece013237b2e317b167e3b9b6cd94e7372dc03a2c1d212707c8220
4
- data.tar.gz: dab6d9ad59be794634f21d19206eed9ba8fbe1159b6ec57d130ab98e3e78a98e
3
+ metadata.gz: 6d153c39d4cca9f74396eab4ef16d2b9c626e0f0d5969cfab2ba82866effe29c
4
+ data.tar.gz: d482b5005048422997b9348f322375ec3809cfa3d218a8317a0494d945d0d1ac
5
5
  SHA512:
6
- metadata.gz: 1623a6696da3036b37cdcd6388b367bd4744ee6f956d78d057ac139e9422126051a07c10743b8efdd583afd0446d5034a5d25b663762003dd335af7883f43848
7
- data.tar.gz: 80bab0a9a1b917c8e2fb335a074ba5c57a3e272166d3de54ebe13ae433301051698ef5e5b68d58f9d6e3d62ba62578387f7782934ff74651d6d4bef06305aa0d
6
+ metadata.gz: 22ddea0127e759869889975a96bea0ba342fc443ffa709143753344f540d63fceffdd2f8cde919f7332b242c2b531e92c983cc4220e3bf0e6764174bdd300f13
7
+ data.tar.gz: 7b0539e521cfaae18d2316f53ef30896453cfcaed73df0666e37eca2640f08300768b4a94de3ca6964d98fc233f79c04149ffc51be8aa1f9fd6e18d0b2b5242e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-docs_v1
2
2
 
3
+ ### v0.15.0 (2022-05-25)
4
+
5
+ * Regenerated from discovery document revision 20220520
6
+
7
+ ### v0.14.0 (2022-05-10)
8
+
9
+ * Regenerated from discovery document revision 20220505
10
+
11
+ ### v0.13.0 (2022-04-05)
12
+
13
+ * Regenerated from discovery document revision 20220331
14
+
3
15
  ### v0.12.0 (2022-03-29)
4
16
 
5
17
  * Regenerated from discovery document revision 20220325
@@ -1938,7 +1938,7 @@ module Google
1938
1938
  # @return [Google::Apis::DocsV1::InlineObjectProperties]
1939
1939
  attr_accessor :inline_object_properties
1940
1940
 
1941
- # The ID of this inline object.
1941
+ # The ID of this inline object. Can be used to update an object’s properties.
1942
1942
  # Corresponds to the JSON property `objectId`
1943
1943
  # @return [String]
1944
1944
  attr_accessor :object_id_prop
@@ -3312,6 +3312,13 @@ module Google
3312
3312
  # @return [String]
3313
3313
  attr_accessor :named_style_type
3314
3314
 
3315
+ # Whether the current paragraph should always start at the beginning of a page.
3316
+ # If unset, the value is inherited from the parent.
3317
+ # Corresponds to the JSON property `pageBreakBefore`
3318
+ # @return [Boolean]
3319
+ attr_accessor :page_break_before
3320
+ alias_method :page_break_before?, :page_break_before
3321
+
3315
3322
  # The shading of a paragraph.
3316
3323
  # Corresponds to the JSON property `shading`
3317
3324
  # @return [Google::Apis::DocsV1::Shading]
@@ -3360,6 +3367,7 @@ module Google
3360
3367
  @keep_with_next = args[:keep_with_next] if args.key?(:keep_with_next)
3361
3368
  @line_spacing = args[:line_spacing] if args.key?(:line_spacing)
3362
3369
  @named_style_type = args[:named_style_type] if args.key?(:named_style_type)
3370
+ @page_break_before = args[:page_break_before] if args.key?(:page_break_before)
3363
3371
  @shading = args[:shading] if args.key?(:shading)
3364
3372
  @space_above = args[:space_above] if args.key?(:space_above)
3365
3373
  @space_below = args[:space_below] if args.key?(:space_below)
@@ -3470,6 +3478,12 @@ module Google
3470
3478
  attr_accessor :named_style_type_suggested
3471
3479
  alias_method :named_style_type_suggested?, :named_style_type_suggested
3472
3480
 
3481
+ # Indicates if there was a suggested change to page_break_before.
3482
+ # Corresponds to the JSON property `pageBreakBeforeSuggested`
3483
+ # @return [Boolean]
3484
+ attr_accessor :page_break_before_suggested
3485
+ alias_method :page_break_before_suggested?, :page_break_before_suggested
3486
+
3473
3487
  # A mask that indicates which of the fields on the base Shading have been
3474
3488
  # changed in this suggested change. For any field set to true, there is a new
3475
3489
  # suggested value.
@@ -3517,6 +3531,7 @@ module Google
3517
3531
  @keep_with_next_suggested = args[:keep_with_next_suggested] if args.key?(:keep_with_next_suggested)
3518
3532
  @line_spacing_suggested = args[:line_spacing_suggested] if args.key?(:line_spacing_suggested)
3519
3533
  @named_style_type_suggested = args[:named_style_type_suggested] if args.key?(:named_style_type_suggested)
3534
+ @page_break_before_suggested = args[:page_break_before_suggested] if args.key?(:page_break_before_suggested)
3520
3535
  @shading_suggestion_state = args[:shading_suggestion_state] if args.key?(:shading_suggestion_state)
3521
3536
  @space_above_suggested = args[:space_above_suggested] if args.key?(:space_above_suggested)
3522
3537
  @space_below_suggested = args[:space_below_suggested] if args.key?(:space_below_suggested)
@@ -3615,6 +3630,31 @@ module Google
3615
3630
  end
3616
3631
  end
3617
3632
 
3633
+ # Updates the number of pinned table header rows in a table.
3634
+ class PinTableHeaderRowsRequest
3635
+ include Google::Apis::Core::Hashable
3636
+
3637
+ # The number of table rows to pin, where 0 implies that all rows are unpinned.
3638
+ # Corresponds to the JSON property `pinnedHeaderRowsCount`
3639
+ # @return [Fixnum]
3640
+ attr_accessor :pinned_header_rows_count
3641
+
3642
+ # A particular location in the document.
3643
+ # Corresponds to the JSON property `tableStartLocation`
3644
+ # @return [Google::Apis::DocsV1::Location]
3645
+ attr_accessor :table_start_location
3646
+
3647
+ def initialize(**args)
3648
+ update!(**args)
3649
+ end
3650
+
3651
+ # Update properties of this object
3652
+ def update!(**args)
3653
+ @pinned_header_rows_count = args[:pinned_header_rows_count] if args.key?(:pinned_header_rows_count)
3654
+ @table_start_location = args[:table_start_location] if args.key?(:table_start_location)
3655
+ end
3656
+ end
3657
+
3618
3658
  # An object that is tethered to a Paragraph and positioned relative to the
3619
3659
  # beginning of the paragraph. A PositionedObject contains an EmbeddedObject such
3620
3660
  # as an image.
@@ -3873,7 +3913,8 @@ module Google
3873
3913
  class ReplaceImageRequest
3874
3914
  include Google::Apis::Core::Hashable
3875
3915
 
3876
- # The ID of the existing image that will be replaced.
3916
+ # The ID of the existing image that will be replaced. The ID can be retrieved
3917
+ # from the response of a get request.
3877
3918
  # Corresponds to the JSON property `imageObjectId`
3878
3919
  # @return [String]
3879
3920
  attr_accessor :image_object_id
@@ -3884,10 +3925,10 @@ module Google
3884
3925
  attr_accessor :image_replace_method
3885
3926
 
3886
3927
  # The URI of the new image. The image is fetched once at insertion time and a
3887
- # copy is stored for display inside the document. Images must be less than 50MB
3888
- # in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF
3889
- # format. The provided URI can be at most 2 kB in length. The URI itself is
3890
- # saved with the image, and exposed via the ImageProperties.source_uri field.
3928
+ # copy is stored for display inside the document. Images must be less than 50MB,
3929
+ # cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The
3930
+ # provided URI can't surpass 2 KB in length. The URI is saved with the image,
3931
+ # and exposed through the ImageProperties.source_uri field.
3891
3932
  # Corresponds to the JSON property `uri`
3892
3933
  # @return [String]
3893
3934
  attr_accessor :uri
@@ -4071,6 +4112,11 @@ module Google
4071
4112
  # @return [Google::Apis::DocsV1::MergeTableCellsRequest]
4072
4113
  attr_accessor :merge_table_cells
4073
4114
 
4115
+ # Updates the number of pinned table header rows in a table.
4116
+ # Corresponds to the JSON property `pinTableHeaderRows`
4117
+ # @return [Google::Apis::DocsV1::PinTableHeaderRowsRequest]
4118
+ attr_accessor :pin_table_header_rows
4119
+
4074
4120
  # Replaces all instances of text matching a criteria with replace text.
4075
4121
  # Corresponds to the JSON property `replaceAllText`
4076
4122
  # @return [Google::Apis::DocsV1::ReplaceAllTextRequest]
@@ -4160,6 +4206,7 @@ module Google
4160
4206
  @insert_table_row = args[:insert_table_row] if args.key?(:insert_table_row)
4161
4207
  @insert_text = args[:insert_text] if args.key?(:insert_text)
4162
4208
  @merge_table_cells = args[:merge_table_cells] if args.key?(:merge_table_cells)
4209
+ @pin_table_header_rows = args[:pin_table_header_rows] if args.key?(:pin_table_header_rows)
4163
4210
  @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
4164
4211
  @replace_image = args[:replace_image] if args.key?(:replace_image)
4165
4212
  @replace_named_range_content = args[:replace_named_range_content] if args.key?(:replace_named_range_content)
@@ -5657,6 +5704,18 @@ module Google
5657
5704
  # @return [Google::Apis::DocsV1::Dimension]
5658
5705
  attr_accessor :min_row_height
5659
5706
 
5707
+ # Whether the row cannot overflow across page or column boundaries.
5708
+ # Corresponds to the JSON property `preventOverflow`
5709
+ # @return [Boolean]
5710
+ attr_accessor :prevent_overflow
5711
+ alias_method :prevent_overflow?, :prevent_overflow
5712
+
5713
+ # Whether the row is a table header.
5714
+ # Corresponds to the JSON property `tableHeader`
5715
+ # @return [Boolean]
5716
+ attr_accessor :table_header
5717
+ alias_method :table_header?, :table_header
5718
+
5660
5719
  def initialize(**args)
5661
5720
  update!(**args)
5662
5721
  end
@@ -5664,6 +5723,8 @@ module Google
5664
5723
  # Update properties of this object
5665
5724
  def update!(**args)
5666
5725
  @min_row_height = args[:min_row_height] if args.key?(:min_row_height)
5726
+ @prevent_overflow = args[:prevent_overflow] if args.key?(:prevent_overflow)
5727
+ @table_header = args[:table_header] if args.key?(:table_header)
5667
5728
  end
5668
5729
  end
5669
5730
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocsV1
18
18
  # Version of the google-apis-docs_v1 gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220325"
25
+ REVISION = "20220520"
26
26
  end
27
27
  end
28
28
  end
@@ -544,6 +544,12 @@ module Google
544
544
  include Google::Apis::Core::JsonObjectSupport
545
545
  end
546
546
 
547
+ class PinTableHeaderRowsRequest
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
547
553
  class PositionedObject
548
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
549
555
 
@@ -1857,6 +1863,7 @@ module Google
1857
1863
  property :keep_with_next, as: 'keepWithNext'
1858
1864
  property :line_spacing, as: 'lineSpacing'
1859
1865
  property :named_style_type, as: 'namedStyleType'
1866
+ property :page_break_before, as: 'pageBreakBefore'
1860
1867
  property :shading, as: 'shading', class: Google::Apis::DocsV1::Shading, decorator: Google::Apis::DocsV1::Shading::Representation
1861
1868
 
1862
1869
  property :space_above, as: 'spaceAbove', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
@@ -1888,6 +1895,7 @@ module Google
1888
1895
  property :keep_with_next_suggested, as: 'keepWithNextSuggested'
1889
1896
  property :line_spacing_suggested, as: 'lineSpacingSuggested'
1890
1897
  property :named_style_type_suggested, as: 'namedStyleTypeSuggested'
1898
+ property :page_break_before_suggested, as: 'pageBreakBeforeSuggested'
1891
1899
  property :shading_suggestion_state, as: 'shadingSuggestionState', class: Google::Apis::DocsV1::ShadingSuggestionState, decorator: Google::Apis::DocsV1::ShadingSuggestionState::Representation
1892
1900
 
1893
1901
  property :space_above_suggested, as: 'spaceAboveSuggested'
@@ -1919,6 +1927,15 @@ module Google
1919
1927
  end
1920
1928
  end
1921
1929
 
1930
+ class PinTableHeaderRowsRequest
1931
+ # @private
1932
+ class Representation < Google::Apis::Core::JsonRepresentation
1933
+ property :pinned_header_rows_count, as: 'pinnedHeaderRowsCount'
1934
+ property :table_start_location, as: 'tableStartLocation', class: Google::Apis::DocsV1::Location, decorator: Google::Apis::DocsV1::Location::Representation
1935
+
1936
+ end
1937
+ end
1938
+
1922
1939
  class PositionedObject
1923
1940
  # @private
1924
1941
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2060,6 +2077,8 @@ module Google
2060
2077
 
2061
2078
  property :merge_table_cells, as: 'mergeTableCells', class: Google::Apis::DocsV1::MergeTableCellsRequest, decorator: Google::Apis::DocsV1::MergeTableCellsRequest::Representation
2062
2079
 
2080
+ property :pin_table_header_rows, as: 'pinTableHeaderRows', class: Google::Apis::DocsV1::PinTableHeaderRowsRequest, decorator: Google::Apis::DocsV1::PinTableHeaderRowsRequest::Representation
2081
+
2063
2082
  property :replace_all_text, as: 'replaceAllText', class: Google::Apis::DocsV1::ReplaceAllTextRequest, decorator: Google::Apis::DocsV1::ReplaceAllTextRequest::Representation
2064
2083
 
2065
2084
  property :replace_image, as: 'replaceImage', class: Google::Apis::DocsV1::ReplaceImageRequest, decorator: Google::Apis::DocsV1::ReplaceImageRequest::Representation
@@ -2517,6 +2536,8 @@ module Google
2517
2536
  class Representation < Google::Apis::Core::JsonRepresentation
2518
2537
  property :min_row_height, as: 'minRowHeight', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
2519
2538
 
2539
+ property :prevent_overflow, as: 'preventOverflow'
2540
+ property :table_header, as: 'tableHeader'
2520
2541
  end
2521
2542
  end
2522
2543
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-docs_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-04 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-docs_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-docs_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Docs API V1