google-apis-docs_v1 0.6.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/docs_v1/classes.rb +105 -0
- data/lib/google/apis/docs_v1/gem_version.rb +3 -3
- data/lib/google/apis/docs_v1/representations.rb +38 -0
- data/lib/google/apis/docs_v1.rb +2 -2
- 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: ff18609a976bef364c172dc7992e5a984341274c5dff90ead71b52dbfa6cb866
|
4
|
+
data.tar.gz: 983a4eccdde5b1cfe90df12b609db1d28916b96386fd7d8e3f9655ebac895249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aff625a0285073f727ec007bbb2331b757207f21cb0ef2ccb48bd02b8b2207ddbbd956a2a21810b41b1a60b5765c43e1fe0d62289b78742d229653a3e5a2c66
|
7
|
+
data.tar.gz: a896e511c3e6d2f9d0cbe69bf387a10cd99f1d0bfe0e971f1e88ae1021d7e1142b5b19f1d6f1f8674001c0c5475465d881fc67feb651b5ead864a87b58236578
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-docs_v1
|
2
2
|
|
3
|
+
### v0.10.0 (2021-10-21)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.9.0 (2021-07-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210707
|
10
|
+
|
11
|
+
### v0.8.0 (2021-06-29)
|
12
|
+
|
13
|
+
* Regenerated using generator version 0.4.0
|
14
|
+
|
15
|
+
### v0.7.0 (2021-06-24)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210615
|
18
|
+
* Regenerated using generator version 0.3.0
|
19
|
+
|
3
20
|
### v0.6.0 (2021-05-19)
|
4
21
|
|
5
22
|
* Unspecified changes
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Docs service in particular.)
|
67
67
|
|
@@ -3169,6 +3169,12 @@ module Google
|
|
3169
3169
|
# @return [Google::Apis::DocsV1::Person]
|
3170
3170
|
attr_accessor :person
|
3171
3171
|
|
3172
|
+
# A link to a Google resource (e.g., a file in Drive, a YouTube video, a
|
3173
|
+
# Calendar event, etc.).
|
3174
|
+
# Corresponds to the JSON property `richLink`
|
3175
|
+
# @return [Google::Apis::DocsV1::RichLink]
|
3176
|
+
attr_accessor :rich_link
|
3177
|
+
|
3172
3178
|
# The zero-based start index of this paragraph element, in UTF-16 code units.
|
3173
3179
|
# Corresponds to the JSON property `startIndex`
|
3174
3180
|
# @return [Fixnum]
|
@@ -3194,6 +3200,7 @@ module Google
|
|
3194
3200
|
@inline_object_element = args[:inline_object_element] if args.key?(:inline_object_element)
|
3195
3201
|
@page_break = args[:page_break] if args.key?(:page_break)
|
3196
3202
|
@person = args[:person] if args.key?(:person)
|
3203
|
+
@rich_link = args[:rich_link] if args.key?(:rich_link)
|
3197
3204
|
@start_index = args[:start_index] if args.key?(:start_index)
|
3198
3205
|
@text_run = args[:text_run] if args.key?(:text_run)
|
3199
3206
|
end
|
@@ -4253,6 +4260,104 @@ module Google
|
|
4253
4260
|
end
|
4254
4261
|
end
|
4255
4262
|
|
4263
|
+
# A link to a Google resource (e.g., a file in Drive, a YouTube video, a
|
4264
|
+
# Calendar event, etc.).
|
4265
|
+
class RichLink
|
4266
|
+
include Google::Apis::Core::Hashable
|
4267
|
+
|
4268
|
+
# Output only. The ID of this link.
|
4269
|
+
# Corresponds to the JSON property `richLinkId`
|
4270
|
+
# @return [String]
|
4271
|
+
attr_accessor :rich_link_id
|
4272
|
+
|
4273
|
+
# Properties specific to a RichLink.
|
4274
|
+
# Corresponds to the JSON property `richLinkProperties`
|
4275
|
+
# @return [Google::Apis::DocsV1::RichLinkProperties]
|
4276
|
+
attr_accessor :rich_link_properties
|
4277
|
+
|
4278
|
+
# IDs for suggestions that remove this link from the document. A RichLink might
|
4279
|
+
# have multiple deletion IDs if, for example, multiple users suggest to delete
|
4280
|
+
# it. If empty, then this person link isn't suggested for deletion.
|
4281
|
+
# Corresponds to the JSON property `suggestedDeletionIds`
|
4282
|
+
# @return [Array<String>]
|
4283
|
+
attr_accessor :suggested_deletion_ids
|
4284
|
+
|
4285
|
+
# IDs for suggestions that insert this link into the document. A RichLink might
|
4286
|
+
# have multiple insertion IDs if it is a nested suggested change (a suggestion
|
4287
|
+
# within a suggestion made by a different user, for example). If empty, then
|
4288
|
+
# this person link isn't a suggested insertion.
|
4289
|
+
# Corresponds to the JSON property `suggestedInsertionIds`
|
4290
|
+
# @return [Array<String>]
|
4291
|
+
attr_accessor :suggested_insertion_ids
|
4292
|
+
|
4293
|
+
# The suggested text style changes to this RichLink, keyed by suggestion ID.
|
4294
|
+
# Corresponds to the JSON property `suggestedTextStyleChanges`
|
4295
|
+
# @return [Hash<String,Google::Apis::DocsV1::SuggestedTextStyle>]
|
4296
|
+
attr_accessor :suggested_text_style_changes
|
4297
|
+
|
4298
|
+
# Represents the styling that can be applied to text. Inherited text styles are
|
4299
|
+
# represented as unset fields in this message. A text style's parent depends on
|
4300
|
+
# where the text style is defined: * The TextStyle of text in a Paragraph
|
4301
|
+
# inherits from the paragraph's corresponding named style type. * The TextStyle
|
4302
|
+
# on a named style inherits from the normal text named style. * The TextStyle of
|
4303
|
+
# the normal text named style inherits from the default text style in the Docs
|
4304
|
+
# editor. * The TextStyle on a Paragraph element that is contained in a table
|
4305
|
+
# may inherit its text style from the table style. If the text style does not
|
4306
|
+
# inherit from a parent, unsetting fields will revert the style to a value
|
4307
|
+
# matching the defaults in the Docs editor.
|
4308
|
+
# Corresponds to the JSON property `textStyle`
|
4309
|
+
# @return [Google::Apis::DocsV1::TextStyle]
|
4310
|
+
attr_accessor :text_style
|
4311
|
+
|
4312
|
+
def initialize(**args)
|
4313
|
+
update!(**args)
|
4314
|
+
end
|
4315
|
+
|
4316
|
+
# Update properties of this object
|
4317
|
+
def update!(**args)
|
4318
|
+
@rich_link_id = args[:rich_link_id] if args.key?(:rich_link_id)
|
4319
|
+
@rich_link_properties = args[:rich_link_properties] if args.key?(:rich_link_properties)
|
4320
|
+
@suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids)
|
4321
|
+
@suggested_insertion_ids = args[:suggested_insertion_ids] if args.key?(:suggested_insertion_ids)
|
4322
|
+
@suggested_text_style_changes = args[:suggested_text_style_changes] if args.key?(:suggested_text_style_changes)
|
4323
|
+
@text_style = args[:text_style] if args.key?(:text_style)
|
4324
|
+
end
|
4325
|
+
end
|
4326
|
+
|
4327
|
+
# Properties specific to a RichLink.
|
4328
|
+
class RichLinkProperties
|
4329
|
+
include Google::Apis::Core::Hashable
|
4330
|
+
|
4331
|
+
# Output only. The [MIME type](https://developers.google.com/drive/api/v3/mime-
|
4332
|
+
# types) of the RichLink, if there is one (i.e., when it is a file in Drive).
|
4333
|
+
# Corresponds to the JSON property `mimeType`
|
4334
|
+
# @return [String]
|
4335
|
+
attr_accessor :mime_type
|
4336
|
+
|
4337
|
+
# Output only. The title of the RichLink as displayed in the link. This title
|
4338
|
+
# matches the title of the linked resource at the time of the insertion or last
|
4339
|
+
# update of the link. This field is always present.
|
4340
|
+
# Corresponds to the JSON property `title`
|
4341
|
+
# @return [String]
|
4342
|
+
attr_accessor :title
|
4343
|
+
|
4344
|
+
# Output only. The URI to the RichLink. This is always present.
|
4345
|
+
# Corresponds to the JSON property `uri`
|
4346
|
+
# @return [String]
|
4347
|
+
attr_accessor :uri
|
4348
|
+
|
4349
|
+
def initialize(**args)
|
4350
|
+
update!(**args)
|
4351
|
+
end
|
4352
|
+
|
4353
|
+
# Update properties of this object
|
4354
|
+
def update!(**args)
|
4355
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
4356
|
+
@title = args[:title] if args.key?(:title)
|
4357
|
+
@uri = args[:uri] if args.key?(:uri)
|
4358
|
+
end
|
4359
|
+
end
|
4360
|
+
|
4256
4361
|
# A StructuralElement representing a section break. A section is a range of
|
4257
4362
|
# content which has the same SectionStyle. A section break represents the start
|
4258
4363
|
# of a new section, and the section style applies to the section after the
|
@@ -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.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210707"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -622,6 +622,18 @@ module Google
|
|
622
622
|
include Google::Apis::Core::JsonObjectSupport
|
623
623
|
end
|
624
624
|
|
625
|
+
class RichLink
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
|
+
|
628
|
+
include Google::Apis::Core::JsonObjectSupport
|
629
|
+
end
|
630
|
+
|
631
|
+
class RichLinkProperties
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
625
637
|
class SectionBreak
|
626
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
639
|
|
@@ -1810,6 +1822,8 @@ module Google
|
|
1810
1822
|
|
1811
1823
|
property :person, as: 'person', class: Google::Apis::DocsV1::Person, decorator: Google::Apis::DocsV1::Person::Representation
|
1812
1824
|
|
1825
|
+
property :rich_link, as: 'richLink', class: Google::Apis::DocsV1::RichLink, decorator: Google::Apis::DocsV1::RichLink::Representation
|
1826
|
+
|
1813
1827
|
property :start_index, as: 'startIndex'
|
1814
1828
|
property :text_run, as: 'textRun', class: Google::Apis::DocsV1::TextRun, decorator: Google::Apis::DocsV1::TextRun::Representation
|
1815
1829
|
|
@@ -2100,6 +2114,30 @@ module Google
|
|
2100
2114
|
end
|
2101
2115
|
end
|
2102
2116
|
|
2117
|
+
class RichLink
|
2118
|
+
# @private
|
2119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2120
|
+
property :rich_link_id, as: 'richLinkId'
|
2121
|
+
property :rich_link_properties, as: 'richLinkProperties', class: Google::Apis::DocsV1::RichLinkProperties, decorator: Google::Apis::DocsV1::RichLinkProperties::Representation
|
2122
|
+
|
2123
|
+
collection :suggested_deletion_ids, as: 'suggestedDeletionIds'
|
2124
|
+
collection :suggested_insertion_ids, as: 'suggestedInsertionIds'
|
2125
|
+
hash :suggested_text_style_changes, as: 'suggestedTextStyleChanges', class: Google::Apis::DocsV1::SuggestedTextStyle, decorator: Google::Apis::DocsV1::SuggestedTextStyle::Representation
|
2126
|
+
|
2127
|
+
property :text_style, as: 'textStyle', class: Google::Apis::DocsV1::TextStyle, decorator: Google::Apis::DocsV1::TextStyle::Representation
|
2128
|
+
|
2129
|
+
end
|
2130
|
+
end
|
2131
|
+
|
2132
|
+
class RichLinkProperties
|
2133
|
+
# @private
|
2134
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2135
|
+
property :mime_type, as: 'mimeType'
|
2136
|
+
property :title, as: 'title'
|
2137
|
+
property :uri, as: 'uri'
|
2138
|
+
end
|
2139
|
+
end
|
2140
|
+
|
2103
2141
|
class SectionBreak
|
2104
2142
|
# @private
|
2105
2143
|
class Representation < Google::Apis::Core::JsonRepresentation
|
data/lib/google/apis/docs_v1.rb
CHANGED
@@ -29,10 +29,10 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, create, and
|
32
|
+
# See, edit, create, and delete all your Google Docs documents
|
33
33
|
AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'
|
34
34
|
|
35
|
-
#
|
35
|
+
# See all your Google Docs documents
|
36
36
|
AUTH_DOCUMENTS_READONLY = 'https://www.googleapis.com/auth/documents.readonly'
|
37
37
|
|
38
38
|
# See, edit, create, and delete all of your Google Drive files
|
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.10.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-10-27 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.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:
|
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
|
@@ -51,9 +57,9 @@ licenses:
|
|
51
57
|
- Apache-2.0
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.
|
56
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-docs_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
59
65
|
require_paths:
|