google-apis-dialogflow_v2beta1 0.27.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3195,6 +3195,45 @@ module Google
3195
3195
  execute_or_queue_command(command, &block)
3196
3196
  end
3197
3197
 
3198
+ # Clears a suggestion feature from a conversation profile for the given
3199
+ # participant role. This method is a [long-running operation](https://cloud.
3200
+ # google.com/dialogflow/es/docs/how/long-running-operations). The returned `
3201
+ # Operation` type has the following method-specific fields: - `metadata`:
3202
+ # ClearSuggestionFeatureConfigOperationMetadata - `response`:
3203
+ # ConversationProfile
3204
+ # @param [String] conversation_profile
3205
+ # Required. The Conversation Profile to add or update the suggestion feature
3206
+ # config. Format: `projects//locations//conversationProfiles/`.
3207
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest] google_cloud_dialogflow_v2beta1_clear_suggestion_feature_config_request_object
3208
+ # @param [String] fields
3209
+ # Selector specifying which fields to include in a partial response.
3210
+ # @param [String] quota_user
3211
+ # Available to use for quota purposes for server-side applications. Can be any
3212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3213
+ # @param [Google::Apis::RequestOptions] options
3214
+ # Request-specific options
3215
+ #
3216
+ # @yield [result, err] Result & error if block supplied
3217
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
3218
+ # @yieldparam err [StandardError] error object if request failed
3219
+ #
3220
+ # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
3221
+ #
3222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3225
+ def clear_project_conversation_profile_suggestion_feature_config(conversation_profile, google_cloud_dialogflow_v2beta1_clear_suggestion_feature_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3226
+ command = make_simple_command(:post, 'v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig', options)
3227
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest::Representation
3228
+ command.request_object = google_cloud_dialogflow_v2beta1_clear_suggestion_feature_config_request_object
3229
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
3230
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
3231
+ command.params['conversationProfile'] = conversation_profile unless conversation_profile.nil?
3232
+ command.query['fields'] = fields unless fields.nil?
3233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3234
+ execute_or_queue_command(command, &block)
3235
+ end
3236
+
3198
3237
  # Creates a conversation profile in the specified project. ConversationProfile.
3199
3238
  # CreateTime and ConversationProfile.UpdateTime aren't populated in the response.
3200
3239
  # You can retrieve them via GetConversationProfile API.
@@ -3370,6 +3409,50 @@ module Google
3370
3409
  execute_or_queue_command(command, &block)
3371
3410
  end
3372
3411
 
3412
+ # Adds or updates a suggestion feature in a conversation profile. If the
3413
+ # conversation profile contains the type of suggestion feature for the
3414
+ # participant role, it will update it. Otherwise it will insert the suggestion
3415
+ # feature. This method is a [long-running operation](https://cloud.google.com/
3416
+ # dialogflow/es/docs/how/long-running-operations). The returned `Operation` type
3417
+ # has the following method-specific fields: - `metadata`:
3418
+ # SetSuggestionFeatureConfigOperationMetadata - `response`: ConversationProfile
3419
+ # If a long running operation to add or update suggestion feature config for the
3420
+ # same conversation profile, participant role and suggestion feature type exists,
3421
+ # please cancel the existing long running operation before sending such request,
3422
+ # otherwise the request will be rejected.
3423
+ # @param [String] conversation_profile
3424
+ # Required. The Conversation Profile to add or update the suggestion feature
3425
+ # config. Format: `projects//locations//conversationProfiles/`.
3426
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest] google_cloud_dialogflow_v2beta1_set_suggestion_feature_config_request_object
3427
+ # @param [String] fields
3428
+ # Selector specifying which fields to include in a partial response.
3429
+ # @param [String] quota_user
3430
+ # Available to use for quota purposes for server-side applications. Can be any
3431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3432
+ # @param [Google::Apis::RequestOptions] options
3433
+ # Request-specific options
3434
+ #
3435
+ # @yield [result, err] Result & error if block supplied
3436
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
3437
+ # @yieldparam err [StandardError] error object if request failed
3438
+ #
3439
+ # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
3440
+ #
3441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3444
+ def set_project_conversation_profile_suggestion_feature_config(conversation_profile, google_cloud_dialogflow_v2beta1_set_suggestion_feature_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3445
+ command = make_simple_command(:post, 'v2beta1/{+conversationProfile}:setSuggestionFeatureConfig', options)
3446
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest::Representation
3447
+ command.request_object = google_cloud_dialogflow_v2beta1_set_suggestion_feature_config_request_object
3448
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
3449
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
3450
+ command.params['conversationProfile'] = conversation_profile unless conversation_profile.nil?
3451
+ command.query['fields'] = fields unless fields.nil?
3452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3453
+ execute_or_queue_command(command, &block)
3454
+ end
3455
+
3373
3456
  # Completes the specified conversation. Finished conversations are purged from
3374
3457
  # the database after 30 days.
3375
3458
  # @param [String] name
@@ -7255,6 +7338,45 @@ module Google
7255
7338
  execute_or_queue_command(command, &block)
7256
7339
  end
7257
7340
 
7341
+ # Clears a suggestion feature from a conversation profile for the given
7342
+ # participant role. This method is a [long-running operation](https://cloud.
7343
+ # google.com/dialogflow/es/docs/how/long-running-operations). The returned `
7344
+ # Operation` type has the following method-specific fields: - `metadata`:
7345
+ # ClearSuggestionFeatureConfigOperationMetadata - `response`:
7346
+ # ConversationProfile
7347
+ # @param [String] conversation_profile
7348
+ # Required. The Conversation Profile to add or update the suggestion feature
7349
+ # config. Format: `projects//locations//conversationProfiles/`.
7350
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest] google_cloud_dialogflow_v2beta1_clear_suggestion_feature_config_request_object
7351
+ # @param [String] fields
7352
+ # Selector specifying which fields to include in a partial response.
7353
+ # @param [String] quota_user
7354
+ # Available to use for quota purposes for server-side applications. Can be any
7355
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7356
+ # @param [Google::Apis::RequestOptions] options
7357
+ # Request-specific options
7358
+ #
7359
+ # @yield [result, err] Result & error if block supplied
7360
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
7361
+ # @yieldparam err [StandardError] error object if request failed
7362
+ #
7363
+ # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
7364
+ #
7365
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7366
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7367
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7368
+ def clear_project_location_conversation_profile_suggestion_feature_config(conversation_profile, google_cloud_dialogflow_v2beta1_clear_suggestion_feature_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
7369
+ command = make_simple_command(:post, 'v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig', options)
7370
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest::Representation
7371
+ command.request_object = google_cloud_dialogflow_v2beta1_clear_suggestion_feature_config_request_object
7372
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
7373
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
7374
+ command.params['conversationProfile'] = conversation_profile unless conversation_profile.nil?
7375
+ command.query['fields'] = fields unless fields.nil?
7376
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7377
+ execute_or_queue_command(command, &block)
7378
+ end
7379
+
7258
7380
  # Creates a conversation profile in the specified project. ConversationProfile.
7259
7381
  # CreateTime and ConversationProfile.UpdateTime aren't populated in the response.
7260
7382
  # You can retrieve them via GetConversationProfile API.
@@ -7430,6 +7552,50 @@ module Google
7430
7552
  execute_or_queue_command(command, &block)
7431
7553
  end
7432
7554
 
7555
+ # Adds or updates a suggestion feature in a conversation profile. If the
7556
+ # conversation profile contains the type of suggestion feature for the
7557
+ # participant role, it will update it. Otherwise it will insert the suggestion
7558
+ # feature. This method is a [long-running operation](https://cloud.google.com/
7559
+ # dialogflow/es/docs/how/long-running-operations). The returned `Operation` type
7560
+ # has the following method-specific fields: - `metadata`:
7561
+ # SetSuggestionFeatureConfigOperationMetadata - `response`: ConversationProfile
7562
+ # If a long running operation to add or update suggestion feature config for the
7563
+ # same conversation profile, participant role and suggestion feature type exists,
7564
+ # please cancel the existing long running operation before sending such request,
7565
+ # otherwise the request will be rejected.
7566
+ # @param [String] conversation_profile
7567
+ # Required. The Conversation Profile to add or update the suggestion feature
7568
+ # config. Format: `projects//locations//conversationProfiles/`.
7569
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest] google_cloud_dialogflow_v2beta1_set_suggestion_feature_config_request_object
7570
+ # @param [String] fields
7571
+ # Selector specifying which fields to include in a partial response.
7572
+ # @param [String] quota_user
7573
+ # Available to use for quota purposes for server-side applications. Can be any
7574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7575
+ # @param [Google::Apis::RequestOptions] options
7576
+ # Request-specific options
7577
+ #
7578
+ # @yield [result, err] Result & error if block supplied
7579
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
7580
+ # @yieldparam err [StandardError] error object if request failed
7581
+ #
7582
+ # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
7583
+ #
7584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7587
+ def set_project_location_conversation_profile_suggestion_feature_config(conversation_profile, google_cloud_dialogflow_v2beta1_set_suggestion_feature_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
7588
+ command = make_simple_command(:post, 'v2beta1/{+conversationProfile}:setSuggestionFeatureConfig', options)
7589
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest::Representation
7590
+ command.request_object = google_cloud_dialogflow_v2beta1_set_suggestion_feature_config_request_object
7591
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
7592
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
7593
+ command.params['conversationProfile'] = conversation_profile unless conversation_profile.nil?
7594
+ command.query['fields'] = fields unless fields.nil?
7595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7596
+ execute_or_queue_command(command, &block)
7597
+ end
7598
+
7433
7599
  # Completes the specified conversation. Finished conversations are purged from
7434
7600
  # the database after 30 days.
7435
7601
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-02-28 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-dialogflow_v2beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.28.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
63
63
  post_install_message:
64
64
  rdoc_options: []