google-apis-docs_v1 0.8.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 +4 -0
- data/lib/google/apis/docs_v1.rb +2 -2
- data/lib/google/apis/docs_v1/classes.rb +105 -0
- data/lib/google/apis/docs_v1/gem_version.rb +2 -2
- data/lib/google/apis/docs_v1/representations.rb +38 -0
- metadata +3 -3
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
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
|
@@ -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
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,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.
|
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-07-
|
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
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1/CHANGELOG.md
|
61
|
-
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
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|