google-apis-language_v1beta2 0.13.0 → 0.15.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: e78de9a520ca607cddc4e6c138e64e52f3e8cfa5ef006f74d3041c1db2a0559f
4
- data.tar.gz: 10613710eb9dd61458b24e7cad84346b4f085a689f9bcb8ef47297f8294d555d
3
+ metadata.gz: e66f2d7764ca6978d35de06d29f9b8fe483eff0949bc40d765395638ff7d8eff
4
+ data.tar.gz: e8770d3512bef88701e6ed8d7df5281eaaf3237de946e1c515c5638e1c141844
5
5
  SHA512:
6
- metadata.gz: 34b2d12168d48fb4f1198b1562cd1dbd387d6914df9c36bce04e175fed3b4e0a0cdba4c2eac86d8dc65561db0ef2bbfde773d3a3f48ad7b99d8b5a44ad4db974
7
- data.tar.gz: 0e58d3b7289bdd46abec298bb95bcd867ca2139358f1f71e02817818b86ba0d5499417f17ea2720ca60ed5a82a8bb72e3a0444b62c804aedf350df093ed44d4f
6
+ metadata.gz: 7cba6e29739e2fb299523d27f2cac3576c2a19a8635226fd6b02ae0bb8bb100f65b36ce6e3d3fcdcf15dafe635a1efd10aeaac1696f1ee483b15a3d51459b4b9
7
+ data.tar.gz: b19ead1f462c64c52442fb407e85795b22ab67fb06a211b865ce361f272e28935c051708277050f1e2d52c3ffe05cacebf84e16f598088503012327cdb4e849d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-language_v1beta2
2
2
 
3
+ ### v0.15.0 (2022-11-01)
4
+
5
+ * Regenerated from discovery document revision 20221015
6
+ * Regenerated using generator version 0.11.0
7
+
8
+ ### v0.14.0 (2022-09-21)
9
+
10
+ * Regenerated from discovery document revision 20220916
11
+ * Regenerated using generator version 0.10.0
12
+
3
13
  ### v0.13.0 (2022-08-03)
4
14
 
5
15
  * Regenerated from discovery document revision 20220801
@@ -26,8 +26,7 @@ module Google
26
26
  class AnalyzeEntitiesRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # ################################################################ # Represents
30
- # the input to API methods.
29
+ # Represents the input to API methods.
31
30
  # Corresponds to the JSON property `document`
32
31
  # @return [Google::Apis::LanguageV1beta2::Document]
33
32
  attr_accessor :document
@@ -79,8 +78,7 @@ module Google
79
78
  class AnalyzeEntitySentimentRequest
80
79
  include Google::Apis::Core::Hashable
81
80
 
82
- # ################################################################ # Represents
83
- # the input to API methods.
81
+ # Represents the input to API methods.
84
82
  # Corresponds to the JSON property `document`
85
83
  # @return [Google::Apis::LanguageV1beta2::Document]
86
84
  attr_accessor :document
@@ -132,8 +130,7 @@ module Google
132
130
  class AnalyzeSentimentRequest
133
131
  include Google::Apis::Core::Hashable
134
132
 
135
- # ################################################################ # Represents
136
- # the input to API methods.
133
+ # Represents the input to API methods.
137
134
  # Corresponds to the JSON property `document`
138
135
  # @return [Google::Apis::LanguageV1beta2::Document]
139
136
  attr_accessor :document
@@ -193,8 +190,7 @@ module Google
193
190
  class AnalyzeSyntaxRequest
194
191
  include Google::Apis::Core::Hashable
195
192
 
196
- # ################################################################ # Represents
197
- # the input to API methods.
193
+ # Represents the input to API methods.
198
194
  # Corresponds to the JSON property `document`
199
195
  # @return [Google::Apis::LanguageV1beta2::Document]
200
196
  attr_accessor :document
@@ -253,8 +249,7 @@ module Google
253
249
  class AnnotateTextRequest
254
250
  include Google::Apis::Core::Hashable
255
251
 
256
- # ################################################################ # Represents
257
- # the input to API methods.
252
+ # Represents the input to API methods.
258
253
  # Corresponds to the JSON property `document`
259
254
  # @return [Google::Apis::LanguageV1beta2::Document]
260
255
  attr_accessor :document
@@ -364,12 +359,41 @@ module Google
364
359
  end
365
360
  end
366
361
 
362
+ # Model options available for classification requests.
363
+ class ClassificationModelOptions
364
+ include Google::Apis::Core::Hashable
365
+
366
+ # Options for the V1 model.
367
+ # Corresponds to the JSON property `v1Model`
368
+ # @return [Google::Apis::LanguageV1beta2::V1Model]
369
+ attr_accessor :v1_model
370
+
371
+ # Options for the V2 model.
372
+ # Corresponds to the JSON property `v2Model`
373
+ # @return [Google::Apis::LanguageV1beta2::V2Model]
374
+ attr_accessor :v2_model
375
+
376
+ def initialize(**args)
377
+ update!(**args)
378
+ end
379
+
380
+ # Update properties of this object
381
+ def update!(**args)
382
+ @v1_model = args[:v1_model] if args.key?(:v1_model)
383
+ @v2_model = args[:v2_model] if args.key?(:v2_model)
384
+ end
385
+ end
386
+
367
387
  # The document classification request message.
368
388
  class ClassifyTextRequest
369
389
  include Google::Apis::Core::Hashable
370
390
 
371
- # ################################################################ # Represents
372
- # the input to API methods.
391
+ # Model options available for classification requests.
392
+ # Corresponds to the JSON property `classificationModelOptions`
393
+ # @return [Google::Apis::LanguageV1beta2::ClassificationModelOptions]
394
+ attr_accessor :classification_model_options
395
+
396
+ # Represents the input to API methods.
373
397
  # Corresponds to the JSON property `document`
374
398
  # @return [Google::Apis::LanguageV1beta2::Document]
375
399
  attr_accessor :document
@@ -380,6 +404,7 @@ module Google
380
404
 
381
405
  # Update properties of this object
382
406
  def update!(**args)
407
+ @classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
383
408
  @document = args[:document] if args.key?(:document)
384
409
  end
385
410
  end
@@ -431,8 +456,7 @@ module Google
431
456
  end
432
457
  end
433
458
 
434
- # ################################################################ # Represents
435
- # the input to API methods.
459
+ # Represents the input to API methods.
436
460
  class Document
437
461
  include Google::Apis::Core::Hashable
438
462
 
@@ -591,6 +615,11 @@ module Google
591
615
  class Features
592
616
  include Google::Apis::Core::Hashable
593
617
 
618
+ # Model options available for classification requests.
619
+ # Corresponds to the JSON property `classificationModelOptions`
620
+ # @return [Google::Apis::LanguageV1beta2::ClassificationModelOptions]
621
+ attr_accessor :classification_model_options
622
+
594
623
  # Classify the full document into categories. If this is true, the API will use
595
624
  # the default model which classifies into a [predefined taxonomy](https://cloud.
596
625
  # google.com/natural-language/docs/categories).
@@ -629,6 +658,7 @@ module Google
629
658
 
630
659
  # Update properties of this object
631
660
  def update!(**args)
661
+ @classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
632
662
  @classify_text = args[:classify_text] if args.key?(:classify_text)
633
663
  @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
634
664
  @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
@@ -876,6 +906,38 @@ module Google
876
906
  @text = args[:text] if args.key?(:text)
877
907
  end
878
908
  end
909
+
910
+ # Options for the V1 model.
911
+ class V1Model
912
+ include Google::Apis::Core::Hashable
913
+
914
+ def initialize(**args)
915
+ update!(**args)
916
+ end
917
+
918
+ # Update properties of this object
919
+ def update!(**args)
920
+ end
921
+ end
922
+
923
+ # Options for the V2 model.
924
+ class V2Model
925
+ include Google::Apis::Core::Hashable
926
+
927
+ # The content categories used for classification.
928
+ # Corresponds to the JSON property `contentCategoriesVersion`
929
+ # @return [String]
930
+ attr_accessor :content_categories_version
931
+
932
+ def initialize(**args)
933
+ update!(**args)
934
+ end
935
+
936
+ # Update properties of this object
937
+ def update!(**args)
938
+ @content_categories_version = args[:content_categories_version] if args.key?(:content_categories_version)
939
+ end
940
+ end
879
941
  end
880
942
  end
881
943
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LanguageV1beta2
18
18
  # Version of the google-apis-language_v1beta2 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220801"
25
+ REVISION = "20221015"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class ClassificationModelOptions
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class ClassifyTextRequest
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -166,6 +172,18 @@ module Google
166
172
  include Google::Apis::Core::JsonObjectSupport
167
173
  end
168
174
 
175
+ class V1Model
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class V2Model
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
169
187
  class AnalyzeEntitiesRequest
170
188
  # @private
171
189
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -278,9 +296,21 @@ module Google
278
296
  end
279
297
  end
280
298
 
299
+ class ClassificationModelOptions
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :v1_model, as: 'v1Model', class: Google::Apis::LanguageV1beta2::V1Model, decorator: Google::Apis::LanguageV1beta2::V1Model::Representation
303
+
304
+ property :v2_model, as: 'v2Model', class: Google::Apis::LanguageV1beta2::V2Model, decorator: Google::Apis::LanguageV1beta2::V2Model::Representation
305
+
306
+ end
307
+ end
308
+
281
309
  class ClassifyTextRequest
282
310
  # @private
283
311
  class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :classification_model_options, as: 'classificationModelOptions', class: Google::Apis::LanguageV1beta2::ClassificationModelOptions, decorator: Google::Apis::LanguageV1beta2::ClassificationModelOptions::Representation
313
+
284
314
  property :document, as: 'document', class: Google::Apis::LanguageV1beta2::Document, decorator: Google::Apis::LanguageV1beta2::Document::Representation
285
315
 
286
316
  end
@@ -342,6 +372,8 @@ module Google
342
372
  class Features
343
373
  # @private
344
374
  class Representation < Google::Apis::Core::JsonRepresentation
375
+ property :classification_model_options, as: 'classificationModelOptions', class: Google::Apis::LanguageV1beta2::ClassificationModelOptions, decorator: Google::Apis::LanguageV1beta2::ClassificationModelOptions::Representation
376
+
345
377
  property :classify_text, as: 'classifyText'
346
378
  property :extract_document_sentiment, as: 'extractDocumentSentiment'
347
379
  property :extract_entities, as: 'extractEntities'
@@ -415,6 +447,19 @@ module Google
415
447
 
416
448
  end
417
449
  end
450
+
451
+ class V1Model
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ end
455
+ end
456
+
457
+ class V2Model
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ property :content_categories_version, as: 'contentCategoriesVersion'
461
+ end
462
+ end
418
463
  end
419
464
  end
420
465
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-language_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.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: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-11-07 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.7'
19
+ version: 0.9.1
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.7'
29
+ version: 0.9.1
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-language_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-language_v1beta2/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-language_v1beta2/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-language_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []