google-cloud-ces-v1beta 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/agent_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/agent_service/client.rb +105 -1
- data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +54 -11
- data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +98 -1
- data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +62 -0
- data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +2 -0
- data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/app_pb.rb +6 -1
- data/lib/google/cloud/ces/v1beta/app_version_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/assistant_service/client.rb +1023 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/paths.rb +73 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/rest/client.rb +946 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/rest/service_stub.rb +450 -0
- data/lib/google/cloud/ces/v1beta/assistant_service/rest.rb +55 -0
- data/lib/google/cloud/ces/v1beta/assistant_service.rb +57 -0
- data/lib/google/cloud/ces/v1beta/assistant_service_pb.rb +49 -0
- data/lib/google/cloud/ces/v1beta/assistant_service_services_pb.rb +57 -0
- data/lib/google/cloud/ces/v1beta/auth_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/changelog_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/client_function_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/common_pb.rb +4 -1
- data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/conversation_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/data_store_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +2 -1
- data/lib/google/cloud/ces/v1beta/deployment_pb.rb +3 -1
- data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +2 -1
- data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +2 -2
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +2 -2
- data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/example_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/fakes_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/file_context_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +4 -1
- data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/mocks_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/python_function_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/rest.rb +1 -0
- data/lib/google/cloud/ces/v1beta/schema_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/session_service/client.rb +333 -0
- data/lib/google/cloud/ces/v1beta/session_service/paths.rb +40 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +314 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +180 -0
- data/lib/google/cloud/ces/v1beta/session_service_pb.rb +33 -1
- data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +14 -0
- data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/toolset_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/version.rb +1 -1
- data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +1 -1
- data/lib/google/cloud/ces/v1beta.rb +1 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/ces/v1beta/agent.rb +18 -2
- data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +91 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +40 -0
- data/proto_docs/google/cloud/ces/v1beta/app.rb +113 -4
- data/proto_docs/google/cloud/ces/v1beta/app_version.rb +3 -0
- data/proto_docs/google/cloud/ces/v1beta/assistant_service.rb +452 -0
- data/proto_docs/google/cloud/ces/v1beta/common.rb +44 -0
- data/proto_docs/google/cloud/ces/v1beta/conversation.rb +4 -0
- data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +16 -0
- data/proto_docs/google/cloud/ces/v1beta/deployment.rb +43 -2
- data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +21 -5
- data/proto_docs/google/cloud/ces/v1beta/example.rb +23 -0
- data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +88 -6
- data/proto_docs/google/cloud/ces/v1beta/session_service.rb +749 -11
- data/proto_docs/google/cloud/ces/v1beta/tool.rb +4 -0
- data/proto_docs/google/protobuf/timestamp.rb +7 -6
- metadata +14 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ba144526272f14d5f9aae111c93fda4055d82faae5ec728c31eb6d74720e54e
|
|
4
|
+
data.tar.gz: 61388aaded2f3e9f5b36d4b39721100b362795c99bc308ecf6e04a573fa45128
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f77317e3feff5c93ad5d5d31aff09419601fda74f27014831d5800ddd7afdfce8e794df60c591d97943f6703b2fc65036a024cfb697a3bde943afc17e9c74759
|
|
7
|
+
data.tar.gz: dbb582185a9fbef50d358713a6ba8ce79119b37d4eb3cc915805c6ce9288c1fa87a9234abb8edc53e67483559a2dfc077613f905c6f27ceed82c1b9990261daa
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/cloud/ces/v1beta/auth_pb'
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
descriptor_data = "\n(google/cloud/ces/v1beta/agent_card.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\
|
|
11
|
+
descriptor_data = "\n(google/cloud/ces/v1beta/agent_card.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\"google/cloud/ces/v1beta/auth.proto\"\xd9\x01\n\tAgentCard\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x19\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12K\n\x14supported_interfaces\x18\x03 \x03(\x0b\x32\'.google.cloud.ces.v1beta.AgentInterfaceB\x04\xe2\x41\x01\x02\x12\x15\n\x07version\x18\x05 \x01(\tB\x04\xe2\x41\x01\x02\x12\x39\n\x06skills\x18\x06 \x03(\x0b\x32#.google.cloud.ces.v1beta.AgentSkillB\x04\xe2\x41\x01\x02\"s\n\x0e\x41gentInterface\x12\x11\n\x03url\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1e\n\x10protocol_binding\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x0e\n\x06tenant\x18\x03 \x01(\t\x12\x1e\n\x10protocol_version\x18\x04 \x01(\tB\x04\xe2\x41\x01\x02\"\x9e\x01\n\nAgentSkill\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04tags\x18\x04 \x03(\tB\x04\xe2\x41\x01\x02\x12\x10\n\x08\x65xamples\x18\x05 \x03(\t\x12\x13\n\x0binput_modes\x18\x06 \x03(\t\x12\x14\n\x0coutput_modes\x18\x07 \x03(\t\"\xd9\x04\n\x0fRemoteA2aConfig\x12>\n\nagent_card\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1beta.AgentCardB\x04\xe2\x41\x01\x01H\x00\x12\x1e\n\x0e\x61gent_registry\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x00\x12L\n\x12\x61pi_authentication\x18\x03 \x01(\x0b\x32*.google.cloud.ces.v1beta.ApiAuthenticationB\x04\xe2\x41\x01\x01\x12h\n\x16input_variable_mapping\x18\x04 \x03(\x0b\x32\x42.google.cloud.ces.v1beta.RemoteA2aConfig.InputVariableMappingEntryB\x04\xe2\x41\x01\x01\x12j\n\x17output_variable_mapping\x18\x05 \x03(\x0b\x32\x43.google.cloud.ces.v1beta.RemoteA2aConfig.OutputVariableMappingEntryB\x04\xe2\x41\x01\x01\x12\x1f\n\x11streaming_enabled\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x18\n\ncontext_id\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01\x1a;\n\x19InputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aOutputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\nagent_spec\"\xbb\x04\n\x0fRemoteAgentTool\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x19\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12<\n\nagent_card\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1beta.AgentCardB\x04\xe2\x41\x01\x02\x12L\n\x12\x61pi_authentication\x18\x04 \x01(\x0b\x32*.google.cloud.ces.v1beta.ApiAuthenticationB\x04\xe2\x41\x01\x01\x12\x1c\n\x0estateful_agent\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12h\n\x16input_variable_mapping\x18\x06 \x03(\x0b\x32\x42.google.cloud.ces.v1beta.RemoteAgentTool.InputVariableMappingEntryB\x04\xe2\x41\x01\x01\x12j\n\x17output_variable_mapping\x18\x07 \x03(\x0b\x32\x43.google.cloud.ces.v1beta.RemoteAgentTool.OutputVariableMappingEntryB\x04\xe2\x41\x01\x01\x1a;\n\x19InputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aOutputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42^\n\x1b\x63om.google.cloud.ces.v1betaB\x0e\x41gentCardProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3"
|
|
11
12
|
|
|
12
13
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
14
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -19,6 +20,7 @@ module Google
|
|
|
19
20
|
AgentCard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AgentCard").msgclass
|
|
20
21
|
AgentInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AgentInterface").msgclass
|
|
21
22
|
AgentSkill = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AgentSkill").msgclass
|
|
23
|
+
RemoteA2aConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.RemoteA2aConfig").msgclass
|
|
22
24
|
RemoteAgentTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.RemoteAgentTool").msgclass
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -6,12 +6,13 @@ require 'google/protobuf'
|
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/cloud/ces/v1beta/agent_card_pb'
|
|
9
10
|
require 'google/cloud/ces/v1beta/agent_transfers_pb'
|
|
10
11
|
require 'google/cloud/ces/v1beta/common_pb'
|
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
descriptor_data = "\n#google/cloud/ces/v1beta/agent.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/ces/v1beta/agent_transfers.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
15
|
+
descriptor_data = "\n#google/cloud/ces/v1beta/agent.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/ces/v1beta/agent_card.proto\x1a-google/cloud/ces/v1beta/agent_transfers.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x11\n\x05\x41gent\x12\x42\n\tllm_agent\x18\x1a \x01(\x0b\x32\'.google.cloud.ces.v1beta.Agent.LlmAgentB\x04\xe2\x41\x01\x01H\x00\x12]\n\x17remote_dialogflow_agent\x18\x1b \x01(\x0b\x32\x34.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentB\x04\xe2\x41\x01\x01H\x00\x12O\n\x10remote_a2a_agent\x18) \x01(\x0b\x32-.google.cloud.ces.v1beta.Agent.RemoteA2aAgentB\x04\xe2\x41\x01\x01H\x00\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08\x12\x1a\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x44\n\x0emodel_settings\x18\x04 \x01(\x0b\x32&.google.cloud.ces.v1beta.ModelSettingsB\x04\xe2\x41\x01\x01\x12\x19\n\x0binstruction\x18\x06 \x01(\tB\x04\xe2\x41\x01\x01\x12/\n\x05tools\x18\x07 \x03(\tB \xe2\x41\x01\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x37\n\x0c\x63hild_agents\x18\x08 \x03(\tB!\xe2\x41\x01\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12G\n\x16\x62\x65\x66ore_agent_callbacks\x18\x12 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x04\xe2\x41\x01\x01\x12\x46\n\x15\x61\x66ter_agent_callbacks\x18\x13 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x04\xe2\x41\x01\x01\x12G\n\x16\x62\x65\x66ore_model_callbacks\x18\x14 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x04\xe2\x41\x01\x01\x12\x46\n\x15\x61\x66ter_model_callbacks\x18\x15 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x04\xe2\x41\x01\x01\x12\x46\n\x15\x62\x65\x66ore_tool_callbacks\x18\x16 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x04\xe2\x41\x01\x01\x12\x45\n\x14\x61\x66ter_tool_callbacks\x18\x17 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x04\xe2\x41\x01\x01\x12\x35\n\x0b\x63reate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x39\n\nguardrails\x18\x11 \x03(\tB%\xe2\x41\x01\x01\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12\x0c\n\x04\x65tag\x18\x18 \x01(\t\x12\x43\n\x08toolsets\x18\x1c \x03(\x0b\x32+.google.cloud.ces.v1beta.Agent.AgentToolsetB\x04\xe2\x41\x01\x01\x12\x1f\n\x11generated_summary\x18\x1d \x01(\tB\x04\xe2\x41\x01\x03\x12\x43\n\x0etransfer_rules\x18\x1e \x03(\x0b\x32%.google.cloud.ces.v1beta.TransferRuleB\x04\xe2\x41\x01\x01\x12\x1f\n\x11validation_errors\x18 \x03(\tB\x04\xe2\x41\x01\x03\x1a\n\n\x08LlmAgent\x1a\xd4\x04\n\x15RemoteDialogflowAgent\x12\x41\n\x05\x61gent\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\n)dialogflow.googleapis.com/DialogflowAgent\x12\x15\n\x07\x66low_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1c\n\x0e\x65nvironment_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12t\n\x16input_variable_mapping\x18\x04 \x03(\x0b\x32N.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\x04\xe2\x41\x01\x01\x12v\n\x17output_variable_mapping\x18\x05 \x03(\x0b\x32O.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\x04\xe2\x41\x01\x01\x12\x34\n&respect_response_interruption_settings\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12$\n\x16language_code_variable\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01\x1a;\n\x19InputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aOutputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aT\n\x0eRemoteA2aAgent\x12\x42\n\na2a_config\x18\x01 \x01(\x0b\x32(.google.cloud.ces.v1beta.RemoteA2aConfigB\x04\xe2\x41\x01\x02\x1a\\\n\x0c\x41gentToolset\x12\x34\n\x07toolset\x18\x01 \x01(\tB#\xe2\x41\x01\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x16\n\x08tool_ids\x18\x04 \x03(\tB\x04\xe2\x41\x01\x01:o\xea\x41l\n\x18\x63\x65s.googleapis.com/Agent\x12\x41projects/{project}/locations/{location}/apps/{app}/agents/{agent}*\x06\x61gents2\x05\x61gentB\x0c\n\nagent_typeB\xc0\x01\n\x1b\x63om.google.cloud.ces.v1betaB\nAgentProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\xea\x41\x63\n)dialogflow.googleapis.com/DialogflowAgent\x12\x36projects/{project}/locations/{location}/agents/{agent}b\x06proto3"
|
|
15
16
|
|
|
16
17
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
18
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -23,6 +24,7 @@ module Google
|
|
|
23
24
|
Agent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.Agent").msgclass
|
|
24
25
|
Agent::LlmAgent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.Agent.LlmAgent").msgclass
|
|
25
26
|
Agent::RemoteDialogflowAgent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent").msgclass
|
|
27
|
+
Agent::RemoteA2aAgent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.Agent.RemoteA2aAgent").msgclass
|
|
26
28
|
Agent::AgentToolset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.Agent.AgentToolset").msgclass
|
|
27
29
|
end
|
|
28
30
|
end
|
|
@@ -815,7 +815,7 @@ module Google
|
|
|
815
815
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
816
816
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
817
817
|
#
|
|
818
|
-
# @overload import_app(gcs_uri: nil, app_content: nil, parent: nil, display_name: nil, app_id: nil, import_options: nil, ignore_app_lock: nil)
|
|
818
|
+
# @overload import_app(gcs_uri: nil, app_content: nil, json_patch_content: nil, json_patch_gcs_uri: nil, parent: nil, display_name: nil, app_id: nil, import_options: nil, ignore_app_lock: nil)
|
|
819
819
|
# Pass arguments to `import_app` via keyword arguments. Note that at
|
|
820
820
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
821
821
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -831,6 +831,15 @@ module Google
|
|
|
831
831
|
# structure.
|
|
832
832
|
#
|
|
833
833
|
# Note: The following parameters are mutually exclusive: `app_content`, `gcs_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
834
|
+
# @param json_patch_content [::String]
|
|
835
|
+
# Optional. Patch content as a JSON string.
|
|
836
|
+
#
|
|
837
|
+
# Note: The following parameters are mutually exclusive: `json_patch_content`, `json_patch_gcs_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
838
|
+
# @param json_patch_gcs_uri [::String]
|
|
839
|
+
# Optional. A Cloud Storage URI pointing to a JSON file containing the
|
|
840
|
+
# patches.
|
|
841
|
+
#
|
|
842
|
+
# Note: The following parameters are mutually exclusive: `json_patch_gcs_uri`, `json_patch_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
834
843
|
# @param parent [::String]
|
|
835
844
|
# Required. The parent resource name with the location of the app to import.
|
|
836
845
|
# @param display_name [::String]
|
|
@@ -4565,6 +4574,94 @@ module Google
|
|
|
4565
4574
|
raise ::Google::Cloud::Error.from_error(e)
|
|
4566
4575
|
end
|
|
4567
4576
|
|
|
4577
|
+
##
|
|
4578
|
+
# Updates the specified app version.
|
|
4579
|
+
#
|
|
4580
|
+
# @overload update_app_version(request, options = nil)
|
|
4581
|
+
# Pass arguments to `update_app_version` via a request object, either of type
|
|
4582
|
+
# {::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest} or an equivalent Hash.
|
|
4583
|
+
#
|
|
4584
|
+
# @param request [::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest, ::Hash]
|
|
4585
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4586
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4587
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4588
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
4589
|
+
#
|
|
4590
|
+
# @overload update_app_version(app_version: nil, update_mask: nil)
|
|
4591
|
+
# Pass arguments to `update_app_version` via keyword arguments. Note that at
|
|
4592
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4593
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4594
|
+
#
|
|
4595
|
+
# @param app_version [::Google::Cloud::Ces::V1beta::AppVersion, ::Hash]
|
|
4596
|
+
# Required. The app version to update.
|
|
4597
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
4598
|
+
# Optional. The list of fields to update.
|
|
4599
|
+
# If empty, fields `display_name` and `description` will be updated.
|
|
4600
|
+
#
|
|
4601
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
4602
|
+
# @yieldparam response [::Google::Cloud::Ces::V1beta::AppVersion]
|
|
4603
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
4604
|
+
#
|
|
4605
|
+
# @return [::Google::Cloud::Ces::V1beta::AppVersion]
|
|
4606
|
+
#
|
|
4607
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
4608
|
+
#
|
|
4609
|
+
# @example Basic example
|
|
4610
|
+
# require "google/cloud/ces/v1beta"
|
|
4611
|
+
#
|
|
4612
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4613
|
+
# client = Google::Cloud::Ces::V1beta::AgentService::Client.new
|
|
4614
|
+
#
|
|
4615
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4616
|
+
# request = Google::Cloud::Ces::V1beta::UpdateAppVersionRequest.new
|
|
4617
|
+
#
|
|
4618
|
+
# # Call the update_app_version method.
|
|
4619
|
+
# result = client.update_app_version request
|
|
4620
|
+
#
|
|
4621
|
+
# # The returned object is of type Google::Cloud::Ces::V1beta::AppVersion.
|
|
4622
|
+
# p result
|
|
4623
|
+
#
|
|
4624
|
+
def update_app_version request, options = nil
|
|
4625
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4626
|
+
|
|
4627
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest
|
|
4628
|
+
|
|
4629
|
+
# Converts hash and nil to an options object
|
|
4630
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4631
|
+
|
|
4632
|
+
# Customize the options with defaults
|
|
4633
|
+
metadata = @config.rpcs.update_app_version.metadata.to_h
|
|
4634
|
+
|
|
4635
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4636
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4637
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4638
|
+
gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
|
|
4639
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4640
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4641
|
+
|
|
4642
|
+
header_params = {}
|
|
4643
|
+
if request.app_version&.name
|
|
4644
|
+
header_params["app_version.name"] = request.app_version.name
|
|
4645
|
+
end
|
|
4646
|
+
|
|
4647
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
4648
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
4649
|
+
|
|
4650
|
+
options.apply_defaults timeout: @config.rpcs.update_app_version.timeout,
|
|
4651
|
+
metadata: metadata,
|
|
4652
|
+
retry_policy: @config.rpcs.update_app_version.retry_policy
|
|
4653
|
+
|
|
4654
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4655
|
+
metadata: @config.metadata,
|
|
4656
|
+
retry_policy: @config.retry_policy
|
|
4657
|
+
|
|
4658
|
+
@agent_service_stub.call_rpc :update_app_version, request, options: options do |response, operation|
|
|
4659
|
+
yield response, operation if block_given?
|
|
4660
|
+
end
|
|
4661
|
+
rescue ::GRPC::BadStatus => e
|
|
4662
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4663
|
+
end
|
|
4664
|
+
|
|
4568
4665
|
##
|
|
4569
4666
|
# Deletes the specified app version.
|
|
4570
4667
|
#
|
|
@@ -5499,6 +5596,11 @@ module Google
|
|
|
5499
5596
|
#
|
|
5500
5597
|
attr_reader :create_app_version
|
|
5501
5598
|
##
|
|
5599
|
+
# RPC-specific configuration for `update_app_version`
|
|
5600
|
+
# @return [::Gapic::Config::Method]
|
|
5601
|
+
#
|
|
5602
|
+
attr_reader :update_app_version
|
|
5603
|
+
##
|
|
5502
5604
|
# RPC-specific configuration for `delete_app_version`
|
|
5503
5605
|
# @return [::Gapic::Config::Method]
|
|
5504
5606
|
#
|
|
@@ -5618,6 +5720,8 @@ module Google
|
|
|
5618
5720
|
@get_app_version = ::Gapic::Config::Method.new get_app_version_config
|
|
5619
5721
|
create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version
|
|
5620
5722
|
@create_app_version = ::Gapic::Config::Method.new create_app_version_config
|
|
5723
|
+
update_app_version_config = parent_rpcs.update_app_version if parent_rpcs.respond_to? :update_app_version
|
|
5724
|
+
@update_app_version = ::Gapic::Config::Method.new update_app_version_config
|
|
5621
5725
|
delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version
|
|
5622
5726
|
@delete_app_version = ::Gapic::Config::Method.new delete_app_version_config
|
|
5623
5727
|
restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version
|
|
@@ -127,6 +127,25 @@ module Google
|
|
|
127
127
|
"projects/#{project}/locations/#{location}/apps/#{app}/conversations/#{conversation}"
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
+
##
|
|
131
|
+
# Create a fully-qualified Dashboard resource string.
|
|
132
|
+
#
|
|
133
|
+
# The resource will be in the following format:
|
|
134
|
+
#
|
|
135
|
+
# `projects/{project}/locations/{location}/dashboards/{dashboard}`
|
|
136
|
+
#
|
|
137
|
+
# @param project [String]
|
|
138
|
+
# @param location [String]
|
|
139
|
+
# @param dashboard [String]
|
|
140
|
+
#
|
|
141
|
+
# @return [::String]
|
|
142
|
+
def dashboard_path project:, location:, dashboard:
|
|
143
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
144
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
145
|
+
|
|
146
|
+
"projects/#{project}/locations/#{location}/dashboards/#{dashboard}"
|
|
147
|
+
end
|
|
148
|
+
|
|
130
149
|
##
|
|
131
150
|
# Create a fully-qualified Dataset resource string.
|
|
132
151
|
#
|
|
@@ -412,22 +431,46 @@ module Google
|
|
|
412
431
|
##
|
|
413
432
|
# Create a fully-qualified Service resource string.
|
|
414
433
|
#
|
|
415
|
-
#
|
|
434
|
+
# @overload service_path(project:, location:, namespace:, service:)
|
|
435
|
+
# The resource will be in the following format:
|
|
416
436
|
#
|
|
417
|
-
#
|
|
437
|
+
# `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
|
|
418
438
|
#
|
|
419
|
-
#
|
|
420
|
-
#
|
|
421
|
-
#
|
|
422
|
-
#
|
|
439
|
+
# @param project [String]
|
|
440
|
+
# @param location [String]
|
|
441
|
+
# @param namespace [String]
|
|
442
|
+
# @param service [String]
|
|
443
|
+
#
|
|
444
|
+
# @overload service_path(project:, location:, service:)
|
|
445
|
+
# The resource will be in the following format:
|
|
446
|
+
#
|
|
447
|
+
# `projects/{project}/locations/{location}/services/{service}`
|
|
448
|
+
#
|
|
449
|
+
# @param project [String]
|
|
450
|
+
# @param location [String]
|
|
451
|
+
# @param service [String]
|
|
423
452
|
#
|
|
424
453
|
# @return [::String]
|
|
425
|
-
def service_path
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
454
|
+
def service_path **args
|
|
455
|
+
resources = {
|
|
456
|
+
"location:namespace:project:service" => (proc do |project:, location:, namespace:, service:|
|
|
457
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
458
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
459
|
+
raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
|
|
429
460
|
|
|
430
|
-
|
|
461
|
+
"projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
|
|
462
|
+
end),
|
|
463
|
+
"location:project:service" => (proc do |project:, location:, service:|
|
|
464
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
465
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
466
|
+
|
|
467
|
+
"projects/#{project}/locations/#{location}/services/#{service}"
|
|
468
|
+
end)
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
resource = resources[args.keys.sort.join(":")]
|
|
472
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
473
|
+
resource.call(**args)
|
|
431
474
|
end
|
|
432
475
|
|
|
433
476
|
##
|
|
@@ -767,7 +767,7 @@ module Google
|
|
|
767
767
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
768
768
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
769
769
|
#
|
|
770
|
-
# @overload import_app(gcs_uri: nil, app_content: nil, parent: nil, display_name: nil, app_id: nil, import_options: nil, ignore_app_lock: nil)
|
|
770
|
+
# @overload import_app(gcs_uri: nil, app_content: nil, json_patch_content: nil, json_patch_gcs_uri: nil, parent: nil, display_name: nil, app_id: nil, import_options: nil, ignore_app_lock: nil)
|
|
771
771
|
# Pass arguments to `import_app` via keyword arguments. Note that at
|
|
772
772
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
773
773
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -783,6 +783,15 @@ module Google
|
|
|
783
783
|
# structure.
|
|
784
784
|
#
|
|
785
785
|
# Note: The following parameters are mutually exclusive: `app_content`, `gcs_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
786
|
+
# @param json_patch_content [::String]
|
|
787
|
+
# Optional. Patch content as a JSON string.
|
|
788
|
+
#
|
|
789
|
+
# Note: The following parameters are mutually exclusive: `json_patch_content`, `json_patch_gcs_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
790
|
+
# @param json_patch_gcs_uri [::String]
|
|
791
|
+
# Optional. A Cloud Storage URI pointing to a JSON file containing the
|
|
792
|
+
# patches.
|
|
793
|
+
#
|
|
794
|
+
# Note: The following parameters are mutually exclusive: `json_patch_gcs_uri`, `json_patch_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
786
795
|
# @param parent [::String]
|
|
787
796
|
# Required. The parent resource name with the location of the app to import.
|
|
788
797
|
# @param display_name [::String]
|
|
@@ -4237,6 +4246,87 @@ module Google
|
|
|
4237
4246
|
raise ::Google::Cloud::Error.from_error(e)
|
|
4238
4247
|
end
|
|
4239
4248
|
|
|
4249
|
+
##
|
|
4250
|
+
# Updates the specified app version.
|
|
4251
|
+
#
|
|
4252
|
+
# @overload update_app_version(request, options = nil)
|
|
4253
|
+
# Pass arguments to `update_app_version` via a request object, either of type
|
|
4254
|
+
# {::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest} or an equivalent Hash.
|
|
4255
|
+
#
|
|
4256
|
+
# @param request [::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest, ::Hash]
|
|
4257
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4258
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4259
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4260
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4261
|
+
#
|
|
4262
|
+
# @overload update_app_version(app_version: nil, update_mask: nil)
|
|
4263
|
+
# Pass arguments to `update_app_version` via keyword arguments. Note that at
|
|
4264
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4265
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4266
|
+
#
|
|
4267
|
+
# @param app_version [::Google::Cloud::Ces::V1beta::AppVersion, ::Hash]
|
|
4268
|
+
# Required. The app version to update.
|
|
4269
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
4270
|
+
# Optional. The list of fields to update.
|
|
4271
|
+
# If empty, fields `display_name` and `description` will be updated.
|
|
4272
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4273
|
+
# @yieldparam result [::Google::Cloud::Ces::V1beta::AppVersion]
|
|
4274
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4275
|
+
#
|
|
4276
|
+
# @return [::Google::Cloud::Ces::V1beta::AppVersion]
|
|
4277
|
+
#
|
|
4278
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4279
|
+
#
|
|
4280
|
+
# @example Basic example
|
|
4281
|
+
# require "google/cloud/ces/v1beta"
|
|
4282
|
+
#
|
|
4283
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4284
|
+
# client = Google::Cloud::Ces::V1beta::AgentService::Rest::Client.new
|
|
4285
|
+
#
|
|
4286
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4287
|
+
# request = Google::Cloud::Ces::V1beta::UpdateAppVersionRequest.new
|
|
4288
|
+
#
|
|
4289
|
+
# # Call the update_app_version method.
|
|
4290
|
+
# result = client.update_app_version request
|
|
4291
|
+
#
|
|
4292
|
+
# # The returned object is of type Google::Cloud::Ces::V1beta::AppVersion.
|
|
4293
|
+
# p result
|
|
4294
|
+
#
|
|
4295
|
+
def update_app_version request, options = nil
|
|
4296
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4297
|
+
|
|
4298
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest
|
|
4299
|
+
|
|
4300
|
+
# Converts hash and nil to an options object
|
|
4301
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4302
|
+
|
|
4303
|
+
# Customize the options with defaults
|
|
4304
|
+
call_metadata = @config.rpcs.update_app_version.metadata.to_h
|
|
4305
|
+
|
|
4306
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4307
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4308
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4309
|
+
gapic_version: ::Google::Cloud::Ces::V1beta::VERSION,
|
|
4310
|
+
transports_version_send: [:rest]
|
|
4311
|
+
|
|
4312
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4313
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4314
|
+
|
|
4315
|
+
options.apply_defaults timeout: @config.rpcs.update_app_version.timeout,
|
|
4316
|
+
metadata: call_metadata,
|
|
4317
|
+
retry_policy: @config.rpcs.update_app_version.retry_policy
|
|
4318
|
+
|
|
4319
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4320
|
+
metadata: @config.metadata,
|
|
4321
|
+
retry_policy: @config.retry_policy
|
|
4322
|
+
|
|
4323
|
+
@agent_service_stub.update_app_version request, options do |result, operation|
|
|
4324
|
+
yield result, operation if block_given?
|
|
4325
|
+
end
|
|
4326
|
+
rescue ::Gapic::Rest::Error => e
|
|
4327
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4328
|
+
end
|
|
4329
|
+
|
|
4240
4330
|
##
|
|
4241
4331
|
# Deletes the specified app version.
|
|
4242
4332
|
#
|
|
@@ -5106,6 +5196,11 @@ module Google
|
|
|
5106
5196
|
#
|
|
5107
5197
|
attr_reader :create_app_version
|
|
5108
5198
|
##
|
|
5199
|
+
# RPC-specific configuration for `update_app_version`
|
|
5200
|
+
# @return [::Gapic::Config::Method]
|
|
5201
|
+
#
|
|
5202
|
+
attr_reader :update_app_version
|
|
5203
|
+
##
|
|
5109
5204
|
# RPC-specific configuration for `delete_app_version`
|
|
5110
5205
|
# @return [::Gapic::Config::Method]
|
|
5111
5206
|
#
|
|
@@ -5225,6 +5320,8 @@ module Google
|
|
|
5225
5320
|
@get_app_version = ::Gapic::Config::Method.new get_app_version_config
|
|
5226
5321
|
create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version
|
|
5227
5322
|
@create_app_version = ::Gapic::Config::Method.new create_app_version_config
|
|
5323
|
+
update_app_version_config = parent_rpcs.update_app_version if parent_rpcs.respond_to? :update_app_version
|
|
5324
|
+
@update_app_version = ::Gapic::Config::Method.new update_app_version_config
|
|
5228
5325
|
delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version
|
|
5229
5326
|
@delete_app_version = ::Gapic::Config::Method.new delete_app_version_config
|
|
5230
5327
|
restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version
|
|
@@ -1913,6 +1913,46 @@ module Google
|
|
|
1913
1913
|
end
|
|
1914
1914
|
end
|
|
1915
1915
|
|
|
1916
|
+
##
|
|
1917
|
+
# Baseline implementation for the update_app_version REST call
|
|
1918
|
+
#
|
|
1919
|
+
# @param request_pb [::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest]
|
|
1920
|
+
# A request object representing the call parameters. Required.
|
|
1921
|
+
# @param options [::Gapic::CallOptions]
|
|
1922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1923
|
+
#
|
|
1924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1925
|
+
# @yieldparam result [::Google::Cloud::Ces::V1beta::AppVersion]
|
|
1926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1927
|
+
#
|
|
1928
|
+
# @return [::Google::Cloud::Ces::V1beta::AppVersion]
|
|
1929
|
+
# A result object deserialized from the server's reply
|
|
1930
|
+
def update_app_version request_pb, options = nil
|
|
1931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1932
|
+
|
|
1933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_app_version_request request_pb
|
|
1934
|
+
query_string_params = if query_string_params.any?
|
|
1935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1936
|
+
else
|
|
1937
|
+
{}
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
response = @client_stub.make_http_request(
|
|
1941
|
+
verb,
|
|
1942
|
+
uri: uri,
|
|
1943
|
+
body: body || "",
|
|
1944
|
+
params: query_string_params,
|
|
1945
|
+
method_name: "update_app_version",
|
|
1946
|
+
options: options
|
|
1947
|
+
)
|
|
1948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1949
|
+
result = ::Google::Cloud::Ces::V1beta::AppVersion.decode_json response.body, ignore_unknown_fields: true
|
|
1950
|
+
catch :response do
|
|
1951
|
+
yield result, operation if block_given?
|
|
1952
|
+
result
|
|
1953
|
+
end
|
|
1954
|
+
end
|
|
1955
|
+
|
|
1916
1956
|
##
|
|
1917
1957
|
# Baseline implementation for the delete_app_version REST call
|
|
1918
1958
|
#
|
|
@@ -3098,6 +3138,28 @@ module Google
|
|
|
3098
3138
|
transcoder.transcode request_pb
|
|
3099
3139
|
end
|
|
3100
3140
|
|
|
3141
|
+
##
|
|
3142
|
+
# @private
|
|
3143
|
+
#
|
|
3144
|
+
# GRPC transcoding helper method for the update_app_version REST call
|
|
3145
|
+
#
|
|
3146
|
+
# @param request_pb [::Google::Cloud::Ces::V1beta::UpdateAppVersionRequest]
|
|
3147
|
+
# A request object representing the call parameters. Required.
|
|
3148
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3149
|
+
# Uri, Body, Query string parameters
|
|
3150
|
+
def self.transcode_update_app_version_request request_pb
|
|
3151
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3152
|
+
.with_bindings(
|
|
3153
|
+
uri_method: :patch,
|
|
3154
|
+
uri_template: "/v1beta/{app_version.name}",
|
|
3155
|
+
body: "app_version",
|
|
3156
|
+
matches: [
|
|
3157
|
+
["app_version.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+/?$}, false]
|
|
3158
|
+
]
|
|
3159
|
+
)
|
|
3160
|
+
transcoder.transcode request_pb
|
|
3161
|
+
end
|
|
3162
|
+
|
|
3101
3163
|
##
|
|
3102
3164
|
# @private
|
|
3103
3165
|
#
|