google-apis-docs_v1 0.3.0 → 0.4.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 +5 -0
- 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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2d3f123a86ac06bcd0bbd4ab12285549ccae2e8aebf810888863ad3954b8414
|
4
|
+
data.tar.gz: 711b5105f93f28fda2118a1eb3fce3713f76d93c32587b9652ce14bc755ebfe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66590690e0eb91228d270911f070dc7a4036e77fa428906d10c0849095ddcc0aa303ff21e1f0613c196d97ccd1fa0abd3895a2798a8a65cd8cf1cb365715bc72
|
7
|
+
data.tar.gz: 3c40aba9d81bfcdc35a05b7224286e3f68339772df41fc24e21440133629e8b745700ea2e6880e05eb39cb1acdd859ab427782d3d28f6a9fad7ac76f0014af0d
|
data/CHANGELOG.md
CHANGED
@@ -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.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210302"
|
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,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.4.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-
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.4.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|