google-apis-factchecktools_v1alpha1 0.17.0 → 0.19.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: 4b0aad82204258e252cd6c8c30f41aeeba38b8480ee1b36f4eb8e6e3877e2df4
4
- data.tar.gz: e2d9677ba285e7c2ba102afe9279e9ba2a24d5f420be12e9db2d8056187dada5
3
+ metadata.gz: 5d5bed75626551a9eea12032149823986afd0d4bad120825d52552276b8e0032
4
+ data.tar.gz: 1dfe699cfd66fa0410032a4e3dc7575c277df0b1de3a18f8aeda8c6599772e05
5
5
  SHA512:
6
- metadata.gz: 6fb2f5a904693e4852443d0619b64809273a6407cda635c0094506b313c57210baebf7b03ee9fd0c5517a9c9f5aaf4eac7808436e0b837e9c71bdf676817991f
7
- data.tar.gz: fd170841306d8908cf7603a9b58b3ce42b89930f7fd1de836d8a2cd441f1f37bce1a54fe8c928c6eb5d3da868806a1e04f659ad3281358e6b2f603b61bcac67e
6
+ metadata.gz: 8d07b7380df917f8ec2b7b52d1bc46f718592f61e36ab341a7ee34fb55817da9ad30d42f6e1fc2c8bc4e4f2503f9d2922686482dd3bd68320826a45db83d9641
7
+ data.tar.gz: 8f8113f64575b321399859fa3d863072f323ba71b4c33d6903e0eb4a949afa9ab1aa1bb5ee9eb8b797ba1852404c46bfca3c48a915acafbd0382837622842020
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-factchecktools_v1alpha1
2
2
 
3
+ ### v0.19.0 (2024-03-31)
4
+
5
+ * Regenerated from discovery document revision 20240326
6
+
7
+ ### v0.18.0 (2024-02-23)
8
+
9
+ * Regenerated using generator version 0.14.0
10
+
3
11
  ### v0.17.0 (2024-01-23)
4
12
 
5
13
  * Regenerated using generator version 0.13.0
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://developers.google.com/fact-check/tools/api/)
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -355,6 +355,51 @@ module Google
355
355
  end
356
356
  end
357
357
 
358
+ # Response from searching fact-checked claims by image.
359
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
360
+ include Google::Apis::Core::Hashable
361
+
362
+ # The next pagination token in the Search response. It should be used as the `
363
+ # page_token` for the following request. An empty value means no more results.
364
+ # Corresponds to the JSON property `nextPageToken`
365
+ # @return [String]
366
+ attr_accessor :next_page_token
367
+
368
+ # The list of claims and all of their associated information.
369
+ # Corresponds to the JSON property `results`
370
+ # @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult>]
371
+ attr_accessor :results
372
+
373
+ def initialize(**args)
374
+ update!(**args)
375
+ end
376
+
377
+ # Update properties of this object
378
+ def update!(**args)
379
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
380
+ @results = args[:results] if args.key?(:results)
381
+ end
382
+ end
383
+
384
+ # A claim and its associated information.
385
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult
386
+ include Google::Apis::Core::Hashable
387
+
388
+ # Information about the claim.
389
+ # Corresponds to the JSON property `claim`
390
+ # @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim]
391
+ attr_accessor :claim
392
+
393
+ def initialize(**args)
394
+ update!(**args)
395
+ end
396
+
397
+ # Update properties of this object
398
+ def update!(**args)
399
+ @claim = args[:claim] if args.key?(:claim)
400
+ end
401
+ end
402
+
358
403
  # Response from searching fact-checked claims.
359
404
  class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
360
405
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FactchecktoolsV1alpha1
18
18
  # Version of the google-apis-factchecktools_v1alpha1 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220317"
25
+ REVISION = "20240326"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,18 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -172,6 +184,23 @@ module Google
172
184
  end
173
185
  end
174
186
 
187
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :next_page_token, as: 'nextPageToken'
191
+ collection :results, as: 'results', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult::Representation
192
+
193
+ end
194
+ end
195
+
196
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :claim, as: 'claim', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim::Representation
200
+
201
+ end
202
+ end
203
+
175
204
  class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
176
205
  # @private
177
206
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,61 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Search through fact-checked claims using an image as the query.
55
+ # @param [String] image_uri
56
+ # Required. The URI of the source image. This must be a publicly-accessible
57
+ # image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot
58
+ # guarantee that the request will be completed. Your request may fail if the
59
+ # specified host denies the request (e.g. due to request throttling or DOS
60
+ # prevention), or if Google throttles requests to the site for abuse prevention.
61
+ # You should not depend on externally-hosted images for production applications.
62
+ # @param [String] language_code
63
+ # Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used
64
+ # to restrict results by language, though we do not currently consider the
65
+ # region.
66
+ # @param [Fixnum] offset
67
+ # Optional. An integer that specifies the current offset (that is, starting
68
+ # result location) in search results. This field is only considered if `
69
+ # page_token` is unset. For example, 0 means to return results starting from the
70
+ # first matching result, and 10 means to return from the 11th result.
71
+ # @param [Fixnum] page_size
72
+ # Optional. The pagination size. We will return up to that many results.
73
+ # Defaults to 10 if not set.
74
+ # @param [String] page_token
75
+ # Optional. The pagination token. You may provide the `next_page_token` returned
76
+ # from a previous List request, if any, in order to get the next page. All other
77
+ # fields must have the same values as in the previous request.
78
+ # @param [String] fields
79
+ # Selector specifying which fields to include in a partial response.
80
+ # @param [String] quota_user
81
+ # Available to use for quota purposes for server-side applications. Can be any
82
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
83
+ # @param [Google::Apis::RequestOptions] options
84
+ # Request-specific options
85
+ #
86
+ # @yield [result, err] Result & error if block supplied
87
+ # @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse] parsed result object
88
+ # @yieldparam err [StandardError] error object if request failed
89
+ #
90
+ # @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse]
91
+ #
92
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
93
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
94
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
95
+ def image_claim_search(image_uri: nil, language_code: nil, offset: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
96
+ command = make_simple_command(:get, 'v1alpha1/claims:imageSearch', options)
97
+ command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse::Representation
98
+ command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
99
+ command.query['imageUri'] = image_uri unless image_uri.nil?
100
+ command.query['languageCode'] = language_code unless language_code.nil?
101
+ command.query['offset'] = offset unless offset.nil?
102
+ command.query['pageSize'] = page_size unless page_size.nil?
103
+ command.query['pageToken'] = page_token unless page_token.nil?
104
+ command.query['fields'] = fields unless fields.nil?
105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
106
+ execute_or_queue_command(command, &block)
107
+ end
108
+
54
109
  # Search through fact-checked claims.
55
110
  # @param [String] language_code
56
111
  # The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-factchecktools_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.19.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: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-03-31 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.12.0
19
+ version: 0.14.0
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.12.0
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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/main/generated/google-apis-factchecktools_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-factchecktools_v1alpha1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-factchecktools_v1alpha1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-factchecktools_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Fact Check Tools API V1alpha1