google-apis-docs_v1 0.2.0 → 0.7.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 +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/docs_v1.rb +1 -1
- data/lib/google/apis/docs_v1/classes.rb +98 -0
- data/lib/google/apis/docs_v1/gem_version.rb +3 -3
- data/lib/google/apis/docs_v1/representations.rb +37 -0
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ff99550c8166907f2ac4cb7ceca0298e09c2f7fe28611c0a5233ec8f3cf7bac
|
4
|
+
data.tar.gz: 6c8d0efe4d5ba44b60e7c86d37017c44e88c2810760ed2ab06e0624d96989c3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28520ce9ce2fd5f8522c8db93a94f7bba17d4bd2ac9d77841a5c1093228ff8b0898e3c9fd64ec49e858a49c06a683da01ff19adbac945e23d362a55a048381b1
|
7
|
+
data.tar.gz: 893d710b45d1e7fcf2c06d4edd9ac1eac5f2bdcad699eab8796673487048c83c0f14fc610b651b220dabcf6daa5f85ab1363a55229919bca2f5126e5f14a8729
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-docs_v1
|
2
2
|
|
3
|
+
### v0.7.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210615
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.6.0 (2021-05-19)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.5.0 (2021-04-06)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210323
|
15
|
+
|
16
|
+
### v0.4.0 (2021-03-09)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210302
|
19
|
+
* Regenerated using generator version 0.2.0
|
20
|
+
|
21
|
+
### v0.3.0 (2021-03-04)
|
22
|
+
|
23
|
+
* Unspecified changes
|
24
|
+
|
3
25
|
### v0.2.0 (2021-02-17)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210211
|
data/lib/google/apis/docs_v1.rb
CHANGED
@@ -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
|
-
#
|
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.
|
19
|
+
GEM_VERSION = "0.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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.
|
4
|
+
version: 0.7.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-
|
11
|
+
date: 2021-06-28 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.
|
19
|
+
version: '0.3'
|
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.3'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.7.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: []
|
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
68
|
requirements:
|
63
69
|
- - ">="
|
64
70
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
71
|
+
version: '2.5'
|
66
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
74
|
- - ">="
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
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
|