google-apis-docs_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e375719006d08311dd02589fd5bcb7eade474f2e9d210810778c92675cdeb7c1
4
- data.tar.gz: cafecc2e3cd1c803e440a16dde874a1968ae79e4cd96fb24afa67e9b3bd6c5ee
3
+ metadata.gz: 76b84df5137818c1eaead805737b7647674af07f6bc05e17293d7b5136e2cef6
4
+ data.tar.gz: af1f66131f71dc383419004d171252321baa9ff07095e177faad7745be545b4c
5
5
  SHA512:
6
- metadata.gz: 6ea988b20e3d0106ef3d1c3920713acc14504745fcaa1f8deeb1d51ef661ab270c034b72d87d42c619499672f2c4559f2942cbaa11ea81f1ec29f5a39baedce0
7
- data.tar.gz: b71f67a14c5cea83f9c3402d9e2b57a8663864714c6f47c284919d74dfc6327942c30a514c2f9b1ca9be83f367b61ba6c086f6551c44634d1e6b89e7dbf4845d
6
+ metadata.gz: 7ee1ef2d647616a534b8ef6b57e121ae7e6aa4f0ad4c4c1f01ab027471e6bca807b3d276c36284760ac14076f40a601cb9c8ec91af8f38197683ae81d92efc86
7
+ data.tar.gz: a0cf8ba1fce118c01318b49d314b2b5f70edcfde30f7a516e2e8f65e17802c24dca7486bafd490d1f81cc89755c11195b808c550f37bb976ae841d2b55a8a113
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-docs_v1
2
2
 
3
+ ### v0.6.0 (2021-05-19)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.5.0 (2021-04-06)
8
+
9
+ * Regenerated from discovery document revision 20210323
10
+
11
+ ### v0.4.0 (2021-03-09)
12
+
13
+ * Regenerated from discovery document revision 20210302
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.3.0 (2021-03-04)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.2.0 (2021-02-17)
21
+
22
+ * Regenerated from discovery document revision 20210211
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # View and manage your Google Docs documents
32
+ # See, create, and edit all Google Docs documents you have access to
33
33
  AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'
34
34
 
35
35
  # View your Google Docs documents
@@ -38,7 +38,7 @@ module Google
38
38
  # See, edit, create, and delete all of your Google Drive files
39
39
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
40
40
 
41
- # View and manage Google Drive files and folders that you have opened or created with this app
41
+ # See, edit, create, and delete only the specific Google Drive files you use with this app
42
42
  AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
43
43
 
44
44
  # See and download all your Google Drive files
@@ -3163,6 +3163,12 @@ module Google
3163
3163
  # @return [Google::Apis::DocsV1::PageBreak]
3164
3164
  attr_accessor :page_break
3165
3165
 
3166
+ # A person or email address mentioned in a document. These mentions behave as a
3167
+ # single, immutable element containing the person's name or email address.
3168
+ # Corresponds to the JSON property `person`
3169
+ # @return [Google::Apis::DocsV1::Person]
3170
+ attr_accessor :person
3171
+
3166
3172
  # The zero-based start index of this paragraph element, in UTF-16 code units.
3167
3173
  # Corresponds to the JSON property `startIndex`
3168
3174
  # @return [Fixnum]
@@ -3187,6 +3193,7 @@ module Google
3187
3193
  @horizontal_rule = args[:horizontal_rule] if args.key?(:horizontal_rule)
3188
3194
  @inline_object_element = args[:inline_object_element] if args.key?(:inline_object_element)
3189
3195
  @page_break = args[:page_break] if args.key?(:page_break)
3196
+ @person = args[:person] if args.key?(:person)
3190
3197
  @start_index = args[:start_index] if args.key?(:start_index)
3191
3198
  @text_run = args[:text_run] if args.key?(:text_run)
3192
3199
  end
@@ -3510,6 +3517,97 @@ module Google
3510
3517
  end
3511
3518
  end
3512
3519
 
3520
+ # A person or email address mentioned in a document. These mentions behave as a
3521
+ # single, immutable element containing the person's name or email address.
3522
+ class Person
3523
+ include Google::Apis::Core::Hashable
3524
+
3525
+ # Output only. The unique ID of this link.
3526
+ # Corresponds to the JSON property `personId`
3527
+ # @return [String]
3528
+ attr_accessor :person_id
3529
+
3530
+ # Properties specific to a linked Person.
3531
+ # Corresponds to the JSON property `personProperties`
3532
+ # @return [Google::Apis::DocsV1::PersonProperties]
3533
+ attr_accessor :person_properties
3534
+
3535
+ # IDs for suggestions that remove this person link from the document. A Person
3536
+ # might have multiple deletion IDs if, for example, multiple users suggest to
3537
+ # delete it. If empty, then this person link isn't suggested for deletion.
3538
+ # Corresponds to the JSON property `suggestedDeletionIds`
3539
+ # @return [Array<String>]
3540
+ attr_accessor :suggested_deletion_ids
3541
+
3542
+ # IDs for suggestions that insert this person link into the document. A Person
3543
+ # might have multiple insertion IDs if it is a nested suggested change (a
3544
+ # suggestion within a suggestion made by a different user, for example). If
3545
+ # empty, then this person link isn't a suggested insertion.
3546
+ # Corresponds to the JSON property `suggestedInsertionIds`
3547
+ # @return [Array<String>]
3548
+ attr_accessor :suggested_insertion_ids
3549
+
3550
+ # The suggested text style changes to this Person, keyed by suggestion ID.
3551
+ # Corresponds to the JSON property `suggestedTextStyleChanges`
3552
+ # @return [Hash<String,Google::Apis::DocsV1::SuggestedTextStyle>]
3553
+ attr_accessor :suggested_text_style_changes
3554
+
3555
+ # Represents the styling that can be applied to text. Inherited text styles are
3556
+ # represented as unset fields in this message. A text style's parent depends on
3557
+ # where the text style is defined: * The TextStyle of text in a Paragraph
3558
+ # inherits from the paragraph's corresponding named style type. * The TextStyle
3559
+ # on a named style inherits from the normal text named style. * The TextStyle of
3560
+ # the normal text named style inherits from the default text style in the Docs
3561
+ # editor. * The TextStyle on a Paragraph element that is contained in a table
3562
+ # may inherit its text style from the table style. If the text style does not
3563
+ # inherit from a parent, unsetting fields will revert the style to a value
3564
+ # matching the defaults in the Docs editor.
3565
+ # Corresponds to the JSON property `textStyle`
3566
+ # @return [Google::Apis::DocsV1::TextStyle]
3567
+ attr_accessor :text_style
3568
+
3569
+ def initialize(**args)
3570
+ update!(**args)
3571
+ end
3572
+
3573
+ # Update properties of this object
3574
+ def update!(**args)
3575
+ @person_id = args[:person_id] if args.key?(:person_id)
3576
+ @person_properties = args[:person_properties] if args.key?(:person_properties)
3577
+ @suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids)
3578
+ @suggested_insertion_ids = args[:suggested_insertion_ids] if args.key?(:suggested_insertion_ids)
3579
+ @suggested_text_style_changes = args[:suggested_text_style_changes] if args.key?(:suggested_text_style_changes)
3580
+ @text_style = args[:text_style] if args.key?(:text_style)
3581
+ end
3582
+ end
3583
+
3584
+ # Properties specific to a linked Person.
3585
+ class PersonProperties
3586
+ include Google::Apis::Core::Hashable
3587
+
3588
+ # Output only. The email address linked to this Person. This field is always
3589
+ # present.
3590
+ # Corresponds to the JSON property `email`
3591
+ # @return [String]
3592
+ attr_accessor :email
3593
+
3594
+ # Output only. The name of the person if it is displayed in the link text
3595
+ # instead of the person's email address.
3596
+ # Corresponds to the JSON property `name`
3597
+ # @return [String]
3598
+ attr_accessor :name
3599
+
3600
+ def initialize(**args)
3601
+ update!(**args)
3602
+ end
3603
+
3604
+ # Update properties of this object
3605
+ def update!(**args)
3606
+ @email = args[:email] if args.key?(:email)
3607
+ @name = args[:name] if args.key?(:name)
3608
+ end
3609
+ end
3610
+
3513
3611
  # An object that is tethered to a Paragraph and positioned relative to the
3514
3612
  # beginning of the paragraph. A PositionedObject contains an EmbeddedObject such
3515
3613
  # as an image.
@@ -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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200803"
25
+ REVISION = "20210323"
26
26
  end
27
27
  end
28
28
  end
@@ -532,6 +532,18 @@ module Google
532
532
  include Google::Apis::Core::JsonObjectSupport
533
533
  end
534
534
 
535
+ class Person
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
541
+ class PersonProperties
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
535
547
  class PositionedObject
536
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
549
 
@@ -1796,6 +1808,8 @@ module Google
1796
1808
 
1797
1809
  property :page_break, as: 'pageBreak', class: Google::Apis::DocsV1::PageBreak, decorator: Google::Apis::DocsV1::PageBreak::Representation
1798
1810
 
1811
+ property :person, as: 'person', class: Google::Apis::DocsV1::Person, decorator: Google::Apis::DocsV1::Person::Representation
1812
+
1799
1813
  property :start_index, as: 'startIndex'
1800
1814
  property :text_run, as: 'textRun', class: Google::Apis::DocsV1::TextRun, decorator: Google::Apis::DocsV1::TextRun::Representation
1801
1815
 
@@ -1868,6 +1882,29 @@ module Google
1868
1882
  end
1869
1883
  end
1870
1884
 
1885
+ class Person
1886
+ # @private
1887
+ class Representation < Google::Apis::Core::JsonRepresentation
1888
+ property :person_id, as: 'personId'
1889
+ property :person_properties, as: 'personProperties', class: Google::Apis::DocsV1::PersonProperties, decorator: Google::Apis::DocsV1::PersonProperties::Representation
1890
+
1891
+ collection :suggested_deletion_ids, as: 'suggestedDeletionIds'
1892
+ collection :suggested_insertion_ids, as: 'suggestedInsertionIds'
1893
+ hash :suggested_text_style_changes, as: 'suggestedTextStyleChanges', class: Google::Apis::DocsV1::SuggestedTextStyle, decorator: Google::Apis::DocsV1::SuggestedTextStyle::Representation
1894
+
1895
+ property :text_style, as: 'textStyle', class: Google::Apis::DocsV1::TextStyle, decorator: Google::Apis::DocsV1::TextStyle::Representation
1896
+
1897
+ end
1898
+ end
1899
+
1900
+ class PersonProperties
1901
+ # @private
1902
+ class Representation < Google::Apis::Core::JsonRepresentation
1903
+ property :email, as: 'email'
1904
+ property :name, as: 'name'
1905
+ end
1906
+ end
1907
+
1871
1908
  class PositionedObject
1872
1909
  # @private
1873
1910
  class Representation < Google::Apis::Core::JsonRepresentation
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.1.0
4
+ version: 0.6.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: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Google Docs API V1