Class: Google::Apis::CesV1::CustomerEngagementSuiteService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::CesV1::CustomerEngagementSuiteService
- Defined in:
- lib/google/apis/ces_v1/service.rb
Overview
Gemini Enterprise for Customer Experience API
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://ces.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#batch_delete_conversations(parent, batch_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Batch deletes the specified conversations.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_app(parent, app_object = nil, app_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Creates a new app in the given project and location.
-
#create_project_location_app_agent(parent, agent_object = nil, agent_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Agent
Creates a new agent in the given app.
-
#create_project_location_app_deployment(parent, deployment_object = nil, deployment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Deployment
Creates a new deployment in the given app.
-
#create_project_location_app_example(parent, example_object = nil, example_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Example
Creates a new example in the given app.
-
#create_project_location_app_guardrail(parent, guardrail_object = nil, guardrail_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Guardrail
Creates a new guardrail in the given app.
-
#create_project_location_app_tool(parent, tool_object = nil, tool_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Tool
Creates a new tool in the given app.
-
#create_project_location_app_toolset(parent, toolset_object = nil, toolset_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Toolset
Creates a new toolset in the given app.
-
#create_project_location_app_version(parent, app_version_object = nil, app_version_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::AppVersion
Creates a new app version in the given app.
-
#delete_project_location_app(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Deletes the specified app.
-
#delete_project_location_app_agent(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified agent.
-
#delete_project_location_app_conversation(name, source: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified conversation.
-
#delete_project_location_app_deployment(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified deployment.
-
#delete_project_location_app_example(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified example.
-
#delete_project_location_app_guardrail(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified guardrail.
-
#delete_project_location_app_tool(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified tool.
-
#delete_project_location_app_toolset(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified toolset.
-
#delete_project_location_app_version(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified app version.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes a long-running operation.
-
#execute_app_tool(parent, execute_tool_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ExecuteToolResponse
Executes the given tool with the given arguments.
-
#export_app(name, export_app_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Exports the specified app.
-
#generate_session_chat_token(name, generate_chat_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::GenerateChatTokenResponse
Generates a session scoped token for chat widget to authenticate with Session APIs.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Location
Gets information about a location.
-
#get_project_location_app(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::App
Gets details of the specified app.
-
#get_project_location_app_agent(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Agent
Gets details of the specified agent.
-
#get_project_location_app_changelog(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Changelog
Gets the specified changelog.
-
#get_project_location_app_conversation(name, source: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Conversation
Gets details of the specified conversation.
-
#get_project_location_app_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Deployment
Gets details of the specified deployment.
-
#get_project_location_app_example(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Example
Gets details of the specified example.
-
#get_project_location_app_guardrail(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Guardrail
Gets details of the specified guardrail.
-
#get_project_location_app_tool(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Tool
Gets details of the specified tool.
-
#get_project_location_app_toolset(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Toolset
Gets details of the specified toolset.
-
#get_project_location_app_version(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::AppVersion
Gets details of the specified app version.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Gets the latest state of a long-running operation.
-
#import_app(parent, import_app_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Imports the specified app.
-
#initialize ⇒ CustomerEngagementSuiteService
constructor
A new instance of CustomerEngagementSuiteService.
-
#list_project_location_app_agents(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListAgentsResponse
Lists agents in the given app.
-
#list_project_location_app_changelogs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListChangelogsResponse
Lists the changelogs of the specified app.
-
#list_project_location_app_conversations(parent, filter: nil, page_size: nil, page_token: nil, source: nil, sources: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListConversationsResponse
Lists conversations in the given app.
-
#list_project_location_app_deployments(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListDeploymentsResponse
Lists deployments in the given app.
-
#list_project_location_app_examples(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListExamplesResponse
Lists examples in the given app.
-
#list_project_location_app_guardrails(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListGuardrailsResponse
Lists guardrails in the given app.
-
#list_project_location_app_tools(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListToolsResponse
Lists tools in the given app.
-
#list_project_location_app_toolsets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListToolsetsResponse
Lists toolsets in the given app.
-
#list_project_location_app_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListAppVersionsResponse
Lists all app versions in the given app.
-
#list_project_location_apps(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListAppsResponse
Lists apps in the given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_app(name, app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::App
Updates the specified app.
-
#patch_project_location_app_agent(name, agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Agent
Updates the specified agent.
-
#patch_project_location_app_deployment(name, deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Deployment
Updates the specified deployment.
-
#patch_project_location_app_example(name, example_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Example
Updates the specified example.
-
#patch_project_location_app_guardrail(name, guardrail_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Guardrail
Updates the specified guardrail.
-
#patch_project_location_app_tool(name, tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Tool
Updates the specified tool.
-
#patch_project_location_app_toolset(name, toolset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Toolset
Updates the specified toolset.
-
#restore_app_version(name, restore_app_version_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Restores the specified app version.
-
#retrieve_app_tool_schema(parent, retrieve_tool_schema_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RetrieveToolSchemaResponse
Retrieve the schema of the given tool.
-
#retrieve_toolset_tools(toolset, retrieve_tools_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RetrieveToolsResponse
Retrieve the list of tools included in the specified toolset.
-
#run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RunSessionResponse
Initiates a single-turn interaction with the CES agent within a session.
-
#stream_project_location_app_session_run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RunSessionResponse
Initiates a single-turn interaction with the CES agent.
Constructor Details
#initialize ⇒ CustomerEngagementSuiteService
Returns a new instance of CustomerEngagementSuiteService.
47 48 49 50 51 52 |
# File 'lib/google/apis/ces_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-ces_v1', client_version: Google::Apis::CesV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/ces_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/ces_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#batch_delete_conversations(parent, batch_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Batch deletes the specified conversations.
762 763 764 765 766 767 768 769 770 771 772 |
# File 'lib/google/apis/ces_v1/service.rb', line 762 def batch_delete_conversations(parent, batch_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/conversations:batchDelete', ) command.request_representation = Google::Apis::CesV1::BatchDeleteConversationsRequest::Representation command.request_object = batch_delete_conversations_request_object command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1
, corresponding to Code.CANCELLED.
2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 |
# File 'lib/google/apis/ces_v1/service.rb', line 2211 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::CesV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app(parent, app_object = nil, app_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Creates a new app in the given project and location.
165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/google/apis/ces_v1/service.rb', line 165 def create_project_location_app(parent, app_object = nil, app_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/apps', ) command.request_representation = Google::Apis::CesV1::App::Representation command.request_object = app_object command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['parent'] = parent unless parent.nil? command.query['appId'] = app_id unless app_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_agent(parent, agent_object = nil, agent_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Agent
Creates a new agent in the given app.
488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/google/apis/ces_v1/service.rb', line 488 def create_project_location_app_agent(parent, agent_object = nil, agent_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/agents', ) command.request_representation = Google::Apis::CesV1::Agent::Representation command.request_object = agent_object command.response_representation = Google::Apis::CesV1::Agent::Representation command.response_class = Google::Apis::CesV1::Agent command.params['parent'] = parent unless parent.nil? command.query['agentId'] = agent_id unless agent_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_deployment(parent, deployment_object = nil, deployment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Deployment
Creates a new deployment in the given app.
918 919 920 921 922 923 924 925 926 927 928 929 |
# File 'lib/google/apis/ces_v1/service.rb', line 918 def create_project_location_app_deployment(parent, deployment_object = nil, deployment_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/deployments', ) command.request_representation = Google::Apis::CesV1::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::CesV1::Deployment::Representation command.response_class = Google::Apis::CesV1::Deployment command.params['parent'] = parent unless parent.nil? command.query['deploymentId'] = deployment_id unless deployment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_example(parent, example_object = nil, example_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Example
Creates a new example in the given app.
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 |
# File 'lib/google/apis/ces_v1/service.rb', line 1106 def create_project_location_app_example(parent, example_object = nil, example_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/examples', ) command.request_representation = Google::Apis::CesV1::Example::Representation command.request_object = example_object command.response_representation = Google::Apis::CesV1::Example::Representation command.response_class = Google::Apis::CesV1::Example command.params['parent'] = parent unless parent.nil? command.query['exampleId'] = example_id unless example_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_guardrail(parent, guardrail_object = nil, guardrail_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Guardrail
Creates a new guardrail in the given app.
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 |
# File 'lib/google/apis/ces_v1/service.rb', line 1294 def create_project_location_app_guardrail(parent, guardrail_object = nil, guardrail_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/guardrails', ) command.request_representation = Google::Apis::CesV1::Guardrail::Representation command.request_object = guardrail_object command.response_representation = Google::Apis::CesV1::Guardrail::Representation command.response_class = Google::Apis::CesV1::Guardrail command.params['parent'] = parent unless parent.nil? command.query['guardrailId'] = guardrail_id unless guardrail_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_tool(parent, tool_object = nil, tool_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Tool
Creates a new tool in the given app.
1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 |
# File 'lib/google/apis/ces_v1/service.rb', line 1597 def create_project_location_app_tool(parent, tool_object = nil, tool_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/tools', ) command.request_representation = Google::Apis::CesV1::Tool::Representation command.request_object = tool_object command.response_representation = Google::Apis::CesV1::Tool::Representation command.response_class = Google::Apis::CesV1::Tool command.params['parent'] = parent unless parent.nil? command.query['toolId'] = tool_id unless tool_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_toolset(parent, toolset_object = nil, toolset_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Toolset
Creates a new toolset in the given app.
1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 |
# File 'lib/google/apis/ces_v1/service.rb', line 1795 def create_project_location_app_toolset(parent, toolset_object = nil, toolset_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/toolsets', ) command.request_representation = Google::Apis::CesV1::Toolset::Representation command.request_object = toolset_object command.response_representation = Google::Apis::CesV1::Toolset::Representation command.response_class = Google::Apis::CesV1::Toolset command.params['parent'] = parent unless parent.nil? command.query['toolsetId'] = toolset_id unless toolset_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_app_version(parent, app_version_object = nil, app_version_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::AppVersion
Creates a new app version in the given app.
2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 |
# File 'lib/google/apis/ces_v1/service.rb', line 2023 def create_project_location_app_version(parent, app_version_object = nil, app_version_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/versions', ) command.request_representation = Google::Apis::CesV1::AppVersion::Representation command.request_object = app_version_object command.response_representation = Google::Apis::CesV1::AppVersion::Representation command.response_class = Google::Apis::CesV1::AppVersion command.params['parent'] = parent unless parent.nil? command.query['appVersionId'] = app_version_id unless app_version_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Deletes the specified app.
203 204 205 206 207 208 209 210 211 212 |
# File 'lib/google/apis/ces_v1/service.rb', line 203 def delete_project_location_app(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_agent(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified agent.
531 532 533 534 535 536 537 538 539 540 541 |
# File 'lib/google/apis/ces_v1/service.rb', line 531 def delete_project_location_app_agent(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_conversation(name, source: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified conversation.
797 798 799 800 801 802 803 804 805 806 |
# File 'lib/google/apis/ces_v1/service.rb', line 797 def delete_project_location_app_conversation(name, source: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['source'] = source unless source.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_deployment(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified deployment.
956 957 958 959 960 961 962 963 964 965 |
# File 'lib/google/apis/ces_v1/service.rb', line 956 def delete_project_location_app_deployment(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_example(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified example.
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 |
# File 'lib/google/apis/ces_v1/service.rb', line 1144 def delete_project_location_app_example(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_guardrail(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified guardrail.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 |
# File 'lib/google/apis/ces_v1/service.rb', line 1338 def delete_project_location_app_guardrail(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_tool(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified tool.
1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/google/apis/ces_v1/service.rb', line 1640 def delete_project_location_app_tool(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_toolset(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified toolset.
1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 |
# File 'lib/google/apis/ces_v1/service.rb', line 1838 def delete_project_location_app_toolset(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_app_version(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes the specified app version.
2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 |
# File 'lib/google/apis/ces_v1/service.rb', line 2061 def delete_project_location_app_version(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
2246 2247 2248 2249 2250 2251 2252 2253 2254 |
# File 'lib/google/apis/ces_v1/service.rb', line 2246 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Empty::Representation command.response_class = Google::Apis::CesV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#execute_app_tool(parent, execute_tool_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ExecuteToolResponse
Executes the given tool with the given arguments.
236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/google/apis/ces_v1/service.rb', line 236 def execute_app_tool(parent, execute_tool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:executeTool', ) command.request_representation = Google::Apis::CesV1::ExecuteToolRequest::Representation command.request_object = execute_tool_request_object command.response_representation = Google::Apis::CesV1::ExecuteToolResponse::Representation command.response_class = Google::Apis::CesV1::ExecuteToolResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_app(name, export_app_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Exports the specified app.
269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/google/apis/ces_v1/service.rb', line 269 def export_app(name, export_app_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:exportApp', ) command.request_representation = Google::Apis::CesV1::ExportAppRequest::Representation command.request_object = export_app_request_object command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#generate_session_chat_token(name, generate_chat_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::GenerateChatTokenResponse
Generates a session scoped token for chat widget to authenticate with Session APIs.
1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'lib/google/apis/ces_v1/service.rb', line 1487 def generate_session_chat_token(name, generate_chat_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:generateChatToken', ) command.request_representation = Google::Apis::CesV1::GenerateChatTokenRequest::Representation command.request_object = generate_chat_token_request_object command.response_representation = Google::Apis::CesV1::GenerateChatTokenResponse::Representation command.response_class = Google::Apis::CesV1::GenerateChatTokenResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Location
Gets information about a location.
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/ces_v1/service.rb', line 74 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Location::Representation command.response_class = Google::Apis::CesV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::App
Gets details of the specified app.
301 302 303 304 305 306 307 308 309 |
# File 'lib/google/apis/ces_v1/service.rb', line 301 def get_project_location_app(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::App::Representation command.response_class = Google::Apis::CesV1::App command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_agent(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Agent
Gets details of the specified agent.
563 564 565 566 567 568 569 570 571 |
# File 'lib/google/apis/ces_v1/service.rb', line 563 def get_project_location_app_agent(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Agent::Representation command.response_class = Google::Apis::CesV1::Agent command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_changelog(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Changelog
Gets the specified changelog.
677 678 679 680 681 682 683 684 685 |
# File 'lib/google/apis/ces_v1/service.rb', line 677 def get_project_location_app_changelog(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Changelog::Representation command.response_class = Google::Apis::CesV1::Changelog command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_conversation(name, source: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Conversation
Gets details of the specified conversation.
831 832 833 834 835 836 837 838 839 840 |
# File 'lib/google/apis/ces_v1/service.rb', line 831 def get_project_location_app_conversation(name, source: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Conversation::Representation command.response_class = Google::Apis::CesV1::Conversation command.params['name'] = name unless name.nil? command.query['source'] = source unless source.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Deployment
Gets details of the specified deployment.
988 989 990 991 992 993 994 995 996 |
# File 'lib/google/apis/ces_v1/service.rb', line 988 def get_project_location_app_deployment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Deployment::Representation command.response_class = Google::Apis::CesV1::Deployment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_example(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Example
Gets details of the specified example.
1175 1176 1177 1178 1179 1180 1181 1182 1183 |
# File 'lib/google/apis/ces_v1/service.rb', line 1175 def get_project_location_app_example(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Example::Representation command.response_class = Google::Apis::CesV1::Example command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_guardrail(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Guardrail
Gets details of the specified guardrail.
1370 1371 1372 1373 1374 1375 1376 1377 1378 |
# File 'lib/google/apis/ces_v1/service.rb', line 1370 def get_project_location_app_guardrail(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Guardrail::Representation command.response_class = Google::Apis::CesV1::Guardrail command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_tool(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Tool
Gets details of the specified tool.
1672 1673 1674 1675 1676 1677 1678 1679 1680 |
# File 'lib/google/apis/ces_v1/service.rb', line 1672 def get_project_location_app_tool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Tool::Representation command.response_class = Google::Apis::CesV1::Tool command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_toolset(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Toolset
Gets details of the specified toolset.
1870 1871 1872 1873 1874 1875 1876 1877 1878 |
# File 'lib/google/apis/ces_v1/service.rb', line 1870 def get_project_location_app_toolset(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Toolset::Representation command.response_class = Google::Apis::CesV1::Toolset command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_app_version(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::AppVersion
Gets details of the specified app version.
2092 2093 2094 2095 2096 2097 2098 2099 2100 |
# File 'lib/google/apis/ces_v1/service.rb', line 2092 def get_project_location_app_version(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::AppVersion::Representation command.response_class = Google::Apis::CesV1::AppVersion command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
2277 2278 2279 2280 2281 2282 2283 2284 2285 |
# File 'lib/google/apis/ces_v1/service.rb', line 2277 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_app(parent, import_app_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Imports the specified app.
332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/google/apis/ces_v1/service.rb', line 332 def import_app(parent, import_app_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/apps:importApp', ) command.request_representation = Google::Apis::CesV1::ImportAppRequest::Representation command.request_object = import_app_request_object command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_agents(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListAgentsResponse
Lists agents in the given app.
605 606 607 608 609 610 611 612 613 614 615 616 617 |
# File 'lib/google/apis/ces_v1/service.rb', line 605 def list_project_location_app_agents(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/agents', ) command.response_representation = Google::Apis::CesV1::ListAgentsResponse::Representation command.response_class = Google::Apis::CesV1::ListAgentsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_changelogs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListChangelogsResponse
Lists the changelogs of the specified app.
726 727 728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/google/apis/ces_v1/service.rb', line 726 def list_project_location_app_changelogs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/changelogs', ) command.response_representation = Google::Apis::CesV1::ListChangelogsResponse::Representation command.response_class = Google::Apis::CesV1::ListChangelogsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_conversations(parent, filter: nil, page_size: nil, page_token: nil, source: nil, sources: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListConversationsResponse
Lists conversations in the given app.
877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/google/apis/ces_v1/service.rb', line 877 def list_project_location_app_conversations(parent, filter: nil, page_size: nil, page_token: nil, source: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/conversations', ) command.response_representation = Google::Apis::CesV1::ListConversationsResponse::Representation command.response_class = Google::Apis::CesV1::ListConversationsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['source'] = source unless source.nil? command.query['sources'] = sources unless sources.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_deployments(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListDeploymentsResponse
Lists deployments in the given app.
1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'lib/google/apis/ces_v1/service.rb', line 1031 def list_project_location_app_deployments(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/deployments', ) command.response_representation = Google::Apis::CesV1::ListDeploymentsResponse::Representation command.response_class = Google::Apis::CesV1::ListDeploymentsResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_examples(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListExamplesResponse
Lists examples in the given app.
1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 |
# File 'lib/google/apis/ces_v1/service.rb', line 1217 def list_project_location_app_examples(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/examples', ) command.response_representation = Google::Apis::CesV1::ListExamplesResponse::Representation command.response_class = Google::Apis::CesV1::ListExamplesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_guardrails(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListGuardrailsResponse
Lists guardrails in the given app.
1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 |
# File 'lib/google/apis/ces_v1/service.rb', line 1412 def list_project_location_app_guardrails(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/guardrails', ) command.response_representation = Google::Apis::CesV1::ListGuardrailsResponse::Representation command.response_class = Google::Apis::CesV1::ListGuardrailsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_tools(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListToolsResponse
Lists tools in the given app.
1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 |
# File 'lib/google/apis/ces_v1/service.rb', line 1715 def list_project_location_app_tools(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/tools', ) command.response_representation = Google::Apis::CesV1::ListToolsResponse::Representation command.response_class = Google::Apis::CesV1::ListToolsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_toolsets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListToolsetsResponse
Lists toolsets in the given app.
1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 |
# File 'lib/google/apis/ces_v1/service.rb', line 1912 def list_project_location_app_toolsets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/toolsets', ) command.response_representation = Google::Apis::CesV1::ListToolsetsResponse::Representation command.response_class = Google::Apis::CesV1::ListToolsetsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_app_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListAppVersionsResponse
Lists all app versions in the given app.
2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 |
# File 'lib/google/apis/ces_v1/service.rb', line 2134 def list_project_location_app_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/versions', ) command.response_representation = Google::Apis::CesV1::ListAppVersionsResponse::Representation command.response_class = Google::Apis::CesV1::ListAppVersionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_apps(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListAppsResponse
Lists apps in the given project and location.
376 377 378 379 380 381 382 383 384 385 386 387 388 |
# File 'lib/google/apis/ces_v1/service.rb', line 376 def list_project_location_apps(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/apps', ) command.response_representation = Google::Apis::CesV1::ListAppsResponse::Representation command.response_class = Google::Apis::CesV1::ListAppsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 |
# File 'lib/google/apis/ces_v1/service.rb', line 2322 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::CesV1::ListOperationsResponse::Representation command.response_class = Google::Apis::CesV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::ListLocationsResponse
Lists information about the supported locations for this service. This method
lists locations based on the resource scope provided in the
ListLocationsRequest.name field: * Global locations: If name is empty,
the method lists the public locations available to all projects. * Project-
specific locations: If name follows the format projects/project`, the
method lists locations visible to that specific project. This includes public,
private, or other project-specific locations enabled for the project. For gRPC
and client library implementations, the resource name is passed as thename`
field. For direct service calls, the resource name is incorporated into the
request path based on the specific service implementation and version.
126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/google/apis/ces_v1/service.rb', line 126 def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::CesV1::ListLocationsResponse::Representation command.response_class = Google::Apis::CesV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app(name, app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::App
Updates the specified app.
415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/google/apis/ces_v1/service.rb', line 415 def patch_project_location_app(name, app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::App::Representation command.request_object = app_object command.response_representation = Google::Apis::CesV1::App::Representation command.response_class = Google::Apis::CesV1::App command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app_agent(name, agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Agent
Updates the specified agent.
644 645 646 647 648 649 650 651 652 653 654 655 |
# File 'lib/google/apis/ces_v1/service.rb', line 644 def patch_project_location_app_agent(name, agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::Agent::Representation command.request_object = agent_object command.response_representation = Google::Apis::CesV1::Agent::Representation command.response_class = Google::Apis::CesV1::Agent command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app_deployment(name, deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Deployment
Updates the specified deployment.
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 |
# File 'lib/google/apis/ces_v1/service.rb', line 1068 def patch_project_location_app_deployment(name, deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::CesV1::Deployment::Representation command.response_class = Google::Apis::CesV1::Deployment command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app_example(name, example_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Example
Updates the specified example.
1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 |
# File 'lib/google/apis/ces_v1/service.rb', line 1256 def patch_project_location_app_example(name, example_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::Example::Representation command.request_object = example_object command.response_representation = Google::Apis::CesV1::Example::Representation command.response_class = Google::Apis::CesV1::Example command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app_guardrail(name, guardrail_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Guardrail
Updates the specified guardrail.
1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 |
# File 'lib/google/apis/ces_v1/service.rb', line 1451 def patch_project_location_app_guardrail(name, guardrail_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::Guardrail::Representation command.request_object = guardrail_object command.response_representation = Google::Apis::CesV1::Guardrail::Representation command.response_class = Google::Apis::CesV1::Guardrail command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app_tool(name, tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Tool
Updates the specified tool.
1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 |
# File 'lib/google/apis/ces_v1/service.rb', line 1757 def patch_project_location_app_tool(name, tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::Tool::Representation command.request_object = tool_object command.response_representation = Google::Apis::CesV1::Tool::Representation command.response_class = Google::Apis::CesV1::Tool command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_app_toolset(name, toolset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Toolset
Updates the specified toolset.
1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 |
# File 'lib/google/apis/ces_v1/service.rb', line 1951 def patch_project_location_app_toolset(name, toolset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::CesV1::Toolset::Representation command.request_object = toolset_object command.response_representation = Google::Apis::CesV1::Toolset::Representation command.response_class = Google::Apis::CesV1::Toolset command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_app_version(name, restore_app_version_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::Operation
Restores the specified app version. This will create a new app version from the current draft app and overwrite the current draft with the specified app version.
2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 |
# File 'lib/google/apis/ces_v1/service.rb', line 2171 def restore_app_version(name, restore_app_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:restore', ) command.request_representation = Google::Apis::CesV1::RestoreAppVersionRequest::Representation command.request_object = restore_app_version_request_object command.response_representation = Google::Apis::CesV1::Operation::Representation command.response_class = Google::Apis::CesV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#retrieve_app_tool_schema(parent, retrieve_tool_schema_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RetrieveToolSchemaResponse
Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.
451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/google/apis/ces_v1/service.rb', line 451 def retrieve_app_tool_schema(parent, retrieve_tool_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:retrieveToolSchema', ) command.request_representation = Google::Apis::CesV1::RetrieveToolSchemaRequest::Representation command.request_object = retrieve_tool_schema_request_object command.response_representation = Google::Apis::CesV1::RetrieveToolSchemaResponse::Representation command.response_class = Google::Apis::CesV1::RetrieveToolSchemaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#retrieve_toolset_tools(toolset, retrieve_tools_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RetrieveToolsResponse
Retrieve the list of tools included in the specified toolset.
1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 |
# File 'lib/google/apis/ces_v1/service.rb', line 1986 def retrieve_toolset_tools(toolset, retrieve_tools_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+toolset}:retrieveTools', ) command.request_representation = Google::Apis::CesV1::RetrieveToolsRequest::Representation command.request_object = retrieve_tools_request_object command.response_representation = Google::Apis::CesV1::RetrieveToolsResponse::Representation command.response_class = Google::Apis::CesV1::RetrieveToolsResponse command.params['toolset'] = toolset unless toolset.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RunSessionResponse
Initiates a single-turn interaction with the CES agent within a session.
1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 |
# File 'lib/google/apis/ces_v1/service.rb', line 1521 def run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+session}:runSession', ) command.request_representation = Google::Apis::CesV1::RunSessionRequest::Representation command.request_object = run_session_request_object command.response_representation = Google::Apis::CesV1::RunSessionResponse::Representation command.response_class = Google::Apis::CesV1::RunSessionResponse command.params['session'] = session unless session.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#stream_project_location_app_session_run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CesV1::RunSessionResponse
Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set enable_text_streaming to true.
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 |
# File 'lib/google/apis/ces_v1/service.rb', line 1560 def stream_project_location_app_session_run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+session}:streamRunSession', ) command.request_representation = Google::Apis::CesV1::RunSessionRequest::Representation command.request_object = run_session_request_object command.response_representation = Google::Apis::CesV1::RunSessionResponse::Representation command.response_class = Google::Apis::CesV1::RunSessionResponse command.params['session'] = session unless session.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |