google-apis-dialogflow_v2beta1 0.112.0 → 0.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +575 -0
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +259 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +180 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eace82b462d5936224529abadaa301c5a269d1eff3ccc749b6d2664dd1cdb605
|
4
|
+
data.tar.gz: aea9ce3a65e8fb21b00b34b1bcba7545bee0a2ac36a4cf0937e2ee34f3d70b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a5477c18b7227a141c0aa8612319bd20a3d96f8331d6381c2189a290fa55c727d16f22f2b232adef43ea70e513a5b76f7e1df1fc233088ffa6ec02c0eb6be2
|
7
|
+
data.tar.gz: ae0441aa620800801e0f637ab13621ddb80ac394717dbb442a19d7609578a311dd34bc517235867d3d4ee148fc96009ee3b33b6031c7c51acffbade2a64336e1
|
data/CHANGELOG.md
CHANGED
@@ -19733,6 +19733,32 @@ module Google
|
|
19733
19733
|
end
|
19734
19734
|
end
|
19735
19735
|
|
19736
|
+
# Response of ListTools.
|
19737
|
+
class GoogleCloudDialogflowV2beta1ListToolsResponse
|
19738
|
+
include Google::Apis::Core::Hashable
|
19739
|
+
|
19740
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
19741
|
+
# results in the list.
|
19742
|
+
# Corresponds to the JSON property `nextPageToken`
|
19743
|
+
# @return [String]
|
19744
|
+
attr_accessor :next_page_token
|
19745
|
+
|
19746
|
+
# List of tools retrieved.
|
19747
|
+
# Corresponds to the JSON property `tools`
|
19748
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool>]
|
19749
|
+
attr_accessor :tools
|
19750
|
+
|
19751
|
+
def initialize(**args)
|
19752
|
+
update!(**args)
|
19753
|
+
end
|
19754
|
+
|
19755
|
+
# Update properties of this object
|
19756
|
+
def update!(**args)
|
19757
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
19758
|
+
@tools = args[:tools] if args.key?(:tools)
|
19759
|
+
end
|
19760
|
+
end
|
19761
|
+
|
19736
19762
|
# The response message for Versions.ListVersions.
|
19737
19763
|
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
19738
19764
|
include Google::Apis::Core::Hashable
|
@@ -23289,6 +23315,295 @@ module Google
|
|
23289
23315
|
end
|
23290
23316
|
end
|
23291
23317
|
|
23318
|
+
# Represents a tool.
|
23319
|
+
class GoogleCloudDialogflowV2beta1Tool
|
23320
|
+
include Google::Apis::Core::Hashable
|
23321
|
+
|
23322
|
+
# Optional. Confirmation requirement for the actions. Each key is an action name
|
23323
|
+
# in the action_schemas. If an action's confirmation requirement is unspecified (
|
23324
|
+
# either the key is not present, or its value is
|
23325
|
+
# CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
|
23326
|
+
# action's method_type - confirmation is not required if and only if method_type
|
23327
|
+
# is GET.
|
23328
|
+
# Corresponds to the JSON property `actionConfirmationRequirement`
|
23329
|
+
# @return [Hash<String,String>]
|
23330
|
+
attr_accessor :action_confirmation_requirement
|
23331
|
+
|
23332
|
+
# A ConnectorTool enabling using Integration Connectors Connections as tools.
|
23333
|
+
# Corresponds to the JSON property `connectorSpec`
|
23334
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorTool]
|
23335
|
+
attr_accessor :connector_spec
|
23336
|
+
|
23337
|
+
# Output only. Creation time of this tool.
|
23338
|
+
# Corresponds to the JSON property `createTime`
|
23339
|
+
# @return [String]
|
23340
|
+
attr_accessor :create_time
|
23341
|
+
|
23342
|
+
# Optional. A human readable description of the tool.
|
23343
|
+
# Corresponds to the JSON property `description`
|
23344
|
+
# @return [String]
|
23345
|
+
attr_accessor :description
|
23346
|
+
|
23347
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
23348
|
+
# Corresponds to the JSON property `displayName`
|
23349
|
+
# @return [String]
|
23350
|
+
attr_accessor :display_name
|
23351
|
+
|
23352
|
+
# An ExtensionTool is a way to use Vertex Extensions as a tool.
|
23353
|
+
# Corresponds to the JSON property `extensionSpec`
|
23354
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolExtensionTool]
|
23355
|
+
attr_accessor :extension_spec
|
23356
|
+
|
23357
|
+
# A Function tool describes the functions to be invoked on the client side.
|
23358
|
+
# Corresponds to the JSON property `functionSpec`
|
23359
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolFunctionTool]
|
23360
|
+
attr_accessor :function_spec
|
23361
|
+
|
23362
|
+
# Output only. Identifier. The resource name of the tool. Format: `projects//
|
23363
|
+
# locations//tools/`.
|
23364
|
+
# Corresponds to the JSON property `name`
|
23365
|
+
# @return [String]
|
23366
|
+
attr_accessor :name
|
23367
|
+
|
23368
|
+
# An OpenAPI tool is a way to provide the Tool specifications in the Open API
|
23369
|
+
# schema format.
|
23370
|
+
# Corresponds to the JSON property `openApiSpec`
|
23371
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolOpenApiTool]
|
23372
|
+
attr_accessor :open_api_spec
|
23373
|
+
|
23374
|
+
# Output only. A read only boolean field reflecting Zone Isolation status of the
|
23375
|
+
# tool. If the field is absent, it means the status is unknown.
|
23376
|
+
# Corresponds to the JSON property `satisfiesPzi`
|
23377
|
+
# @return [Boolean]
|
23378
|
+
attr_accessor :satisfies_pzi
|
23379
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
23380
|
+
|
23381
|
+
# Output only. A read only boolean field reflecting Zone Separation status of
|
23382
|
+
# the tool. If the field is absent, it means the status is unknown.
|
23383
|
+
# Corresponds to the JSON property `satisfiesPzs`
|
23384
|
+
# @return [Boolean]
|
23385
|
+
attr_accessor :satisfies_pzs
|
23386
|
+
alias_method :satisfies_pzs?, :satisfies_pzs
|
23387
|
+
|
23388
|
+
# Required. A human readable short name of the tool, which should be unique
|
23389
|
+
# within the project. It should only contain letters, numbers, and underscores,
|
23390
|
+
# and it will be used by LLM to identify the tool.
|
23391
|
+
# Corresponds to the JSON property `toolKey`
|
23392
|
+
# @return [String]
|
23393
|
+
attr_accessor :tool_key
|
23394
|
+
|
23395
|
+
# Output only. Update time of this tool.
|
23396
|
+
# Corresponds to the JSON property `updateTime`
|
23397
|
+
# @return [String]
|
23398
|
+
attr_accessor :update_time
|
23399
|
+
|
23400
|
+
def initialize(**args)
|
23401
|
+
update!(**args)
|
23402
|
+
end
|
23403
|
+
|
23404
|
+
# Update properties of this object
|
23405
|
+
def update!(**args)
|
23406
|
+
@action_confirmation_requirement = args[:action_confirmation_requirement] if args.key?(:action_confirmation_requirement)
|
23407
|
+
@connector_spec = args[:connector_spec] if args.key?(:connector_spec)
|
23408
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
23409
|
+
@description = args[:description] if args.key?(:description)
|
23410
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
23411
|
+
@extension_spec = args[:extension_spec] if args.key?(:extension_spec)
|
23412
|
+
@function_spec = args[:function_spec] if args.key?(:function_spec)
|
23413
|
+
@name = args[:name] if args.key?(:name)
|
23414
|
+
@open_api_spec = args[:open_api_spec] if args.key?(:open_api_spec)
|
23415
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
23416
|
+
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
23417
|
+
@tool_key = args[:tool_key] if args.key?(:tool_key)
|
23418
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
23419
|
+
end
|
23420
|
+
end
|
23421
|
+
|
23422
|
+
# Authentication information required for API calls
|
23423
|
+
class GoogleCloudDialogflowV2beta1ToolAuthentication
|
23424
|
+
include Google::Apis::Core::Hashable
|
23425
|
+
|
23426
|
+
# Config for authentication with API key.
|
23427
|
+
# Corresponds to the JSON property `apiKeyConfig`
|
23428
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig]
|
23429
|
+
attr_accessor :api_key_config
|
23430
|
+
|
23431
|
+
# Config for authentication using bearer token.
|
23432
|
+
# Corresponds to the JSON property `bearerTokenConfig`
|
23433
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig]
|
23434
|
+
attr_accessor :bearer_token_config
|
23435
|
+
|
23436
|
+
# Config for authentication with OAuth.
|
23437
|
+
# Corresponds to the JSON property `oauthConfig`
|
23438
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig]
|
23439
|
+
attr_accessor :oauth_config
|
23440
|
+
|
23441
|
+
# Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/
|
23442
|
+
# docs/service-agents#dialogflow-service-agent).
|
23443
|
+
# Corresponds to the JSON property `serviceAgentAuthConfig`
|
23444
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig]
|
23445
|
+
attr_accessor :service_agent_auth_config
|
23446
|
+
|
23447
|
+
def initialize(**args)
|
23448
|
+
update!(**args)
|
23449
|
+
end
|
23450
|
+
|
23451
|
+
# Update properties of this object
|
23452
|
+
def update!(**args)
|
23453
|
+
@api_key_config = args[:api_key_config] if args.key?(:api_key_config)
|
23454
|
+
@bearer_token_config = args[:bearer_token_config] if args.key?(:bearer_token_config)
|
23455
|
+
@oauth_config = args[:oauth_config] if args.key?(:oauth_config)
|
23456
|
+
@service_agent_auth_config = args[:service_agent_auth_config] if args.key?(:service_agent_auth_config)
|
23457
|
+
end
|
23458
|
+
end
|
23459
|
+
|
23460
|
+
# Config for authentication with API key.
|
23461
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig
|
23462
|
+
include Google::Apis::Core::Hashable
|
23463
|
+
|
23464
|
+
# Optional. The API key. If the `secret_version_for_api_key` field is set, this
|
23465
|
+
# field will be ignored.
|
23466
|
+
# Corresponds to the JSON property `apiKey`
|
23467
|
+
# @return [String]
|
23468
|
+
attr_accessor :api_key
|
23469
|
+
|
23470
|
+
# Required. The parameter name or the header name of the API key. E.g., If the
|
23471
|
+
# API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the
|
23472
|
+
# parameter name.
|
23473
|
+
# Corresponds to the JSON property `keyName`
|
23474
|
+
# @return [String]
|
23475
|
+
attr_accessor :key_name
|
23476
|
+
|
23477
|
+
# Required. Key location in the request.
|
23478
|
+
# Corresponds to the JSON property `requestLocation`
|
23479
|
+
# @return [String]
|
23480
|
+
attr_accessor :request_location
|
23481
|
+
|
23482
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
23483
|
+
# API key. If this field is set, the `api_key` field will be ignored. Format: `
|
23484
|
+
# projects/`project`/secrets/`secret`/versions/`version``
|
23485
|
+
# Corresponds to the JSON property `secretVersionForApiKey`
|
23486
|
+
# @return [String]
|
23487
|
+
attr_accessor :secret_version_for_api_key
|
23488
|
+
|
23489
|
+
def initialize(**args)
|
23490
|
+
update!(**args)
|
23491
|
+
end
|
23492
|
+
|
23493
|
+
# Update properties of this object
|
23494
|
+
def update!(**args)
|
23495
|
+
@api_key = args[:api_key] if args.key?(:api_key)
|
23496
|
+
@key_name = args[:key_name] if args.key?(:key_name)
|
23497
|
+
@request_location = args[:request_location] if args.key?(:request_location)
|
23498
|
+
@secret_version_for_api_key = args[:secret_version_for_api_key] if args.key?(:secret_version_for_api_key)
|
23499
|
+
end
|
23500
|
+
end
|
23501
|
+
|
23502
|
+
# Config for authentication using bearer token.
|
23503
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
|
23504
|
+
include Google::Apis::Core::Hashable
|
23505
|
+
|
23506
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
23507
|
+
# Bearer token. If this field is set, the `token` field will be ignored. Format:
|
23508
|
+
# `projects/`project`/secrets/`secret`/versions/`version``
|
23509
|
+
# Corresponds to the JSON property `secretVersionForToken`
|
23510
|
+
# @return [String]
|
23511
|
+
attr_accessor :secret_version_for_token
|
23512
|
+
|
23513
|
+
# Optional. The text token appended to the text `Bearer` to the request
|
23514
|
+
# Authorization header. [Session parameters reference](https://cloud.google.com/
|
23515
|
+
# dialogflow/cx/docs/concept/parameter#session-ref) can be used to pass the
|
23516
|
+
# token dynamically, e.g. `$session.params.parameter-id`.
|
23517
|
+
# Corresponds to the JSON property `token`
|
23518
|
+
# @return [String]
|
23519
|
+
attr_accessor :token
|
23520
|
+
|
23521
|
+
def initialize(**args)
|
23522
|
+
update!(**args)
|
23523
|
+
end
|
23524
|
+
|
23525
|
+
# Update properties of this object
|
23526
|
+
def update!(**args)
|
23527
|
+
@secret_version_for_token = args[:secret_version_for_token] if args.key?(:secret_version_for_token)
|
23528
|
+
@token = args[:token] if args.key?(:token)
|
23529
|
+
end
|
23530
|
+
end
|
23531
|
+
|
23532
|
+
# Config for authentication with OAuth.
|
23533
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig
|
23534
|
+
include Google::Apis::Core::Hashable
|
23535
|
+
|
23536
|
+
# Required. The client ID from the OAuth provider.
|
23537
|
+
# Corresponds to the JSON property `clientId`
|
23538
|
+
# @return [String]
|
23539
|
+
attr_accessor :client_id
|
23540
|
+
|
23541
|
+
# Optional. The client secret from the OAuth provider. If the `
|
23542
|
+
# secret_version_for_client_secret` field is set, this field will be ignored.
|
23543
|
+
# Corresponds to the JSON property `clientSecret`
|
23544
|
+
# @return [String]
|
23545
|
+
attr_accessor :client_secret
|
23546
|
+
|
23547
|
+
# Required. OAuth grant types.
|
23548
|
+
# Corresponds to the JSON property `oauthGrantType`
|
23549
|
+
# @return [String]
|
23550
|
+
attr_accessor :oauth_grant_type
|
23551
|
+
|
23552
|
+
# Optional. The OAuth scopes to grant.
|
23553
|
+
# Corresponds to the JSON property `scopes`
|
23554
|
+
# @return [Array<String>]
|
23555
|
+
attr_accessor :scopes
|
23556
|
+
|
23557
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
23558
|
+
# client secret. If this field is set, the `client_secret` field will be ignored.
|
23559
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
23560
|
+
# Corresponds to the JSON property `secretVersionForClientSecret`
|
23561
|
+
# @return [String]
|
23562
|
+
attr_accessor :secret_version_for_client_secret
|
23563
|
+
|
23564
|
+
# Required. The token endpoint in the OAuth provider to exchange for an access
|
23565
|
+
# token.
|
23566
|
+
# Corresponds to the JSON property `tokenEndpoint`
|
23567
|
+
# @return [String]
|
23568
|
+
attr_accessor :token_endpoint
|
23569
|
+
|
23570
|
+
def initialize(**args)
|
23571
|
+
update!(**args)
|
23572
|
+
end
|
23573
|
+
|
23574
|
+
# Update properties of this object
|
23575
|
+
def update!(**args)
|
23576
|
+
@client_id = args[:client_id] if args.key?(:client_id)
|
23577
|
+
@client_secret = args[:client_secret] if args.key?(:client_secret)
|
23578
|
+
@oauth_grant_type = args[:oauth_grant_type] if args.key?(:oauth_grant_type)
|
23579
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
23580
|
+
@secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
|
23581
|
+
@token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
|
23582
|
+
end
|
23583
|
+
end
|
23584
|
+
|
23585
|
+
# Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/
|
23586
|
+
# docs/service-agents#dialogflow-service-agent).
|
23587
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig
|
23588
|
+
include Google::Apis::Core::Hashable
|
23589
|
+
|
23590
|
+
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
23591
|
+
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
23592
|
+
# agent). The generated token is sent in the Authorization header.
|
23593
|
+
# Corresponds to the JSON property `serviceAgentAuth`
|
23594
|
+
# @return [String]
|
23595
|
+
attr_accessor :service_agent_auth
|
23596
|
+
|
23597
|
+
def initialize(**args)
|
23598
|
+
update!(**args)
|
23599
|
+
end
|
23600
|
+
|
23601
|
+
# Update properties of this object
|
23602
|
+
def update!(**args)
|
23603
|
+
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
23604
|
+
end
|
23605
|
+
end
|
23606
|
+
|
23292
23607
|
# Represents a call of a specific tool's action with the specified inputs.
|
23293
23608
|
class GoogleCloudDialogflowV2beta1ToolCall
|
23294
23609
|
include Google::Apis::Core::Hashable
|
@@ -23428,6 +23743,266 @@ module Google
|
|
23428
23743
|
end
|
23429
23744
|
end
|
23430
23745
|
|
23746
|
+
# A ConnectorTool enabling using Integration Connectors Connections as tools.
|
23747
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorTool
|
23748
|
+
include Google::Apis::Core::Hashable
|
23749
|
+
|
23750
|
+
# Required. Actions for the tool to use.
|
23751
|
+
# Corresponds to the JSON property `actions`
|
23752
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolAction>]
|
23753
|
+
attr_accessor :actions
|
23754
|
+
|
23755
|
+
# Required. The full resource name of the referenced Integration Connectors
|
23756
|
+
# Connection. Format: 'projects/*/locations/*/connections/*'
|
23757
|
+
# Corresponds to the JSON property `name`
|
23758
|
+
# @return [String]
|
23759
|
+
attr_accessor :name
|
23760
|
+
|
23761
|
+
def initialize(**args)
|
23762
|
+
update!(**args)
|
23763
|
+
end
|
23764
|
+
|
23765
|
+
# Update properties of this object
|
23766
|
+
def update!(**args)
|
23767
|
+
@actions = args[:actions] if args.key?(:actions)
|
23768
|
+
@name = args[:name] if args.key?(:name)
|
23769
|
+
end
|
23770
|
+
end
|
23771
|
+
|
23772
|
+
# Configuration of a Connection operation for the tool to use.
|
23773
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorToolAction
|
23774
|
+
include Google::Apis::Core::Hashable
|
23775
|
+
|
23776
|
+
# ID of a Connection action for the tool to use.
|
23777
|
+
# Corresponds to the JSON property `connectionActionId`
|
23778
|
+
# @return [String]
|
23779
|
+
attr_accessor :connection_action_id
|
23780
|
+
|
23781
|
+
# Entity CRUD operation specification.
|
23782
|
+
# Corresponds to the JSON property `entityOperation`
|
23783
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation]
|
23784
|
+
attr_accessor :entity_operation
|
23785
|
+
|
23786
|
+
# Optional. Entity fields to use as inputs for the operation. If no fields are
|
23787
|
+
# specified, all fields of the Entity will be used.
|
23788
|
+
# Corresponds to the JSON property `inputFields`
|
23789
|
+
# @return [Array<String>]
|
23790
|
+
attr_accessor :input_fields
|
23791
|
+
|
23792
|
+
# Optional. Entity fields to return from the operation. If no fields are
|
23793
|
+
# specified, all fields of the Entity will be returned.
|
23794
|
+
# Corresponds to the JSON property `outputFields`
|
23795
|
+
# @return [Array<String>]
|
23796
|
+
attr_accessor :output_fields
|
23797
|
+
|
23798
|
+
def initialize(**args)
|
23799
|
+
update!(**args)
|
23800
|
+
end
|
23801
|
+
|
23802
|
+
# Update properties of this object
|
23803
|
+
def update!(**args)
|
23804
|
+
@connection_action_id = args[:connection_action_id] if args.key?(:connection_action_id)
|
23805
|
+
@entity_operation = args[:entity_operation] if args.key?(:entity_operation)
|
23806
|
+
@input_fields = args[:input_fields] if args.key?(:input_fields)
|
23807
|
+
@output_fields = args[:output_fields] if args.key?(:output_fields)
|
23808
|
+
end
|
23809
|
+
end
|
23810
|
+
|
23811
|
+
# Entity CRUD operation specification.
|
23812
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation
|
23813
|
+
include Google::Apis::Core::Hashable
|
23814
|
+
|
23815
|
+
# Required. ID of the entity.
|
23816
|
+
# Corresponds to the JSON property `entityId`
|
23817
|
+
# @return [String]
|
23818
|
+
attr_accessor :entity_id
|
23819
|
+
|
23820
|
+
# Required. Operation to perform on the entity.
|
23821
|
+
# Corresponds to the JSON property `operation`
|
23822
|
+
# @return [String]
|
23823
|
+
attr_accessor :operation
|
23824
|
+
|
23825
|
+
def initialize(**args)
|
23826
|
+
update!(**args)
|
23827
|
+
end
|
23828
|
+
|
23829
|
+
# Update properties of this object
|
23830
|
+
def update!(**args)
|
23831
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
23832
|
+
@operation = args[:operation] if args.key?(:operation)
|
23833
|
+
end
|
23834
|
+
end
|
23835
|
+
|
23836
|
+
# An ExtensionTool is a way to use Vertex Extensions as a tool.
|
23837
|
+
class GoogleCloudDialogflowV2beta1ToolExtensionTool
|
23838
|
+
include Google::Apis::Core::Hashable
|
23839
|
+
|
23840
|
+
# Required. The full name of the referenced vertex extension. Format: `projects/`
|
23841
|
+
# project`/locations/`location`/extensions/`extension``
|
23842
|
+
# Corresponds to the JSON property `name`
|
23843
|
+
# @return [String]
|
23844
|
+
attr_accessor :name
|
23845
|
+
|
23846
|
+
def initialize(**args)
|
23847
|
+
update!(**args)
|
23848
|
+
end
|
23849
|
+
|
23850
|
+
# Update properties of this object
|
23851
|
+
def update!(**args)
|
23852
|
+
@name = args[:name] if args.key?(:name)
|
23853
|
+
end
|
23854
|
+
end
|
23855
|
+
|
23856
|
+
# A Function tool describes the functions to be invoked on the client side.
|
23857
|
+
class GoogleCloudDialogflowV2beta1ToolFunctionTool
|
23858
|
+
include Google::Apis::Core::Hashable
|
23859
|
+
|
23860
|
+
# Optional. The JSON schema is encapsulated in a google.protobuf.Struct to
|
23861
|
+
# describe the input of the function. This input is a JSON object that contains
|
23862
|
+
# the function's parameters as properties of the object.
|
23863
|
+
# Corresponds to the JSON property `inputSchema`
|
23864
|
+
# @return [Hash<String,Object>]
|
23865
|
+
attr_accessor :input_schema
|
23866
|
+
|
23867
|
+
# Optional. The method type of the function. If not specified, the default value
|
23868
|
+
# is GET.
|
23869
|
+
# Corresponds to the JSON property `methodType`
|
23870
|
+
# @return [String]
|
23871
|
+
attr_accessor :method_type
|
23872
|
+
|
23873
|
+
# Optional. The JSON schema is encapsulated in a google.protobuf.Struct to
|
23874
|
+
# describe the output of the function. This output is a JSON object that
|
23875
|
+
# contains the function's parameters as properties of the object.
|
23876
|
+
# Corresponds to the JSON property `outputSchema`
|
23877
|
+
# @return [Hash<String,Object>]
|
23878
|
+
attr_accessor :output_schema
|
23879
|
+
|
23880
|
+
def initialize(**args)
|
23881
|
+
update!(**args)
|
23882
|
+
end
|
23883
|
+
|
23884
|
+
# Update properties of this object
|
23885
|
+
def update!(**args)
|
23886
|
+
@input_schema = args[:input_schema] if args.key?(:input_schema)
|
23887
|
+
@method_type = args[:method_type] if args.key?(:method_type)
|
23888
|
+
@output_schema = args[:output_schema] if args.key?(:output_schema)
|
23889
|
+
end
|
23890
|
+
end
|
23891
|
+
|
23892
|
+
# An OpenAPI tool is a way to provide the Tool specifications in the Open API
|
23893
|
+
# schema format.
|
23894
|
+
class GoogleCloudDialogflowV2beta1ToolOpenApiTool
|
23895
|
+
include Google::Apis::Core::Hashable
|
23896
|
+
|
23897
|
+
# Authentication information required for API calls
|
23898
|
+
# Corresponds to the JSON property `authentication`
|
23899
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthentication]
|
23900
|
+
attr_accessor :authentication
|
23901
|
+
|
23902
|
+
# Configuration for tools using Service Directory.
|
23903
|
+
# Corresponds to the JSON property `serviceDirectoryConfig`
|
23904
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig]
|
23905
|
+
attr_accessor :service_directory_config
|
23906
|
+
|
23907
|
+
# Required. The OpenAPI schema specified as a text.
|
23908
|
+
# Corresponds to the JSON property `textSchema`
|
23909
|
+
# @return [String]
|
23910
|
+
attr_accessor :text_schema
|
23911
|
+
|
23912
|
+
# The TLS configuration.
|
23913
|
+
# Corresponds to the JSON property `tlsConfig`
|
23914
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolTlsConfig]
|
23915
|
+
attr_accessor :tls_config
|
23916
|
+
|
23917
|
+
def initialize(**args)
|
23918
|
+
update!(**args)
|
23919
|
+
end
|
23920
|
+
|
23921
|
+
# Update properties of this object
|
23922
|
+
def update!(**args)
|
23923
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
23924
|
+
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
|
23925
|
+
@text_schema = args[:text_schema] if args.key?(:text_schema)
|
23926
|
+
@tls_config = args[:tls_config] if args.key?(:tls_config)
|
23927
|
+
end
|
23928
|
+
end
|
23929
|
+
|
23930
|
+
# Configuration for tools using Service Directory.
|
23931
|
+
class GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig
|
23932
|
+
include Google::Apis::Core::Hashable
|
23933
|
+
|
23934
|
+
# Required. The name of [Service Directory](https://cloud.google.com/service-
|
23935
|
+
# directory) service. Format: `projects//locations//namespaces//services/`. `
|
23936
|
+
# LocationID` of the service directory must be the same as the location of the
|
23937
|
+
# tool.
|
23938
|
+
# Corresponds to the JSON property `service`
|
23939
|
+
# @return [String]
|
23940
|
+
attr_accessor :service
|
23941
|
+
|
23942
|
+
def initialize(**args)
|
23943
|
+
update!(**args)
|
23944
|
+
end
|
23945
|
+
|
23946
|
+
# Update properties of this object
|
23947
|
+
def update!(**args)
|
23948
|
+
@service = args[:service] if args.key?(:service)
|
23949
|
+
end
|
23950
|
+
end
|
23951
|
+
|
23952
|
+
# The TLS configuration.
|
23953
|
+
class GoogleCloudDialogflowV2beta1ToolTlsConfig
|
23954
|
+
include Google::Apis::Core::Hashable
|
23955
|
+
|
23956
|
+
# Required. Specifies a list of allowed custom CA certificates for HTTPS
|
23957
|
+
# verification.
|
23958
|
+
# Corresponds to the JSON property `caCerts`
|
23959
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolTlsConfigCaCert>]
|
23960
|
+
attr_accessor :ca_certs
|
23961
|
+
|
23962
|
+
def initialize(**args)
|
23963
|
+
update!(**args)
|
23964
|
+
end
|
23965
|
+
|
23966
|
+
# Update properties of this object
|
23967
|
+
def update!(**args)
|
23968
|
+
@ca_certs = args[:ca_certs] if args.key?(:ca_certs)
|
23969
|
+
end
|
23970
|
+
end
|
23971
|
+
|
23972
|
+
# The CA certificate.
|
23973
|
+
class GoogleCloudDialogflowV2beta1ToolTlsConfigCaCert
|
23974
|
+
include Google::Apis::Core::Hashable
|
23975
|
+
|
23976
|
+
# Required. The allowed custom CA certificates (in DER format) for HTTPS
|
23977
|
+
# verification. This overrides the default SSL trust store. If this is empty or
|
23978
|
+
# unspecified, Dialogflow will use Google's default trust store to verify
|
23979
|
+
# certificates. N.B. Make sure the HTTPS server certificates are signed with "
|
23980
|
+
# subject alt name". For instance a certificate can be self-signed using the
|
23981
|
+
# following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey
|
23982
|
+
# example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='
|
23983
|
+
# DNS:www.example.com'")
|
23984
|
+
# Corresponds to the JSON property `cert`
|
23985
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
23986
|
+
# @return [String]
|
23987
|
+
attr_accessor :cert
|
23988
|
+
|
23989
|
+
# Required. The name of the allowed custom CA certificates. This can be used to
|
23990
|
+
# disambiguate the custom CA certificates.
|
23991
|
+
# Corresponds to the JSON property `displayName`
|
23992
|
+
# @return [String]
|
23993
|
+
attr_accessor :display_name
|
23994
|
+
|
23995
|
+
def initialize(**args)
|
23996
|
+
update!(**args)
|
23997
|
+
end
|
23998
|
+
|
23999
|
+
# Update properties of this object
|
24000
|
+
def update!(**args)
|
24001
|
+
@cert = args[:cert] if args.key?(:cert)
|
24002
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
24003
|
+
end
|
24004
|
+
end
|
24005
|
+
|
23431
24006
|
# The request message for Agents.TrainAgent.
|
23432
24007
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
23433
24008
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2beta1
|
18
18
|
# Version of the google-apis-dialogflow_v2beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.113.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20251007"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -3190,6 +3190,12 @@ module Google
|
|
3190
3190
|
include Google::Apis::Core::JsonObjectSupport
|
3191
3191
|
end
|
3192
3192
|
|
3193
|
+
class GoogleCloudDialogflowV2beta1ListToolsResponse
|
3194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3195
|
+
|
3196
|
+
include Google::Apis::Core::JsonObjectSupport
|
3197
|
+
end
|
3198
|
+
|
3193
3199
|
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
3194
3200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3195
3201
|
|
@@ -3736,6 +3742,42 @@ module Google
|
|
3736
3742
|
include Google::Apis::Core::JsonObjectSupport
|
3737
3743
|
end
|
3738
3744
|
|
3745
|
+
class GoogleCloudDialogflowV2beta1Tool
|
3746
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3747
|
+
|
3748
|
+
include Google::Apis::Core::JsonObjectSupport
|
3749
|
+
end
|
3750
|
+
|
3751
|
+
class GoogleCloudDialogflowV2beta1ToolAuthentication
|
3752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3753
|
+
|
3754
|
+
include Google::Apis::Core::JsonObjectSupport
|
3755
|
+
end
|
3756
|
+
|
3757
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig
|
3758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3759
|
+
|
3760
|
+
include Google::Apis::Core::JsonObjectSupport
|
3761
|
+
end
|
3762
|
+
|
3763
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
|
3764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3765
|
+
|
3766
|
+
include Google::Apis::Core::JsonObjectSupport
|
3767
|
+
end
|
3768
|
+
|
3769
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig
|
3770
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3771
|
+
|
3772
|
+
include Google::Apis::Core::JsonObjectSupport
|
3773
|
+
end
|
3774
|
+
|
3775
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig
|
3776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3777
|
+
|
3778
|
+
include Google::Apis::Core::JsonObjectSupport
|
3779
|
+
end
|
3780
|
+
|
3739
3781
|
class GoogleCloudDialogflowV2beta1ToolCall
|
3740
3782
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3741
3783
|
|
@@ -3754,6 +3796,60 @@ module Google
|
|
3754
3796
|
include Google::Apis::Core::JsonObjectSupport
|
3755
3797
|
end
|
3756
3798
|
|
3799
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorTool
|
3800
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3801
|
+
|
3802
|
+
include Google::Apis::Core::JsonObjectSupport
|
3803
|
+
end
|
3804
|
+
|
3805
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorToolAction
|
3806
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3807
|
+
|
3808
|
+
include Google::Apis::Core::JsonObjectSupport
|
3809
|
+
end
|
3810
|
+
|
3811
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation
|
3812
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3813
|
+
|
3814
|
+
include Google::Apis::Core::JsonObjectSupport
|
3815
|
+
end
|
3816
|
+
|
3817
|
+
class GoogleCloudDialogflowV2beta1ToolExtensionTool
|
3818
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3819
|
+
|
3820
|
+
include Google::Apis::Core::JsonObjectSupport
|
3821
|
+
end
|
3822
|
+
|
3823
|
+
class GoogleCloudDialogflowV2beta1ToolFunctionTool
|
3824
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3825
|
+
|
3826
|
+
include Google::Apis::Core::JsonObjectSupport
|
3827
|
+
end
|
3828
|
+
|
3829
|
+
class GoogleCloudDialogflowV2beta1ToolOpenApiTool
|
3830
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3831
|
+
|
3832
|
+
include Google::Apis::Core::JsonObjectSupport
|
3833
|
+
end
|
3834
|
+
|
3835
|
+
class GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig
|
3836
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3837
|
+
|
3838
|
+
include Google::Apis::Core::JsonObjectSupport
|
3839
|
+
end
|
3840
|
+
|
3841
|
+
class GoogleCloudDialogflowV2beta1ToolTlsConfig
|
3842
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3843
|
+
|
3844
|
+
include Google::Apis::Core::JsonObjectSupport
|
3845
|
+
end
|
3846
|
+
|
3847
|
+
class GoogleCloudDialogflowV2beta1ToolTlsConfigCaCert
|
3848
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3849
|
+
|
3850
|
+
include Google::Apis::Core::JsonObjectSupport
|
3851
|
+
end
|
3852
|
+
|
3757
3853
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
3758
3854
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3759
3855
|
|
@@ -9262,6 +9358,15 @@ module Google
|
|
9262
9358
|
end
|
9263
9359
|
end
|
9264
9360
|
|
9361
|
+
class GoogleCloudDialogflowV2beta1ListToolsResponse
|
9362
|
+
# @private
|
9363
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9364
|
+
property :next_page_token, as: 'nextPageToken'
|
9365
|
+
collection :tools, as: 'tools', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool::Representation
|
9366
|
+
|
9367
|
+
end
|
9368
|
+
end
|
9369
|
+
|
9265
9370
|
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
9266
9371
|
# @private
|
9267
9372
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -10209,6 +10314,80 @@ module Google
|
|
10209
10314
|
end
|
10210
10315
|
end
|
10211
10316
|
|
10317
|
+
class GoogleCloudDialogflowV2beta1Tool
|
10318
|
+
# @private
|
10319
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10320
|
+
hash :action_confirmation_requirement, as: 'actionConfirmationRequirement'
|
10321
|
+
property :connector_spec, as: 'connectorSpec', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorTool, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorTool::Representation
|
10322
|
+
|
10323
|
+
property :create_time, as: 'createTime'
|
10324
|
+
property :description, as: 'description'
|
10325
|
+
property :display_name, as: 'displayName'
|
10326
|
+
property :extension_spec, as: 'extensionSpec', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolExtensionTool, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolExtensionTool::Representation
|
10327
|
+
|
10328
|
+
property :function_spec, as: 'functionSpec', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolFunctionTool, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolFunctionTool::Representation
|
10329
|
+
|
10330
|
+
property :name, as: 'name'
|
10331
|
+
property :open_api_spec, as: 'openApiSpec', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolOpenApiTool, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolOpenApiTool::Representation
|
10332
|
+
|
10333
|
+
property :satisfies_pzi, as: 'satisfiesPzi'
|
10334
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
10335
|
+
property :tool_key, as: 'toolKey'
|
10336
|
+
property :update_time, as: 'updateTime'
|
10337
|
+
end
|
10338
|
+
end
|
10339
|
+
|
10340
|
+
class GoogleCloudDialogflowV2beta1ToolAuthentication
|
10341
|
+
# @private
|
10342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10343
|
+
property :api_key_config, as: 'apiKeyConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig::Representation
|
10344
|
+
|
10345
|
+
property :bearer_token_config, as: 'bearerTokenConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig::Representation
|
10346
|
+
|
10347
|
+
property :oauth_config, as: 'oauthConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig::Representation
|
10348
|
+
|
10349
|
+
property :service_agent_auth_config, as: 'serviceAgentAuthConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig::Representation
|
10350
|
+
|
10351
|
+
end
|
10352
|
+
end
|
10353
|
+
|
10354
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig
|
10355
|
+
# @private
|
10356
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10357
|
+
property :api_key, as: 'apiKey'
|
10358
|
+
property :key_name, as: 'keyName'
|
10359
|
+
property :request_location, as: 'requestLocation'
|
10360
|
+
property :secret_version_for_api_key, as: 'secretVersionForApiKey'
|
10361
|
+
end
|
10362
|
+
end
|
10363
|
+
|
10364
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig
|
10365
|
+
# @private
|
10366
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10367
|
+
property :secret_version_for_token, as: 'secretVersionForToken'
|
10368
|
+
property :token, as: 'token'
|
10369
|
+
end
|
10370
|
+
end
|
10371
|
+
|
10372
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig
|
10373
|
+
# @private
|
10374
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10375
|
+
property :client_id, as: 'clientId'
|
10376
|
+
property :client_secret, as: 'clientSecret'
|
10377
|
+
property :oauth_grant_type, as: 'oauthGrantType'
|
10378
|
+
collection :scopes, as: 'scopes'
|
10379
|
+
property :secret_version_for_client_secret, as: 'secretVersionForClientSecret'
|
10380
|
+
property :token_endpoint, as: 'tokenEndpoint'
|
10381
|
+
end
|
10382
|
+
end
|
10383
|
+
|
10384
|
+
class GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig
|
10385
|
+
# @private
|
10386
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10387
|
+
property :service_agent_auth, as: 'serviceAgentAuth'
|
10388
|
+
end
|
10389
|
+
end
|
10390
|
+
|
10212
10391
|
class GoogleCloudDialogflowV2beta1ToolCall
|
10213
10392
|
# @private
|
10214
10393
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -10244,6 +10423,86 @@ module Google
|
|
10244
10423
|
end
|
10245
10424
|
end
|
10246
10425
|
|
10426
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorTool
|
10427
|
+
# @private
|
10428
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10429
|
+
collection :actions, as: 'actions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolAction, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolAction::Representation
|
10430
|
+
|
10431
|
+
property :name, as: 'name'
|
10432
|
+
end
|
10433
|
+
end
|
10434
|
+
|
10435
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorToolAction
|
10436
|
+
# @private
|
10437
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10438
|
+
property :connection_action_id, as: 'connectionActionId'
|
10439
|
+
property :entity_operation, as: 'entityOperation', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation::Representation
|
10440
|
+
|
10441
|
+
collection :input_fields, as: 'inputFields'
|
10442
|
+
collection :output_fields, as: 'outputFields'
|
10443
|
+
end
|
10444
|
+
end
|
10445
|
+
|
10446
|
+
class GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation
|
10447
|
+
# @private
|
10448
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10449
|
+
property :entity_id, as: 'entityId'
|
10450
|
+
property :operation, as: 'operation'
|
10451
|
+
end
|
10452
|
+
end
|
10453
|
+
|
10454
|
+
class GoogleCloudDialogflowV2beta1ToolExtensionTool
|
10455
|
+
# @private
|
10456
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10457
|
+
property :name, as: 'name'
|
10458
|
+
end
|
10459
|
+
end
|
10460
|
+
|
10461
|
+
class GoogleCloudDialogflowV2beta1ToolFunctionTool
|
10462
|
+
# @private
|
10463
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10464
|
+
hash :input_schema, as: 'inputSchema'
|
10465
|
+
property :method_type, as: 'methodType'
|
10466
|
+
hash :output_schema, as: 'outputSchema'
|
10467
|
+
end
|
10468
|
+
end
|
10469
|
+
|
10470
|
+
class GoogleCloudDialogflowV2beta1ToolOpenApiTool
|
10471
|
+
# @private
|
10472
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10473
|
+
property :authentication, as: 'authentication', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthentication, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthentication::Representation
|
10474
|
+
|
10475
|
+
property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig::Representation
|
10476
|
+
|
10477
|
+
property :text_schema, as: 'textSchema'
|
10478
|
+
property :tls_config, as: 'tlsConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolTlsConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolTlsConfig::Representation
|
10479
|
+
|
10480
|
+
end
|
10481
|
+
end
|
10482
|
+
|
10483
|
+
class GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig
|
10484
|
+
# @private
|
10485
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10486
|
+
property :service, as: 'service'
|
10487
|
+
end
|
10488
|
+
end
|
10489
|
+
|
10490
|
+
class GoogleCloudDialogflowV2beta1ToolTlsConfig
|
10491
|
+
# @private
|
10492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10493
|
+
collection :ca_certs, as: 'caCerts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolTlsConfigCaCert, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolTlsConfigCaCert::Representation
|
10494
|
+
|
10495
|
+
end
|
10496
|
+
end
|
10497
|
+
|
10498
|
+
class GoogleCloudDialogflowV2beta1ToolTlsConfigCaCert
|
10499
|
+
# @private
|
10500
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10501
|
+
property :cert, :base64 => true, as: 'cert'
|
10502
|
+
property :display_name, as: 'displayName'
|
10503
|
+
end
|
10504
|
+
end
|
10505
|
+
|
10247
10506
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
10248
10507
|
# @private
|
10249
10508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -9950,6 +9950,186 @@ module Google
|
|
9950
9950
|
execute_or_queue_command(command, &block)
|
9951
9951
|
end
|
9952
9952
|
|
9953
|
+
# Creates a tool.
|
9954
|
+
# @param [String] parent
|
9955
|
+
# Required. The project/location to create tool for. Format: `projects//
|
9956
|
+
# locations/`
|
9957
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool] google_cloud_dialogflow_v2beta1_tool_object
|
9958
|
+
# @param [String] tool_id
|
9959
|
+
# Optional. The ID to use for the tool, which will become the final component of
|
9960
|
+
# the tool's resource name. The tool ID must be compliant with the regression
|
9961
|
+
# formula `a-zA-Z*` with the characters length in range of [3,64]. If the field
|
9962
|
+
# is not provide, an Id will be auto-generated. If the field is provided, the
|
9963
|
+
# caller is responsible for 1. the uniqueness of the ID, otherwise the request
|
9964
|
+
# will be rejected. 2. the consistency for whether to use custom ID or not under
|
9965
|
+
# a project to better ensure uniqueness.
|
9966
|
+
# @param [String] fields
|
9967
|
+
# Selector specifying which fields to include in a partial response.
|
9968
|
+
# @param [String] quota_user
|
9969
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9970
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9971
|
+
# @param [Google::Apis::RequestOptions] options
|
9972
|
+
# Request-specific options
|
9973
|
+
#
|
9974
|
+
# @yield [result, err] Result & error if block supplied
|
9975
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool] parsed result object
|
9976
|
+
# @yieldparam err [StandardError] error object if request failed
|
9977
|
+
#
|
9978
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool]
|
9979
|
+
#
|
9980
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9981
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9982
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9983
|
+
def create_project_location_tool(parent, google_cloud_dialogflow_v2beta1_tool_object = nil, tool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
9984
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/tools', options)
|
9985
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool::Representation
|
9986
|
+
command.request_object = google_cloud_dialogflow_v2beta1_tool_object
|
9987
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool::Representation
|
9988
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool
|
9989
|
+
command.params['parent'] = parent unless parent.nil?
|
9990
|
+
command.query['toolId'] = tool_id unless tool_id.nil?
|
9991
|
+
command.query['fields'] = fields unless fields.nil?
|
9992
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9993
|
+
execute_or_queue_command(command, &block)
|
9994
|
+
end
|
9995
|
+
|
9996
|
+
# Deletes a tool.
|
9997
|
+
# @param [String] name
|
9998
|
+
# Required. The tool resource name to delete. Format: `projects//locations//
|
9999
|
+
# tools/`
|
10000
|
+
# @param [String] fields
|
10001
|
+
# Selector specifying which fields to include in a partial response.
|
10002
|
+
# @param [String] quota_user
|
10003
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10004
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10005
|
+
# @param [Google::Apis::RequestOptions] options
|
10006
|
+
# Request-specific options
|
10007
|
+
#
|
10008
|
+
# @yield [result, err] Result & error if block supplied
|
10009
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
10010
|
+
# @yieldparam err [StandardError] error object if request failed
|
10011
|
+
#
|
10012
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
10013
|
+
#
|
10014
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10015
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10016
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10017
|
+
def delete_project_location_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
10018
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
10019
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
10020
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
10021
|
+
command.params['name'] = name unless name.nil?
|
10022
|
+
command.query['fields'] = fields unless fields.nil?
|
10023
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10024
|
+
execute_or_queue_command(command, &block)
|
10025
|
+
end
|
10026
|
+
|
10027
|
+
# Retrieves a tool.
|
10028
|
+
# @param [String] name
|
10029
|
+
# Required. The tool resource name to retrieve. Format: `projects//locations//
|
10030
|
+
# tools/`
|
10031
|
+
# @param [String] fields
|
10032
|
+
# Selector specifying which fields to include in a partial response.
|
10033
|
+
# @param [String] quota_user
|
10034
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10035
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10036
|
+
# @param [Google::Apis::RequestOptions] options
|
10037
|
+
# Request-specific options
|
10038
|
+
#
|
10039
|
+
# @yield [result, err] Result & error if block supplied
|
10040
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool] parsed result object
|
10041
|
+
# @yieldparam err [StandardError] error object if request failed
|
10042
|
+
#
|
10043
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool]
|
10044
|
+
#
|
10045
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10046
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10047
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10048
|
+
def get_project_location_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
10049
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
10050
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool::Representation
|
10051
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool
|
10052
|
+
command.params['name'] = name unless name.nil?
|
10053
|
+
command.query['fields'] = fields unless fields.nil?
|
10054
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10055
|
+
execute_or_queue_command(command, &block)
|
10056
|
+
end
|
10057
|
+
|
10058
|
+
# Lists tools.
|
10059
|
+
# @param [String] parent
|
10060
|
+
# Required. The project/location to list tools for. Format: `projects//locations/
|
10061
|
+
# `
|
10062
|
+
# @param [Fixnum] page_size
|
10063
|
+
# Optional. Maximum number of conversation models to return in a single page.
|
10064
|
+
# Default to 10.
|
10065
|
+
# @param [String] page_token
|
10066
|
+
# Optional. The next_page_token value returned from a previous list request.
|
10067
|
+
# @param [String] fields
|
10068
|
+
# Selector specifying which fields to include in a partial response.
|
10069
|
+
# @param [String] quota_user
|
10070
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10071
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10072
|
+
# @param [Google::Apis::RequestOptions] options
|
10073
|
+
# Request-specific options
|
10074
|
+
#
|
10075
|
+
# @yield [result, err] Result & error if block supplied
|
10076
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListToolsResponse] parsed result object
|
10077
|
+
# @yieldparam err [StandardError] error object if request failed
|
10078
|
+
#
|
10079
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListToolsResponse]
|
10080
|
+
#
|
10081
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10082
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10083
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10084
|
+
def list_project_location_tools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
10085
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/tools', options)
|
10086
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListToolsResponse::Representation
|
10087
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListToolsResponse
|
10088
|
+
command.params['parent'] = parent unless parent.nil?
|
10089
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
10090
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
10091
|
+
command.query['fields'] = fields unless fields.nil?
|
10092
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10093
|
+
execute_or_queue_command(command, &block)
|
10094
|
+
end
|
10095
|
+
|
10096
|
+
# Updates a tool.
|
10097
|
+
# @param [String] name
|
10098
|
+
# Output only. Identifier. The resource name of the tool. Format: `projects//
|
10099
|
+
# locations//tools/`.
|
10100
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool] google_cloud_dialogflow_v2beta1_tool_object
|
10101
|
+
# @param [String] update_mask
|
10102
|
+
# Optional. The list of fields to update.
|
10103
|
+
# @param [String] fields
|
10104
|
+
# Selector specifying which fields to include in a partial response.
|
10105
|
+
# @param [String] quota_user
|
10106
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10107
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10108
|
+
# @param [Google::Apis::RequestOptions] options
|
10109
|
+
# Request-specific options
|
10110
|
+
#
|
10111
|
+
# @yield [result, err] Result & error if block supplied
|
10112
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool] parsed result object
|
10113
|
+
# @yieldparam err [StandardError] error object if request failed
|
10114
|
+
#
|
10115
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool]
|
10116
|
+
#
|
10117
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10118
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10119
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10120
|
+
def patch_project_location_tool(name, google_cloud_dialogflow_v2beta1_tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
10121
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
10122
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool::Representation
|
10123
|
+
command.request_object = google_cloud_dialogflow_v2beta1_tool_object
|
10124
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool::Representation
|
10125
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Tool
|
10126
|
+
command.params['name'] = name unless name.nil?
|
10127
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
10128
|
+
command.query['fields'] = fields unless fields.nil?
|
10129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10130
|
+
execute_or_queue_command(command, &block)
|
10131
|
+
end
|
10132
|
+
|
9953
10133
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
9954
10134
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
9955
10135
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.113.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.113.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|