google-apis-docs_v1 0.4.0 → 0.9.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 +21 -0
- data/lib/google/apis/docs_v1.rb +3 -3
- 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
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46fcf4a918e4b93676351f712f64e207f2ad585a5c556340f49fc195a93187e4
|
4
|
+
data.tar.gz: ed810397be85232d8e38b4bb7bf24061ea69c31756e523bff866642e7dfcbab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af6c01e316813452e85fc98fbac53605d50399e82cfe7b6eaaf28d68f84bd9f20709a0dec94cf4fe5d2893909fafca1ced8422c8faa810a01455ac8272b9725
|
7
|
+
data.tar.gz: 6575647d8301e34c1799cff46e24e1b50005ca0acc070d11379012c03813a393f077eb7627828fabf8b992aca672591089e831d87565568c787517d8c0e8fda5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-docs_v1
|
2
2
|
|
3
|
+
### v0.9.0 (2021-07-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210707
|
6
|
+
|
7
|
+
### v0.8.0 (2021-06-29)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.4.0
|
10
|
+
|
11
|
+
### v0.7.0 (2021-06-24)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210615
|
14
|
+
* Regenerated using generator version 0.3.0
|
15
|
+
|
16
|
+
### v0.6.0 (2021-05-19)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.5.0 (2021-04-06)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210323
|
23
|
+
|
3
24
|
### v0.4.0 (2021-03-09)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210302
|
data/lib/google/apis/docs_v1.rb
CHANGED
@@ -29,16 +29,16 @@ 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
|
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
|
@@ -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.9.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
|
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.9.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-07-12 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
|
@@ -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.9.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.
|
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
|