google-apis-dialogflow_v2beta1 0.84.0 → 0.86.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4156,6 +4156,87 @@ module Google
4156
4156
  execute_or_queue_command(command, &block)
4157
4157
  end
4158
4158
 
4159
+ # Creates a generator.
4160
+ # @param [String] parent
4161
+ # Required. The project/location to create generator for. Format: `projects//
4162
+ # locations/`
4163
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
4164
+ # @param [String] generator_id
4165
+ # Optional. The ID to use for the generator, which will become the final
4166
+ # component of the generator's resource name. The generator ID must be compliant
4167
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
4168
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
4169
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
4170
+ # otherwise the request will be rejected. 2. the consistency for whether to use
4171
+ # custom ID or not under a project to better ensure uniqueness.
4172
+ # @param [String] fields
4173
+ # Selector specifying which fields to include in a partial response.
4174
+ # @param [String] quota_user
4175
+ # Available to use for quota purposes for server-side applications. Can be any
4176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4177
+ # @param [Google::Apis::RequestOptions] options
4178
+ # Request-specific options
4179
+ #
4180
+ # @yield [result, err] Result & error if block supplied
4181
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
4182
+ # @yieldparam err [StandardError] error object if request failed
4183
+ #
4184
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
4185
+ #
4186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4189
+ def create_project_generator(parent, google_cloud_dialogflow_v2beta1_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4190
+ command = make_simple_command(:post, 'v2beta1/{+parent}/generators', options)
4191
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
4192
+ command.request_object = google_cloud_dialogflow_v2beta1_generator_object
4193
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
4194
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
4195
+ command.params['parent'] = parent unless parent.nil?
4196
+ command.query['generatorId'] = generator_id unless generator_id.nil?
4197
+ command.query['fields'] = fields unless fields.nil?
4198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4199
+ execute_or_queue_command(command, &block)
4200
+ end
4201
+
4202
+ # Lists generators.
4203
+ # @param [String] parent
4204
+ # Required. The project/location to list generators for. Format: `projects//
4205
+ # locations/`
4206
+ # @param [Fixnum] page_size
4207
+ # Optional. Maximum number of conversation models to return in a single page.
4208
+ # Default to 10.
4209
+ # @param [String] page_token
4210
+ # Optional. The next_page_token value returned from a previous list request.
4211
+ # @param [String] fields
4212
+ # Selector specifying which fields to include in a partial response.
4213
+ # @param [String] quota_user
4214
+ # Available to use for quota purposes for server-side applications. Can be any
4215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4216
+ # @param [Google::Apis::RequestOptions] options
4217
+ # Request-specific options
4218
+ #
4219
+ # @yield [result, err] Result & error if block supplied
4220
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse] parsed result object
4221
+ # @yieldparam err [StandardError] error object if request failed
4222
+ #
4223
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse]
4224
+ #
4225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4228
+ def list_project_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4229
+ command = make_simple_command(:get, 'v2beta1/{+parent}/generators', options)
4230
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse::Representation
4231
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse
4232
+ command.params['parent'] = parent unless parent.nil?
4233
+ command.query['pageSize'] = page_size unless page_size.nil?
4234
+ command.query['pageToken'] = page_token unless page_token.nil?
4235
+ command.query['fields'] = fields unless fields.nil?
4236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4237
+ execute_or_queue_command(command, &block)
4238
+ end
4239
+
4159
4240
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
4160
4241
  # is deprecated; only use `projects.knowledgeBases`.
4161
4242
  # @param [String] parent
@@ -8278,6 +8359,186 @@ module Google
8278
8359
  execute_or_queue_command(command, &block)
8279
8360
  end
8280
8361
 
8362
+ # Creates a generator.
8363
+ # @param [String] parent
8364
+ # Required. The project/location to create generator for. Format: `projects//
8365
+ # locations/`
8366
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
8367
+ # @param [String] generator_id
8368
+ # Optional. The ID to use for the generator, which will become the final
8369
+ # component of the generator's resource name. The generator ID must be compliant
8370
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
8371
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
8372
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
8373
+ # otherwise the request will be rejected. 2. the consistency for whether to use
8374
+ # custom ID or not under a project to better ensure uniqueness.
8375
+ # @param [String] fields
8376
+ # Selector specifying which fields to include in a partial response.
8377
+ # @param [String] quota_user
8378
+ # Available to use for quota purposes for server-side applications. Can be any
8379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8380
+ # @param [Google::Apis::RequestOptions] options
8381
+ # Request-specific options
8382
+ #
8383
+ # @yield [result, err] Result & error if block supplied
8384
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
8385
+ # @yieldparam err [StandardError] error object if request failed
8386
+ #
8387
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
8388
+ #
8389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8392
+ def create_project_location_generator(parent, google_cloud_dialogflow_v2beta1_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
8393
+ command = make_simple_command(:post, 'v2beta1/{+parent}/generators', options)
8394
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8395
+ command.request_object = google_cloud_dialogflow_v2beta1_generator_object
8396
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8397
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
8398
+ command.params['parent'] = parent unless parent.nil?
8399
+ command.query['generatorId'] = generator_id unless generator_id.nil?
8400
+ command.query['fields'] = fields unless fields.nil?
8401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8402
+ execute_or_queue_command(command, &block)
8403
+ end
8404
+
8405
+ # Deletes a generator.
8406
+ # @param [String] name
8407
+ # Required. The generator resource name to delete. Format: `projects//locations//
8408
+ # generators/`
8409
+ # @param [String] fields
8410
+ # Selector specifying which fields to include in a partial response.
8411
+ # @param [String] quota_user
8412
+ # Available to use for quota purposes for server-side applications. Can be any
8413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8414
+ # @param [Google::Apis::RequestOptions] options
8415
+ # Request-specific options
8416
+ #
8417
+ # @yield [result, err] Result & error if block supplied
8418
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
8419
+ # @yieldparam err [StandardError] error object if request failed
8420
+ #
8421
+ # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
8422
+ #
8423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8426
+ def delete_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
8427
+ command = make_simple_command(:delete, 'v2beta1/{+name}', options)
8428
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
8429
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
8430
+ command.params['name'] = name unless name.nil?
8431
+ command.query['fields'] = fields unless fields.nil?
8432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8433
+ execute_or_queue_command(command, &block)
8434
+ end
8435
+
8436
+ # Retrieves a generator.
8437
+ # @param [String] name
8438
+ # Required. The generator resource name to retrieve. Format: `projects//
8439
+ # locations/`/generators/`
8440
+ # @param [String] fields
8441
+ # Selector specifying which fields to include in a partial response.
8442
+ # @param [String] quota_user
8443
+ # Available to use for quota purposes for server-side applications. Can be any
8444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8445
+ # @param [Google::Apis::RequestOptions] options
8446
+ # Request-specific options
8447
+ #
8448
+ # @yield [result, err] Result & error if block supplied
8449
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
8450
+ # @yieldparam err [StandardError] error object if request failed
8451
+ #
8452
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
8453
+ #
8454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8457
+ def get_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
8458
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
8459
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8460
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
8461
+ command.params['name'] = name unless name.nil?
8462
+ command.query['fields'] = fields unless fields.nil?
8463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8464
+ execute_or_queue_command(command, &block)
8465
+ end
8466
+
8467
+ # Lists generators.
8468
+ # @param [String] parent
8469
+ # Required. The project/location to list generators for. Format: `projects//
8470
+ # locations/`
8471
+ # @param [Fixnum] page_size
8472
+ # Optional. Maximum number of conversation models to return in a single page.
8473
+ # Default to 10.
8474
+ # @param [String] page_token
8475
+ # Optional. The next_page_token value returned from a previous list request.
8476
+ # @param [String] fields
8477
+ # Selector specifying which fields to include in a partial response.
8478
+ # @param [String] quota_user
8479
+ # Available to use for quota purposes for server-side applications. Can be any
8480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8481
+ # @param [Google::Apis::RequestOptions] options
8482
+ # Request-specific options
8483
+ #
8484
+ # @yield [result, err] Result & error if block supplied
8485
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse] parsed result object
8486
+ # @yieldparam err [StandardError] error object if request failed
8487
+ #
8488
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse]
8489
+ #
8490
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8491
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8492
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8493
+ def list_project_location_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
8494
+ command = make_simple_command(:get, 'v2beta1/{+parent}/generators', options)
8495
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse::Representation
8496
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse
8497
+ command.params['parent'] = parent unless parent.nil?
8498
+ command.query['pageSize'] = page_size unless page_size.nil?
8499
+ command.query['pageToken'] = page_token unless page_token.nil?
8500
+ command.query['fields'] = fields unless fields.nil?
8501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8502
+ execute_or_queue_command(command, &block)
8503
+ end
8504
+
8505
+ # Updates a generator.
8506
+ # @param [String] name
8507
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
8508
+ # /locations//generators/`
8509
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
8510
+ # @param [String] update_mask
8511
+ # Optional. The list of fields to update.
8512
+ # @param [String] fields
8513
+ # Selector specifying which fields to include in a partial response.
8514
+ # @param [String] quota_user
8515
+ # Available to use for quota purposes for server-side applications. Can be any
8516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8517
+ # @param [Google::Apis::RequestOptions] options
8518
+ # Request-specific options
8519
+ #
8520
+ # @yield [result, err] Result & error if block supplied
8521
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
8522
+ # @yieldparam err [StandardError] error object if request failed
8523
+ #
8524
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
8525
+ #
8526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8529
+ def patch_project_location_generator(name, google_cloud_dialogflow_v2beta1_generator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
8530
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
8531
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8532
+ command.request_object = google_cloud_dialogflow_v2beta1_generator_object
8533
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8534
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
8535
+ command.params['name'] = name unless name.nil?
8536
+ command.query['updateMask'] = update_mask unless update_mask.nil?
8537
+ command.query['fields'] = fields unless fields.nil?
8538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8539
+ execute_or_queue_command(command, &block)
8540
+ end
8541
+
8281
8542
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
8282
8543
  # is deprecated; only use `projects.knowledgeBases`.
8283
8544
  # @param [String] parent
@@ -8875,6 +9136,41 @@ module Google
8875
9136
  execute_or_queue_command(command, &block)
8876
9137
  end
8877
9138
 
9139
+ # Generates and returns a suggestion for a conversation that does not have a
9140
+ # resource created for it.
9141
+ # @param [String] parent
9142
+ # Required. The parent resource to charge for the Suggestion's generation.
9143
+ # Format: `projects//locations/`.
9144
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest] google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object
9145
+ # @param [String] fields
9146
+ # Selector specifying which fields to include in a partial response.
9147
+ # @param [String] quota_user
9148
+ # Available to use for quota purposes for server-side applications. Can be any
9149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9150
+ # @param [Google::Apis::RequestOptions] options
9151
+ # Request-specific options
9152
+ #
9153
+ # @yield [result, err] Result & error if block supplied
9154
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse] parsed result object
9155
+ # @yieldparam err [StandardError] error object if request failed
9156
+ #
9157
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse]
9158
+ #
9159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9162
+ def generate_project_location_stateless_suggestion(parent, google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9163
+ command = make_simple_command(:post, 'v2beta1/{+parent}/statelessSuggestion:generate', options)
9164
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest::Representation
9165
+ command.request_object = google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object
9166
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse::Representation
9167
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
9168
+ command.params['parent'] = parent unless parent.nil?
9169
+ command.query['fields'] = fields unless fields.nil?
9170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9171
+ execute_or_queue_command(command, &block)
9172
+ end
9173
+
8878
9174
  # Generates and returns a summary for a conversation that does not have a
8879
9175
  # resource created for it.
8880
9176
  # @param [String] parent
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.84.0
4
+ version: 0.86.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-21 00:00:00.000000000 Z
11
+ date: 2024-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.84.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.86.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: []