google-apis-dialogflow_v3beta1 0.67.0 → 0.69.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -258,6 +258,39 @@ module Google
258
258
  execute_or_queue_command(command, &block)
259
259
  end
260
260
 
261
+ # Gets the generative settings for the agent.
262
+ # @param [String] name
263
+ # Required. Format: `projects//locations//agents//generativeSettings`.
264
+ # @param [String] language_code
265
+ # Required. Language code of the generative settings.
266
+ # @param [String] fields
267
+ # Selector specifying which fields to include in a partial response.
268
+ # @param [String] quota_user
269
+ # Available to use for quota purposes for server-side applications. Can be any
270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
271
+ # @param [Google::Apis::RequestOptions] options
272
+ # Request-specific options
273
+ #
274
+ # @yield [result, err] Result & error if block supplied
275
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings] parsed result object
276
+ # @yieldparam err [StandardError] error object if request failed
277
+ #
278
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings]
279
+ #
280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
283
+ def get_project_location_agent_generative_settings(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
284
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
285
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings::Representation
286
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings
287
+ command.params['name'] = name unless name.nil?
288
+ command.query['languageCode'] = language_code unless language_code.nil?
289
+ command.query['fields'] = fields unless fields.nil?
290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
291
+ execute_or_queue_command(command, &block)
292
+ end
293
+
261
294
  # Gets the latest agent validation result. Agent validation is performed when
262
295
  # ValidateAgent is called.
263
296
  # @param [String] name
@@ -415,6 +448,43 @@ module Google
415
448
  execute_or_queue_command(command, &block)
416
449
  end
417
450
 
451
+ # Updates the generative settings for the agent.
452
+ # @param [String] name
453
+ # Format: `projects//locations//agents//generativeSettings`.
454
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings] google_cloud_dialogflow_cx_v3beta1_generative_settings_object
455
+ # @param [String] update_mask
456
+ # Optional. The mask to control which fields get updated. If the mask is not
457
+ # present, all fields will be updated.
458
+ # @param [String] fields
459
+ # Selector specifying which fields to include in a partial response.
460
+ # @param [String] quota_user
461
+ # Available to use for quota purposes for server-side applications. Can be any
462
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
463
+ # @param [Google::Apis::RequestOptions] options
464
+ # Request-specific options
465
+ #
466
+ # @yield [result, err] Result & error if block supplied
467
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings] parsed result object
468
+ # @yieldparam err [StandardError] error object if request failed
469
+ #
470
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings]
471
+ #
472
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
473
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
475
+ def update_project_location_agent_generative_settings(name, google_cloud_dialogflow_cx_v3beta1_generative_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
476
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
477
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings::Representation
478
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_generative_settings_object
479
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings::Representation
480
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettings
481
+ command.params['name'] = name unless name.nil?
482
+ command.query['updateMask'] = update_mask unless update_mask.nil?
483
+ command.query['fields'] = fields unless fields.nil?
484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
485
+ execute_or_queue_command(command, &block)
486
+ end
487
+
418
488
  # Validates the specified agent and creates or updates validation results. The
419
489
  # agent in draft version is validated. Please call this API after the training
420
490
  # is completed to get the complete validation results.
@@ -2897,6 +2967,43 @@ module Google
2897
2967
  execute_or_queue_command(command, &block)
2898
2968
  end
2899
2969
 
2970
+ # Exports the selected intents. This method is a [long-running operation](https:/
2971
+ # /cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned
2972
+ # `Operation` type has the following method-specific fields: - `metadata`:
2973
+ # ExportIntentsMetadata - `response`: ExportIntentsResponse
2974
+ # @param [String] parent
2975
+ # Required. The name of the parent agent to export intents. Format: `projects//
2976
+ # locations//agents/`.
2977
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportIntentsRequest] google_cloud_dialogflow_cx_v3beta1_export_intents_request_object
2978
+ # @param [String] fields
2979
+ # Selector specifying which fields to include in a partial response.
2980
+ # @param [String] quota_user
2981
+ # Available to use for quota purposes for server-side applications. Can be any
2982
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2983
+ # @param [Google::Apis::RequestOptions] options
2984
+ # Request-specific options
2985
+ #
2986
+ # @yield [result, err] Result & error if block supplied
2987
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
2988
+ # @yieldparam err [StandardError] error object if request failed
2989
+ #
2990
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
2991
+ #
2992
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2993
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2994
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2995
+ def export_project_location_agent_intent(parent, google_cloud_dialogflow_cx_v3beta1_export_intents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2996
+ command = make_simple_command(:post, 'v3beta1/{+parent}/intents:export', options)
2997
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportIntentsRequest::Representation
2998
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_export_intents_request_object
2999
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
3000
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
3001
+ command.params['parent'] = parent unless parent.nil?
3002
+ command.query['fields'] = fields unless fields.nil?
3003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3004
+ execute_or_queue_command(command, &block)
3005
+ end
3006
+
2900
3007
  # Retrieves the specified intent.
2901
3008
  # @param [String] name
2902
3009
  # Required. The name of the intent. Format: `projects//locations//agents//
@@ -2935,6 +3042,44 @@ module Google
2935
3042
  execute_or_queue_command(command, &block)
2936
3043
  end
2937
3044
 
3045
+ # Imports the specified intents into the agent. This method is a [long-running
3046
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-
3047
+ # operation). The returned `Operation` type has the following method-specific
3048
+ # fields: - `metadata`: ImportIntentsMetadata - `response`:
3049
+ # ImportIntentsResponse
3050
+ # @param [String] parent
3051
+ # Required. The agent to import the intents into. Format: `projects//locations//
3052
+ # agents/`.
3053
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportIntentsRequest] google_cloud_dialogflow_cx_v3beta1_import_intents_request_object
3054
+ # @param [String] fields
3055
+ # Selector specifying which fields to include in a partial response.
3056
+ # @param [String] quota_user
3057
+ # Available to use for quota purposes for server-side applications. Can be any
3058
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3059
+ # @param [Google::Apis::RequestOptions] options
3060
+ # Request-specific options
3061
+ #
3062
+ # @yield [result, err] Result & error if block supplied
3063
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
3064
+ # @yieldparam err [StandardError] error object if request failed
3065
+ #
3066
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
3067
+ #
3068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3071
+ def import_project_location_agent_intent(parent, google_cloud_dialogflow_cx_v3beta1_import_intents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3072
+ command = make_simple_command(:post, 'v3beta1/{+parent}/intents:import', options)
3073
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportIntentsRequest::Representation
3074
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_import_intents_request_object
3075
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
3076
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
3077
+ command.params['parent'] = parent unless parent.nil?
3078
+ command.query['fields'] = fields unless fields.nil?
3079
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3080
+ execute_or_queue_command(command, &block)
3081
+ end
3082
+
2938
3083
  # Returns the list of all intents in the specified agent.
2939
3084
  # @param [String] parent
2940
3085
  # Required. The agent to list all intents for. Format: `projects//locations//
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v3beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-03 00:00:00.000000000 Z
11
+ date: 2023-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.67.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.69.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1
63
63
  post_install_message:
64
64
  rdoc_options: []