google-apis-discoveryengine_v1beta 0.45.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,43 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Provisions the project resource. During the process, related systems will get
55
+ # prepared and initialized. Caller must read the [Terms for data use](https://
56
+ # cloud.google.com/retail/data-use-terms), and optionally specify in request to
57
+ # provide consent to that service terms.
58
+ # @param [String] name
59
+ # Required. Full resource name of a Project, such as `projects/`
60
+ # project_id_or_number``.
61
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaProvisionProjectRequest] google_cloud_discoveryengine_v1beta_provision_project_request_object
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def provision_project(name, google_cloud_discoveryengine_v1beta_provision_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:post, 'v1beta/{+name}:provision', options)
81
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaProvisionProjectRequest::Representation
82
+ command.request_object = google_cloud_discoveryengine_v1beta_provision_project_request_object
83
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
84
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
85
+ command.params['name'] = name unless name.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
54
91
  # Gets the latest state of a long-running operation. Clients can use this method
55
92
  # to poll the operation result at intervals as recommended by the API service.
56
93
  # @param [String] name
@@ -342,8 +379,8 @@ module Google
342
379
  # permission to list DataStores under this location, regardless of whether or
343
380
  # not this data store exists, a PERMISSION_DENIED error is returned.
344
381
  # @param [String] filter
345
- # Filter by solution type . For example: filter = 'solution_type:
346
- # SOLUTION_TYPE_SEARCH'
382
+ # Filter by solution type . For example: `filter = 'solution_type:
383
+ # SOLUTION_TYPE_SEARCH'`
347
384
  # @param [Fixnum] page_size
348
385
  # Maximum number of DataStores to return. If unspecified, defaults to 10. The
349
386
  # maximum allowed value is 50. Values above 50 will be coerced to 50. If this
@@ -850,6 +887,197 @@ module Google
850
887
  execute_or_queue_command(command, &block)
851
888
  end
852
889
 
890
+ # Creates a Control. By default 1000 controls are allowed for a data store. A
891
+ # request can be submitted to adjust this limit. If the Control to create
892
+ # already exists, an ALREADY_EXISTS error is returned.
893
+ # @param [String] parent
894
+ # Required. Full resource name of parent data store. Format: `projects/`
895
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
896
+ # `data_store_id``
897
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] google_cloud_discoveryengine_v1beta_control_object
898
+ # @param [String] control_id
899
+ # Required. The ID to use for the Control, which will become the final component
900
+ # of the Control's resource name. This value must be within 1-63 characters.
901
+ # Valid characters are /a-z-_/.
902
+ # @param [String] fields
903
+ # Selector specifying which fields to include in a partial response.
904
+ # @param [String] quota_user
905
+ # Available to use for quota purposes for server-side applications. Can be any
906
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
907
+ # @param [Google::Apis::RequestOptions] options
908
+ # Request-specific options
909
+ #
910
+ # @yield [result, err] Result & error if block supplied
911
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
912
+ # @yieldparam err [StandardError] error object if request failed
913
+ #
914
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
915
+ #
916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
919
+ def create_project_location_collection_data_store_control(parent, google_cloud_discoveryengine_v1beta_control_object = nil, control_id: nil, fields: nil, quota_user: nil, options: nil, &block)
920
+ command = make_simple_command(:post, 'v1beta/{+parent}/controls', options)
921
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
922
+ command.request_object = google_cloud_discoveryengine_v1beta_control_object
923
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
924
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
925
+ command.params['parent'] = parent unless parent.nil?
926
+ command.query['controlId'] = control_id unless control_id.nil?
927
+ command.query['fields'] = fields unless fields.nil?
928
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
929
+ execute_or_queue_command(command, &block)
930
+ end
931
+
932
+ # Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error
933
+ # is returned.
934
+ # @param [String] name
935
+ # Required. The resource name of the Control to delete. Format: `projects/`
936
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
937
+ # `data_store_id`/controls/`control_id``
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # @param [Google::Apis::RequestOptions] options
944
+ # Request-specific options
945
+ #
946
+ # @yield [result, err] Result & error if block supplied
947
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty] parsed result object
948
+ # @yieldparam err [StandardError] error object if request failed
949
+ #
950
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty]
951
+ #
952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
955
+ def delete_project_location_collection_data_store_control(name, fields: nil, quota_user: nil, options: nil, &block)
956
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
957
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty::Representation
958
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty
959
+ command.params['name'] = name unless name.nil?
960
+ command.query['fields'] = fields unless fields.nil?
961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
962
+ execute_or_queue_command(command, &block)
963
+ end
964
+
965
+ # Gets a Control.
966
+ # @param [String] name
967
+ # Required. The resource name of the Control to get. Format: `projects/`
968
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
969
+ # `data_store_id`/controls/`control_id``
970
+ # @param [String] fields
971
+ # Selector specifying which fields to include in a partial response.
972
+ # @param [String] quota_user
973
+ # Available to use for quota purposes for server-side applications. Can be any
974
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
975
+ # @param [Google::Apis::RequestOptions] options
976
+ # Request-specific options
977
+ #
978
+ # @yield [result, err] Result & error if block supplied
979
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
980
+ # @yieldparam err [StandardError] error object if request failed
981
+ #
982
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
983
+ #
984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
987
+ def get_project_location_collection_data_store_control(name, fields: nil, quota_user: nil, options: nil, &block)
988
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
989
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
990
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
991
+ command.params['name'] = name unless name.nil?
992
+ command.query['fields'] = fields unless fields.nil?
993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
994
+ execute_or_queue_command(command, &block)
995
+ end
996
+
997
+ # Lists all Controls by their parent DataStore.
998
+ # @param [String] parent
999
+ # Required. The data store resource name. Format: `projects/`project_number`/
1000
+ # locations/`location_id`/collections/`collection_id`/dataStores/`data_store_id``
1001
+ # @param [String] filter
1002
+ # Optional. A filter to apply on the list results. Supported features: * List
1003
+ # all the products under the parent branch if filter is unset. Currently this
1004
+ # field is unsupported.
1005
+ # @param [Fixnum] page_size
1006
+ # Optional. Maximum number of results to return. If unspecified, defaults to 50.
1007
+ # Max allowed value is 1000.
1008
+ # @param [String] page_token
1009
+ # Optional. A page token, received from a previous `ListControls` call. Provide
1010
+ # this to retrieve the subsequent page.
1011
+ # @param [String] fields
1012
+ # Selector specifying which fields to include in a partial response.
1013
+ # @param [String] quota_user
1014
+ # Available to use for quota purposes for server-side applications. Can be any
1015
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1016
+ # @param [Google::Apis::RequestOptions] options
1017
+ # Request-specific options
1018
+ #
1019
+ # @yield [result, err] Result & error if block supplied
1020
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse] parsed result object
1021
+ # @yieldparam err [StandardError] error object if request failed
1022
+ #
1023
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse]
1024
+ #
1025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1028
+ def list_project_location_collection_data_store_controls(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1029
+ command = make_simple_command(:get, 'v1beta/{+parent}/controls', options)
1030
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse::Representation
1031
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse
1032
+ command.params['parent'] = parent unless parent.nil?
1033
+ command.query['filter'] = filter unless filter.nil?
1034
+ command.query['pageSize'] = page_size unless page_size.nil?
1035
+ command.query['pageToken'] = page_token unless page_token.nil?
1036
+ command.query['fields'] = fields unless fields.nil?
1037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1038
+ execute_or_queue_command(command, &block)
1039
+ end
1040
+
1041
+ # Updates a Control. Control action type cannot be changed. If the Control to
1042
+ # update does not exist, a NOT_FOUND error is returned.
1043
+ # @param [String] name
1044
+ # Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/
1045
+ # controls/*`
1046
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] google_cloud_discoveryengine_v1beta_control_object
1047
+ # @param [String] update_mask
1048
+ # Optional. Indicates which fields in the provided Control to update. The
1049
+ # following are NOT supported: * Control.name * Control.solution_type If not set
1050
+ # or empty, all supported fields are updated.
1051
+ # @param [String] fields
1052
+ # Selector specifying which fields to include in a partial response.
1053
+ # @param [String] quota_user
1054
+ # Available to use for quota purposes for server-side applications. Can be any
1055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1056
+ # @param [Google::Apis::RequestOptions] options
1057
+ # Request-specific options
1058
+ #
1059
+ # @yield [result, err] Result & error if block supplied
1060
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
1061
+ # @yieldparam err [StandardError] error object if request failed
1062
+ #
1063
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
1064
+ #
1065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1068
+ def patch_project_location_collection_data_store_control(name, google_cloud_discoveryengine_v1beta_control_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1069
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
1070
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
1071
+ command.request_object = google_cloud_discoveryengine_v1beta_control_object
1072
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
1073
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
1074
+ command.params['name'] = name unless name.nil?
1075
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1076
+ command.query['fields'] = fields unless fields.nil?
1077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1078
+ execute_or_queue_command(command, &block)
1079
+ end
1080
+
853
1081
  # Converses a conversation.
854
1082
  # @param [String] name
855
1083
  # Required. The resource name of the Conversation to get. Format: `projects/`
@@ -2670,6 +2898,9 @@ module Google
2670
2898
  # across multiple DataStore, the format is: `projects/`project`/locations/`
2671
2899
  # location``.
2672
2900
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] google_cloud_discoveryengine_v1beta_user_event_object
2901
+ # @param [Boolean] write_async
2902
+ # If set to true, the user event is written asynchronously after validation, and
2903
+ # the API responds without waiting for the write.
2673
2904
  # @param [String] fields
2674
2905
  # Selector specifying which fields to include in a partial response.
2675
2906
  # @param [String] quota_user
@@ -2687,13 +2918,14 @@ module Google
2687
2918
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2688
2919
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2689
2920
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2690
- def write_project_location_collection_data_store_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2921
+ def write_project_location_collection_data_store_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block)
2691
2922
  command = make_simple_command(:post, 'v1beta/{+parent}/userEvents:write', options)
2692
2923
  command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
2693
2924
  command.request_object = google_cloud_discoveryengine_v1beta_user_event_object
2694
2925
  command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
2695
2926
  command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent
2696
2927
  command.params['parent'] = parent unless parent.nil?
2928
+ command.query['writeAsync'] = write_async unless write_async.nil?
2697
2929
  command.query['fields'] = fields unless fields.nil?
2698
2930
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2699
2931
  execute_or_queue_command(command, &block)
@@ -2992,6 +3224,197 @@ module Google
2992
3224
  execute_or_queue_command(command, &block)
2993
3225
  end
2994
3226
 
3227
+ # Creates a Control. By default 1000 controls are allowed for a data store. A
3228
+ # request can be submitted to adjust this limit. If the Control to create
3229
+ # already exists, an ALREADY_EXISTS error is returned.
3230
+ # @param [String] parent
3231
+ # Required. Full resource name of parent data store. Format: `projects/`
3232
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
3233
+ # `data_store_id``
3234
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] google_cloud_discoveryengine_v1beta_control_object
3235
+ # @param [String] control_id
3236
+ # Required. The ID to use for the Control, which will become the final component
3237
+ # of the Control's resource name. This value must be within 1-63 characters.
3238
+ # Valid characters are /a-z-_/.
3239
+ # @param [String] fields
3240
+ # Selector specifying which fields to include in a partial response.
3241
+ # @param [String] quota_user
3242
+ # Available to use for quota purposes for server-side applications. Can be any
3243
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3244
+ # @param [Google::Apis::RequestOptions] options
3245
+ # Request-specific options
3246
+ #
3247
+ # @yield [result, err] Result & error if block supplied
3248
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
3249
+ # @yieldparam err [StandardError] error object if request failed
3250
+ #
3251
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
3252
+ #
3253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3256
+ def create_project_location_collection_engine_control(parent, google_cloud_discoveryengine_v1beta_control_object = nil, control_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3257
+ command = make_simple_command(:post, 'v1beta/{+parent}/controls', options)
3258
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
3259
+ command.request_object = google_cloud_discoveryengine_v1beta_control_object
3260
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
3261
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
3262
+ command.params['parent'] = parent unless parent.nil?
3263
+ command.query['controlId'] = control_id unless control_id.nil?
3264
+ command.query['fields'] = fields unless fields.nil?
3265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3266
+ execute_or_queue_command(command, &block)
3267
+ end
3268
+
3269
+ # Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error
3270
+ # is returned.
3271
+ # @param [String] name
3272
+ # Required. The resource name of the Control to delete. Format: `projects/`
3273
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
3274
+ # `data_store_id`/controls/`control_id``
3275
+ # @param [String] fields
3276
+ # Selector specifying which fields to include in a partial response.
3277
+ # @param [String] quota_user
3278
+ # Available to use for quota purposes for server-side applications. Can be any
3279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3280
+ # @param [Google::Apis::RequestOptions] options
3281
+ # Request-specific options
3282
+ #
3283
+ # @yield [result, err] Result & error if block supplied
3284
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty] parsed result object
3285
+ # @yieldparam err [StandardError] error object if request failed
3286
+ #
3287
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty]
3288
+ #
3289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3292
+ def delete_project_location_collection_engine_control(name, fields: nil, quota_user: nil, options: nil, &block)
3293
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
3294
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty::Representation
3295
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty
3296
+ command.params['name'] = name unless name.nil?
3297
+ command.query['fields'] = fields unless fields.nil?
3298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3299
+ execute_or_queue_command(command, &block)
3300
+ end
3301
+
3302
+ # Gets a Control.
3303
+ # @param [String] name
3304
+ # Required. The resource name of the Control to get. Format: `projects/`
3305
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
3306
+ # `data_store_id`/controls/`control_id``
3307
+ # @param [String] fields
3308
+ # Selector specifying which fields to include in a partial response.
3309
+ # @param [String] quota_user
3310
+ # Available to use for quota purposes for server-side applications. Can be any
3311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3312
+ # @param [Google::Apis::RequestOptions] options
3313
+ # Request-specific options
3314
+ #
3315
+ # @yield [result, err] Result & error if block supplied
3316
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
3317
+ # @yieldparam err [StandardError] error object if request failed
3318
+ #
3319
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
3320
+ #
3321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3324
+ def get_project_location_collection_engine_control(name, fields: nil, quota_user: nil, options: nil, &block)
3325
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
3326
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
3327
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
3328
+ command.params['name'] = name unless name.nil?
3329
+ command.query['fields'] = fields unless fields.nil?
3330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3331
+ execute_or_queue_command(command, &block)
3332
+ end
3333
+
3334
+ # Lists all Controls by their parent DataStore.
3335
+ # @param [String] parent
3336
+ # Required. The data store resource name. Format: `projects/`project_number`/
3337
+ # locations/`location_id`/collections/`collection_id`/dataStores/`data_store_id``
3338
+ # @param [String] filter
3339
+ # Optional. A filter to apply on the list results. Supported features: * List
3340
+ # all the products under the parent branch if filter is unset. Currently this
3341
+ # field is unsupported.
3342
+ # @param [Fixnum] page_size
3343
+ # Optional. Maximum number of results to return. If unspecified, defaults to 50.
3344
+ # Max allowed value is 1000.
3345
+ # @param [String] page_token
3346
+ # Optional. A page token, received from a previous `ListControls` call. Provide
3347
+ # this to retrieve the subsequent page.
3348
+ # @param [String] fields
3349
+ # Selector specifying which fields to include in a partial response.
3350
+ # @param [String] quota_user
3351
+ # Available to use for quota purposes for server-side applications. Can be any
3352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3353
+ # @param [Google::Apis::RequestOptions] options
3354
+ # Request-specific options
3355
+ #
3356
+ # @yield [result, err] Result & error if block supplied
3357
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse] parsed result object
3358
+ # @yieldparam err [StandardError] error object if request failed
3359
+ #
3360
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse]
3361
+ #
3362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3365
+ def list_project_location_collection_engine_controls(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3366
+ command = make_simple_command(:get, 'v1beta/{+parent}/controls', options)
3367
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse::Representation
3368
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse
3369
+ command.params['parent'] = parent unless parent.nil?
3370
+ command.query['filter'] = filter unless filter.nil?
3371
+ command.query['pageSize'] = page_size unless page_size.nil?
3372
+ command.query['pageToken'] = page_token unless page_token.nil?
3373
+ command.query['fields'] = fields unless fields.nil?
3374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3375
+ execute_or_queue_command(command, &block)
3376
+ end
3377
+
3378
+ # Updates a Control. Control action type cannot be changed. If the Control to
3379
+ # update does not exist, a NOT_FOUND error is returned.
3380
+ # @param [String] name
3381
+ # Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/
3382
+ # controls/*`
3383
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] google_cloud_discoveryengine_v1beta_control_object
3384
+ # @param [String] update_mask
3385
+ # Optional. Indicates which fields in the provided Control to update. The
3386
+ # following are NOT supported: * Control.name * Control.solution_type If not set
3387
+ # or empty, all supported fields are updated.
3388
+ # @param [String] fields
3389
+ # Selector specifying which fields to include in a partial response.
3390
+ # @param [String] quota_user
3391
+ # Available to use for quota purposes for server-side applications. Can be any
3392
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3393
+ # @param [Google::Apis::RequestOptions] options
3394
+ # Request-specific options
3395
+ #
3396
+ # @yield [result, err] Result & error if block supplied
3397
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
3398
+ # @yieldparam err [StandardError] error object if request failed
3399
+ #
3400
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
3401
+ #
3402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3405
+ def patch_project_location_collection_engine_control(name, google_cloud_discoveryengine_v1beta_control_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3406
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
3407
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
3408
+ command.request_object = google_cloud_discoveryengine_v1beta_control_object
3409
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
3410
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
3411
+ command.params['name'] = name unless name.nil?
3412
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3413
+ command.query['fields'] = fields unless fields.nil?
3414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3415
+ execute_or_queue_command(command, &block)
3416
+ end
3417
+
2995
3418
  # Converses a conversation.
2996
3419
  # @param [String] name
2997
3420
  # Required. The resource name of the Conversation to get. Format: `projects/`
@@ -4032,8 +4455,8 @@ module Google
4032
4455
  # permission to list DataStores under this location, regardless of whether or
4033
4456
  # not this data store exists, a PERMISSION_DENIED error is returned.
4034
4457
  # @param [String] filter
4035
- # Filter by solution type . For example: filter = 'solution_type:
4036
- # SOLUTION_TYPE_SEARCH'
4458
+ # Filter by solution type . For example: `filter = 'solution_type:
4459
+ # SOLUTION_TYPE_SEARCH'`
4037
4460
  # @param [Fixnum] page_size
4038
4461
  # Maximum number of DataStores to return. If unspecified, defaults to 10. The
4039
4462
  # maximum allowed value is 50. Values above 50 will be coerced to 50. If this
@@ -4505,6 +4928,197 @@ module Google
4505
4928
  execute_or_queue_command(command, &block)
4506
4929
  end
4507
4930
 
4931
+ # Creates a Control. By default 1000 controls are allowed for a data store. A
4932
+ # request can be submitted to adjust this limit. If the Control to create
4933
+ # already exists, an ALREADY_EXISTS error is returned.
4934
+ # @param [String] parent
4935
+ # Required. Full resource name of parent data store. Format: `projects/`
4936
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
4937
+ # `data_store_id``
4938
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] google_cloud_discoveryengine_v1beta_control_object
4939
+ # @param [String] control_id
4940
+ # Required. The ID to use for the Control, which will become the final component
4941
+ # of the Control's resource name. This value must be within 1-63 characters.
4942
+ # Valid characters are /a-z-_/.
4943
+ # @param [String] fields
4944
+ # Selector specifying which fields to include in a partial response.
4945
+ # @param [String] quota_user
4946
+ # Available to use for quota purposes for server-side applications. Can be any
4947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4948
+ # @param [Google::Apis::RequestOptions] options
4949
+ # Request-specific options
4950
+ #
4951
+ # @yield [result, err] Result & error if block supplied
4952
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
4953
+ # @yieldparam err [StandardError] error object if request failed
4954
+ #
4955
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
4956
+ #
4957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4960
+ def create_project_location_data_store_control(parent, google_cloud_discoveryengine_v1beta_control_object = nil, control_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4961
+ command = make_simple_command(:post, 'v1beta/{+parent}/controls', options)
4962
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
4963
+ command.request_object = google_cloud_discoveryengine_v1beta_control_object
4964
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
4965
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
4966
+ command.params['parent'] = parent unless parent.nil?
4967
+ command.query['controlId'] = control_id unless control_id.nil?
4968
+ command.query['fields'] = fields unless fields.nil?
4969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4970
+ execute_or_queue_command(command, &block)
4971
+ end
4972
+
4973
+ # Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error
4974
+ # is returned.
4975
+ # @param [String] name
4976
+ # Required. The resource name of the Control to delete. Format: `projects/`
4977
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
4978
+ # `data_store_id`/controls/`control_id``
4979
+ # @param [String] fields
4980
+ # Selector specifying which fields to include in a partial response.
4981
+ # @param [String] quota_user
4982
+ # Available to use for quota purposes for server-side applications. Can be any
4983
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4984
+ # @param [Google::Apis::RequestOptions] options
4985
+ # Request-specific options
4986
+ #
4987
+ # @yield [result, err] Result & error if block supplied
4988
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty] parsed result object
4989
+ # @yieldparam err [StandardError] error object if request failed
4990
+ #
4991
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty]
4992
+ #
4993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4996
+ def delete_project_location_data_store_control(name, fields: nil, quota_user: nil, options: nil, &block)
4997
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
4998
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty::Representation
4999
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleProtobufEmpty
5000
+ command.params['name'] = name unless name.nil?
5001
+ command.query['fields'] = fields unless fields.nil?
5002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5003
+ execute_or_queue_command(command, &block)
5004
+ end
5005
+
5006
+ # Gets a Control.
5007
+ # @param [String] name
5008
+ # Required. The resource name of the Control to get. Format: `projects/`
5009
+ # project_number`/locations/`location_id`/collections/`collection_id`/dataStores/
5010
+ # `data_store_id`/controls/`control_id``
5011
+ # @param [String] fields
5012
+ # Selector specifying which fields to include in a partial response.
5013
+ # @param [String] quota_user
5014
+ # Available to use for quota purposes for server-side applications. Can be any
5015
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5016
+ # @param [Google::Apis::RequestOptions] options
5017
+ # Request-specific options
5018
+ #
5019
+ # @yield [result, err] Result & error if block supplied
5020
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
5021
+ # @yieldparam err [StandardError] error object if request failed
5022
+ #
5023
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
5024
+ #
5025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5028
+ def get_project_location_data_store_control(name, fields: nil, quota_user: nil, options: nil, &block)
5029
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
5030
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
5031
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
5032
+ command.params['name'] = name unless name.nil?
5033
+ command.query['fields'] = fields unless fields.nil?
5034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5035
+ execute_or_queue_command(command, &block)
5036
+ end
5037
+
5038
+ # Lists all Controls by their parent DataStore.
5039
+ # @param [String] parent
5040
+ # Required. The data store resource name. Format: `projects/`project_number`/
5041
+ # locations/`location_id`/collections/`collection_id`/dataStores/`data_store_id``
5042
+ # @param [String] filter
5043
+ # Optional. A filter to apply on the list results. Supported features: * List
5044
+ # all the products under the parent branch if filter is unset. Currently this
5045
+ # field is unsupported.
5046
+ # @param [Fixnum] page_size
5047
+ # Optional. Maximum number of results to return. If unspecified, defaults to 50.
5048
+ # Max allowed value is 1000.
5049
+ # @param [String] page_token
5050
+ # Optional. A page token, received from a previous `ListControls` call. Provide
5051
+ # this to retrieve the subsequent page.
5052
+ # @param [String] fields
5053
+ # Selector specifying which fields to include in a partial response.
5054
+ # @param [String] quota_user
5055
+ # Available to use for quota purposes for server-side applications. Can be any
5056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5057
+ # @param [Google::Apis::RequestOptions] options
5058
+ # Request-specific options
5059
+ #
5060
+ # @yield [result, err] Result & error if block supplied
5061
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse] parsed result object
5062
+ # @yieldparam err [StandardError] error object if request failed
5063
+ #
5064
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse]
5065
+ #
5066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5069
+ def list_project_location_data_store_controls(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5070
+ command = make_simple_command(:get, 'v1beta/{+parent}/controls', options)
5071
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse::Representation
5072
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListControlsResponse
5073
+ command.params['parent'] = parent unless parent.nil?
5074
+ command.query['filter'] = filter unless filter.nil?
5075
+ command.query['pageSize'] = page_size unless page_size.nil?
5076
+ command.query['pageToken'] = page_token unless page_token.nil?
5077
+ command.query['fields'] = fields unless fields.nil?
5078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5079
+ execute_or_queue_command(command, &block)
5080
+ end
5081
+
5082
+ # Updates a Control. Control action type cannot be changed. If the Control to
5083
+ # update does not exist, a NOT_FOUND error is returned.
5084
+ # @param [String] name
5085
+ # Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/
5086
+ # controls/*`
5087
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] google_cloud_discoveryengine_v1beta_control_object
5088
+ # @param [String] update_mask
5089
+ # Optional. Indicates which fields in the provided Control to update. The
5090
+ # following are NOT supported: * Control.name * Control.solution_type If not set
5091
+ # or empty, all supported fields are updated.
5092
+ # @param [String] fields
5093
+ # Selector specifying which fields to include in a partial response.
5094
+ # @param [String] quota_user
5095
+ # Available to use for quota purposes for server-side applications. Can be any
5096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5097
+ # @param [Google::Apis::RequestOptions] options
5098
+ # Request-specific options
5099
+ #
5100
+ # @yield [result, err] Result & error if block supplied
5101
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl] parsed result object
5102
+ # @yieldparam err [StandardError] error object if request failed
5103
+ #
5104
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl]
5105
+ #
5106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5109
+ def patch_project_location_data_store_control(name, google_cloud_discoveryengine_v1beta_control_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
5110
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
5111
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
5112
+ command.request_object = google_cloud_discoveryengine_v1beta_control_object
5113
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl::Representation
5114
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControl
5115
+ command.params['name'] = name unless name.nil?
5116
+ command.query['updateMask'] = update_mask unless update_mask.nil?
5117
+ command.query['fields'] = fields unless fields.nil?
5118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5119
+ execute_or_queue_command(command, &block)
5120
+ end
5121
+
4508
5122
  # Converses a conversation.
4509
5123
  # @param [String] name
4510
5124
  # Required. The resource name of the Conversation to get. Format: `projects/`
@@ -5999,6 +6613,9 @@ module Google
5999
6613
  # across multiple DataStore, the format is: `projects/`project`/locations/`
6000
6614
  # location``.
6001
6615
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] google_cloud_discoveryengine_v1beta_user_event_object
6616
+ # @param [Boolean] write_async
6617
+ # If set to true, the user event is written asynchronously after validation, and
6618
+ # the API responds without waiting for the write.
6002
6619
  # @param [String] fields
6003
6620
  # Selector specifying which fields to include in a partial response.
6004
6621
  # @param [String] quota_user
@@ -6016,13 +6633,14 @@ module Google
6016
6633
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6017
6634
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6018
6635
  # @raise [Google::Apis::AuthorizationError] Authorization is required
6019
- def write_project_location_data_store_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6636
+ def write_project_location_data_store_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block)
6020
6637
  command = make_simple_command(:post, 'v1beta/{+parent}/userEvents:write', options)
6021
6638
  command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
6022
6639
  command.request_object = google_cloud_discoveryengine_v1beta_user_event_object
6023
6640
  command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
6024
6641
  command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent
6025
6642
  command.params['parent'] = parent unless parent.nil?
6643
+ command.query['writeAsync'] = write_async unless write_async.nil?
6026
6644
  command.query['fields'] = fields unless fields.nil?
6027
6645
  command.query['quotaUser'] = quota_user unless quota_user.nil?
6028
6646
  execute_or_queue_command(command, &block)
@@ -6176,6 +6794,9 @@ module Google
6176
6794
  # across multiple DataStore, the format is: `projects/`project`/locations/`
6177
6795
  # location``.
6178
6796
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent] google_cloud_discoveryengine_v1beta_user_event_object
6797
+ # @param [Boolean] write_async
6798
+ # If set to true, the user event is written asynchronously after validation, and
6799
+ # the API responds without waiting for the write.
6179
6800
  # @param [String] fields
6180
6801
  # Selector specifying which fields to include in a partial response.
6181
6802
  # @param [String] quota_user
@@ -6193,13 +6814,14 @@ module Google
6193
6814
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6194
6815
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6195
6816
  # @raise [Google::Apis::AuthorizationError] Authorization is required
6196
- def write_project_location_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6817
+ def write_project_location_user_event(parent, google_cloud_discoveryengine_v1beta_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block)
6197
6818
  command = make_simple_command(:post, 'v1beta/{+parent}/userEvents:write', options)
6198
6819
  command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
6199
6820
  command.request_object = google_cloud_discoveryengine_v1beta_user_event_object
6200
6821
  command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent::Representation
6201
6822
  command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaUserEvent
6202
6823
  command.params['parent'] = parent unless parent.nil?
6824
+ command.query['writeAsync'] = write_async unless write_async.nil?
6203
6825
  command.query['fields'] = fields unless fields.nil?
6204
6826
  command.query['quotaUser'] = quota_user unless quota_user.nil?
6205
6827
  execute_or_queue_command(command, &block)