google-apis-discoveryengine_v1beta 0.42.0 → 0.44.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.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1beta
18
18
  # Version of the google-apis-discoveryengine_v1beta gem
19
- GEM_VERSION = "0.42.0"
19
+ GEM_VERSION = "0.44.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240401"
25
+ REVISION = "20240502"
26
26
  end
27
27
  end
28
28
  end
@@ -466,6 +466,12 @@ module Google
466
466
  include Google::Apis::Core::JsonObjectSupport
467
467
  end
468
468
 
469
+ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
469
475
  class GoogleCloudDiscoveryengineV1alphaDataStore
470
476
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
477
 
@@ -652,55 +658,67 @@ module Google
652
658
  include Google::Apis::Core::JsonObjectSupport
653
659
  end
654
660
 
655
- class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
661
+ class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
656
662
  class Representation < Google::Apis::Core::JsonRepresentation; end
657
663
 
658
664
  include Google::Apis::Core::JsonObjectSupport
659
665
  end
660
666
 
661
- class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
667
+ class GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
662
668
  class Representation < Google::Apis::Core::JsonRepresentation; end
663
669
 
664
670
  include Google::Apis::Core::JsonObjectSupport
665
671
  end
666
672
 
667
- class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
673
+ class GoogleCloudDiscoveryengineV1alphaImportErrorConfig
668
674
  class Representation < Google::Apis::Core::JsonRepresentation; end
669
675
 
670
676
  include Google::Apis::Core::JsonObjectSupport
671
677
  end
672
678
 
673
- class GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
679
+ class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
674
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
681
 
676
682
  include Google::Apis::Core::JsonObjectSupport
677
683
  end
678
684
 
679
- class GoogleCloudDiscoveryengineV1alphaImportErrorConfig
685
+ class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
680
686
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
687
 
682
688
  include Google::Apis::Core::JsonObjectSupport
683
689
  end
684
690
 
685
- class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
691
+ class GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
686
692
  class Representation < Google::Apis::Core::JsonRepresentation; end
687
693
 
688
694
  include Google::Apis::Core::JsonObjectSupport
689
695
  end
690
696
 
691
- class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
697
+ class GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
692
698
  class Representation < Google::Apis::Core::JsonRepresentation; end
693
699
 
694
700
  include Google::Apis::Core::JsonObjectSupport
695
701
  end
696
702
 
697
- class GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
703
+ class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
698
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
705
 
700
706
  include Google::Apis::Core::JsonObjectSupport
701
707
  end
702
708
 
703
- class GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
709
+ class GoogleCloudDiscoveryengineV1alphaProject
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
715
+ class GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
716
+ class Representation < Google::Apis::Core::JsonRepresentation; end
717
+
718
+ include Google::Apis::Core::JsonObjectSupport
719
+ end
720
+
721
+ class GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata
704
722
  class Representation < Google::Apis::Core::JsonRepresentation; end
705
723
 
706
724
  include Google::Apis::Core::JsonObjectSupport
@@ -1234,6 +1252,12 @@ module Google
1234
1252
  include Google::Apis::Core::JsonObjectSupport
1235
1253
  end
1236
1254
 
1255
+ class GoogleCloudDiscoveryengineV1betaCustomTuningModel
1256
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1237
1261
  class GoogleCloudDiscoveryengineV1betaDataStore
1238
1262
  class Representation < Google::Apis::Core::JsonRepresentation; end
1239
1263
 
@@ -1516,6 +1540,12 @@ module Google
1516
1540
  include Google::Apis::Core::JsonObjectSupport
1517
1541
  end
1518
1542
 
1543
+ class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
1544
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1545
+
1546
+ include Google::Apis::Core::JsonObjectSupport
1547
+ end
1548
+
1519
1549
  class GoogleCloudDiscoveryengineV1betaListDataStoresResponse
1520
1550
  class Representation < Google::Apis::Core::JsonRepresentation; end
1521
1551
 
@@ -2026,6 +2056,12 @@ module Google
2026
2056
  include Google::Apis::Core::JsonObjectSupport
2027
2057
  end
2028
2058
 
2059
+ class GoogleCloudDiscoveryengineV1betaTuneEngineResponse
2060
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2061
+
2062
+ include Google::Apis::Core::JsonObjectSupport
2063
+ end
2064
+
2029
2065
  class GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
2030
2066
  class Representation < Google::Apis::Core::JsonRepresentation; end
2031
2067
 
@@ -2501,6 +2537,7 @@ module Google
2501
2537
  property :indexing_status, as: 'indexingStatus'
2502
2538
  property :name, as: 'name'
2503
2539
  property :provided_uri_pattern, as: 'providedUriPattern'
2540
+ property :root_domain_uri, as: 'rootDomainUri'
2504
2541
  property :site_verification_info, as: 'siteVerificationInfo', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1SiteVerificationInfo, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1SiteVerificationInfo::Representation
2505
2542
 
2506
2543
  property :type, as: 'type'
@@ -2766,6 +2803,18 @@ module Google
2766
2803
  end
2767
2804
  end
2768
2805
 
2806
+ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel
2807
+ # @private
2808
+ class Representation < Google::Apis::Core::JsonRepresentation
2809
+ property :create_time, as: 'createTime'
2810
+ property :display_name, as: 'displayName'
2811
+ property :model_state, as: 'modelState'
2812
+ property :model_version, :numeric_string => true, as: 'modelVersion'
2813
+ property :name, as: 'name'
2814
+ property :training_start_time, as: 'trainingStartTime'
2815
+ end
2816
+ end
2817
+
2769
2818
  class GoogleCloudDiscoveryengineV1alphaDataStore
2770
2819
  # @private
2771
2820
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3028,6 +3077,7 @@ module Google
3028
3077
  class GoogleCloudDiscoveryengineV1alphaFieldConfig
3029
3078
  # @private
3030
3079
  class Representation < Google::Apis::Core::JsonRepresentation
3080
+ collection :advanced_site_search_data_sources, as: 'advancedSiteSearchDataSources'
3031
3081
  property :completable_option, as: 'completableOption'
3032
3082
  property :dynamic_facetable_option, as: 'dynamicFacetableOption'
3033
3083
  property :field_path, as: 'fieldPath'
@@ -3056,24 +3106,6 @@ module Google
3056
3106
  end
3057
3107
  end
3058
3108
 
3059
- class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
3060
- # @private
3061
- class Representation < Google::Apis::Core::JsonRepresentation
3062
- property :create_time, as: 'createTime'
3063
- property :update_time, as: 'updateTime'
3064
- end
3065
- end
3066
-
3067
- class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
3068
- # @private
3069
- class Representation < Google::Apis::Core::JsonRepresentation
3070
- collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3071
-
3072
- property :failure_count, :numeric_string => true, as: 'failureCount'
3073
- property :success_count, :numeric_string => true, as: 'successCount'
3074
- end
3075
- end
3076
-
3077
3109
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
3078
3110
  # @private
3079
3111
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3142,6 +3174,42 @@ module Google
3142
3174
  end
3143
3175
  end
3144
3176
 
3177
+ class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
3178
+ # @private
3179
+ class Representation < Google::Apis::Core::JsonRepresentation
3180
+ collection :models, as: 'models', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaCustomTuningModel, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaCustomTuningModel::Representation
3181
+
3182
+ end
3183
+ end
3184
+
3185
+ class GoogleCloudDiscoveryengineV1alphaProject
3186
+ # @private
3187
+ class Representation < Google::Apis::Core::JsonRepresentation
3188
+ property :create_time, as: 'createTime'
3189
+ property :name, as: 'name'
3190
+ property :provision_completion_time, as: 'provisionCompletionTime'
3191
+ hash :service_terms_map, as: 'serviceTermsMap', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaProjectServiceTerms, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaProjectServiceTerms::Representation
3192
+
3193
+ end
3194
+ end
3195
+
3196
+ class GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
3197
+ # @private
3198
+ class Representation < Google::Apis::Core::JsonRepresentation
3199
+ property :accept_time, as: 'acceptTime'
3200
+ property :decline_time, as: 'declineTime'
3201
+ property :id, as: 'id'
3202
+ property :state, as: 'state'
3203
+ property :version, as: 'version'
3204
+ end
3205
+ end
3206
+
3207
+ class GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata
3208
+ # @private
3209
+ class Representation < Google::Apis::Core::JsonRepresentation
3210
+ end
3211
+ end
3212
+
3145
3213
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
3146
3214
  # @private
3147
3215
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3293,6 +3361,7 @@ module Google
3293
3361
  property :indexing_status, as: 'indexingStatus'
3294
3362
  property :name, as: 'name'
3295
3363
  property :provided_uri_pattern, as: 'providedUriPattern'
3364
+ property :root_domain_uri, as: 'rootDomainUri'
3296
3365
  property :site_verification_info, as: 'siteVerificationInfo', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo::Representation
3297
3366
 
3298
3367
  property :type, as: 'type'
@@ -3331,6 +3400,7 @@ module Google
3331
3400
  collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3332
3401
 
3333
3402
  hash :metrics, as: 'metrics'
3403
+ property :model_name, as: 'modelName'
3334
3404
  property :model_status, as: 'modelStatus'
3335
3405
  end
3336
3406
  end
@@ -3581,6 +3651,7 @@ module Google
3581
3651
  class Representation < Google::Apis::Core::JsonRepresentation
3582
3652
  property :answer, as: 'answer', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswer, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswer::Representation
3583
3653
 
3654
+ property :answer_query_token, as: 'answerQueryToken'
3584
3655
  property :session, as: 'session', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSession, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSession::Representation
3585
3656
 
3586
3657
  end
@@ -3810,6 +3881,7 @@ module Google
3810
3881
 
3811
3882
  property :grounding_spec, as: 'groundingSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingSpec::Representation
3812
3883
 
3884
+ hash :user_labels, as: 'userLabels'
3813
3885
  end
3814
3886
  end
3815
3887
 
@@ -3830,6 +3902,7 @@ module Google
3830
3902
  collection :citation_indices, as: 'citationIndices'
3831
3903
  property :claim_text, as: 'claimText'
3832
3904
  property :end_pos, as: 'endPos'
3905
+ property :grounding_check_required, as: 'groundingCheckRequired'
3833
3906
  property :start_pos, as: 'startPos'
3834
3907
  end
3835
3908
  end
@@ -3990,6 +4063,18 @@ module Google
3990
4063
  end
3991
4064
  end
3992
4065
 
4066
+ class GoogleCloudDiscoveryengineV1betaCustomTuningModel
4067
+ # @private
4068
+ class Representation < Google::Apis::Core::JsonRepresentation
4069
+ property :create_time, as: 'createTime'
4070
+ property :display_name, as: 'displayName'
4071
+ property :model_state, as: 'modelState'
4072
+ property :model_version, :numeric_string => true, as: 'modelVersion'
4073
+ property :name, as: 'name'
4074
+ property :training_start_time, as: 'trainingStartTime'
4075
+ end
4076
+ end
4077
+
3993
4078
  class GoogleCloudDiscoveryengineV1betaDataStore
3994
4079
  # @private
3995
4080
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4230,6 +4315,7 @@ module Google
4230
4315
  # @private
4231
4316
  class Representation < Google::Apis::Core::JsonRepresentation
4232
4317
  property :chunk_text, as: 'chunkText'
4318
+ property :index, as: 'index'
4233
4319
  property :source, as: 'source'
4234
4320
  hash :source_metadata, as: 'sourceMetadata'
4235
4321
  end
@@ -4442,6 +4528,14 @@ module Google
4442
4528
  end
4443
4529
  end
4444
4530
 
4531
+ class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
4532
+ # @private
4533
+ class Representation < Google::Apis::Core::JsonRepresentation
4534
+ collection :models, as: 'models', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCustomTuningModel, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCustomTuningModel::Representation
4535
+
4536
+ end
4537
+ end
4538
+
4445
4539
  class GoogleCloudDiscoveryengineV1betaListDataStoresResponse
4446
4540
  # @private
4447
4541
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5195,6 +5289,7 @@ module Google
5195
5289
  property :indexing_status, as: 'indexingStatus'
5196
5290
  property :name, as: 'name'
5197
5291
  property :provided_uri_pattern, as: 'providedUriPattern'
5292
+ property :root_domain_uri, as: 'rootDomainUri'
5198
5293
  property :site_verification_info, as: 'siteVerificationInfo', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSiteVerificationInfo, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSiteVerificationInfo::Representation
5199
5294
 
5200
5295
  property :type, as: 'type'
@@ -5241,6 +5336,7 @@ module Google
5241
5336
 
5242
5337
  property :gcs_training_input, as: 'gcsTrainingInput', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput::Representation
5243
5338
 
5339
+ property :model_id, as: 'modelId'
5244
5340
  property :model_type, as: 'modelType'
5245
5341
  end
5246
5342
  end
@@ -5263,6 +5359,7 @@ module Google
5263
5359
  collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
5264
5360
 
5265
5361
  hash :metrics, as: 'metrics'
5362
+ property :model_name, as: 'modelName'
5266
5363
  property :model_status, as: 'modelStatus'
5267
5364
  end
5268
5365
  end
@@ -5292,6 +5389,12 @@ module Google
5292
5389
  end
5293
5390
  end
5294
5391
 
5392
+ class GoogleCloudDiscoveryengineV1betaTuneEngineResponse
5393
+ # @private
5394
+ class Representation < Google::Apis::Core::JsonRepresentation
5395
+ end
5396
+ end
5397
+
5295
5398
  class GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
5296
5399
  # @private
5297
5400
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -342,7 +342,7 @@ module Google
342
342
  # permission to list DataStores under this location, regardless of whether or
343
343
  # not this data store exists, a PERMISSION_DENIED error is returned.
344
344
  # @param [String] filter
345
- # Filter by solution type. For example: filter = 'solution_type:
345
+ # Filter by solution type . For example: filter = 'solution_type:
346
346
  # SOLUTION_TYPE_SEARCH'
347
347
  # @param [Fixnum] page_size
348
348
  # Maximum number of DataStores to return. If unspecified, defaults to 10. The
@@ -666,6 +666,9 @@ module Google
666
666
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument] google_cloud_discoveryengine_v1beta_document_object
667
667
  # @param [Boolean] allow_missing
668
668
  # If set to true, and the Document is not found, a new Document will be created.
669
+ # @param [String] update_mask
670
+ # Indicates which fields in the provided imported 'document' to update. If not
671
+ # set, will by default update all fields.
669
672
  # @param [String] fields
670
673
  # Selector specifying which fields to include in a partial response.
671
674
  # @param [String] quota_user
@@ -683,7 +686,7 @@ module Google
683
686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
686
- def patch_project_location_collection_data_store_branch_document(name, google_cloud_discoveryengine_v1beta_document_object = nil, allow_missing: nil, fields: nil, quota_user: nil, options: nil, &block)
689
+ def patch_project_location_collection_data_store_branch_document(name, google_cloud_discoveryengine_v1beta_document_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
687
690
  command = make_simple_command(:patch, 'v1beta/{+name}', options)
688
691
  command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument::Representation
689
692
  command.request_object = google_cloud_discoveryengine_v1beta_document_object
@@ -691,6 +694,7 @@ module Google
691
694
  command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument
692
695
  command.params['name'] = name unless name.nil?
693
696
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
697
+ command.query['updateMask'] = update_mask unless update_mask.nil?
694
698
  command.query['fields'] = fields unless fields.nil?
695
699
  command.query['quotaUser'] = quota_user unless quota_user.nil?
696
700
  execute_or_queue_command(command, &block)
@@ -996,9 +1000,9 @@ module Google
996
1000
  # Updates a Conversation. Conversation action type cannot be changed. If the
997
1001
  # Conversation to update does not exist, a NOT_FOUND error is returned.
998
1002
  # @param [String] name
999
- # Immutable. Fully qualified name `project/*/locations/global/collections/`
1000
- # collection`/dataStore/*/conversations/*` or `project/*/locations/global/
1001
- # collections/`collection`/engines/*/conversations/*`.
1003
+ # Immutable. Fully qualified name `projects/`project`/locations/global/
1004
+ # collections/`collection`/dataStore/*/conversations/*` or `projects/`project`/
1005
+ # locations/global/collections/`collection`/engines/*/conversations/*`.
1002
1006
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversation] google_cloud_discoveryengine_v1beta_conversation_object
1003
1007
  # @param [String] update_mask
1004
1008
  # Indicates which fields in the provided Conversation to update. The following
@@ -1034,6 +1038,38 @@ module Google
1034
1038
  execute_or_queue_command(command, &block)
1035
1039
  end
1036
1040
 
1041
+ # Gets a list of all the custom models.
1042
+ # @param [String] data_store
1043
+ # Required. The resource name of the parent Data Store, such as `projects/*/
1044
+ # locations/global/collections/default_collection/dataStores/default_data_store`.
1045
+ # This field is used to identify the data store where to fetch the models from.
1046
+ # @param [String] fields
1047
+ # Selector specifying which fields to include in a partial response.
1048
+ # @param [String] quota_user
1049
+ # Available to use for quota purposes for server-side applications. Can be any
1050
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1051
+ # @param [Google::Apis::RequestOptions] options
1052
+ # Request-specific options
1053
+ #
1054
+ # @yield [result, err] Result & error if block supplied
1055
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListCustomModelsResponse] parsed result object
1056
+ # @yieldparam err [StandardError] error object if request failed
1057
+ #
1058
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListCustomModelsResponse]
1059
+ #
1060
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1061
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1062
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1063
+ def list_project_location_collection_data_store_custom_models(data_store, fields: nil, quota_user: nil, options: nil, &block)
1064
+ command = make_simple_command(:get, 'v1beta/{+dataStore}/customModels', options)
1065
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListCustomModelsResponse::Representation
1066
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
1067
+ command.params['dataStore'] = data_store unless data_store.nil?
1068
+ command.query['fields'] = fields unless fields.nil?
1069
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1070
+ execute_or_queue_command(command, &block)
1071
+ end
1072
+
1037
1073
  # Gets the latest state of a long-running operation. Clients can use this method
1038
1074
  # to poll the operation result at intervals as recommended by the API service.
1039
1075
  # @param [String] name
@@ -1815,8 +1851,8 @@ module Google
1815
1851
  # Updates a Session. Session action type cannot be changed. If the Session to
1816
1852
  # update does not exist, a NOT_FOUND error is returned.
1817
1853
  # @param [String] name
1818
- # Immutable. Fully qualified name `project/*/locations/global/collections/`
1819
- # collection`/engines/`engine`/sessions/*`
1854
+ # Immutable. Fully qualified name `projects/`project`/locations/global/
1855
+ # collections/`collection`/engines/`engine`/sessions/*`
1820
1856
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSession] google_cloud_discoveryengine_v1beta_session_object
1821
1857
  # @param [String] update_mask
1822
1858
  # Indicates which fields in the provided Session to update. The following are
@@ -2587,8 +2623,12 @@ module Google
2587
2623
 
2588
2624
  # Writes a single user event.
2589
2625
  # @param [String] parent
2590
- # Required. The parent DataStore resource name, such as `projects/`project`/
2591
- # locations/`location`/collections/`collection`/dataStores/`data_store``.
2626
+ # Required. The parent resource name. If the write user event action is applied
2627
+ # in DataStore level, the format is: `projects/`project`/locations/`location`/
2628
+ # collections/`collection`/dataStores/`data_store``. If the write user event
2629
+ # action is applied in Location level, for example, the event with Document
2630
+ # across multiple DataStore, the format is: `projects/`project`/locations/`
2631
+ # location``.
2592
2632
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] google_cloud_discoveryengine_v1beta_user_event_object
2593
2633
  # @param [String] fields
2594
2634
  # Selector specifying which fields to include in a partial response.
@@ -3102,9 +3142,9 @@ module Google
3102
3142
  # Updates a Conversation. Conversation action type cannot be changed. If the
3103
3143
  # Conversation to update does not exist, a NOT_FOUND error is returned.
3104
3144
  # @param [String] name
3105
- # Immutable. Fully qualified name `project/*/locations/global/collections/`
3106
- # collection`/dataStore/*/conversations/*` or `project/*/locations/global/
3107
- # collections/`collection`/engines/*/conversations/*`.
3145
+ # Immutable. Fully qualified name `projects/`project`/locations/global/
3146
+ # collections/`collection`/dataStore/*/conversations/*` or `projects/`project`/
3147
+ # locations/global/collections/`collection`/engines/*/conversations/*`.
3108
3148
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversation] google_cloud_discoveryengine_v1beta_conversation_object
3109
3149
  # @param [String] update_mask
3110
3150
  # Indicates which fields in the provided Conversation to update. The following
@@ -3592,8 +3632,8 @@ module Google
3592
3632
  # Updates a Session. Session action type cannot be changed. If the Session to
3593
3633
  # update does not exist, a NOT_FOUND error is returned.
3594
3634
  # @param [String] name
3595
- # Immutable. Fully qualified name `project/*/locations/global/collections/`
3596
- # collection`/engines/`engine`/sessions/*`
3635
+ # Immutable. Fully qualified name `projects/`project`/locations/global/
3636
+ # collections/`collection`/engines/`engine`/sessions/*`
3597
3637
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSession] google_cloud_discoveryengine_v1beta_session_object
3598
3638
  # @param [String] update_mask
3599
3639
  # Indicates which fields in the provided Session to update. The following are
@@ -3952,7 +3992,7 @@ module Google
3952
3992
  # permission to list DataStores under this location, regardless of whether or
3953
3993
  # not this data store exists, a PERMISSION_DENIED error is returned.
3954
3994
  # @param [String] filter
3955
- # Filter by solution type. For example: filter = 'solution_type:
3995
+ # Filter by solution type . For example: filter = 'solution_type:
3956
3996
  # SOLUTION_TYPE_SEARCH'
3957
3997
  # @param [Fixnum] page_size
3958
3998
  # Maximum number of DataStores to return. If unspecified, defaults to 10. The
@@ -4241,6 +4281,9 @@ module Google
4241
4281
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument] google_cloud_discoveryengine_v1beta_document_object
4242
4282
  # @param [Boolean] allow_missing
4243
4283
  # If set to true, and the Document is not found, a new Document will be created.
4284
+ # @param [String] update_mask
4285
+ # Indicates which fields in the provided imported 'document' to update. If not
4286
+ # set, will by default update all fields.
4244
4287
  # @param [String] fields
4245
4288
  # Selector specifying which fields to include in a partial response.
4246
4289
  # @param [String] quota_user
@@ -4258,7 +4301,7 @@ module Google
4258
4301
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4259
4302
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4260
4303
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4261
- def patch_project_location_data_store_branch_document(name, google_cloud_discoveryengine_v1beta_document_object = nil, allow_missing: nil, fields: nil, quota_user: nil, options: nil, &block)
4304
+ def patch_project_location_data_store_branch_document(name, google_cloud_discoveryengine_v1beta_document_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4262
4305
  command = make_simple_command(:patch, 'v1beta/{+name}', options)
4263
4306
  command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument::Representation
4264
4307
  command.request_object = google_cloud_discoveryengine_v1beta_document_object
@@ -4266,6 +4309,7 @@ module Google
4266
4309
  command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument
4267
4310
  command.params['name'] = name unless name.nil?
4268
4311
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
4312
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4269
4313
  command.query['fields'] = fields unless fields.nil?
4270
4314
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4271
4315
  execute_or_queue_command(command, &block)
@@ -4571,9 +4615,9 @@ module Google
4571
4615
  # Updates a Conversation. Conversation action type cannot be changed. If the
4572
4616
  # Conversation to update does not exist, a NOT_FOUND error is returned.
4573
4617
  # @param [String] name
4574
- # Immutable. Fully qualified name `project/*/locations/global/collections/`
4575
- # collection`/dataStore/*/conversations/*` or `project/*/locations/global/
4576
- # collections/`collection`/engines/*/conversations/*`.
4618
+ # Immutable. Fully qualified name `projects/`project`/locations/global/
4619
+ # collections/`collection`/dataStore/*/conversations/*` or `projects/`project`/
4620
+ # locations/global/collections/`collection`/engines/*/conversations/*`.
4577
4621
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversation] google_cloud_discoveryengine_v1beta_conversation_object
4578
4622
  # @param [String] update_mask
4579
4623
  # Indicates which fields in the provided Conversation to update. The following
@@ -5319,8 +5363,8 @@ module Google
5319
5363
  # Updates a Session. Session action type cannot be changed. If the Session to
5320
5364
  # update does not exist, a NOT_FOUND error is returned.
5321
5365
  # @param [String] name
5322
- # Immutable. Fully qualified name `project/*/locations/global/collections/`
5323
- # collection`/engines/`engine`/sessions/*`
5366
+ # Immutable. Fully qualified name `projects/`project`/locations/global/
5367
+ # collections/`collection`/engines/`engine`/sessions/*`
5324
5368
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSession] google_cloud_discoveryengine_v1beta_session_object
5325
5369
  # @param [String] update_mask
5326
5370
  # Indicates which fields in the provided Session to update. The following are
@@ -5868,8 +5912,12 @@ module Google
5868
5912
 
5869
5913
  # Writes a single user event.
5870
5914
  # @param [String] parent
5871
- # Required. The parent DataStore resource name, such as `projects/`project`/
5872
- # locations/`location`/collections/`collection`/dataStores/`data_store``.
5915
+ # Required. The parent resource name. If the write user event action is applied
5916
+ # in DataStore level, the format is: `projects/`project`/locations/`location`/
5917
+ # collections/`collection`/dataStores/`data_store``. If the write user event
5918
+ # action is applied in Location level, for example, the event with Document
5919
+ # across multiple DataStore, the format is: `projects/`project`/locations/`
5920
+ # location``.
5873
5921
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] google_cloud_discoveryengine_v1beta_user_event_object
5874
5922
  # @param [String] fields
5875
5923
  # Selector specifying which fields to include in a partial response.
@@ -6039,6 +6087,44 @@ module Google
6039
6087
  execute_or_queue_command(command, &block)
6040
6088
  end
6041
6089
 
6090
+ # Writes a single user event.
6091
+ # @param [String] parent
6092
+ # Required. The parent resource name. If the write user event action is applied
6093
+ # in DataStore level, the format is: `projects/`project`/locations/`location`/
6094
+ # collections/`collection`/dataStores/`data_store``. If the write user event
6095
+ # action is applied in Location level, for example, the event with Document
6096
+ # across multiple DataStore, the format is: `projects/`project`/locations/`
6097
+ # location``.
6098
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] google_cloud_discoveryengine_v1beta_user_event_object
6099
+ # @param [String] fields
6100
+ # Selector specifying which fields to include in a partial response.
6101
+ # @param [String] quota_user
6102
+ # Available to use for quota purposes for server-side applications. Can be any
6103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6104
+ # @param [Google::Apis::RequestOptions] options
6105
+ # Request-specific options
6106
+ #
6107
+ # @yield [result, err] Result & error if block supplied
6108
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] parsed result object
6109
+ # @yieldparam err [StandardError] error object if request failed
6110
+ #
6111
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent]
6112
+ #
6113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6116
+ def write_project_location_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6117
+ command = make_simple_command(:post, 'v1beta/{+parent}/userEvents:write', options)
6118
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
6119
+ command.request_object = google_cloud_discoveryengine_v1beta_user_event_object
6120
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
6121
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent
6122
+ command.params['parent'] = parent unless parent.nil?
6123
+ command.query['fields'] = fields unless fields.nil?
6124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6125
+ execute_or_queue_command(command, &block)
6126
+ end
6127
+
6042
6128
  # Gets the latest state of a long-running operation. Clients can use this method
6043
6129
  # to poll the operation result at intervals as recommended by the API service.
6044
6130
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.0
4
+ version: 0.44.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-04-07 00:00:00.000000000 Z
11
+ date: 2024-05-05 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_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.44.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []