google-apis-discoveryengine_v1alpha 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01e199e758f187d04e45eb8ab25881bf8a7e81a0ad6470b8245cc4b2930f40e7
4
- data.tar.gz: 73bae6449468b3c97aa62d5d59cd2567bcd620f2b8eba795ef0b59dc9e8f2cfb
3
+ metadata.gz: a7fdc13600bb0d0a75259ace1a752b91ed5024633691f81c586289c1ef372c41
4
+ data.tar.gz: 67aaa2dfe88369d205b8147945b485ef5b90a5d6ae6ab8348ccc77fd89cb4ec9
5
5
  SHA512:
6
- metadata.gz: 6ce15c7093817b9f2f2dcefb906e5def44bcf397926bf297db75dce2e7d44b190f7608fbd93258703ed61b7a1b0f18357605b65bd85ae5c669061c460a824fc1
7
- data.tar.gz: d2d315a46cdd0c0b4d5826a7fef0029baf140c62605c86b219f691f8d7f700d4cfe299f3d9852f6ba15c17be50927a8762175e0c8e596062aabc130d291beea1
6
+ metadata.gz: cd5b93d4e7eb636f7523cd5feaa4b2df18461ce2f019dc74b86ec1bd4f32e663cf094f4b1d7f19eda0f7360fb5cc7e32c1bdf4cbf4b7e6746deaf15a524d852e
7
+ data.tar.gz: f60d9a14b9f423d815a8638c19b40a9aceaf728d30d2e2ad07b0a9ed547c0bcbe7d3d5e270ed6ee614121daf6ca1fb9752d82a8b53dd080eed0f7bf3992ad47d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.31.0 (2023-12-24)
4
+
5
+ * Regenerated from discovery document revision 20231218
6
+
3
7
  ### v0.30.0 (2023-12-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20231209
@@ -1734,6 +1734,34 @@ module Google
1734
1734
  end
1735
1735
  end
1736
1736
 
1737
+ # A singleton resource of DataStore. It's empty when DataStore is created, which
1738
+ # defaults to digital parser. The first call to DataStoreService.
1739
+ # UpdateDocumentProcessingConfig method will initialize the config.
1740
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
1741
+ include Google::Apis::Core::Hashable
1742
+
1743
+ # Output only. The full resource name of the Document Processing Config. Format:
1744
+ # `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
1745
+ # Corresponds to the JSON property `name`
1746
+ # @return [String]
1747
+ attr_accessor :name
1748
+
1749
+ # The OCR options for parsing documents.
1750
+ # Corresponds to the JSON property `ocrConfig`
1751
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaOcrConfig]
1752
+ attr_accessor :ocr_config
1753
+
1754
+ def initialize(**args)
1755
+ update!(**args)
1756
+ end
1757
+
1758
+ # Update properties of this object
1759
+ def update!(**args)
1760
+ @name = args[:name] if args.key?(:name)
1761
+ @ocr_config = args[:ocr_config] if args.key?(:ocr_config)
1762
+ end
1763
+ end
1764
+
1737
1765
  # Double list.
1738
1766
  class GoogleCloudDiscoveryengineV1alphaDoubleList
1739
1767
  include Google::Apis::Core::Hashable
@@ -3124,6 +3152,42 @@ module Google
3124
3152
  end
3125
3153
  end
3126
3154
 
3155
+ # The OCR options for parsing documents.
3156
+ class GoogleCloudDiscoveryengineV1alphaOcrConfig
3157
+ include Google::Apis::Core::Hashable
3158
+
3159
+ # Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig
3160
+ # options to apply.
3161
+ # Corresponds to the JSON property `enabled`
3162
+ # @return [Boolean]
3163
+ attr_accessor :enabled
3164
+ alias_method :enabled?, :enabled
3165
+
3166
+ # Apply additional enhanced OCR processing to a list of document elements.
3167
+ # Supported values: * `table`: advanced table parsing model.
3168
+ # Corresponds to the JSON property `enhancedDocumentElements`
3169
+ # @return [Array<String>]
3170
+ attr_accessor :enhanced_document_elements
3171
+
3172
+ # If true, will use native text instead of OCR text on pages containing native
3173
+ # text.
3174
+ # Corresponds to the JSON property `useNativeText`
3175
+ # @return [Boolean]
3176
+ attr_accessor :use_native_text
3177
+ alias_method :use_native_text?, :use_native_text
3178
+
3179
+ def initialize(**args)
3180
+ update!(**args)
3181
+ end
3182
+
3183
+ # Update properties of this object
3184
+ def update!(**args)
3185
+ @enabled = args[:enabled] if args.key?(:enabled)
3186
+ @enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
3187
+ @use_native_text = args[:use_native_text] if args.key?(:use_native_text)
3188
+ end
3189
+ end
3190
+
3127
3191
  # Detailed page information.
3128
3192
  class GoogleCloudDiscoveryengineV1alphaPageInfo
3129
3193
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.30.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231209"
25
+ REVISION = "20231218"
26
26
  end
27
27
  end
28
28
  end
@@ -322,6 +322,12 @@ module Google
322
322
  include Google::Apis::Core::JsonObjectSupport
323
323
  end
324
324
 
325
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
325
331
  class GoogleCloudDiscoveryengineV1alphaDoubleList
326
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
333
 
@@ -574,6 +580,12 @@ module Google
574
580
  include Google::Apis::Core::JsonObjectSupport
575
581
  end
576
582
 
583
+ class GoogleCloudDiscoveryengineV1alphaOcrConfig
584
+ class Representation < Google::Apis::Core::JsonRepresentation; end
585
+
586
+ include Google::Apis::Core::JsonObjectSupport
587
+ end
588
+
577
589
  class GoogleCloudDiscoveryengineV1alphaPageInfo
578
590
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
591
 
@@ -1621,6 +1633,15 @@ module Google
1621
1633
  end
1622
1634
  end
1623
1635
 
1636
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
1637
+ # @private
1638
+ class Representation < Google::Apis::Core::JsonRepresentation
1639
+ property :name, as: 'name'
1640
+ property :ocr_config, as: 'ocrConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaOcrConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaOcrConfig::Representation
1641
+
1642
+ end
1643
+ end
1644
+
1624
1645
  class GoogleCloudDiscoveryengineV1alphaDoubleList
1625
1646
  # @private
1626
1647
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2019,6 +2040,15 @@ module Google
2019
2040
  end
2020
2041
  end
2021
2042
 
2043
+ class GoogleCloudDiscoveryengineV1alphaOcrConfig
2044
+ # @private
2045
+ class Representation < Google::Apis::Core::JsonRepresentation
2046
+ property :enabled, as: 'enabled'
2047
+ collection :enhanced_document_elements, as: 'enhancedDocumentElements'
2048
+ property :use_native_text, as: 'useNativeText'
2049
+ end
2050
+ end
2051
+
2022
2052
  class GoogleCloudDiscoveryengineV1alphaPageInfo
2023
2053
  # @private
2024
2054
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -473,6 +473,38 @@ module Google
473
473
  execute_or_queue_command(command, &block)
474
474
  end
475
475
 
476
+ # Gets a DocumentProcessingConfig.
477
+ # @param [String] name
478
+ # Required. Full DocumentProcessingConfig resource name. Format: `projects/`
479
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
480
+ # `data_store_id`/documentProcessingConfig`
481
+ # @param [String] fields
482
+ # Selector specifying which fields to include in a partial response.
483
+ # @param [String] quota_user
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
486
+ # @param [Google::Apis::RequestOptions] options
487
+ # Request-specific options
488
+ #
489
+ # @yield [result, err] Result & error if block supplied
490
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig]
494
+ #
495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
498
+ def get_project_location_collection_data_store_document_processing_config(name, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
500
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig::Representation
501
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
502
+ command.params['name'] = name unless name.nil?
503
+ command.query['fields'] = fields unless fields.nil?
504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
505
+ execute_or_queue_command(command, &block)
506
+ end
507
+
476
508
  # Gets the SiteSearchEngine.
477
509
  # @param [String] name
478
510
  # Required. Resource name of SiteSearchEngine, such as `projects/`project`/
@@ -631,6 +663,47 @@ module Google
631
663
  execute_or_queue_command(command, &block)
632
664
  end
633
665
 
666
+ # Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleon
667
+ # resource of DataStore. It's empty when DataStore is created. The first call to
668
+ # this method will set up DocumentProcessingConfig.
669
+ # @param [String] name
670
+ # Output only. The full resource name of the Document Processing Config. Format:
671
+ # `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
672
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig] google_cloud_discoveryengine_v1alpha_document_processing_config_object
673
+ # @param [String] update_mask
674
+ # Indicates which fields in the provided DocumentProcessingConfig to update. The
675
+ # following are the only supported fields: * DocumentProcessingConfig.orc_config
676
+ # If not set, all supported fields are updated.
677
+ # @param [String] fields
678
+ # Selector specifying which fields to include in a partial response.
679
+ # @param [String] quota_user
680
+ # Available to use for quota purposes for server-side applications. Can be any
681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
682
+ # @param [Google::Apis::RequestOptions] options
683
+ # Request-specific options
684
+ #
685
+ # @yield [result, err] Result & error if block supplied
686
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig] parsed result object
687
+ # @yieldparam err [StandardError] error object if request failed
688
+ #
689
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig]
690
+ #
691
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
692
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
693
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
694
+ def update_project_location_collection_data_store_document_processing_config(name, google_cloud_discoveryengine_v1alpha_document_processing_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
695
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
696
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig::Representation
697
+ command.request_object = google_cloud_discoveryengine_v1alpha_document_processing_config_object
698
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig::Representation
699
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
700
+ command.params['name'] = name unless name.nil?
701
+ command.query['updateMask'] = update_mask unless update_mask.nil?
702
+ command.query['fields'] = fields unless fields.nil?
703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
704
+ execute_or_queue_command(command, &block)
705
+ end
706
+
634
707
  # Creates a Document.
635
708
  # @param [String] parent
636
709
  # Required. The parent resource name, such as `projects/`project`/locations/`
@@ -3308,6 +3381,38 @@ module Google
3308
3381
  execute_or_queue_command(command, &block)
3309
3382
  end
3310
3383
 
3384
+ # Gets a DocumentProcessingConfig.
3385
+ # @param [String] name
3386
+ # Required. Full DocumentProcessingConfig resource name. Format: `projects/`
3387
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
3388
+ # `data_store_id`/documentProcessingConfig`
3389
+ # @param [String] fields
3390
+ # Selector specifying which fields to include in a partial response.
3391
+ # @param [String] quota_user
3392
+ # Available to use for quota purposes for server-side applications. Can be any
3393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3394
+ # @param [Google::Apis::RequestOptions] options
3395
+ # Request-specific options
3396
+ #
3397
+ # @yield [result, err] Result & error if block supplied
3398
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig] parsed result object
3399
+ # @yieldparam err [StandardError] error object if request failed
3400
+ #
3401
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig]
3402
+ #
3403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3406
+ def get_project_location_data_store_document_processing_config(name, fields: nil, quota_user: nil, options: nil, &block)
3407
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3408
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig::Representation
3409
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
3410
+ command.params['name'] = name unless name.nil?
3411
+ command.query['fields'] = fields unless fields.nil?
3412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3413
+ execute_or_queue_command(command, &block)
3414
+ end
3415
+
3311
3416
  # Gets the SiteSearchEngine.
3312
3417
  # @param [String] name
3313
3418
  # Required. Resource name of SiteSearchEngine, such as `projects/`project`/
@@ -3431,6 +3536,47 @@ module Google
3431
3536
  execute_or_queue_command(command, &block)
3432
3537
  end
3433
3538
 
3539
+ # Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleon
3540
+ # resource of DataStore. It's empty when DataStore is created. The first call to
3541
+ # this method will set up DocumentProcessingConfig.
3542
+ # @param [String] name
3543
+ # Output only. The full resource name of the Document Processing Config. Format:
3544
+ # `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
3545
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig] google_cloud_discoveryengine_v1alpha_document_processing_config_object
3546
+ # @param [String] update_mask
3547
+ # Indicates which fields in the provided DocumentProcessingConfig to update. The
3548
+ # following are the only supported fields: * DocumentProcessingConfig.orc_config
3549
+ # If not set, all supported fields are updated.
3550
+ # @param [String] fields
3551
+ # Selector specifying which fields to include in a partial response.
3552
+ # @param [String] quota_user
3553
+ # Available to use for quota purposes for server-side applications. Can be any
3554
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3555
+ # @param [Google::Apis::RequestOptions] options
3556
+ # Request-specific options
3557
+ #
3558
+ # @yield [result, err] Result & error if block supplied
3559
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig] parsed result object
3560
+ # @yieldparam err [StandardError] error object if request failed
3561
+ #
3562
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig]
3563
+ #
3564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3567
+ def update_project_location_data_store_document_processing_config(name, google_cloud_discoveryengine_v1alpha_document_processing_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3568
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3569
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig::Representation
3570
+ command.request_object = google_cloud_discoveryengine_v1alpha_document_processing_config_object
3571
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig::Representation
3572
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
3573
+ command.params['name'] = name unless name.nil?
3574
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3575
+ command.query['fields'] = fields unless fields.nil?
3576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3577
+ execute_or_queue_command(command, &block)
3578
+ end
3579
+
3434
3580
  # Creates a Document.
3435
3581
  # @param [String] parent
3436
3582
  # Required. The parent resource name, such as `projects/`project`/locations/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.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: 2023-12-17 00:00:00.000000000 Z
11
+ date: 2023-12-24 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/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.31.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []