google-apis-docs_v1 0.7.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ff99550c8166907f2ac4cb7ceca0298e09c2f7fe28611c0a5233ec8f3cf7bac
4
- data.tar.gz: 6c8d0efe4d5ba44b60e7c86d37017c44e88c2810760ed2ab06e0624d96989c3e
3
+ metadata.gz: 75729d863ddbb1f9b95da9c0dd900caa4a52093578d96fe0ad32169cca386ad9
4
+ data.tar.gz: fe4a516e0ad3c986acf9513ff094a34b08cb55be871a93eb93336d0c18d218c9
5
5
  SHA512:
6
- metadata.gz: 28520ce9ce2fd5f8522c8db93a94f7bba17d4bd2ac9d77841a5c1093228ff8b0898e3c9fd64ec49e858a49c06a683da01ff19adbac945e23d362a55a048381b1
7
- data.tar.gz: 893d710b45d1e7fcf2c06d4edd9ac1eac5f2bdcad699eab8796673487048c83c0f14fc610b651b220dabcf6daa5f85ab1363a55229919bca2f5126e5f14a8729
6
+ metadata.gz: 90f7d87fafb2f4e81978fccf5553184b3e4847c683996a3c21d2458add34b37165d1843a207d33b318779615a8b8e22d1e3dfd7aec6fee4b008c42e9e0701c40
7
+ data.tar.gz: 916f6706931ef9b9ed48debaae6260ce7aff8031fe54002196c8411ca3dfc5fec0c63f43d5068c2d8117dcd8f2c11d30371c4edc373c1bce3032e6df819026f2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-docs_v1
2
2
 
3
+ ### v0.11.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.10.0 (2021-10-21)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.9.0 (2021-07-08)
12
+
13
+ * Regenerated from discovery document revision 20210707
14
+
15
+ ### v0.8.0 (2021-06-29)
16
+
17
+ * Regenerated using generator version 0.4.0
18
+
3
19
  ### v0.7.0 (2021-06-24)
4
20
 
5
21
  * Regenerated from discovery document revision 20210615
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/docs_v1"
51
51
  client = Google::Apis::DocsV1::DocsService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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.7.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210615"
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
@@ -29,10 +29,10 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, create, and edit all Google Docs documents you have access to
32
+ # See, edit, create, and delete all your Google Docs documents
33
33
  AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'
34
34
 
35
- # View your Google Docs documents
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,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.7.0
4
+ version: 0.11.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-06-28 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
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.7.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-docs_v1
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.11.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-docs_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Docs API V1