google-apis-docs_v1 0.3.0 → 0.8.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: 72350a9513d774ba11891c0d31b9bd8b311b1cd641c8c31b988dc6909d1e44cc
4
- data.tar.gz: e23e8c9f7cfe5f99459b0ef86a609c5d78e342b24487f9843ed270e1ebf76694
3
+ metadata.gz: 6f0d803106245e2526c148fd0b8160f2c077244a8e0138856bb8c93d9a932675
4
+ data.tar.gz: 49baa19ee48b78ab295abf0c57591c8122fd97da1e6c99df91ae167150a05a48
5
5
  SHA512:
6
- metadata.gz: 476b81deb287062575f9ec3c0716a0cffdbe8cf10329cfaab4877650118259db93dac255f944c38aecaa9322d068d7e4128ea937c967d3ff622eea537f5ef9ac
7
- data.tar.gz: 289002af06cd58f3361374a8c2b9de8d947f9ce2c23c8f85a2456375d3d028436e1bb706f73da7f3e710d2ba1dfb49d9179a4c826eac5d03938347d965c83b69
6
+ metadata.gz: 63e7409502cda8e1ddc4571f88061c84232e9e18f59d7f211df5862bc44d167c0c8ed224f13cb96a326e370c9bcb2be49719e0ce22028f49b5c57c86dc44fa9d
7
+ data.tar.gz: 352ad379e5c657103ec31aa5e78f9185bae0121d1f3437c93137cb6ed54534c33673037ef7249dec25533d1a80d6fa78816b6c568e51b98f416c8bd29f94841d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-docs_v1
2
2
 
3
+ ### v0.8.0 (2021-06-29)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.7.0 (2021-06-24)
8
+
9
+ * Regenerated from discovery document revision 20210615
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.6.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.5.0 (2021-04-06)
17
+
18
+ * Regenerated from discovery document revision 20210323
19
+
20
+ ### v0.4.0 (2021-03-09)
21
+
22
+ * Regenerated from discovery document revision 20210302
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.3.0 (2021-03-04)
4
26
 
5
27
  * Unspecified changes
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210211"
25
+ REVISION = "20210615"
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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-docs_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Google Docs API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Google Docs API V1