google-apis-dialogflow_v2 0.113.0 → 0.114.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95c3c657eb952f1a0847980df6b76d4a394073eb0802ddeb716ab00c96dafb0b
|
4
|
+
data.tar.gz: 06777fad8f5ff374ffc61e687ad299a7bb570efe499f654fb1dcfe4f04efd94d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9fa597b4e9f6034db1f3e79bb3eb08b58a0230d544199241c4c7d5534d04117bcb86c1bc735536c0f5022b37d0708abc847855e7f1b1174028190ec6f9bcae
|
7
|
+
data.tar.gz: 1cc9553c000ad8831bc910f1e833b6eb9df95c3cf688b77b9581e24b5b9099385599427a6d2b7f07c24918ea45ca0af3c23a9ca6d64db8e59f3e065391df0322
|
data/CHANGELOG.md
CHANGED
@@ -15488,6 +15488,32 @@ module Google
|
|
15488
15488
|
end
|
15489
15489
|
end
|
15490
15490
|
|
15491
|
+
# Response of ListTools.
|
15492
|
+
class GoogleCloudDialogflowV2ListToolsResponse
|
15493
|
+
include Google::Apis::Core::Hashable
|
15494
|
+
|
15495
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
15496
|
+
# results in the list.
|
15497
|
+
# Corresponds to the JSON property `nextPageToken`
|
15498
|
+
# @return [String]
|
15499
|
+
attr_accessor :next_page_token
|
15500
|
+
|
15501
|
+
# List of tools retrieved.
|
15502
|
+
# Corresponds to the JSON property `tools`
|
15503
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool>]
|
15504
|
+
attr_accessor :tools
|
15505
|
+
|
15506
|
+
def initialize(**args)
|
15507
|
+
update!(**args)
|
15508
|
+
end
|
15509
|
+
|
15510
|
+
# Update properties of this object
|
15511
|
+
def update!(**args)
|
15512
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
15513
|
+
@tools = args[:tools] if args.key?(:tools)
|
15514
|
+
end
|
15515
|
+
end
|
15516
|
+
|
15491
15517
|
# The response message for Versions.ListVersions.
|
15492
15518
|
class GoogleCloudDialogflowV2ListVersionsResponse
|
15493
15519
|
include Google::Apis::Core::Hashable
|
@@ -18587,6 +18613,295 @@ module Google
|
|
18587
18613
|
end
|
18588
18614
|
end
|
18589
18615
|
|
18616
|
+
# Represents a tool.
|
18617
|
+
class GoogleCloudDialogflowV2Tool
|
18618
|
+
include Google::Apis::Core::Hashable
|
18619
|
+
|
18620
|
+
# Optional. Confirmation requirement for the actions. Each key is an action name
|
18621
|
+
# in the action_schemas. If an action's confirmation requirement is unspecified (
|
18622
|
+
# either the key is not present, or its value is
|
18623
|
+
# CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
|
18624
|
+
# action's method_type - confirmation is not required if and only if method_type
|
18625
|
+
# is GET.
|
18626
|
+
# Corresponds to the JSON property `actionConfirmationRequirement`
|
18627
|
+
# @return [Hash<String,String>]
|
18628
|
+
attr_accessor :action_confirmation_requirement
|
18629
|
+
|
18630
|
+
# A ConnectorTool enabling using Integration Connectors Connections as tools.
|
18631
|
+
# Corresponds to the JSON property `connectorSpec`
|
18632
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorTool]
|
18633
|
+
attr_accessor :connector_spec
|
18634
|
+
|
18635
|
+
# Output only. Creation time of this tool.
|
18636
|
+
# Corresponds to the JSON property `createTime`
|
18637
|
+
# @return [String]
|
18638
|
+
attr_accessor :create_time
|
18639
|
+
|
18640
|
+
# Optional. A human readable description of the tool.
|
18641
|
+
# Corresponds to the JSON property `description`
|
18642
|
+
# @return [String]
|
18643
|
+
attr_accessor :description
|
18644
|
+
|
18645
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
18646
|
+
# Corresponds to the JSON property `displayName`
|
18647
|
+
# @return [String]
|
18648
|
+
attr_accessor :display_name
|
18649
|
+
|
18650
|
+
# An ExtensionTool is a way to use Vertex Extensions as a tool.
|
18651
|
+
# Corresponds to the JSON property `extensionSpec`
|
18652
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolExtensionTool]
|
18653
|
+
attr_accessor :extension_spec
|
18654
|
+
|
18655
|
+
# A Function tool describes the functions to be invoked on the client side.
|
18656
|
+
# Corresponds to the JSON property `functionSpec`
|
18657
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool]
|
18658
|
+
attr_accessor :function_spec
|
18659
|
+
|
18660
|
+
# Output only. Identifier. The resource name of the tool. Format: `projects//
|
18661
|
+
# locations//tools/`.
|
18662
|
+
# Corresponds to the JSON property `name`
|
18663
|
+
# @return [String]
|
18664
|
+
attr_accessor :name
|
18665
|
+
|
18666
|
+
# An OpenAPI tool is a way to provide the Tool specifications in the Open API
|
18667
|
+
# schema format.
|
18668
|
+
# Corresponds to the JSON property `openApiSpec`
|
18669
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolOpenApiTool]
|
18670
|
+
attr_accessor :open_api_spec
|
18671
|
+
|
18672
|
+
# Output only. A read only boolean field reflecting Zone Isolation status of the
|
18673
|
+
# tool. If the field is absent, it means the status is unknown.
|
18674
|
+
# Corresponds to the JSON property `satisfiesPzi`
|
18675
|
+
# @return [Boolean]
|
18676
|
+
attr_accessor :satisfies_pzi
|
18677
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
18678
|
+
|
18679
|
+
# Output only. A read only boolean field reflecting Zone Separation status of
|
18680
|
+
# the tool. If the field is absent, it means the status is unknown.
|
18681
|
+
# Corresponds to the JSON property `satisfiesPzs`
|
18682
|
+
# @return [Boolean]
|
18683
|
+
attr_accessor :satisfies_pzs
|
18684
|
+
alias_method :satisfies_pzs?, :satisfies_pzs
|
18685
|
+
|
18686
|
+
# Required. A human readable short name of the tool, which should be unique
|
18687
|
+
# within the project. It should only contain letters, numbers, and underscores,
|
18688
|
+
# and it will be used by LLM to identify the tool.
|
18689
|
+
# Corresponds to the JSON property `toolKey`
|
18690
|
+
# @return [String]
|
18691
|
+
attr_accessor :tool_key
|
18692
|
+
|
18693
|
+
# Output only. Update time of this tool.
|
18694
|
+
# Corresponds to the JSON property `updateTime`
|
18695
|
+
# @return [String]
|
18696
|
+
attr_accessor :update_time
|
18697
|
+
|
18698
|
+
def initialize(**args)
|
18699
|
+
update!(**args)
|
18700
|
+
end
|
18701
|
+
|
18702
|
+
# Update properties of this object
|
18703
|
+
def update!(**args)
|
18704
|
+
@action_confirmation_requirement = args[:action_confirmation_requirement] if args.key?(:action_confirmation_requirement)
|
18705
|
+
@connector_spec = args[:connector_spec] if args.key?(:connector_spec)
|
18706
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
18707
|
+
@description = args[:description] if args.key?(:description)
|
18708
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
18709
|
+
@extension_spec = args[:extension_spec] if args.key?(:extension_spec)
|
18710
|
+
@function_spec = args[:function_spec] if args.key?(:function_spec)
|
18711
|
+
@name = args[:name] if args.key?(:name)
|
18712
|
+
@open_api_spec = args[:open_api_spec] if args.key?(:open_api_spec)
|
18713
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
18714
|
+
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
18715
|
+
@tool_key = args[:tool_key] if args.key?(:tool_key)
|
18716
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
18717
|
+
end
|
18718
|
+
end
|
18719
|
+
|
18720
|
+
# Authentication information required for API calls
|
18721
|
+
class GoogleCloudDialogflowV2ToolAuthentication
|
18722
|
+
include Google::Apis::Core::Hashable
|
18723
|
+
|
18724
|
+
# Config for authentication with API key.
|
18725
|
+
# Corresponds to the JSON property `apiKeyConfig`
|
18726
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig]
|
18727
|
+
attr_accessor :api_key_config
|
18728
|
+
|
18729
|
+
# Config for authentication using bearer token.
|
18730
|
+
# Corresponds to the JSON property `bearerTokenConfig`
|
18731
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig]
|
18732
|
+
attr_accessor :bearer_token_config
|
18733
|
+
|
18734
|
+
# Config for authentication with OAuth.
|
18735
|
+
# Corresponds to the JSON property `oauthConfig`
|
18736
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig]
|
18737
|
+
attr_accessor :oauth_config
|
18738
|
+
|
18739
|
+
# Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/
|
18740
|
+
# docs/service-agents#dialogflow-service-agent).
|
18741
|
+
# Corresponds to the JSON property `serviceAgentAuthConfig`
|
18742
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig]
|
18743
|
+
attr_accessor :service_agent_auth_config
|
18744
|
+
|
18745
|
+
def initialize(**args)
|
18746
|
+
update!(**args)
|
18747
|
+
end
|
18748
|
+
|
18749
|
+
# Update properties of this object
|
18750
|
+
def update!(**args)
|
18751
|
+
@api_key_config = args[:api_key_config] if args.key?(:api_key_config)
|
18752
|
+
@bearer_token_config = args[:bearer_token_config] if args.key?(:bearer_token_config)
|
18753
|
+
@oauth_config = args[:oauth_config] if args.key?(:oauth_config)
|
18754
|
+
@service_agent_auth_config = args[:service_agent_auth_config] if args.key?(:service_agent_auth_config)
|
18755
|
+
end
|
18756
|
+
end
|
18757
|
+
|
18758
|
+
# Config for authentication with API key.
|
18759
|
+
class GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig
|
18760
|
+
include Google::Apis::Core::Hashable
|
18761
|
+
|
18762
|
+
# Optional. The API key. If the `secret_version_for_api_key` field is set, this
|
18763
|
+
# field will be ignored.
|
18764
|
+
# Corresponds to the JSON property `apiKey`
|
18765
|
+
# @return [String]
|
18766
|
+
attr_accessor :api_key
|
18767
|
+
|
18768
|
+
# Required. The parameter name or the header name of the API key. E.g., If the
|
18769
|
+
# API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the
|
18770
|
+
# parameter name.
|
18771
|
+
# Corresponds to the JSON property `keyName`
|
18772
|
+
# @return [String]
|
18773
|
+
attr_accessor :key_name
|
18774
|
+
|
18775
|
+
# Required. Key location in the request.
|
18776
|
+
# Corresponds to the JSON property `requestLocation`
|
18777
|
+
# @return [String]
|
18778
|
+
attr_accessor :request_location
|
18779
|
+
|
18780
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
18781
|
+
# API key. If this field is set, the `api_key` field will be ignored. Format: `
|
18782
|
+
# projects/`project`/secrets/`secret`/versions/`version``
|
18783
|
+
# Corresponds to the JSON property `secretVersionForApiKey`
|
18784
|
+
# @return [String]
|
18785
|
+
attr_accessor :secret_version_for_api_key
|
18786
|
+
|
18787
|
+
def initialize(**args)
|
18788
|
+
update!(**args)
|
18789
|
+
end
|
18790
|
+
|
18791
|
+
# Update properties of this object
|
18792
|
+
def update!(**args)
|
18793
|
+
@api_key = args[:api_key] if args.key?(:api_key)
|
18794
|
+
@key_name = args[:key_name] if args.key?(:key_name)
|
18795
|
+
@request_location = args[:request_location] if args.key?(:request_location)
|
18796
|
+
@secret_version_for_api_key = args[:secret_version_for_api_key] if args.key?(:secret_version_for_api_key)
|
18797
|
+
end
|
18798
|
+
end
|
18799
|
+
|
18800
|
+
# Config for authentication using bearer token.
|
18801
|
+
class GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
|
18802
|
+
include Google::Apis::Core::Hashable
|
18803
|
+
|
18804
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
18805
|
+
# Bearer token. If this field is set, the `token` field will be ignored. Format:
|
18806
|
+
# `projects/`project`/secrets/`secret`/versions/`version``
|
18807
|
+
# Corresponds to the JSON property `secretVersionForToken`
|
18808
|
+
# @return [String]
|
18809
|
+
attr_accessor :secret_version_for_token
|
18810
|
+
|
18811
|
+
# Optional. The text token appended to the text `Bearer` to the request
|
18812
|
+
# Authorization header. [Session parameters reference](https://cloud.google.com/
|
18813
|
+
# dialogflow/cx/docs/concept/parameter#session-ref) can be used to pass the
|
18814
|
+
# token dynamically, e.g. `$session.params.parameter-id`.
|
18815
|
+
# Corresponds to the JSON property `token`
|
18816
|
+
# @return [String]
|
18817
|
+
attr_accessor :token
|
18818
|
+
|
18819
|
+
def initialize(**args)
|
18820
|
+
update!(**args)
|
18821
|
+
end
|
18822
|
+
|
18823
|
+
# Update properties of this object
|
18824
|
+
def update!(**args)
|
18825
|
+
@secret_version_for_token = args[:secret_version_for_token] if args.key?(:secret_version_for_token)
|
18826
|
+
@token = args[:token] if args.key?(:token)
|
18827
|
+
end
|
18828
|
+
end
|
18829
|
+
|
18830
|
+
# Config for authentication with OAuth.
|
18831
|
+
class GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig
|
18832
|
+
include Google::Apis::Core::Hashable
|
18833
|
+
|
18834
|
+
# Required. The client ID from the OAuth provider.
|
18835
|
+
# Corresponds to the JSON property `clientId`
|
18836
|
+
# @return [String]
|
18837
|
+
attr_accessor :client_id
|
18838
|
+
|
18839
|
+
# Optional. The client secret from the OAuth provider. If the `
|
18840
|
+
# secret_version_for_client_secret` field is set, this field will be ignored.
|
18841
|
+
# Corresponds to the JSON property `clientSecret`
|
18842
|
+
# @return [String]
|
18843
|
+
attr_accessor :client_secret
|
18844
|
+
|
18845
|
+
# Required. OAuth grant types.
|
18846
|
+
# Corresponds to the JSON property `oauthGrantType`
|
18847
|
+
# @return [String]
|
18848
|
+
attr_accessor :oauth_grant_type
|
18849
|
+
|
18850
|
+
# Optional. The OAuth scopes to grant.
|
18851
|
+
# Corresponds to the JSON property `scopes`
|
18852
|
+
# @return [Array<String>]
|
18853
|
+
attr_accessor :scopes
|
18854
|
+
|
18855
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
18856
|
+
# client secret. If this field is set, the `client_secret` field will be ignored.
|
18857
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
18858
|
+
# Corresponds to the JSON property `secretVersionForClientSecret`
|
18859
|
+
# @return [String]
|
18860
|
+
attr_accessor :secret_version_for_client_secret
|
18861
|
+
|
18862
|
+
# Required. The token endpoint in the OAuth provider to exchange for an access
|
18863
|
+
# token.
|
18864
|
+
# Corresponds to the JSON property `tokenEndpoint`
|
18865
|
+
# @return [String]
|
18866
|
+
attr_accessor :token_endpoint
|
18867
|
+
|
18868
|
+
def initialize(**args)
|
18869
|
+
update!(**args)
|
18870
|
+
end
|
18871
|
+
|
18872
|
+
# Update properties of this object
|
18873
|
+
def update!(**args)
|
18874
|
+
@client_id = args[:client_id] if args.key?(:client_id)
|
18875
|
+
@client_secret = args[:client_secret] if args.key?(:client_secret)
|
18876
|
+
@oauth_grant_type = args[:oauth_grant_type] if args.key?(:oauth_grant_type)
|
18877
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
18878
|
+
@secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
|
18879
|
+
@token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
|
18880
|
+
end
|
18881
|
+
end
|
18882
|
+
|
18883
|
+
# Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/
|
18884
|
+
# docs/service-agents#dialogflow-service-agent).
|
18885
|
+
class GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig
|
18886
|
+
include Google::Apis::Core::Hashable
|
18887
|
+
|
18888
|
+
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
18889
|
+
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
18890
|
+
# agent). The generated token is sent in the Authorization header.
|
18891
|
+
# Corresponds to the JSON property `serviceAgentAuth`
|
18892
|
+
# @return [String]
|
18893
|
+
attr_accessor :service_agent_auth
|
18894
|
+
|
18895
|
+
def initialize(**args)
|
18896
|
+
update!(**args)
|
18897
|
+
end
|
18898
|
+
|
18899
|
+
# Update properties of this object
|
18900
|
+
def update!(**args)
|
18901
|
+
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
18902
|
+
end
|
18903
|
+
end
|
18904
|
+
|
18590
18905
|
# Represents a call of a specific tool's action with the specified inputs.
|
18591
18906
|
class GoogleCloudDialogflowV2ToolCall
|
18592
18907
|
include Google::Apis::Core::Hashable
|
@@ -18726,6 +19041,266 @@ module Google
|
|
18726
19041
|
end
|
18727
19042
|
end
|
18728
19043
|
|
19044
|
+
# A ConnectorTool enabling using Integration Connectors Connections as tools.
|
19045
|
+
class GoogleCloudDialogflowV2ToolConnectorTool
|
19046
|
+
include Google::Apis::Core::Hashable
|
19047
|
+
|
19048
|
+
# Required. Actions for the tool to use.
|
19049
|
+
# Corresponds to the JSON property `actions`
|
19050
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolAction>]
|
19051
|
+
attr_accessor :actions
|
19052
|
+
|
19053
|
+
# Required. The full resource name of the referenced Integration Connectors
|
19054
|
+
# Connection. Format: 'projects/*/locations/*/connections/*'
|
19055
|
+
# Corresponds to the JSON property `name`
|
19056
|
+
# @return [String]
|
19057
|
+
attr_accessor :name
|
19058
|
+
|
19059
|
+
def initialize(**args)
|
19060
|
+
update!(**args)
|
19061
|
+
end
|
19062
|
+
|
19063
|
+
# Update properties of this object
|
19064
|
+
def update!(**args)
|
19065
|
+
@actions = args[:actions] if args.key?(:actions)
|
19066
|
+
@name = args[:name] if args.key?(:name)
|
19067
|
+
end
|
19068
|
+
end
|
19069
|
+
|
19070
|
+
# Configuration of a Connection operation for the tool to use.
|
19071
|
+
class GoogleCloudDialogflowV2ToolConnectorToolAction
|
19072
|
+
include Google::Apis::Core::Hashable
|
19073
|
+
|
19074
|
+
# ID of a Connection action for the tool to use.
|
19075
|
+
# Corresponds to the JSON property `connectionActionId`
|
19076
|
+
# @return [String]
|
19077
|
+
attr_accessor :connection_action_id
|
19078
|
+
|
19079
|
+
# Entity CRUD operation specification.
|
19080
|
+
# Corresponds to the JSON property `entityOperation`
|
19081
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation]
|
19082
|
+
attr_accessor :entity_operation
|
19083
|
+
|
19084
|
+
# Optional. Entity fields to use as inputs for the operation. If no fields are
|
19085
|
+
# specified, all fields of the Entity will be used.
|
19086
|
+
# Corresponds to the JSON property `inputFields`
|
19087
|
+
# @return [Array<String>]
|
19088
|
+
attr_accessor :input_fields
|
19089
|
+
|
19090
|
+
# Optional. Entity fields to return from the operation. If no fields are
|
19091
|
+
# specified, all fields of the Entity will be returned.
|
19092
|
+
# Corresponds to the JSON property `outputFields`
|
19093
|
+
# @return [Array<String>]
|
19094
|
+
attr_accessor :output_fields
|
19095
|
+
|
19096
|
+
def initialize(**args)
|
19097
|
+
update!(**args)
|
19098
|
+
end
|
19099
|
+
|
19100
|
+
# Update properties of this object
|
19101
|
+
def update!(**args)
|
19102
|
+
@connection_action_id = args[:connection_action_id] if args.key?(:connection_action_id)
|
19103
|
+
@entity_operation = args[:entity_operation] if args.key?(:entity_operation)
|
19104
|
+
@input_fields = args[:input_fields] if args.key?(:input_fields)
|
19105
|
+
@output_fields = args[:output_fields] if args.key?(:output_fields)
|
19106
|
+
end
|
19107
|
+
end
|
19108
|
+
|
19109
|
+
# Entity CRUD operation specification.
|
19110
|
+
class GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation
|
19111
|
+
include Google::Apis::Core::Hashable
|
19112
|
+
|
19113
|
+
# Required. ID of the entity.
|
19114
|
+
# Corresponds to the JSON property `entityId`
|
19115
|
+
# @return [String]
|
19116
|
+
attr_accessor :entity_id
|
19117
|
+
|
19118
|
+
# Required. Operation to perform on the entity.
|
19119
|
+
# Corresponds to the JSON property `operation`
|
19120
|
+
# @return [String]
|
19121
|
+
attr_accessor :operation
|
19122
|
+
|
19123
|
+
def initialize(**args)
|
19124
|
+
update!(**args)
|
19125
|
+
end
|
19126
|
+
|
19127
|
+
# Update properties of this object
|
19128
|
+
def update!(**args)
|
19129
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
19130
|
+
@operation = args[:operation] if args.key?(:operation)
|
19131
|
+
end
|
19132
|
+
end
|
19133
|
+
|
19134
|
+
# An ExtensionTool is a way to use Vertex Extensions as a tool.
|
19135
|
+
class GoogleCloudDialogflowV2ToolExtensionTool
|
19136
|
+
include Google::Apis::Core::Hashable
|
19137
|
+
|
19138
|
+
# Required. The full name of the referenced vertex extension. Format: `projects/`
|
19139
|
+
# project`/locations/`location`/extensions/`extension``
|
19140
|
+
# Corresponds to the JSON property `name`
|
19141
|
+
# @return [String]
|
19142
|
+
attr_accessor :name
|
19143
|
+
|
19144
|
+
def initialize(**args)
|
19145
|
+
update!(**args)
|
19146
|
+
end
|
19147
|
+
|
19148
|
+
# Update properties of this object
|
19149
|
+
def update!(**args)
|
19150
|
+
@name = args[:name] if args.key?(:name)
|
19151
|
+
end
|
19152
|
+
end
|
19153
|
+
|
19154
|
+
# A Function tool describes the functions to be invoked on the client side.
|
19155
|
+
class GoogleCloudDialogflowV2ToolFunctionTool
|
19156
|
+
include Google::Apis::Core::Hashable
|
19157
|
+
|
19158
|
+
# Optional. The JSON schema is encapsulated in a google.protobuf.Struct to
|
19159
|
+
# describe the input of the function. This input is a JSON object that contains
|
19160
|
+
# the function's parameters as properties of the object.
|
19161
|
+
# Corresponds to the JSON property `inputSchema`
|
19162
|
+
# @return [Hash<String,Object>]
|
19163
|
+
attr_accessor :input_schema
|
19164
|
+
|
19165
|
+
# Optional. The method type of the function. If not specified, the default value
|
19166
|
+
# is GET.
|
19167
|
+
# Corresponds to the JSON property `methodType`
|
19168
|
+
# @return [String]
|
19169
|
+
attr_accessor :method_type
|
19170
|
+
|
19171
|
+
# Optional. The JSON schema is encapsulated in a google.protobuf.Struct to
|
19172
|
+
# describe the output of the function. This output is a JSON object that
|
19173
|
+
# contains the function's parameters as properties of the object.
|
19174
|
+
# Corresponds to the JSON property `outputSchema`
|
19175
|
+
# @return [Hash<String,Object>]
|
19176
|
+
attr_accessor :output_schema
|
19177
|
+
|
19178
|
+
def initialize(**args)
|
19179
|
+
update!(**args)
|
19180
|
+
end
|
19181
|
+
|
19182
|
+
# Update properties of this object
|
19183
|
+
def update!(**args)
|
19184
|
+
@input_schema = args[:input_schema] if args.key?(:input_schema)
|
19185
|
+
@method_type = args[:method_type] if args.key?(:method_type)
|
19186
|
+
@output_schema = args[:output_schema] if args.key?(:output_schema)
|
19187
|
+
end
|
19188
|
+
end
|
19189
|
+
|
19190
|
+
# An OpenAPI tool is a way to provide the Tool specifications in the Open API
|
19191
|
+
# schema format.
|
19192
|
+
class GoogleCloudDialogflowV2ToolOpenApiTool
|
19193
|
+
include Google::Apis::Core::Hashable
|
19194
|
+
|
19195
|
+
# Authentication information required for API calls
|
19196
|
+
# Corresponds to the JSON property `authentication`
|
19197
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthentication]
|
19198
|
+
attr_accessor :authentication
|
19199
|
+
|
19200
|
+
# Configuration for tools using Service Directory.
|
19201
|
+
# Corresponds to the JSON property `serviceDirectoryConfig`
|
19202
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolServiceDirectoryConfig]
|
19203
|
+
attr_accessor :service_directory_config
|
19204
|
+
|
19205
|
+
# Required. The OpenAPI schema specified as a text.
|
19206
|
+
# Corresponds to the JSON property `textSchema`
|
19207
|
+
# @return [String]
|
19208
|
+
attr_accessor :text_schema
|
19209
|
+
|
19210
|
+
# The TLS configuration.
|
19211
|
+
# Corresponds to the JSON property `tlsConfig`
|
19212
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfig]
|
19213
|
+
attr_accessor :tls_config
|
19214
|
+
|
19215
|
+
def initialize(**args)
|
19216
|
+
update!(**args)
|
19217
|
+
end
|
19218
|
+
|
19219
|
+
# Update properties of this object
|
19220
|
+
def update!(**args)
|
19221
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
19222
|
+
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
|
19223
|
+
@text_schema = args[:text_schema] if args.key?(:text_schema)
|
19224
|
+
@tls_config = args[:tls_config] if args.key?(:tls_config)
|
19225
|
+
end
|
19226
|
+
end
|
19227
|
+
|
19228
|
+
# Configuration for tools using Service Directory.
|
19229
|
+
class GoogleCloudDialogflowV2ToolServiceDirectoryConfig
|
19230
|
+
include Google::Apis::Core::Hashable
|
19231
|
+
|
19232
|
+
# Required. The name of [Service Directory](https://cloud.google.com/service-
|
19233
|
+
# directory) service. Format: `projects//locations//namespaces//services/`. `
|
19234
|
+
# LocationID` of the service directory must be the same as the location of the
|
19235
|
+
# tool.
|
19236
|
+
# Corresponds to the JSON property `service`
|
19237
|
+
# @return [String]
|
19238
|
+
attr_accessor :service
|
19239
|
+
|
19240
|
+
def initialize(**args)
|
19241
|
+
update!(**args)
|
19242
|
+
end
|
19243
|
+
|
19244
|
+
# Update properties of this object
|
19245
|
+
def update!(**args)
|
19246
|
+
@service = args[:service] if args.key?(:service)
|
19247
|
+
end
|
19248
|
+
end
|
19249
|
+
|
19250
|
+
# The TLS configuration.
|
19251
|
+
class GoogleCloudDialogflowV2ToolTlsConfig
|
19252
|
+
include Google::Apis::Core::Hashable
|
19253
|
+
|
19254
|
+
# Required. Specifies a list of allowed custom CA certificates for HTTPS
|
19255
|
+
# verification.
|
19256
|
+
# Corresponds to the JSON property `caCerts`
|
19257
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfigCaCert>]
|
19258
|
+
attr_accessor :ca_certs
|
19259
|
+
|
19260
|
+
def initialize(**args)
|
19261
|
+
update!(**args)
|
19262
|
+
end
|
19263
|
+
|
19264
|
+
# Update properties of this object
|
19265
|
+
def update!(**args)
|
19266
|
+
@ca_certs = args[:ca_certs] if args.key?(:ca_certs)
|
19267
|
+
end
|
19268
|
+
end
|
19269
|
+
|
19270
|
+
# The CA certificate.
|
19271
|
+
class GoogleCloudDialogflowV2ToolTlsConfigCaCert
|
19272
|
+
include Google::Apis::Core::Hashable
|
19273
|
+
|
19274
|
+
# Required. The allowed custom CA certificates (in DER format) for HTTPS
|
19275
|
+
# verification. This overrides the default SSL trust store. If this is empty or
|
19276
|
+
# unspecified, Dialogflow will use Google's default trust store to verify
|
19277
|
+
# certificates. N.B. Make sure the HTTPS server certificates are signed with "
|
19278
|
+
# subject alt name". For instance a certificate can be self-signed using the
|
19279
|
+
# following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey
|
19280
|
+
# example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='
|
19281
|
+
# DNS:www.example.com'")
|
19282
|
+
# Corresponds to the JSON property `cert`
|
19283
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
19284
|
+
# @return [String]
|
19285
|
+
attr_accessor :cert
|
19286
|
+
|
19287
|
+
# Required. The name of the allowed custom CA certificates. This can be used to
|
19288
|
+
# disambiguate the custom CA certificates.
|
19289
|
+
# Corresponds to the JSON property `displayName`
|
19290
|
+
# @return [String]
|
19291
|
+
attr_accessor :display_name
|
19292
|
+
|
19293
|
+
def initialize(**args)
|
19294
|
+
update!(**args)
|
19295
|
+
end
|
19296
|
+
|
19297
|
+
# Update properties of this object
|
19298
|
+
def update!(**args)
|
19299
|
+
@cert = args[:cert] if args.key?(:cert)
|
19300
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
19301
|
+
end
|
19302
|
+
end
|
19303
|
+
|
18729
19304
|
# The request message for Agents.TrainAgent.
|
18730
19305
|
class GoogleCloudDialogflowV2TrainAgentRequest
|
18731
19306
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2
|
18
18
|
# Version of the google-apis-dialogflow_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.114.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 = "20251013"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2530,6 +2530,12 @@ module Google
|
|
2530
2530
|
include Google::Apis::Core::JsonObjectSupport
|
2531
2531
|
end
|
2532
2532
|
|
2533
|
+
class GoogleCloudDialogflowV2ListToolsResponse
|
2534
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2535
|
+
|
2536
|
+
include Google::Apis::Core::JsonObjectSupport
|
2537
|
+
end
|
2538
|
+
|
2533
2539
|
class GoogleCloudDialogflowV2ListVersionsResponse
|
2534
2540
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2535
2541
|
|
@@ -3010,6 +3016,42 @@ module Google
|
|
3010
3016
|
include Google::Apis::Core::JsonObjectSupport
|
3011
3017
|
end
|
3012
3018
|
|
3019
|
+
class GoogleCloudDialogflowV2Tool
|
3020
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3021
|
+
|
3022
|
+
include Google::Apis::Core::JsonObjectSupport
|
3023
|
+
end
|
3024
|
+
|
3025
|
+
class GoogleCloudDialogflowV2ToolAuthentication
|
3026
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3027
|
+
|
3028
|
+
include Google::Apis::Core::JsonObjectSupport
|
3029
|
+
end
|
3030
|
+
|
3031
|
+
class GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig
|
3032
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3033
|
+
|
3034
|
+
include Google::Apis::Core::JsonObjectSupport
|
3035
|
+
end
|
3036
|
+
|
3037
|
+
class GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
|
3038
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3039
|
+
|
3040
|
+
include Google::Apis::Core::JsonObjectSupport
|
3041
|
+
end
|
3042
|
+
|
3043
|
+
class GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig
|
3044
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3045
|
+
|
3046
|
+
include Google::Apis::Core::JsonObjectSupport
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
class GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig
|
3050
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3051
|
+
|
3052
|
+
include Google::Apis::Core::JsonObjectSupport
|
3053
|
+
end
|
3054
|
+
|
3013
3055
|
class GoogleCloudDialogflowV2ToolCall
|
3014
3056
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3015
3057
|
|
@@ -3028,6 +3070,60 @@ module Google
|
|
3028
3070
|
include Google::Apis::Core::JsonObjectSupport
|
3029
3071
|
end
|
3030
3072
|
|
3073
|
+
class GoogleCloudDialogflowV2ToolConnectorTool
|
3074
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3075
|
+
|
3076
|
+
include Google::Apis::Core::JsonObjectSupport
|
3077
|
+
end
|
3078
|
+
|
3079
|
+
class GoogleCloudDialogflowV2ToolConnectorToolAction
|
3080
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3081
|
+
|
3082
|
+
include Google::Apis::Core::JsonObjectSupport
|
3083
|
+
end
|
3084
|
+
|
3085
|
+
class GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation
|
3086
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3087
|
+
|
3088
|
+
include Google::Apis::Core::JsonObjectSupport
|
3089
|
+
end
|
3090
|
+
|
3091
|
+
class GoogleCloudDialogflowV2ToolExtensionTool
|
3092
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3093
|
+
|
3094
|
+
include Google::Apis::Core::JsonObjectSupport
|
3095
|
+
end
|
3096
|
+
|
3097
|
+
class GoogleCloudDialogflowV2ToolFunctionTool
|
3098
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3099
|
+
|
3100
|
+
include Google::Apis::Core::JsonObjectSupport
|
3101
|
+
end
|
3102
|
+
|
3103
|
+
class GoogleCloudDialogflowV2ToolOpenApiTool
|
3104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3105
|
+
|
3106
|
+
include Google::Apis::Core::JsonObjectSupport
|
3107
|
+
end
|
3108
|
+
|
3109
|
+
class GoogleCloudDialogflowV2ToolServiceDirectoryConfig
|
3110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3111
|
+
|
3112
|
+
include Google::Apis::Core::JsonObjectSupport
|
3113
|
+
end
|
3114
|
+
|
3115
|
+
class GoogleCloudDialogflowV2ToolTlsConfig
|
3116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3117
|
+
|
3118
|
+
include Google::Apis::Core::JsonObjectSupport
|
3119
|
+
end
|
3120
|
+
|
3121
|
+
class GoogleCloudDialogflowV2ToolTlsConfigCaCert
|
3122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3123
|
+
|
3124
|
+
include Google::Apis::Core::JsonObjectSupport
|
3125
|
+
end
|
3126
|
+
|
3031
3127
|
class GoogleCloudDialogflowV2TrainAgentRequest
|
3032
3128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3033
3129
|
|
@@ -8130,6 +8226,15 @@ module Google
|
|
8130
8226
|
end
|
8131
8227
|
end
|
8132
8228
|
|
8229
|
+
class GoogleCloudDialogflowV2ListToolsResponse
|
8230
|
+
# @private
|
8231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8232
|
+
property :next_page_token, as: 'nextPageToken'
|
8233
|
+
collection :tools, as: 'tools', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
8234
|
+
|
8235
|
+
end
|
8236
|
+
end
|
8237
|
+
|
8133
8238
|
class GoogleCloudDialogflowV2ListVersionsResponse
|
8134
8239
|
# @private
|
8135
8240
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8950,6 +9055,80 @@ module Google
|
|
8950
9055
|
end
|
8951
9056
|
end
|
8952
9057
|
|
9058
|
+
class GoogleCloudDialogflowV2Tool
|
9059
|
+
# @private
|
9060
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9061
|
+
hash :action_confirmation_requirement, as: 'actionConfirmationRequirement'
|
9062
|
+
property :connector_spec, as: 'connectorSpec', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorTool, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorTool::Representation
|
9063
|
+
|
9064
|
+
property :create_time, as: 'createTime'
|
9065
|
+
property :description, as: 'description'
|
9066
|
+
property :display_name, as: 'displayName'
|
9067
|
+
property :extension_spec, as: 'extensionSpec', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolExtensionTool, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolExtensionTool::Representation
|
9068
|
+
|
9069
|
+
property :function_spec, as: 'functionSpec', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool::Representation
|
9070
|
+
|
9071
|
+
property :name, as: 'name'
|
9072
|
+
property :open_api_spec, as: 'openApiSpec', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolOpenApiTool, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolOpenApiTool::Representation
|
9073
|
+
|
9074
|
+
property :satisfies_pzi, as: 'satisfiesPzi'
|
9075
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
9076
|
+
property :tool_key, as: 'toolKey'
|
9077
|
+
property :update_time, as: 'updateTime'
|
9078
|
+
end
|
9079
|
+
end
|
9080
|
+
|
9081
|
+
class GoogleCloudDialogflowV2ToolAuthentication
|
9082
|
+
# @private
|
9083
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9084
|
+
property :api_key_config, as: 'apiKeyConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig::Representation
|
9085
|
+
|
9086
|
+
property :bearer_token_config, as: 'bearerTokenConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig::Representation
|
9087
|
+
|
9088
|
+
property :oauth_config, as: 'oauthConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig::Representation
|
9089
|
+
|
9090
|
+
property :service_agent_auth_config, as: 'serviceAgentAuthConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig::Representation
|
9091
|
+
|
9092
|
+
end
|
9093
|
+
end
|
9094
|
+
|
9095
|
+
class GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig
|
9096
|
+
# @private
|
9097
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9098
|
+
property :api_key, as: 'apiKey'
|
9099
|
+
property :key_name, as: 'keyName'
|
9100
|
+
property :request_location, as: 'requestLocation'
|
9101
|
+
property :secret_version_for_api_key, as: 'secretVersionForApiKey'
|
9102
|
+
end
|
9103
|
+
end
|
9104
|
+
|
9105
|
+
class GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
|
9106
|
+
# @private
|
9107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9108
|
+
property :secret_version_for_token, as: 'secretVersionForToken'
|
9109
|
+
property :token, as: 'token'
|
9110
|
+
end
|
9111
|
+
end
|
9112
|
+
|
9113
|
+
class GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig
|
9114
|
+
# @private
|
9115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9116
|
+
property :client_id, as: 'clientId'
|
9117
|
+
property :client_secret, as: 'clientSecret'
|
9118
|
+
property :oauth_grant_type, as: 'oauthGrantType'
|
9119
|
+
collection :scopes, as: 'scopes'
|
9120
|
+
property :secret_version_for_client_secret, as: 'secretVersionForClientSecret'
|
9121
|
+
property :token_endpoint, as: 'tokenEndpoint'
|
9122
|
+
end
|
9123
|
+
end
|
9124
|
+
|
9125
|
+
class GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig
|
9126
|
+
# @private
|
9127
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9128
|
+
property :service_agent_auth, as: 'serviceAgentAuth'
|
9129
|
+
end
|
9130
|
+
end
|
9131
|
+
|
8953
9132
|
class GoogleCloudDialogflowV2ToolCall
|
8954
9133
|
# @private
|
8955
9134
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8985,6 +9164,86 @@ module Google
|
|
8985
9164
|
end
|
8986
9165
|
end
|
8987
9166
|
|
9167
|
+
class GoogleCloudDialogflowV2ToolConnectorTool
|
9168
|
+
# @private
|
9169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9170
|
+
collection :actions, as: 'actions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolAction::Representation
|
9171
|
+
|
9172
|
+
property :name, as: 'name'
|
9173
|
+
end
|
9174
|
+
end
|
9175
|
+
|
9176
|
+
class GoogleCloudDialogflowV2ToolConnectorToolAction
|
9177
|
+
# @private
|
9178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9179
|
+
property :connection_action_id, as: 'connectionActionId'
|
9180
|
+
property :entity_operation, as: 'entityOperation', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation::Representation
|
9181
|
+
|
9182
|
+
collection :input_fields, as: 'inputFields'
|
9183
|
+
collection :output_fields, as: 'outputFields'
|
9184
|
+
end
|
9185
|
+
end
|
9186
|
+
|
9187
|
+
class GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation
|
9188
|
+
# @private
|
9189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9190
|
+
property :entity_id, as: 'entityId'
|
9191
|
+
property :operation, as: 'operation'
|
9192
|
+
end
|
9193
|
+
end
|
9194
|
+
|
9195
|
+
class GoogleCloudDialogflowV2ToolExtensionTool
|
9196
|
+
# @private
|
9197
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9198
|
+
property :name, as: 'name'
|
9199
|
+
end
|
9200
|
+
end
|
9201
|
+
|
9202
|
+
class GoogleCloudDialogflowV2ToolFunctionTool
|
9203
|
+
# @private
|
9204
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9205
|
+
hash :input_schema, as: 'inputSchema'
|
9206
|
+
property :method_type, as: 'methodType'
|
9207
|
+
hash :output_schema, as: 'outputSchema'
|
9208
|
+
end
|
9209
|
+
end
|
9210
|
+
|
9211
|
+
class GoogleCloudDialogflowV2ToolOpenApiTool
|
9212
|
+
# @private
|
9213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9214
|
+
property :authentication, as: 'authentication', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthentication, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthentication::Representation
|
9215
|
+
|
9216
|
+
property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolServiceDirectoryConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolServiceDirectoryConfig::Representation
|
9217
|
+
|
9218
|
+
property :text_schema, as: 'textSchema'
|
9219
|
+
property :tls_config, as: 'tlsConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfig::Representation
|
9220
|
+
|
9221
|
+
end
|
9222
|
+
end
|
9223
|
+
|
9224
|
+
class GoogleCloudDialogflowV2ToolServiceDirectoryConfig
|
9225
|
+
# @private
|
9226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9227
|
+
property :service, as: 'service'
|
9228
|
+
end
|
9229
|
+
end
|
9230
|
+
|
9231
|
+
class GoogleCloudDialogflowV2ToolTlsConfig
|
9232
|
+
# @private
|
9233
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9234
|
+
collection :ca_certs, as: 'caCerts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfigCaCert, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfigCaCert::Representation
|
9235
|
+
|
9236
|
+
end
|
9237
|
+
end
|
9238
|
+
|
9239
|
+
class GoogleCloudDialogflowV2ToolTlsConfigCaCert
|
9240
|
+
# @private
|
9241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9242
|
+
property :cert, :base64 => true, as: 'cert'
|
9243
|
+
property :display_name, as: 'displayName'
|
9244
|
+
end
|
9245
|
+
end
|
9246
|
+
|
8988
9247
|
class GoogleCloudDialogflowV2TrainAgentRequest
|
8989
9248
|
# @private
|
8990
9249
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -10357,6 +10357,186 @@ module Google
|
|
10357
10357
|
execute_or_queue_command(command, &block)
|
10358
10358
|
end
|
10359
10359
|
|
10360
|
+
# Creates a tool.
|
10361
|
+
# @param [String] parent
|
10362
|
+
# Required. The project/location to create tool for. Format: `projects//
|
10363
|
+
# locations/`
|
10364
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] google_cloud_dialogflow_v2_tool_object
|
10365
|
+
# @param [String] tool_id
|
10366
|
+
# Optional. The ID to use for the tool, which will become the final component of
|
10367
|
+
# the tool's resource name. The tool ID must be compliant with the regression
|
10368
|
+
# formula `a-zA-Z*` with the characters length in range of [3,64]. If the field
|
10369
|
+
# is not provide, an Id will be auto-generated. If the field is provided, the
|
10370
|
+
# caller is responsible for 1. the uniqueness of the ID, otherwise the request
|
10371
|
+
# will be rejected. 2. the consistency for whether to use custom ID or not under
|
10372
|
+
# a project to better ensure uniqueness.
|
10373
|
+
# @param [String] fields
|
10374
|
+
# Selector specifying which fields to include in a partial response.
|
10375
|
+
# @param [String] quota_user
|
10376
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10377
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10378
|
+
# @param [Google::Apis::RequestOptions] options
|
10379
|
+
# Request-specific options
|
10380
|
+
#
|
10381
|
+
# @yield [result, err] Result & error if block supplied
|
10382
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] parsed result object
|
10383
|
+
# @yieldparam err [StandardError] error object if request failed
|
10384
|
+
#
|
10385
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool]
|
10386
|
+
#
|
10387
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10388
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10389
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10390
|
+
def create_project_location_tool(parent, google_cloud_dialogflow_v2_tool_object = nil, tool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
10391
|
+
command = make_simple_command(:post, 'v2/{+parent}/tools', options)
|
10392
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
10393
|
+
command.request_object = google_cloud_dialogflow_v2_tool_object
|
10394
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
10395
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool
|
10396
|
+
command.params['parent'] = parent unless parent.nil?
|
10397
|
+
command.query['toolId'] = tool_id unless tool_id.nil?
|
10398
|
+
command.query['fields'] = fields unless fields.nil?
|
10399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10400
|
+
execute_or_queue_command(command, &block)
|
10401
|
+
end
|
10402
|
+
|
10403
|
+
# Deletes a tool.
|
10404
|
+
# @param [String] name
|
10405
|
+
# Required. The tool resource name to delete. Format: `projects//locations//
|
10406
|
+
# tools/`
|
10407
|
+
# @param [String] fields
|
10408
|
+
# Selector specifying which fields to include in a partial response.
|
10409
|
+
# @param [String] quota_user
|
10410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10412
|
+
# @param [Google::Apis::RequestOptions] options
|
10413
|
+
# Request-specific options
|
10414
|
+
#
|
10415
|
+
# @yield [result, err] Result & error if block supplied
|
10416
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
|
10417
|
+
# @yieldparam err [StandardError] error object if request failed
|
10418
|
+
#
|
10419
|
+
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
10420
|
+
#
|
10421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10424
|
+
def delete_project_location_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
10425
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
10426
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
10427
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
10428
|
+
command.params['name'] = name unless name.nil?
|
10429
|
+
command.query['fields'] = fields unless fields.nil?
|
10430
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10431
|
+
execute_or_queue_command(command, &block)
|
10432
|
+
end
|
10433
|
+
|
10434
|
+
# Retrieves a tool.
|
10435
|
+
# @param [String] name
|
10436
|
+
# Required. The tool resource name to retrieve. Format: `projects//locations//
|
10437
|
+
# tools/`
|
10438
|
+
# @param [String] fields
|
10439
|
+
# Selector specifying which fields to include in a partial response.
|
10440
|
+
# @param [String] quota_user
|
10441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10443
|
+
# @param [Google::Apis::RequestOptions] options
|
10444
|
+
# Request-specific options
|
10445
|
+
#
|
10446
|
+
# @yield [result, err] Result & error if block supplied
|
10447
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] parsed result object
|
10448
|
+
# @yieldparam err [StandardError] error object if request failed
|
10449
|
+
#
|
10450
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool]
|
10451
|
+
#
|
10452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10455
|
+
def get_project_location_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
10456
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
10457
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
10458
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool
|
10459
|
+
command.params['name'] = name unless name.nil?
|
10460
|
+
command.query['fields'] = fields unless fields.nil?
|
10461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10462
|
+
execute_or_queue_command(command, &block)
|
10463
|
+
end
|
10464
|
+
|
10465
|
+
# Lists tools.
|
10466
|
+
# @param [String] parent
|
10467
|
+
# Required. The project/location to list tools for. Format: `projects//locations/
|
10468
|
+
# `
|
10469
|
+
# @param [Fixnum] page_size
|
10470
|
+
# Optional. Maximum number of conversation models to return in a single page.
|
10471
|
+
# Default to 10.
|
10472
|
+
# @param [String] page_token
|
10473
|
+
# Optional. The next_page_token value returned from a previous list request.
|
10474
|
+
# @param [String] fields
|
10475
|
+
# Selector specifying which fields to include in a partial response.
|
10476
|
+
# @param [String] quota_user
|
10477
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10478
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10479
|
+
# @param [Google::Apis::RequestOptions] options
|
10480
|
+
# Request-specific options
|
10481
|
+
#
|
10482
|
+
# @yield [result, err] Result & error if block supplied
|
10483
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse] parsed result object
|
10484
|
+
# @yieldparam err [StandardError] error object if request failed
|
10485
|
+
#
|
10486
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse]
|
10487
|
+
#
|
10488
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10489
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10490
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10491
|
+
def list_project_location_tools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
10492
|
+
command = make_simple_command(:get, 'v2/{+parent}/tools', options)
|
10493
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse::Representation
|
10494
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse
|
10495
|
+
command.params['parent'] = parent unless parent.nil?
|
10496
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
10497
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
10498
|
+
command.query['fields'] = fields unless fields.nil?
|
10499
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10500
|
+
execute_or_queue_command(command, &block)
|
10501
|
+
end
|
10502
|
+
|
10503
|
+
# Updates a tool.
|
10504
|
+
# @param [String] name
|
10505
|
+
# Output only. Identifier. The resource name of the tool. Format: `projects//
|
10506
|
+
# locations//tools/`.
|
10507
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] google_cloud_dialogflow_v2_tool_object
|
10508
|
+
# @param [String] update_mask
|
10509
|
+
# Optional. The list of fields to update.
|
10510
|
+
# @param [String] fields
|
10511
|
+
# Selector specifying which fields to include in a partial response.
|
10512
|
+
# @param [String] quota_user
|
10513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10515
|
+
# @param [Google::Apis::RequestOptions] options
|
10516
|
+
# Request-specific options
|
10517
|
+
#
|
10518
|
+
# @yield [result, err] Result & error if block supplied
|
10519
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] parsed result object
|
10520
|
+
# @yieldparam err [StandardError] error object if request failed
|
10521
|
+
#
|
10522
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool]
|
10523
|
+
#
|
10524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10527
|
+
def patch_project_location_tool(name, google_cloud_dialogflow_v2_tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
10528
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
10529
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
10530
|
+
command.request_object = google_cloud_dialogflow_v2_tool_object
|
10531
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
10532
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool
|
10533
|
+
command.params['name'] = name unless name.nil?
|
10534
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
10535
|
+
command.query['fields'] = fields unless fields.nil?
|
10536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10537
|
+
execute_or_queue_command(command, &block)
|
10538
|
+
end
|
10539
|
+
|
10360
10540
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
10361
10541
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
10362
10542
|
# 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_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.114.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_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.114.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|